CallMeBot can now send Text Messages! As expected, it is super easy to use the API and integrate it in all your scripts, automations, devices, IoT, etc. You don't need to create Telegram Bots or geting chatID just call to the API.

Simply, call to this API URL:

https://api.callmebot.com/text.php?user=[username]&text=[text]&html=[html_format]&links=[link_preview]

Where:
[username]: Is the Telegram recipient of the message (ei: @myusername). Important!: You need to authorize CallMeBot to contact you here. This is required to avoid Spam.  You can send the same message to multiple recipients with the same API call. Just separate the users with the "|" character. Please not that all users needs to go through the authorization process (each user to click here). If you want to send messages to Telegram Groups, plese use this API.
[text]: Message to send (urlencoded). You can use this online converter to encode the url. Check here how to include emoticons in the message 👍.
[html_format]:  yes/no -  Default: no - Optional parameter to send the message in html format or plain text. Put "yes" when you want to send "bold" text using test (url example: &html=yes)
[link_preview]: yes/no - Default: no - It will enable or dissable the webpage preview that is sent together with the text message when there is an URL on it.

Example:

#for one recipient:
https://api.callmebot.com/text.php?user=@myusername&text=This+is+a+test+from+CallMeBot
#for multiple recipients:
https://api.callmebot.com/text.php?user=@myusername1|@username2&text=This+is+a+test+from+CallMeBot

Problems?

If you have problems, like not receiving the Call on Telegram, or not receiving the WhatsApp messages,  try to test the CallMeBot API using your Web Browser:

  • Telegram Phone Calls using Web Browser: here
  • Telegram Text Messages using Web Browsers: here
  • WhatsApp Text Messages using Web Browser: here

You might get some errors on the screen that will help you to identify the problem. (Ex: Calls disabled in the Telegram Security Settings, WhatsApp not activated, etc.)

If you still have problems to use this API, don’t hesitate to contact me in Telegram @callmebot_com or by email at support@callmebot.com. Rember to Follow me on Twitter to get news about coming features, changes, invitations, etc.