I have always admired the power of the collective mind. And recent history served to reinforce my conviction: I told how to integrate telephony with Telegram using the IFTTT service, to which colleagues from Voximplant answered how it can be done easier, and then Mr recompileme in his comment drew attention to the fact that convenient telegram API solves the problem without the participation of any third-party services.
With its downright directive permission, I will reveal the whole scheme step by step, because it is really fast, convenient and useful.
1. Create your own bot:
2. Activate it:
3. We get the chat id by clicking on the link.
https://api.telegram .
4. Configure the template for the URL https://api.telegram.org/bot358756969:AAGaymX9nvzCmkwcR4oJVvo438hY4sDq7BQ/sendMessage , where in the chat_id we specify the identifier received above, and in the text parameter we set the template for the message we want to receive:
And even the lines of code are not needed.
Source: https://habr.com/ru/post/326490/
All Articles