How to Set Up SMS Forwarding to Telegram
Get Your SMS Number Now
and
Begin Forwarding Messages to Telegram Instantly!
Step 1. Create a new bot to receive SMS messages in Telegram. To do this:
- Open BotFather (t.me/botfather) in Telegram;
- Send the command /newbot;
- Set a name for your bot;
- Save the API token received from the bot for further setup.
Example:
Use this token to access the HTTP API:
60655699310:AAFz6ptUnB71ILePbXKwB71ILePbXUeU4
Step 2. Create a new group in Telegram to receive SMS messages and add your bot to it. Then find out the group’s ID:
- Open the web version at https://web.telegram.org and log in with your account;
- Go to the group you created;
- Find the group ID in the browser’s address bar, which is indicated at the end of the URL, starting with the character “-“.
Example of the address line:
where:
βhttps://web.telegram.org/k/#-4000000000β β URL address
β-4000000000β β group ID
Step 3. Set up SMS forwarding to HTTP via a webhook in your personal account:
- In the phone number settings, enter the following HTTP webhook format to send messages to your Telegram group: https://api.telegram.org/botAPItoken/sendMessage?chat_id=groupID&text=Incoming%20SMS%20to%20%TO%%20from%20%FROM%%20%MESSAGE%
- Save the SMS forwarding settings.
Now you will automatically receive incoming SMS messages in your Telegram group in the format: Incoming SMS to +XXXXX from XXXXX SMS Text
You can change the message format from the bot using variables:
- TO: the SMS recipient’s number;
- FROM: the SMS sender’s number;
- MESSAGE: the message text.
Get Your SMS Number Now
and
Begin Forwarding Messages to Telegram Instantly!