From fc1a751391093188be306047717e638181fdd288 Mon Sep 17 00:00:00 2001 From: Anna Prosvetova Date: Fri, 29 Jun 2018 20:29:20 +0300 Subject: [PATCH] fixed wrong method name --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index df79ea9..92dd28c 100644 --- a/bot.go +++ b/bot.go @@ -1022,7 +1022,7 @@ func (b *Bot) Unpin(chat *Chat) error { "chat_id": chat.Recipient(), } - respJSON, err := b.Raw("upinChatMessage", params) + respJSON, err := b.Raw("unpinChatMessage", params) if err != nil { return err }