Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v74
  • v74
  • v73
  • v72
Login
  • User documentation
  • FAQ
  • Altcraft glossary
  • Profiles and databases
  • Communication channels
    • Email channel
    • Push channel
    • SMS channel
    • Creating mailing from scratch
      • Email
      • SMS
      • Web Push
      • Mobile Push
      • WhatsApp
      • Viber*™
      • Руководство: SMS-рассылка через VK Notify
      • Notify
      • Telegram Bot
      • Telegram Group
    • Communication Channels Workflow
    • Руководство: SMS-рассылка через УТШ
    • Руководство: push-рассылка через сервис от "Согласие"
  • Segmentation
  • Message templates
  • Mailings
  • Campaigns
  • Automation scenarios
  • Market
  • Loyalty programs
  • Reports and analytics
  • Integrations
  • Weblayers
  • Settings
  • API requests: where to start
  • Changelog
  • library
  • Communication channels
  • Creating mailing from scratch
  • Telegram Bot
Documentation for version v74

Telegram Bot: a Guide for the First Mailing

A bot is a direct channel that allows you to personally send messages to subscribers who have entered into a chat with the bot. Read this guide to set your first mailing using the Telegram bot.

Step 1. Create a bot and get a token​

1. Log in to Telegram, enter @BotFather in the search box and select the desired bot.

2. Start a dialogue with the bot by clicking the START button in the chat. Then send the /newbot command to it. Enter the name and then the username for your new bot. Please note that the username must end with "bot" or "Bot". Copy the received bot token:

Step 2. Subscribe your customers to this Telegram Bot​

Go to the "Data" → "Profile database" and create a new database. The data of users subscribed to the bot will be stored here, as well as their Telegram IDs.

Then in the "Resources" section create a new resource or select a pre-existing one. Use Telegram Bot as a channel:

Add the necessary databases in the basic settings. Specify the default tracking domain that will process subscribers' clicks on the links in your Telegram Bot messages.

Add the bot token copied from Telegram and save the resource:

Now you need to import user data into the database by subscribing them to the resource.

info

Please note that the platform only sends Telegram mailings. Subscriber data is collected and transmitted to the platform on the client side. Read more about how to do this in the Telegram documentation.

Example of getting a user's chat_id using the getUpdates method

Method: POST

URL:

https://api.telegram.org/bot<bot_token>/getUpdates

Response:

{
"ok": true,
"result": [
{
"update_id": 262756455,
"message": {
"message_id": 47,
"from": {
"id": <chat_id>,
"is_bot": false,
"first_name": "John",
"last_name": "Doe",
"username": "john_doe",
"language_code": "en"
},
"chat": {
"id": <chat_id>,
"first_name": "John",
"last_name": "Doe",
"username": "john_doe",
"type": "private"
},
"date": 1652284613,
"text": "Hello, world"
}
}
]
}

<chat_id> is a unique identifier for a chat with a specific user. You need to pass it to the platform.

Step 3. Create a template​

Go to the "Templates" section. When creating a new template, select the Telegram Bot channel and add this channel to a pre-existing template. Select the content type in the Telegram version of the template:

You can add data of a particular customer, as well as dynamic text content from external sources.

Step 4. Configure and launch a mailing​

Open the section "Mailings" and select the distribution method: broadcast, regular or trigger mailing.

Create a new mailing. After filling in the basic settings, you need to:

  1. Choose Telegram Bot as a communication channel

  2. Select a previously configured subscription resource and target audience

  3. Add a message template to your mailing

  4. Set a schedule

When the mailing is fully configured, save it. It will be displayed in the list of mailings of the corresponding type. There is a quick action menu on the right side of each entry. By its means, you can send test message and, if everything is good, activate your actual mailing :

Step 5. Evaluate your mailing effectiveness​

Mailing Log​

The Mailing Log is a tool that provides a summary of the progress of your email mailing. It logs key events, mailing parameters, and statistics, helping you identify potential issues.

To open the mailing journal, click the "Journal" button in the quick actions menu:


The mailing Log contains the following information:

TypeDescription
Mailing startedStart time of mailing execution
LimitIndicates whether a sending limit is set
Audience sourceSource of contacts:
List — Database
Segment — Segment
Database ID/Segment IDIdentifier of the database/segment
Spent getting segment cursorTime spent loading data from source (ms)
Number of subscribers received from sourceTotal number of profiles in the specified source
Number of subscribers foundNumber of users in source with active subscription to selected resource
Number of subscribers without subscriptions to channelUsers without valid channel subscriptions
Number of subscribers with incorrect subscription fieldsUsers with invalid subscription data fields
Number of duplicate messages for channelCount of duplicate contacts detected
Number of messages sent to channelFinal count of successfully delivered messages
Mailing finishedMailing completion timestamp
Total time spentTotal execution duration from start to finish (sec)

Reports and Analytics​

To evaluate the effectiveness of your push campaign use the "Analytics" section in the main menu of the platform. A channel report provides the analysis of one or more mailings.

To make grouping easier, you can select a preset of indicators for Telegram Bot. You will see the data on the number of sent, delivered or undelivered messages in the table, as well as information on unique clicks and openings.

Last updated on May 15, 2024
Previous
Notify
Next
Telegram Group
  • Step 1. Create a bot and get a token
  • Step 2. Subscribe your customers to this Telegram Bot
  • Step 3. Create a template
  • Step 4. Configure and launch a mailing
  • Step 5. Evaluate your mailing effectiveness
    • Mailing Log
    • Reports and Analytics
© 2015 - 2025 Altcraft, LLC. All rights reserved.