Merge pull request #146 from aprosvetova/patch-1

fixed wrong method name
This commit is contained in:
Ian Byrd 2018-07-19 02:27:49 +03:00 committed by GitHub
commit b59ea4aec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
bot.go
View File

@ -1022,7 +1022,7 @@ func (b *Bot) Unpin(chat *Chat) error {
"chat_id": chat.Recipient(), "chat_id": chat.Recipient(),
} }
respJSON, err := b.Raw("upinChatMessage", params) respJSON, err := b.Raw("unpinChatMessage", params)
if err != nil { if err != nil {
return err return err
} }