MadelineProtoDocs/docs/API_docs/constructors/availableReaction.md
2024-05-01 14:53:46 +02:00

2.4 KiB

title description nav_exclude image
availableReaction Animations associated with a message reaction true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: availableReaction

Back to constructors index

Animations associated with a message reaction

Attributes:

Name Type Required Description
inactive Bool Optional If not set, the reaction can be added to new messages and enabled in chats.
premium Bool Optional Whether this reaction can only be used by Telegram Premium users
reaction string Yes Reaction emoji
title string Yes Reaction description
static_icon Document Optional Static icon for the reaction
appear_animation Document Optional The animated sticker to show when the user opens the reaction dropdown
select_animation Document Optional The animated sticker to show when the user hovers over the reaction
activate_animation Document Optional The animated sticker to show when the reaction is chosen and activated
effect_animation Document Optional The background effect (still an animated sticker) to play under the activate_animation, when the reaction is chosen and activated
around_animation Document Optional The animation that plays around the button when you press an existing reaction (played together with center_icon).
center_icon Document Optional The 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];