> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.marketcall.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Notification of incoming calls/lead to Telegram via PostBack

**Notification of incoming calls/lead to Telegram via PostBack**

In the Telegram search, we find and add a bot assistant **@Botfather.**

![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-1_cgzgg4.png)


















After that, write /start in the dialog box, in response you will receive a list of commands. Since we are faced with the task of creating a bot that will inform us about calls in the system, we select the /new bot command.

Next, you will be asked to give your bot a name. Let's call it **Mark (you need to create your own name)**.

Then Botfather will ask you to specify the username of our bot, which ends with "_bot", in our case it will be **"Dobbryunia_bot" (you need to create your own name)**.

Done! Our bot has been created. In response, you will receive a token that will be useful in the future.

![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-2_16irez4.png)












Add our bot, click Start and write any message.

![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-3_ydq6yr.png)





Then find out our ID. In the Telegram search, we find and add a bot assistant **@getmyid_bot**.


![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-4_1ks58r9.png)












 Then press Start and find your ID.

![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-5_1gp9ukl.png)



























If you did everything correctly, then you can test like this:

Click on the link **https://api.telegram.org/bot<bot_token>/sendMessage?chat_id=<our_id>&text=<text>**, replacing:

<bot token> to our bot token,

<our_id> - to the our saved ID,

<text> - to any text.

If you received a message from the bot, then you did everything right.

![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-6_d15zsv.png)
















_Setting up PostBack in Market Call_

In the Automation => Postbacks section, click "Add a Postback".

https://www.marketcall.com/affiliate/postbacks/create

 Set the type - call.

HTTP Method: Get

**Choose status**
**Choose campaign**
****
In the "Link" field, insert a link of this type:  **https://api.telegram.org/bot<bot_token>/sendMessage?chat_id=<our_id>**


Select the parameters you need. The parameters can be listed in the required order separated by commas. Example: text= Call ID {call_id}, date {date}, etc.

![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-7_18l9tc7.png)










After you have entered all the parameters, check the correctness of sending the postback.

![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-8calls_li92oi.png)






If the answer is 200, then the test was successful, the bot gave you all the information:

![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-9-calls_on8knb.png)










If you have any difficulties or you have found an error, please contact your personal manager.
