Smartico Help Center
Admin loginSmartico.aiTheAffiliatePlatform.com
  • Welcome
  • Products
    • 🔆CRM Automation
      • ◾Create Journey Flow
      • ◾Event Driven Journey
      • ◾Automation Rules
      • ◾Campaigns vs Automation Rules
      • ◾Segmentation
        • ▪️User State Segments
        • ▪️Behavioral Segments
        • ▪️Imported Segments
      • ◾Activities of Flows
        • ▪️Activity: Email
        • ▪️Activity: SMS, Viber and WhatsApp
        • ▪️Activity: Telegram Bot
        • ▪️Activity: Custom IM
        • ▪️Activity: WebHook
        • ▪️Activity: Limit
        • ▪️Activity: Add Points
      • ◾Communication channels
        • ▪️Email
        • ▪️Liquid Email
        • ▪️SMS, Telegram, Viber, and WhatsApp
        • ▪️Popups
        • ▪️Inbox
        • ▪️Push notifications
        • ▪️Content Variations
        • ▪️Opt-out & Communication Statuses
        • ▪️Gamification activities in the communications
      • ◾A/B Testing
    • 🎮Gamification Blocks
      • Setup steps and checklist
      • Points
      • Gems & Diamonds
      • Levels
        • Level Map
        • Levels Tips & Hints
      • Missions
        • Mission Types & Statuses
        • How to set up a Mission
      • Tournaments
        • Tournament Setup
      • Badges
      • Store
      • Example setup
      • Gamification UI skinning
      • Terms to protect
    • 🧠AI Models
      • ◾AI Enhancer
      • ◾Best Time Model
      • ◾Churn & LTV prediction
      • ◾Favorite product
      • ◾RFM Analysis
      • ◾Sport Recommendations
    • 🎲Mini Games
      • ◾Introduction to Mini Games
      • ◾Game template setup
      • ◾Custom skins for Mini-games
      • ◾Mini-games on the landing pages
      • ◾Using images instead of prize names in Spin the Wheel
      • 🏴‍☠️Treasure Hunt
      • ⚽MatchX Game
        • Creating Rounds
        • Resolution of a Round
        • Leaderboard
        • Game Statuses
        • FAQ: MatchX game
        • Loading MatchX & Quiz games on website
      • ❓Quiz Game
      • 🪂Prize Drop
    • 🗺️Lootbox 2.0
    • 🎁Missions Lootbox
    • 🏆Jackpots
    • 🎟️Raffles
    • 💡General concepts
      • ◾Bonuses
      • ◾Dynamic Rewards
      • ◾Custom Sections
      • ◾Attribution value
      • ◾Label tags
      • ◾Multi-currency usage report
      • ◾Multi-brands support
      • ◾Override translations on Label/Brand Level
      • ◾User markers (tags)
      • ◾Deep-links
      • ◾User roles in Back Office
      • ◾Email Gateways Guide
      • ◾"Client action" event
      • ◾Custom fields/attributes
    • 💻UI Widgets
    • ❔FAQs
      • FAQ: Gamification
      • FAQ: Data Studio & Reports
      • FAQ: CRM Automation
      • FAQ: Front-end integration
      • FAQ: Other topics
      • FAQ: Bonuses
  • Use cases
    • 🔆CRM Automation
      • ◾Cross-sell. Match users on different brands
      • ◾Mini-games usage in marketing campaigns
      • ◾Optimize Communication by excluding disengaged players
      • ◾Automated Sports Campaigns
  • Technical guides
    • ◾Integration process
    • ◾Front-end integration
      • ▪️Extended integration
      • ▪️Push configurations
      • ▪️Acquisition mode
    • ◾Data integration
    • ◾Bonus API integration
    • ◾Secured Messaging Gateways (Email/SMS/IM)
    • ◾Reverse integration
    • ◾Smartico Data Warеhouse
      • ◾Smartico DWH \ Affiliation views
      • ◾Smartico DWH \ CRM views
      • ◾Smartico DWH \ Gamification views
    • ◾Games catalog API
    • ◾Custom push gateways
    • Branded Links
  • More
    • 📝Release notes
      • 🌷May 2025
      • 🌷April 2025
      • 🌷March 2025
      • ❄️February 2025
      • ❄️January 2025
      • ⛄December 2024
      • 🍁November 2024
      • 🍁October 2024
      • 🍁September 2024
      • 🌞August 2024
      • 🌞July 2024
      • 🌞June 2024
      • 🌷May 2024
      • 🌷April 2024
      • 🌷March 2024
      • ❄️February 2024
      • ❄️January 2024
      • ⛄December 2023
      • 🍁November 2023
      • 🍁October 2023
      • 🍁September 2023
      • 🌞August 2023
      • 🌞July 2023
      • 🌞June 2023
      • 🌷May 2023
      • 🌷April 2023
      • 🌷March 2023
      • ❄️February 2023
      • ❄️January 2023
      • ⛄December 2022
      • 🍁November 2022
      • 🍁October 2022
      • 🍁September 2022
      • 🌞June 2022
      • ❄️January 2022
      • 🍁October 2021
      • 🌞July 2021
      • 🌷April 2021
      • ❄️February 2021
    • ⚙️Support Scope
    • 👍Request Demo
