Layer 220
constructor

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
PremiumRequired flags.2?true Whether a Premium subscription is required to use this effect.
Id long Unique effect ID.
Emoticon string Emoji corresponding to the effect, to be used as icon for the effect if static_icon_id is not set.
StaticIconId flags.0?long ID of the document containing the static icon (WEBP) of the effect.
EffectStickerId long Contains the preview animation (TGS format ), used for the effect selection menu.
EffectAnimationId flags.1?long 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 video Size of type f as specified here ).

Returns

AvailableEffect

Gogram Example

// Creating AvailableEffect constructor
obj := &tg.AvailableEffect{
    Id: int64(0),
    Emoticon: "...",
    EffectStickerId: int64(0),

    // Optional fields:
    // PremiumRequired: true,
    // StaticIconId: int64(0),
    // EffectAnimationId: int64(0),
}