all repos — telegram-bot-api @ 0b788c7730d625b1c81e7a311754251951112a81

Golang bindings for the Telegram Bot API

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
commit

0b788c7730d625b1c81e7a311754251951112a81

parent

ec221ba9ea458cd5386c35dd90af04b8a895f8eb

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M types.gotypes.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.