all repos — telegram-bot-api @ eced2e4efa397f26d23d2512bc3c063279bbd03a

Golang bindings for the Telegram Bot API

Fix API 7.0 update implementation. Add the fields chat_boost and removed_chat_boost to the type Update
OvyFlash olegshva4ko@gmail.com
Sun, 10 Mar 2024 17:05:21 +0200
commit

eced2e4efa397f26d23d2512bc3c063279bbd03a

parent

d9d4cad62a7ba7d9346f36152fee5488035cd713

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

jump to
M types.gotypes.go

@@ -122,6 +122,14 @@ // these updates.

// // optional 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