go-telegram/bot

The setChatMenuButton doesn't work as specified in the API.

Closed this issue · 2 comments

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

#53 Created pull request

Merged