Fix API 7.0 update implementation. Add the fields chat_boost and removed_chat_boost to the type Update
This commit is contained in:
parent
d9d4cad62a
commit
eced2e4efa
1 changed files with 8 additions and 0 deletions
8
types.go
8
types.go
|
@ -122,6 +122,14 @@ type Update struct {
|
||||||
//
|
//
|
||||||
// optional
|
// optional
|
||||||
ChatJoinRequest *ChatJoinRequest `json:"chat_join_request,omitempty"`
|
ChatJoinRequest *ChatJoinRequest `json:"chat_join_request,omitempty"`
|
||||||
|
// ChatBoostUpdated represents a boost added to a chat or changed.
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
ChatBoost *ChatBoostUpdated `json:"chat_boost,omitempty"`
|
||||||
|
// ChatBoostRemoved represents a boost removed from a chat.
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
ChatBoostRemoved *ChatBoostRemoved `json:"removed_chat_boost,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SentFrom returns the user who sent an update. Can be nil, if Telegram did not provide information
|
// SentFrom returns the user who sent an update. Can be nil, if Telegram did not provide information
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue