22.12.2023

Manuals

Transferring Lead Data from an Affiliate Network to Telegram


Transferring Lead Data from an Affiliate Network to Telegram

Refreshing your stats is probably the best part of affiliate marketing. But sometimes it becomes addictive, and you end up checking the numbers every 10 minutes. In reality, for a webmaster, only lead data truly matters — the rest of the stats can be analyzed after the traffic run is complete.

Today we're walking you through how to set up lead and deposit notifications in a Telegram bot. The setup takes 5–10 minutes, requires no third-party services, and costs nothing to maintain.

Step-by-step bot creation guide

Some affiliate networks let you configure lead notifications in just a few clicks — simply go to your dashboard and connect your Telegram account. That's a valid option, but it's more convenient to create your own bot and set up custom notifications.

To pass data on leads, deposits, and other target actions, you'll need Telegram Desktop and access to the postback settings in your CPA network's dashboard. Every affiliate network that supports integration with a custom tracker and cloaker has postback management functionality.

Step-by-step instructions:

1. Open BotFather in Telegram.

2. Create a new bot. Make sure to set a clear name and add a description if you'd like.

3. Copy the unique token and save it somewhere in a notepad.

Passing lead data

4. Open the bot interface via the link and send it a message.

Bot test

5. Open the following URL in your browser: https://api.telegram.org/bot<bot_token>/getUpdates, replacing <bot_token> with the token from step 3.

6. If you get a «Not found» error, send the bot a few more messages and try again.

7. Copy the bot's chat ID.

Sending messages

8. To verify that the API request setup is working correctly, use the template below and replace <text> with any text you like. Make sure to insert the token from step 3 and the ID from step 7.

https://api.telegram.org/bot/sendMessage?chat_id=&text=hello worlds go

9. If everything is set up correctly, you'll see a test message appear in the bot interface.

Test message

That's it for the basic Telegram setup. Optionally, you can set a custom avatar for the bot and add a description — useful if you plan to share access with team members.

Passing data via postbacks

The second and final step is configuring postbacks in your affiliate network's dashboard. The core configuration logic is the same across networks, but the request management interface may vary.

1. Open the postback settings section.

2. Create a new request.

https://api.telegram.org//sendMessage?chat_id=&text=

3. Select the required offers and GEOs. It's better to add a trigger by country rather than by offer to avoid creating a large number of postbacks.

4. In the request field, add a template with the required macros.

Deposit notification

If needed, you can configure multiple postbacks with different macros. This is especially handy in verticals like gambling or crypto, where users first register and then make a deposit.

A separate postback for deposits lets you track confirmed conversions. By the same logic, you can set up data transfer for any event based on the available macros.

Data transfer

Once configured, don't forget to save the postback and send a test lead through the landing page or via affiliate network support. If the bot receives a message, everything is set up correctly. You can also experiment with adding emojis and formatting to your templates to make notifications easier to read.

Formatting

Any webmaster with basic technical skills can set up notifications for leads, deposits, or any other events in an affiliate program. The advantage of the method described in this article is that the bot stays fully under your control and requires zero ongoing costs.