Send Message
send_messageSend a text message to a MAX chat or user with optional markdown/HTML formatting and attachments like inline keyboard buttons or media.
Instructions
Send a text message to a MAX chat or user. Provide either chat_id (group chats/channels) or user_id (direct messages), not both. Supports markdown and HTML formatting. Use attachments to add inline keyboard buttons or media (use tokens from send_media).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | No | Group chat or channel ID (use get_chats to find) | |
| user_id | No | User ID for direct message | |
| text | Yes | Message text to send | |
| format | No | Text formatting: markdown (default) or html | |
| notify | No | Whether to notify participants (default: true) | |
| disable_link_preview | No | Disable link preview in message (default: false) | |
| attachments | No | Optional attachments: inline_keyboard buttons or media tokens |