Link Search Menu Expand Document

Constructor: availableReaction

Back to constructors index

Animations associated with a message reaction

Attributes:

NameTypeRequiredDescription
inactiveBoolOptionalIf not set, the reaction can be added to new messages and enabled in chats.
premiumBoolOptionalWhether this reaction can only be used by Telegram Premium users
reactionstringYesReaction emoji
titlestringYesReaction description
static_iconDocumentOptionalStatic icon for the reaction
appear_animationDocumentOptionalThe animated sticker to show when the user opens the reaction dropdown
select_animationDocumentOptionalThe animated sticker to show when the user hovers over the reaction
activate_animationDocumentOptionalThe animated sticker to show when the reaction is chosen and activated
effect_animationDocumentOptionalThe background effect (still an animated sticker) to play under the activate_animation, when the reaction is chosen and activated
around_animationDocumentOptionalThe animation that plays around the button when you press an existing reaction (played together with center_icon).
center_iconDocumentOptionalThe animation of the emoji inside the button when you press an existing reaction (played together with around_animation).

Type: AvailableReaction

Example:

$availableReaction = ['_' => 'availableReaction', 'inactive' => Bool, 'premium' => Bool, 'reaction' => 'string', 'title' => 'string', 'static_icon' => Document, 'appear_animation' => Document, 'select_animation' => Document, 'activate_animation' => Document, 'effect_animation' => Document, 'around_animation' => Document, 'center_icon' => Document];