Missed Call Telegram Notifications
This article describes two ways to implement Telegram notifications for missed calls.
Last updated
Was this helpful?
This article describes two ways to implement Telegram notifications for missed calls.
Last updated
Was this helpful?
Helpful article on working with a Telegram bot using curl.
Go to the "System File Customization" section:
Open the "extensions.conf" file for editing. Set the mode to "Append to the end of the file" and insert the following context:
In this context, replace:
TOKEN with your Telegram bot’s token.
CHAT_ID with the chat ID where messages should be sent.
Save your changes.
Go to "modules.conf" for editing. Set the mode to "Append to the end of the file" and insert the following line:
Save your changes.
With curl, you can send requests to any website. For example, you could send notifications to Slack:
Go to "Dialplan Applications" and create a new application by clicking "Add a new":
Provide the following parameters for the dialplan:
Name – any name
Number to Call the Application – any number
Code Type – "PHP-AGI script"
Go to the "Program Code" tab and insert the following PHP-AGI script:
In this context, replace:
API_KEY with your Telegram bot token.
CHAT_ID with the chat ID where you want to send the message.
You can modify the notification text in the $TEXT variable.
After saving the script, copy its identifier from the browser’s address bar, which looks like "DIALPLAN-APP-1B2B846E":
Go to "System file customization":
Open "extensions.conf" for editing. Set the mode to "Append to the end of the file" and insert the following context:
Replace "DIALPLAN-APP-1B2B846E" with your dialplan application ID.
Save your changes.