Notification of status change of campaign/offer to Telegram via PostBack
Notification of status change of campaign/offer 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_17ji17u.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_qsllke.png)
Add our bot, click Start and write any message.
![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-3_1m3dl9h.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_tvqh7e.png)
Then press Start and find your ID.
![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-5_13hv19g.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_rurozj.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 - campaign.
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= program id ID {program_id}, date {date}, offer title {offer_title}, etc.
![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-7campaign_1wt8y5l.png)
After you have entered all the parameters, check the correctness of sending the postback.
![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-8campaign_1fsm1at.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-9campaign_bk8wxz.png)
If you have any difficulties or you have found an error, please contact your personal manager.
In the Telegram search, we find and add a bot assistant @Botfather.
![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-1_17ji17u.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_qsllke.png)
Add our bot, click Start and write any message.
![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-3_1m3dl9h.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_tvqh7e.png)
Then press Start and find your ID.
![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-5_13hv19g.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_rurozj.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 - campaign.
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= program id ID {program_id}, date {date}, offer title {offer_title}, etc.
![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-7campaign_1wt8y5l.png)
After you have entered all the parameters, check the correctness of sending the postback.
![](https://storage.crisp.chat/users/helpdesk/website/cc18bc9ffe16e000/crisp-8campaign_1fsm1at.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-9campaign_bk8wxz.png)
If you have any difficulties or you have found an error, please contact your personal manager.
Updated on: 15/12/2021
Thank you!