tg_send_file
Send files to Telegram chats using a bot by providing a file URL, with optional caption and chat ID parameters for flexible file sharing.
Instructions
Send general files via telegram bot
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | File caption, 0-1024 characters after entities parsing | |
| chat_id | No | Telegram chat id, Default to get from environment variables | |
| parse_mode | No | Mode for parsing entities in the caption. [text/MarkdownV2] | |
| url | Yes | File URL |
Input Schema (JSON Schema)
{
"properties": {
"caption": {
"default": "",
"description": "File caption, 0-1024 characters after entities parsing",
"type": "string"
},
"chat_id": {
"default": "",
"description": "Telegram chat id, Default to get from environment variables",
"type": "string"
},
"parse_mode": {
"default": "",
"description": "Mode for parsing entities in the caption. [text/MarkdownV2]",
"type": "string"
},
"url": {
"description": "File URL",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}