AvailableEffect#

class pyrogram.raw.types.AvailableEffect#

Represents a message effect ».

Constructor of AvailableEffect.

Details:
  • Layer: 187

  • ID: 93C3E27E

Parameters:
  • id (int 64-bit) – Unique effect ID.

  • emoticon (str) – Emoji corresponding to the effect, to be used as icon for the effect if static_icon_id is not set.

  • effect_sticker_id (int 64-bit) – Contains the preview animation (TGS format »), used for the effect selection menu.

  • premium_required (bool, optional) – Whether a Premium subscription is required to use this effect.

  • static_icon_id (int 64-bit, optional) – ID of the document containing the static icon (WEBP) of the effect.

  • effect_animation_id (int 64-bit, optional) – 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 effect_sticker_id (always different from the preview animation, fetched thanks to the videoSize of type f as specified here »).