Updates for Bot API 5.3.

This commit is contained in:
Syfaro 2021-06-27 15:15:09 -04:00
parent fb1de2fb48
commit 66dc9e8246
6 changed files with 179 additions and 10 deletions

4
bot.go
View file

@ -667,9 +667,7 @@ func (bot *BotAPI) StopPoll(config StopPollConfig) (Poll, error) {
}
// GetMyCommands gets the currently registered commands.
func (bot *BotAPI) GetMyCommands() ([]BotCommand, error) {
config := GetMyCommandsConfig{}
func (bot *BotAPI) GetMyCommands(config GetMyCommandsConfig) ([]BotCommand, error) {
resp, err := bot.Request(config)
if err != nil {
return nil, err