Telegram CoPilot icon

Telegram CoPilot

袙邪褕 锌械褉褋芯薪邪谢褜薪褘泄 Telegram CoPilot

Actions56

小芯芯斜褖械薪懈械 → 袨褌锌褉邪胁懈褌褜 褋芯芯斜褖械薪懈械 褋 褎芯褌芯

AI-generated

Overview

This node operation sends a circular photo message to a specified Telegram chat. It allows users to provide a local file path for the photo, an optional caption, and additional parameters such as reply message ID, message thread ID, and self-destruct timer. This operation is useful for automating the sending of circular photo messages in Telegram chats, for example, sharing profile pictures or event photos in a visually distinct circular format.

Use Case Examples

  1. Sending a circular photo to a group chat with a caption and a self-destruct timer.
  2. Replying to a specific message in a chat with a circular photo.

Properties

Name Meaning
Chat ID The unique identifier of the Telegram chat where the circular photo message will be sent.
Message Photo Local file path to the circular photo to be sent.
袩芯写锌懈褋褜 泻 褎芯褌芯 Caption text for the circular photo message.
袙褉械屑褟 褋邪屑芯褍薪懈褔褌芯卸械薪懈褟 (胁 褋械泻褍薪写邪褏) Self-destruct timer in seconds for the message. If set, the message will be deleted after the specified time. 0 means no self-destruct.
Reply to threadID If not 0, specifies the message thread ID in which the circular photo message will be sent.
Reply to messageId Identifier of the message to which this circular photo message is a reply.

Output

JSON

  • operation - The operation performed, here it is 'sendMessageCirclePhoto'.
  • success - Boolean indicating if the message was sent successfully.
  • error - Error message if the operation failed.
  • result - The result object returned from the Telegram API after sending the message.
  • chat_id - The chat ID where the message was sent.
  • file_path - The local file path of the photo sent.

Dependencies

  • Telegram API credentials (apiId, apiHash, phoneNumber)

Troubleshooting

  • Ensure the Telegram API credentials are correct and the client is logged in before sending messages.
  • Check that the local file path to the photo exists and is accessible.
  • If the operation fails with permission errors, verify that the bot or user has permission to send messages in the target chat.
  • Self-destruct timer must be a non-negative number; invalid values may cause errors.

Links

  • TelePilot Login Guide - Instructions on how to log in and authenticate with the Telegram API using TelePilot.

Discussion