Layer 227
AvailableReactionObj
Animations associated with a message reaction
constructor
availableReaction#c077ec01 flags:# inactive:flags.0?true premium:flags.2?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction;
Parameters
| Name | Type | Description |
|---|---|---|
| Inactive | flags .0? true | If not set, the reaction can be added to new messages and enabled in chats. |
| Premium | flags .2? true | Whether this reaction can only be used by Telegram Premium users |
| Reaction | string | Reaction emoji |
| Title | string | Reaction description |
| StaticIcon | Document | Static icon for the reaction |
| AppearAnimation | Document | The animated sticker to show when the user opens the reaction dropdown |
| SelectAnimation | Document | The animated sticker to show when the user hovers over the reaction |
| ActivateAnimation | Document | The animated sticker to show when the reaction is chosen and activated |
| EffectAnimation | Document | The background effect (still an animated sticker) to play under the activate_animation, when the reaction is chosen and activated |
| AroundAnimation | flags .1? Document | The animation that plays around the button when you press an existing reaction (played together with center_icon ). |
| CenterIcon | flags .1? Document | The animation of the emoji inside the button when you press an existing reaction (played together with around_animation ). |
Returns
AvailableReactionGogram Example
// Creating AvailableReactionObj constructor obj := &tg.AvailableReactionObj{ Inactive: nil, Premium: nil, Reaction: "Hello, World!", Title: "Hello, World!", StaticIcon: &tg.Document{}, AppearAnimation: &tg.Document{}, // ... more required fields }