Bot: send message
bot_send_messageSend a real text message from a Bale bot to a user, group, or channel, with optional inline buttons and reply threading. Confirm recipient and text before sending.
Instructions
Send a text message from the bot. Sends a real message. Confirm recipient and text with the user before calling.
Bale formats all text as Markdown (bold, italic). The user must have started the bot first (sent it /start) or the bot must be a member of the group/channel. To ask a question and get the answer, send it (with buttons if the choices are fixed), 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 a message of kind 'button' whose text is the label (cut to 64 bytes); bot_wait_for_reply returns it. | |
| chat_id | Yes | Chat id (number from bot_get_new_messages or bot_list_chats, e.g. 123456789) or a public channel/group username like '@mychannel'. | |
| reply_to_message_id | No | Reply to this message id in the same chat. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||