diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-05-29 00:31:11 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-05-29 00:31:11 +0700 |
| commit | 3f2f8e424081ccc77b9d77baea5e37f5bb5365fd (patch) | |
| tree | 7c2743be08aa8cb16fd52d3183420ddeeb98d82b /api | |
| parent | c03ddce63f66a55b94dd6bfedd324a2777480f9f (diff) | |
| download | pakakeh.go-3f2f8e424081ccc77b9d77baea5e37f5bb5365fd.tar.xz | |
telegram/bot: fix request parameter on GetMyCommands
Diffstat (limited to 'api')
| -rw-r--r-- | api/telegram/bot/bot.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/telegram/bot/bot.go b/api/telegram/bot/bot.go index 64694d8e..3e7b7d11 100644 --- a/api/telegram/bot/bot.go +++ b/api/telegram/bot/bot.go @@ -79,6 +79,7 @@ const ( const ( methodDeleteWebhook = "deleteWebhook" methodGetMe = "getMe" + methodGetMyCommands = "getMyCommands" methodGetWebhookInfo = "getWebhookInfo" methodSendMessage = "sendMessage" methodSetMyCommands = "setMyCommands" @@ -178,7 +179,7 @@ func (bot *Bot) GetMe() (user *User, err error) { // GetMyCommands get the current list of the bot's commands. // func (bot *Bot) GetMyCommands() (cmds []Command, err error) { - resBody, err := bot.client.Get(methodGetWebhookInfo, nil) + resBody, err := bot.client.Get(methodGetMyCommands, nil) if err != nil { return nil, fmt.Errorf("GetMyCommands: %w", err) } |
