1
0

🐛 Changed get to post

This commit is contained in:
Maxim Lebedev 2017-09-05 01:04:40 +05:00
parent 555b7804d9
commit c524bd98c1
No known key found for this signature in database
GPG Key ID: F8978F46FF0FFA4F
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ func (bot *Bot) DeleteStickerFromSet(sticker string) (bool, error) {
var args http.Args
args.Add("sticker", sticker) // File identifier of the sticker
resp, err := bot.get("deleteStickerFromSet", &args)
resp, err := bot.post("deleteStickerFromSet", &args)
if err != nil {
return nil, err
}

View File

@ -2,5 +2,5 @@ package telegram
// DeleteWebhook remove webhook integration if you decide to switch back to getUpdates. Returns True on success. Requires no parameters.
func (bot *Bot) DeleteWebhook() (*Response, error) {
return bot.get("deleteWebhook", nil)
return bot.post("deleteWebhook", nil)
}

View File

@ -37,7 +37,7 @@ func (bot *Bot) SendChatAction(chat interface{}, action string) (bool, error) {
return nil, errors.New(errorInt64OrString)
}
resp, err := bot.get("sendChatAction", &args)
resp, err := bot.post("sendChatAction", &args)
if err != nil {
return nil, err
}