Powered by GitBook

More

  • expo.smartico.ai
  • ice.smartico.ai
  • play.smartico.ai

@ 2025 Smartico.ai

On this page
  • Create a Telegram Bot
  • Configure the Bot in Smartico
  • Invite users to the Bot channel
  • The user flows to bot channel
  • Telegram Activity
  • Visibility in user profile
  • Segmentation
  • Telegram specific events
  • FAQ

Was this helpful?

  1. Products
  2. CRM Automation
  3. Activities of Flows

Activity: Telegram Bot

Last updated 27 days ago

Was this helpful?

This document provides a detailed guide on creating and configuring a Telegram Bot, enabling you to create Journey flows and utilize the chat functionalities described in effectively.

Note:

Telegram Bot is an additional service that requires activation, please contact your Success Manager on Smartico side to get more details.

In order to start using Telegram bot as communication channel you will need to complete following steps:

  1. Create a Telegram bot for your brand(s) using Telegram application.

  2. Setup configuration details of the bot on Smartico side.

  3. Invite users in the Telegram bot, so their profile in Telegram is connected with profile on Smartico side.

  4. Create telegram messages as resources in Smartico BackOffice.

  5. Start using Realtime and Scheduled campaigns to communicate with your users.

Create a Telegram Bot

  1. Open the Telegram application on your laptop or mobile device.

  2. Search for a bot called BotFather and start a chat with it.

  3. Send the command /newbot to create a new bot.

  4. Set a name for your bot (e.g., My Casino Bot).

  5. Choose a unique username for your bot, ensuring it ends with “bot” (e.g., MyCasinoBot). Important: Remember this username, as you will need it for the Smartico setup.

  6. Once the bot is created, BotFather will provide an API token. Important: Save this token, as it grants access to Telegram’s HTTP API.

Configure the Bot in Smartico

  1. Log in to Smartico Back Office and navigate to Label → Instant Messages.

  2. Create a new gateway and select Telegram as the type.

  3. Define an internal name for the gateway and select the appropriate brand representing your bot.

  4. Fill in the required parameters:

  • Name of the Bot: Use the username from Step 5 in the format @MyCasinoBot (include the “@” symbol).

  • Telegram Bot token: Enter the token received in Step 6.

  • Secret for User ID Hashing: Enter a random string to secure the process of linking the Telegram user profile with the casino user profile.

By following these steps, you will successfully create and integrate your Telegram bot with Smartico.

Invite users to the Bot channel

You can use deep link "dp:telegram" in any other context, for example in the popups or you can also execute it from the front-end code of the web-site.

<button onclick="_smartico.dp('dp:telegram')>
    Join our Telegram bot
</button

The user flows to bot channel

Flow 1: Initiated via Deep-Link dp:telegram

  1. The player clicks an element that contains the deep-link dp:telegram.

  2. Smartico generates a unique token and constructs a URL leading to the Telegram bot/channel, embedding the token.

  3. The player opens the link in the Telegram app and clicks the Join button to subscribe to the channel.

  4. Telegram reports the join action back to Smartico.

  5. Smartico links the player’s profile with their Telegram account using the token.

  6. The core_telegram_chat_id field on the player profile is updated with the user's Telegram chat ID.

  7. Smartico triggers the internal event core_telegram_auth, which can be leveraged to send a welcome message or trigger onboarding automation.

