Skip to content

Commit

Permalink
Fix SetGroupPermissions JSON request body
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico204 committed Sep 25, 2021
1 parent 37bf84d commit 9992a22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -1336,9 +1336,9 @@ func (b *Bot) SetGroupStickerSet(chat *Chat, setName string) error {
// SetGroupPermissions sets default chat permissions for all members.
func (b *Bot) SetGroupPermissions(chat *Chat, perms Rights) error {
params := map[string]interface{}{
"chat_id": chat.Recipient(),
"chat_id": chat.Recipient(),
"permissions": perms,
}
embedRights(params, perms)

_, err := b.Raw("setChatPermissions", params)
return err
Expand Down

0 comments on commit 9992a22

Please sign in to comment.