How to set up postback via Telegram bot?

Hi everyone!
New #imifeatures guide is ready!
Today, we’ll show you how to set up a postback feature via Telegram Bot in a short time!
Explore the whole functionality of IMI platform with our useful guides!
Firstly, we need a Telegram application:
- Set up the app and register.
- Open the application on the computer.
How to create a bot?
- Find the user @botfather.
- Add it to your Telegram.
After pressing /start, you will be shown all the available commands.
• Create a new bot (/newbot)
Then @botFather will ask you to enter the name of the bot. (e.g., leads).
• Enter the name of the bot
After that, you will receive a message that the bot has been created. From this message, we need to get a token.
Getting started with Bot
First, we need to mark our id in Telegram so that it’s clear where to send the message.
Now you can create a group or channel and add the bot there as an administrator.
• Write anything to the group or channel
• Follow the link: https://api.telegram.org/bot<bot_token>/getUpdates
Instead of <bot_token>, you need to insert your bot’s token. For example, we’ve got this link (you will have your own):
https://api.telegram.org/bot541061529:AAEjAQZBH4y55kgujWNsJI1UdG2PlnZpNTU/getUpdates
There we need to find “chat”: and find the id. It’s our id, where to send leads.
• Find your id in the telegram.
For example, <id> of this chat is -221497536
• Let’s try to send a message
Follow the link: https://api.telegram.org/bot<bot_token>/sendMessage?chat_id=<id>&text=<text>,
Where:
<bot_token> – bot token
<id> – chat id (group / channel)
<text> – the text you’ve sent
If the message came, then you did everything right.
Postback setup
The postback might look like https://api.telegram.org/bot<bot_token>/sendMessage?chat_id=<id>&text=<country>,<payout>,<traffic_type>,<token_1>,<os>
Example: