send_animation
Sends GIFs or silent H.264/MPEG-4 videos to a Telegram chat using a file ID, URL, or local path, with optional caption and formatting.
Instructions
Send an animation (GIF or H.264/MPEG-4 AVC video without sound).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| caption | No | Caption (0-1024 visible chars; HTML tags/URLs excluded) | |
| chat_id | Yes | Chat ID or @username | |
| duration | No | ||
| animation | Yes | File ID, HTTP URL, or absolute file path | |
| thumbnail | No | File ID, HTTP URL, or absolute file path | |
| parse_mode | No | Formatting mode | |
| has_spoiler | No | ||
| reply_markup | No | InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardRemove, or ForceReply | |
| protect_content | No | ||
| caption_entities | No | Array of MessageEntity objects | |
| receiver_user_id | No | User ID | |
| reply_parameters | No | ReplyParameters object | |
| callback_query_id | No | ||
| message_effect_id | No | ||
| message_thread_id | No | ||
| allow_paid_broadcast | No | ||
| disable_notification | No | ||
| business_connection_id | No | ||
| direct_messages_topic_id | No | ||
| show_caption_above_media | No | ||
| suggested_post_parameters | No | SuggestedPostParameters object (price, send_date) — direct messages chats only |