Class SendAnimationMethod.
| see | |
|---|---|
| package | Default | 
create(integer|string $chatId, \TgBotApi\BotApiBase\Type\InputFileType|string $animation, array|null $data = null) : \TgBotApi\BotApiBase\Method\SendAnimationMethod
integerstring
\TgBotApi\BotApiBase\Type\InputFileTypestring
arraynull
\TgBotApi\BotApiBase\Exception\BadArgumentException | 
|---|
\TgBotApi\BotApiBase\Method\SendAnimationMethodfill(array $data, array $forbidden = array()) 
array
array
\TgBotApi\BotApiBase\Exception\BadArgumentException | 
|---|
$allowSendingWithoutReply : boolean | null
$animation : \TgBotApi\BotApiBase\Type\InputFileType | string
Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data.
$caption : string | null
$disableNotification : boolean | null
$duration : integer | null
$height : integer | null
$parseMode : string | null
$replyMarkup : \TgBotApi\BotApiBase\Type\InlineKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardRemoveType | \TgBotApi\BotApiBase\Type\ForceReplyType | null
$replyToMessageId : integer | null
$thumb : \TgBotApi\BotApiBase\Type\InputFileType | string | null
A thumbnail‘s width and height should not exceed 90.
Ignored if the file is not uploaded using multipart/form-data.
Thumbnails can’t be reused and can be only uploaded as a new file, so you can pass “attach://
$width : integer | null