Raw.AvailableReaction

Raw.AvailableReaction

Animations associated with a message reaction

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;
export namespace Raw {
  export class AvailableReaction {
    constructor(params: {
      inactive?: boolean;
      premium?: boolean;
      reaction: string;
      title: string;
      staticIcon: Raw.TypeDocument;
      appearAnimation: Raw.TypeDocument;
      selectAnimation: Raw.TypeDocument;
      activateAnimation: Raw.TypeDocument;
      effectAnimation: Raw.TypeDocument;
      aroundAnimation?: Raw.TypeDocument;
      centerIcon?: Raw.TypeDocument;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xc077ec01

Property

  • inactive : boolean or undefined

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

  • premium : boolean or undefined

    Whether this reaction can only be used by telegram premium users

  • reaction : string

    Reaction emoji

  • title : string

    Reaction description

  • staticIcon : Raw.TypeDocument

    Static icon for the reaction

  • appearAnimation : Raw.TypeDocument

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

  • selectAnimation : Raw.TypeDocument

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

  • activateAnimation : Raw.TypeDocument

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

  • effectAnimation : Raw.TypeDocument

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

  • aroundAnimation : Raw.TypeDocument or undefined

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

  • centerIcon : Raw.TypeDocument or undefined

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