Raw.AvailableEffect

Raw.AvailableEffect

Represents a message effect.

availableEffect#93c3e27e flags:# premium_required:flags.2?true id:long emoticon:string static_icon_id:flags.0?long effect_sticker_id:long effect_animation_id:flags.1?long = AvailableEffect;
export namespace Raw {
  export class AvailableEffect {
    constructor(params: {
      premiumRequired?: boolean;
      id: bigint;
      emoticon: string;
      staticIconId?: bigint;
      effectStickerId: bigint;
      effectAnimationId?: bigint;
    }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0x93c3e27e

Property

  • premiumRequired : boolean or undefined

    Whether a premium subscription is required to use this effect.

  • id : bigint

    Unique effect id.

  • emoticon : string

    Emoji corresponding to the effect, to be used as icon for the effect if staticIconId is not set.

  • staticIconId : bigint or undefined

    Id of the document containing the static icon (webp) of the effect.

  • effectStickerId : bigint

    Contains the preview animation (tgs format ), used for the effect selection menu.

  • effectAnimationId : bigint or undefined

    If set, contains the actual animated effect (tgs format ). if not set, the animated effect must be set equal to the premium animated sticker effect associated to the animated sticker specified in effectStickerId (always different from the preview animation, fetched thanks to the videosize of type f as specified here ).