Actions43
- Chat Actions
- Add Chat Members
- Close Chat
- Close Chat (Lite)
- Create SuperGroup or Channel
- Delete Chat
- Get Chat
- Get Chat History
- Get Chats
- Join Chat
- Mark Chat as Unread
- Open Chat
- Open Chat (Lite)
- Search Public Chat (by Username, Lite)
- Search Public Chat (by Username)
- Search Public Chats (Search in Username, Title)
- Send Chat Action
- Contact Actions
- Custom Request Actions
- File Actions
- Group Actions
- Login Actions
- Message Actions
- User Actions
Media
AI-generatedSummary
Sends a text message to a specified chat (default operation for the Media resource).
Inputs
- chat_id (required) — Identifier of the target chat.
- messageText (required) — Text content of the message.
- reply_to_msg_id — Optional ID of a message to reply to.
- message_thread_id — Optional thread identifier for supergroup messages.
Output shape
object representing the response from the Telegram API (typically containing the sent message details).
Fields vary based on the underlying Telegram update; may include IDs, status, or error information.
Examples
Example 1: Send a plain text message
Set resource to Media, operation to sendMessage, provide chat_id and messageText.
Example 2: Send a message in a thread
Set resource to Media, operation to sendMessage, fill chat_id and message_thread_id along with messageText.
Example 3: Send a photo with caption
Set resource to Media, operation to sendMessagePhoto, provide localFilePath and photoCaption, chat_id.