refactor: rename GenReply to GenReplyCQ for clarity and update SendMsg to use the new function; add GenPokePkg and GenGetGroupMemberListPkg for enhanced action handling
This commit is contained in:
@@ -13,3 +13,32 @@ func GenDrawbackPkg(msgId int32) Action {
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// 戳一戳GenPokePkg
|
||||
func GenPokePkg(groupId int64, userId int64) Action {
|
||||
if groupId != 0 {
|
||||
return Action{
|
||||
Action: "send_poke",
|
||||
Params: map[string]interface{}{
|
||||
"group_id": groupId,
|
||||
"user_id": userId,
|
||||
},
|
||||
}
|
||||
}
|
||||
return Action{
|
||||
Action: "send_poke",
|
||||
Params: map[string]interface{}{
|
||||
"user_id": userId,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// 获取群成员列表 GenGetGroupMemberListPkg
|
||||
func GenGetGroupMemberListPkg(groupId int64) Action {
|
||||
return Action{
|
||||
Action: "get_group_member_list",
|
||||
Params: map[string]interface{}{
|
||||
"group_id": groupId,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user