Telegram: Send a Text Message
View all Telegram Messaging API endpoints →Send a Telegram text message from a connected session. Send a JSON body with the recipient as to and the message as text. to accepts @username or a bare username, +phone in full international format, or me for the account's own Saved Messages; a bare phone number is tried as a fallback. A bare numeric user ID is not supported unless the account already knows the peer. The session must have completed login.
API Features
Flexible addressing Send by @username, +phone, or me — no prior chat required
Saved Messages support Use me as the recipient for notes, debugging, or self-delivery
Simple payload Just to and text in a JSON body
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
POST
/api/project/telegram-messaging/send-message API Response (JSON)
{} curl -X POST 'https://api.opendata-api.com/api/project/telegram-messaging/send-message?key=<API_KEY>&sessionId=<sessionId>' \
-H 'Content-Type: application/json' \
-d '{"body":"{\"to\":\"@username\",\"text\":\"Hello!\"}"}'
curl -X POST 'https://api.opendata-api.com/api/project/telegram-messaging/send-message?key=<API_KEY>&sessionId=<sessionId>' \
-H 'Content-Type: application/json' \
-d '{"body":"{\"to\":\"@username\",\"text\":\"Hello!\"}"}' Query Result
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Use Cases
- Transactional notifications: order confirmations, shipping updates, OTP delivery
- Support bots: auto-replies, ticket updates, after-sales follow-up
- Marketing automation: trigger message pushes from n8n, Zapier, or Make (follow Telegram's rules)