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>bot-api-6.1
parent
ec221ba9ea
commit
0b788c7730
1
types.go
1
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.
|
||||
|
|
Loading…
Reference in New Issue