TelegramBot.sendAnimation

Send animation

Animation must be in GIF format or H.264/MPEG-4 AVC video without sound

  1. Message sendAnimation(T chat_id, string animation)
    struct TelegramBot
    @trusted
    sendAnimation
    (
    T
    )
    (,
    string animation
    )
  2. Message sendAnimation(SendAnimationMethod m)

Parameters

chat_id T

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

animation string

HTTP URL to get animation from the internet or file_id of the file on Telegram

Return Value

Type: Message

Sent Message

Throws

TelegramBotException on errors

See Also

Meta