all repos — telegram-bot-api @ 99503a71186fd705a373057423621da02db2703e

Golang bindings for the Telegram Bot API

Merge pull request #560 from temamagic/premium-update

Premium update
Syfaro syfaro@huefox.com
Wed, 19 Oct 2022 20:30:57 -0400
commit

99503a71186fd705a373057423621da02db2703e

parent

617735e3abc7cea89ba875ef20aef4a57a5df23a

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

jump to
M types.gotypes.go

@@ -183,6 +183,10 @@ // IsBot true, if this user is a bot

// // optional IsBot bool `json:"is_bot,omitempty"` + // IsPremium true, if user has Telegram Premium + // + // optional + IsPremium bool `json:"is_premium,omitempty"` // FirstName user's or bot's first name FirstName string `json:"first_name"` // LastName user's or bot's last name

@@ -445,6 +449,11 @@ // For backward compatibility, when this field is set, the document field will also be set;

// // optional Animation *Animation `json:"animation,omitempty"` + // PremiumAnimation message is an animation, information about the animation. + // For backward compatibility, when this field is set, the document field will also be set; + // + // optional + PremiumAnimation *Animation `json:"premium_animation,omitempty"` // Audio message is an audio file, information about the file; // // optional