Avoid breaking change with GetMyCommands.
This commit is contained in:
parent
66dc9e8246
commit
1198abda6d
3 changed files with 8 additions and 8 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue