Actions56
- 袙褏芯写 Actions
- 袚褉褍锌锌邪 Actions
- 袣芯薪褌邪泻褌 Actions
- 袩芯写邪褉芯泻 Actions
- 袩芯谢褜蟹芯胁邪褌械谢褜 Actions
- 袩芯谢褜蟹芯胁邪褌械谢褜褋泻懈泄 蟹邪锌褉芯褋 Actions
- 小芯芯斜褖械薪懈械 Actions
- 肖邪泄谢 Actions
- 效邪褌 Actions
- 袩芯谢褍褔懈褌褜 褋锌懈褋芯泻 锌邪锌芯泻
- 袪械写邪泻褌懈褉芯胁邪褌褜 锌邪锌泻褍
- 袛芯斜邪胁懈褌褜 褔邪褌 胁 锌邪锌泻褍
- 校写邪谢懈褌褜 褔邪褌 懈蟹 锌邪锌泻懈
- 袛芯斜邪胁懈褌褜 褍褔邪褋褌薪懈泻芯胁 胁 褔邪褌
- 袟邪泻褉褘褌褜 褔邪褌
- 袨褌泻褉褘褌褜 褔邪褌
- 袨褌屑械褌懈褌褜 褔邪褌 泻邪泻 薪械锌褉芯褔懈褌邪薪薪褘泄
- 袨褌锌褉邪胁懈褌褜 写械泄褋褌胁懈械 褔邪褌邪
- 袩芯懈褋泻 锌褍斜谢懈褔薪芯谐芯 褔邪褌邪 (锌芯 懈屑械薪懈 锌芯谢褜蟹芯胁邪褌械谢褟)
- 小芯蟹写邪褌褜 斜懈蟹薪械褋-褋褋褘谢泻褍 褔邪褌邪
- 校写邪谢懈褌褜 斜懈蟹薪械褋-褋褋褘谢泻褍 褔邪褌邪
- 袩芯懈褋泻 锌褍斜谢懈褔薪褘褏 褔邪褌芯胁 (袩芯懈褋泻 胁 懈屑械薪懈, 蟹邪谐芯谢芯胁泻械)
- 袩芯谢褍褔懈褌褜 懈薪褎芯褉屑邪褑懈褞 芯 褋褋褘谢泻械 锌褉懈谐谢邪褕械薪懈褟 胁 褔邪褌
- 袩芯谢褍褔懈褌褜 懈褋褌芯褉懈褞 褔邪褌邪
- 袩芯谢褍褔懈褌褜 锌谢邪褌薪褘械 锌芯褋褌褘 懈蟹 褔邪褌邪
- 袩芯谢褍褔懈褌褜 褍褔邪褋褌薪懈泻芯胁 褔邪褌邪, 锌褉懈褋芯械写懈薪懈胁褕懈褏褋褟 锌芯 褋褋褘谢泻械 锌褉懈谐谢邪褕械薪懈褟
- 袩芯谢褍褔懈褌褜 懈薪褎芯褉屑邪褑懈褞 芯 褔邪褌械
- 袩芯谢褍褔懈褌褜 褔邪褌褘
- 袩褉懈褋芯械写懈薪懈褌褜褋褟 泻 褔邪褌褍
- 小芯蟹写邪褌褜 褋褍锌械褉谐褉褍锌锌褍 懈谢懈 泻邪薪邪谢
- 校写邪谢懈褌褜 褔邪褌
- 袩芯谢褍褔懈褌褜 褋锌懈褋芯泻 斜懈蟹薪械褋-褋褋褘谢芯泻
- 袟胁械蟹写褘 Actions
- 袠褋褌芯褉懈懈 Actions
小芯芯斜褖械薪懈械 → 袨褌锌褉邪胁懈褌褜 褋芯芯斜褖械薪懈械 褋 褎邪泄谢芯屑
AI-generatedOverview
This node operation sends a file message to a specified Telegram chat. It allows users to upload a local file to the chat with an optional caption and supports setting a self-destruct timer for the file message. This is useful for automating file sharing in Telegram chats, such as sending documents, images, or other media files programmatically.
Use Case Examples
- Automatically send a PDF report to a Telegram group chat every morning.
- Share a photo with a caption to a chat and have it self-destruct after a set time.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the Telegram chat where the file will be sent. |
| File Path | The local file system path to the file that will be sent to the chat. |
| File Caption | An optional text caption to accompany the file message. |
| 袙褉械屑褟 褋邪屑芯褍薪懈褔褌芯卸械薪懈褟 (胁 褋械泻褍薪写邪褏) | Self-destruct timer in seconds for the file message. If set greater than 0, the file message will automatically delete after the specified time. 0 means no self-destruct. |
| Reply to threadID | If not 0, specifies the message thread ID in which the file message will be sent as a reply. |
| Reply to messageId | Identifier of the message to which this file message is a reply. |
Output
JSON
_- Type of the Telegram API method invoked, e.g., 'sendMessage'.chat_id- The chat ID where the file was sent.reply_to_msg_id- The message ID this file message is replying to, if any.message_thread_id- The thread ID within the chat where the message was sent, if applicable.input_message_content_- The type of input message content, here it is 'inputMessageDocument' indicating a file document.document
*_- Indicates the file is a local input file.
*path- The local file path of the file sent.caption
*_- Caption type, typically 'formattedText'.
*text- The caption text for the file message.self_destruct_type
*_- If set, indicates the self-destruct timer type.
*self_destruct_time- The self-destruct time in seconds for the file message.
Dependencies
- An API key credential for Telegram API authentication
Troubleshooting
- Ensure the file path is correct and the file exists locally before sending.
- If the self-destruct time is set, verify that the Telegram client supports this feature.
- Common errors include 'Client is not initialized' if the Telegram client session is not active; re-login may be required.
- Errors related to permissions or invalid chat IDs may occur if the chat ID is incorrect or the bot/user lacks permission to send messages.
Links
- Telegram Bot API - sendDocument - Official Telegram API documentation for sending documents (files) in chats.