Closed DmitriiNov closed 5 months ago
_, err = b.SetChatMenuButton(ctx, &bot.SetChatMenuButtonParams{ ChatID: nil, MenuButton: &models.MenuButtonCommands{ Type: "commands", }, })
{"chat_id":null,"menu_button":{"type":"commands"}}
{"ok":false,"error_code":400,"description":"Bad Request: invalid chat_id specified"}
Link. In the API description - Unique identifier for the target private chat. If not specified, default bot's menu button will be changed
Merged
Code
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