{"id":25524,"date":"2021-03-25T08:30:00","date_gmt":"2021-03-25T07:30:00","guid":{"rendered":"https:\/\/www.sms77.io\/?p=25524"},"modified":"2023-05-22T07:29:36","modified_gmt":"2023-05-22T05:29:36","slug":"tutorial-forward-sms-to-telegram","status":"publish","type":"post","link":"https:\/\/www.seven.io\/en\/blog\/tutorial-forward-sms-to-telegram\/","title":{"rendered":"Tutorial: Forward SMS to Telegram"},"content":{"rendered":"

From the everyday life of our customers: Use the Telegram chatbot to receive text messages<\/h2>\n

The beauty of working with an SMS gateway is that you can benefit from SMS as a strong medium, while the gateway’s capabilities give you a lot of flexibility. Especially the function to forward SMS is very popular with our customers to realize many creative application scenarios. For example, one of our customers had the following request: He wanted to forward SMS to Telegram.<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>

The idea – Forward SMS to Telegram<\/h3>\n<\/div><\/div>
<\/div><\/div><\/div><\/div>

Our customer receives SMS via a dedicated inbound number<\/a>. Both the text of the incoming SMS and the sender need to be forwarded to the chatbot. Here’s the thing: Making the settings to forward incoming SMS<\/a> is easy in our webapp, but the addition that both text and sender are forwarded requires additional parameters.<\/p>\n<\/div><\/div><\/div><\/div><\/div>

\n
\n\t<\/i>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>

The implementation<\/h3>\n

To put this idea into action, we need three components: The chatbot, a chat ID, and the actual redirection for incoming SMS. We create the chatbot in Telegram, after which we can determine the chat ID. We then set the forwarding in the seven webapp. If you already have a chatbot and know the chat ID, you can skip to The forwarding<\/a> section.
\nLet’s get started! You’ll be able to forward SMS to Telegram in no time.<\/p>\n<\/div><\/div>

<\/div><\/div><\/div><\/div>

The chatbot<\/h4>\n

First, let’s create a Telegrambot. For this you will need:<\/p>\n