The setChatMenuButton doesn't work as specified in the API.
Closed this issue · 2 comments
DmitriiNov commented
Code
_, err = b.SetChatMenuButton(ctx, &bot.SetChatMenuButtonParams{
ChatID: nil,
MenuButton: &models.MenuButtonCommands{
Type: "commands",
},
})
API request
{"chat_id":null,"menu_button":{"type":"commands"}}
API response
{"ok":false,"error_code":400,"description":"Bad Request: invalid chat_id specified"}
API description
Link. In the API description - Unique identifier for the target private chat. If not specified, default bot's menu button will be changed
DmitriiNov commented
#53 Created pull request
negasus commented
Merged