Interface MessageAnimation

An animation message (GIF-style). Subtype of MessageContent.

interface MessageAnimation {
    @type: "messageAnimation";
    animation: Animation;
    caption: FormattedText;
    has_spoiler?: boolean;
    is_secret?: boolean;
    show_caption_above_media?: boolean;
}

Properties

@type: "messageAnimation"
animation: Animation

The animation description.

caption: FormattedText

Animation caption.

has_spoiler?: boolean

True, if the animation preview must be covered by a spoiler animation.

is_secret?: boolean

True, if the animation thumbnail must be blurred and the animation must be shown only while tapped.

show_caption_above_media?: boolean

True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation.