Skip to main content

Setting Up Missed Call Notifications to Telegram

Yeva Petrenko avatar
Written by Yeva Petrenko
Updated this week

Now you have the ability to independently set up a bot that will send notifications about missed calls to your Telegram group.

This functionality is provided free of charge and is extremely convenient: after each missed call, a notification will automatically be sent to your management team's group.

This will allow managers to easily track all missed calls and process them promptly. In addition, they will be able to mark processed calls with a reaction or send messages so that other managers don't call the customer again🙂

Example of what missed call messages look like:

You can customize the content of notifications, adapting them to your business needs. You can add necessary parameters, choose your preferred language for the text, and much more.

To set up such a bot, you simply need to follow the instructions in order below.

Creating and Configuring a Group in Telegram

  1. To create a group in Telegram, open Telegram and create a new group.

  2. Name the group "{project domain} / Missed". And upload a logo for the group, you can use any. After that, click "Next".

  3. Now add at least one user (mandatory). And click "Create".

  4. In the newly created group, you need to immediately assign another administrator so that the group acquires "Supergroup" status.

    4.1. To do this, go to the "Manage group" section and find the group settings there.

    4.2. Select "Administrators".

    4.3. Assign your user as administrator and grant them all rights except "remain anonymous".

    4.4. After that, click "Save" and exit the group.

If you enable the "remain anonymous" parameter, all messages from this user in the group will be displayed on behalf of the group itself.

5. Now we need to find out the group ID and add the Ringostat bot, which will transmit calls. This is described in the next section - Setting Up Bots to Receive Group ID and Calls.


Setting Up Bots to Receive Group ID and Calls

We need to find out the group ID and add the Ringostat bot to track calls.

To find out the group ID, you need to add a bot to the group that can display the ID for you.

There are many such bots on the internet. We recommend using https://t.me/myidbot (@myidbot)

Adding a bot to determine the group ID.

1. Add this bot @myidbot to the group:

  • To do this, simply click on the group name and the "Group info" section will open.

    Or click on the three dots in the upper right corner, then open "View group info"

  • And click on the icon with a plus sign.

  • Insert our bot @myidbot and select the first one, as shown in the screenshot below:

2. The bot has been added. Now you need to find out the group ID, to do this simply enter the command /getgroupid

And we get the supergroup ID:

It is essential that you have a supergroup, not just a regular group. For this, there needs to be a group owner and admin, or simply two or more users with Administrator rights.

3. Copy the ID (just click on the value that this bot provided, the value must have a minus sign in front), save it and delete the bot, it is no longer needed.


Adding the Ringostat bot to transmit calls.

Now you need to add the Ringostat bot, which will transmit call messages to the Telegram group.

Add the bot in the same way as we did with the previous bot, only enter the name @rngst_calls_monitoring_bot

his bot cannot be deleted, otherwise notifications about missed calls will stop working!

The final step remains - to set up a webhook in your Ringostat personal account so that missed call notifications are integrated with Telegram. This is described in the next section - Setting Up Webhook Request for Telegram.


Setting Up Webhook Request for Telegram

The final stage in creating missed call notifications in Telegram is setting up the webhook request itself in the Ringostat interface.

Webhook requests are configured in the Settings → Integration → Webhooks 2.0 section

This article also describes how to create a webhook request. We recommend reviewing it if your project doesn't yet have webhooks with the After call event.

Setting Up Webhook Request for Telegram

If the After call event exists:

1. Copy any webhook with the After call event:

2.And edit the created After call event:

Set up a new action:

3.1. Name = Telegram missed calls alerts

3.2. HTTP Method = POST

3.3. URL (copy carefully) =

https://api.telegram.org/bot1883735049:AAEitlmpxJ0JE0N3LLG0lcPtvBWLCpXSags/sendMessage?chat_id=-XXXXXXXXX

Important! Make sure to double-check that you correctly copied the URL without spaces and specified the group ID with a minus sign in front.

Important! Make sure to double-check that you correctly copied the URL without spaces and specified the group ID with a minus sign in front.

3.4. Content type = application/json

3.5. Date format = Standard date

3.6. Data sending format = raw

3.7. Request body - depending on the language.

Below are templates in four languages. You need to choose the language that suits you and copy the template into the request body:

Template in Russian:

{
"text": "<b>Пропущен звонок!</b>\n\nДата звонка: $calldate\nНомер звонящего: $userfield\nКуда звонили: $dst\nВремя ожидания: $duration-billsec сек\nКарточка звонка: <a href='$call_card'>ссылка</a>\nСтатус звонка: $disposition\n",
"disable_web_page_preview": "true",
"parse_mode": "HTML"
}

Template in Ukrainian:

{
"text": "<b>Було пропущено дзвінок!</b>\n\nДата дзвінка: $calldate\nНомер клієнта: $userfield\nКуди дзвонили: $dst\nЧас очікування: $duration-billsec сек\nКартка дзвінка: <a href='$call_card'>посилання</a>\nСтатус дзвінка: $disposition\n",
"disable_web_page_preview": "true",
"parse_mode": "HTML"
}

Template in English:

{
"text": "<b>Missed call!</b>\n\nCall date: $calldate\nCaller: $userfield\nDestination: $dst\nWait time: $duration-billsec sec\nCall card: <a href='$call_card'>link</a>\nCall status: $disposition\n",
"disable_web_page_preview": "true",
"parse_mode": "HTML"
}

Template in Polish:

{
"text": "<b>Przegapił połączenie!</b>\n\nCzas połączenia: $calldate\nNumer dzwoniącego: $userfield\nNumer, na który wykonano połączenie: $dst\nCzas oczekiwania: $duration-billsec сек\nKarta połączenia: <a href='$call_card'>Link</a>\nStatus połączenia: $disposition\n",
"disable_web_page_preview": "true",
"parse_mode": "HTML"
}

If you need additional information, for example, the IVR extension number, then you should add to the text template in the appropriate place:

\nExtension number: $exten_number

Where:

\n - is a paragraph;

Extension number: - the parameter name, it can be translated to another language if needed;

$exten_number - the parameter itself, it can also be selected, you just need to type $ and choose the needed value from the dropdown list:

Example of a request with the English language template:

4. And the last step - setting up filters.

4.1. Go to Filters:

4.2.Select the preset Missed filter and apply:

4.3. The preset filter does not account for calls with errors, so we recommend adding two more statuses "With errors" and "Call forwarding scheme failed":

And save the webhook request.


The setup is complete. All that remains is to test it by making a missed call in the project :)


Did this answer your question?