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 <mussitantesmortem@gmail.com>
Maxim Zhukov mussitantesmortem@gmail.com
Tue, 12 Feb 2019 22:00:57 +0300
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
types.go
→
types.go
@@ -100,6 +100,7 @@ AllMembersAreAdmins bool `json:"all_members_are_administrators"` // optional
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.