Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>AvailableReaction_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class AvailableReaction_
import { AvailableReaction_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Animations associated with a message reaction

Constructors

new
AvailableReaction_(params: { inactive?: true; premium?: true; reaction: string; title: string; static_icon: enums.Document; appear_animation: enums.Document; select_animation: enums.Document; activate_animation: enums.Document; effect_animation: enums.Document; around_animation?: enums.Document; center_icon?: enums.Document; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
activate_animation: enums.Document

The animated sticker to show when the reaction is chosen and activated

appear_animation: enums.Document

The animated sticker to show when the user opens the reaction dropdown

optional
around_animation: enums.Document

The animation that plays around the button when you press an existing reaction (played together with center_icon).

optional
center_icon: enums.Document

The animation of the emoji inside the button when you press an existing reaction (played together with around_animation).

effect_animation: enums.Document

The background effect (still an animated sticker) to play under the activate_animation, when the reaction is chosen and activated

optional
inactive: true

If not set, the reaction can be added to new messages and enabled in chats.

optional
premium: true

Whether this reaction can only be used by Telegram Premium users

reaction: string

Reaction emoji

select_animation: enums.Document

The animated sticker to show when the user hovers over the reaction

static_icon: enums.Document

Static icon for the reaction

title: string

Reaction description

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc