mirror of
https://github.com/awfufu/qbot.git
synced 2026-03-01 05:19:44 +08:00
12 lines
256 B
Go
12 lines
256 B
Go
package api
|
|
|
|
func SetGroupAdmin(c Client, groupID uint64, userID uint64, enable bool) error {
|
|
params := map[string]any{
|
|
"group_id": groupID,
|
|
"user_id": userID,
|
|
"enable": enable,
|
|
}
|
|
_, err := c.SendParams("set_group_admin", params)
|
|
return err
|
|
}
|