Interface InputMessageAnimation

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

interface InputMessageAnimation {
    @type: "inputMessageAnimation";
    animation: InputAnimation;
    caption: FormattedText;
    has_spoiler?: boolean;
    show_caption_above_media?: boolean;
}

Properties

@type: "inputMessageAnimation"
animation: InputAnimation

The animation to be sent.

caption: FormattedText

Animation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.

has_spoiler?: boolean

True, if the animation preview must be covered by a spoiler animation; not supported in secret chats.

show_caption_above_media?: boolean

True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation; not supported in secret chats.