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/sendSend a text message to a chat
botIdchatIdtextparseMode
POST
/api/messages/send-photoSend a photo to a chat
botIdchatIdphotocaption
POST
/api/messages/send-documentSend a document/file to a chat
botIdchatIddocumentcaption
POST
/api/messages/broadcastSend a message to multiple chats
botIdchatIdstextdelay
GET
/api/messages/:chatIdGet 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"
}'