send_animation
Send an animation (GIF) to a Telegram chat using a URL or local file path. Supports captions, spoilers, reply markup, and silent notifications.
Instructions
Send an animation (GIF) to a Telegram chat. Can send from URL or local file path. If chat_id is omitted, sends to the default log group.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Animation width | |
| height | No | Animation height | |
| caption | No | Animation caption (up to 1024 chars) | |
| chat_id | No | Chat ID or @channel_username. Optional — defaults to log group | |
| duration | No | Animation duration in seconds | |
| animation | Yes | Animation URL, file_id or absolute local file path | |
| parse_mode | No | Caption formatting mode | |
| has_spoiler | No | Cover animation with spoiler | |
| reply_markup | No | JSON string with reply markup | |
| protect_content | No | Protect message from forwarding/saving | |
| caption_entities | No | JSON array of MessageEntity objects (alternative to parse_mode) | |
| reply_parameters | No | JSON object with ReplyParameters (e.g. {"message_id": 123}) | |
| message_thread_id | No | Topic/thread ID for supergroups with topics enabled | |
| disable_notification | No | Send silently without notification | |
| show_caption_above_media | No | Show caption above media |