Bot: send message
bot_send_messageSend a real text message from your bot to a chat or channel. Supply chat_id and text, optionally with inline buttons, to message users who started the bot.
Instructions
Send a real text message from the bot. Confirm recipient and text with the user first.
Text is Markdown (bold, italic). The user must have sent the bot /start first (or the bot is in the group/channel). To ask a question, send it (buttons for fixed choices), then call bot_wait_for_reply with the returned message_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Message text. | |
| buttons | No | Inline buttons as rows of labels, e.g. [['Yes', 'No']]. A press arrives as kind 'button' (text = label, cut to 64 bytes). | |
| chat_id | Yes | Chat id (number, e.g. 123456789) or public '@channel' username. See bot_list_chats. | |
| reply_to_message_id | No | Reply to this message id in the same chat. |