Flow 2: Initiated from Telegram Channel

  1. A user discovers the Telegram bot/channel and clicks the Join button.

  2. Telegram notifies Smartico that the user has joined.

  3. Smartico generates a unique token and creates a link to the brand’s website, using the Auth Link configured in the Telegram channel settings, the link is sent to the Telegram bot channel.

  4. The user opens the link in a browser and is redirected to the brand’s site.

  5. After successful authentication, Smartico receives the token data from the website.

  6. Smartico matches the Telegram user with the corresponding player profile.

  7. The core_telegram_chat_id field is populated on the player profile with the Telegram chat ID.

  8. Smartico triggers the core_telegram_auth internal event, enabling welcome messages or other follow-up flows.

Telegram Activity

The Telegram activity is used for sending a communication to the end users via Telegram and it is considered to be an offline communication since it doesn't require the user to be online. This type of communication can be sent only from Campaigns - Real-time and Scheduled.

Inside the flow builder the Telegram activity is located in the communication section.

The telegram activity has the following setup options:

  1. Provider - choosing the Telegram provider that will be used for sending the communication. You can also choose the Automatic Selection (multi-brand setup).

    1. Automatic Selection (multi-brand setup) - used to automatically select the first gateway that meets the conditions. By default, the first condition is Brand, but you can add more user properties. This gives you more flexibility when you want to filter a specific segment of users to use a different gateway, for example.

  2. Allowed Communication hours - used to define how the flow should behave if the time of the sending is in the ‘Do not Disturb’ period of the user.

  3. Telegram message - used to add the asset that will be sent to players, where you can define the message content. Before sending any communication via Telegram, the corresponding asset must be created. You can also add multiple message variations for A/B testing, allowing you to test different versions and optimize engagement. When adding a second variation, you can specify the percentage of the audience that will receive each version, ensuring controlled message distribution.

Visibility in user profile

From the profile page you can check if the user has subscribed to the Telegram chat bot and if so you see the chat ID.

Segmentation

You can create segmentation for all subscribed users by setting the Telegram chat ID to not equal 0 (this finds the users that have Telegram channel enabled).

Telegram specific events

There are 2 events that are specific for the telegram that you can use to start real-time campaigns, complete missions, execution automation rules to progress in the campaign flows.

  1. When user subscribes to Telegram bot, Smartico will trigger event "Core: telegram auth completed". You can use this event to send a welcome message to the personal channel with user.

  2. When user is blocking/unsubscribing from Telegram bot, Smartico will trigger "Core: telegram unsubscribed" event.

FAQ

Q: I have setup campaign to send messages but they are not delivered

A: Check following configurations

  • You are targeting users that are subscribed to telegram bot, you segment conditions should check for "Telegram chat id" <> 0

  • You have "Instant messages" enabled in the label settings

  • Your DnD period is set properly for "Instant messages"

Q: How I can do a new line in the Telegram message. Tried <br> and <p>, but they are not supported

A: Telegram has limitted set of support HTML tags, to ahieve a new line you can put an empty <pre></pre> pair of tags

Q: How delivery/impressions/clicks are tracked in reporting for telegram messages?

A: Telegram as a platform is not providing information if message was delivered or was seen by user, though on Smartico side we have only information like

  • Created - first fact, indicating that communication is created by activity in the campaign

  • Send - fact that communication was sent by Telegram bot (altough doesn't indicate if successefully sent)

  • Failed - failed to delivery message

  • Click - user clicked on the link to button in the message

Auth Link: Provide a link to your casino’s front-end. This is used to connect the Telegram user profile with the casino user profile. Example: .

Once your setup is completed the user can subscribe to the chat bot by authenticating trough a deep link that connect to Telegram "dp:telegram". For example you can set the deep link to a mission "Join our Telegram" to encourage the user to subscribe. Upon clicking the user will be redirected to Telegram app, automatically open a new chat window and the authentication process will finish.

🔆
◾
▪️
https://mycasino.com
the communications guide
Example of campaign that is started when user is joining telegram bot