From 0b788c7730d625b1c81e7a311754251951112a81 Mon Sep 17 00:00:00 2001 From: Maxim Zhukov Date: Tue, 12 Feb 2019 22:00:57 +0300 Subject: [PATCH] added PinnedMessage in Chat struct Since BotAPI 3.3: getChat now also returns pinned messages in supergroups, if present. Added the new field pinned_message to the Chat object. Signed-off-by: Maxim Zhukov --- types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/types.go b/types.go index c6cd642..9d96fb9 100644 --- a/types.go +++ b/types.go @@ -100,6 +100,7 @@ type Chat struct { Photo *ChatPhoto `json:"photo"` Description string `json:"description,omitempty"` // optional InviteLink string `json:"invite_link,omitempty"` // optional + PinnedMessage *Message `json:"pinned_message"` // optional } // IsPrivate returns if the Chat is a private conversation.