Avoid breaking change with GetMyCommands.

This commit is contained in:
Syfaro 2021-08-20 01:27:42 -04:00
parent 66dc9e8246
commit 1198abda6d
3 changed files with 8 additions and 8 deletions

View file

@ -965,7 +965,7 @@ func TestCommands(t *testing.T) {
t.Error("Unable to set commands")
}
commands, err := bot.GetMyCommands(NewGetMyCommands())
commands, err := bot.GetMyCommands()
if err != nil {
t.Error("Unable to get commands")
}
@ -987,7 +987,7 @@ func TestCommands(t *testing.T) {
t.Error("Unable to set commands")
}
commands, err = bot.GetMyCommands(NewGetMyCommandsWithScope(NewBotCommandScopeAllPrivateChats()))
commands, err = bot.GetMyCommandsWithConfig(NewGetMyCommandsWithScope(NewBotCommandScopeAllPrivateChats()))
if err != nil {
t.Error("Unable to get commands")
}