Messages API

Send and manage messages through your bots

The Messages API enables you to send various types of messages to Telegram chats, including text, photos, documents, and more. You can also broadcast messages to multiple chats simultaneously.

Supported Message Types

Text

Plain text with markdown support

Photo

Images with optional caption

Document

Files up to 50MB

Video

Video files with streaming

Voice

Audio messages

Endpoints

POST
/api/messages/send

Send a text message to a chat

botIdchatIdtextparseMode
POST
/api/messages/send-photo

Send a photo to a chat

botIdchatIdphotocaption
POST
/api/messages/send-document

Send a document/file to a chat

botIdchatIddocumentcaption
POST
/api/messages/broadcast

Send a message to multiple chats

botIdchatIdstextdelay
GET
/api/messages/:chatId

Get message history for a chat

chatIdlimitbefore

Example: Send a Message

curl -X POST https://api.botlaunch.io/api/messages/send \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "botId": "bot_abc123",
    "chatId": "-100123456789",
    "text": "Hello from BotLaunch!",
    "parseMode": "Markdown"
  }'

Next: Users API

Learn how to manage users and their permissions.

Users API