Skip to content

Commit 99503a7

Browse files
authored
Merge pull request #560 from temamagic/premium-update
Premium update
2 parents 617735e + 5063835 commit 99503a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

types.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ type User struct {
183183
//
184184
// optional
185185
IsBot bool `json:"is_bot,omitempty"`
186+
// IsPremium true, if user has Telegram Premium
187+
//
188+
// optional
189+
IsPremium bool `json:"is_premium,omitempty"`
186190
// FirstName user's or bot's first name
187191
FirstName string `json:"first_name"`
188192
// LastName user's or bot's last name
@@ -445,6 +449,11 @@ type Message struct {
445449
//
446450
// optional
447451
Animation *Animation `json:"animation,omitempty"`
452+
// PremiumAnimation message is an animation, information about the animation.
453+
// For backward compatibility, when this field is set, the document field will also be set;
454+
//
455+
// optional
456+
PremiumAnimation *Animation `json:"premium_animation,omitempty"`
448457
// Audio message is an audio file, information about the file;
449458
//
450459
// optional

0 commit comments

Comments
 (0)