C
C
Connectivity Platform
Ask or search…
K
Comment on page

Set up Telegram account masking

This article will show you how to use three pre-made flows to set up Account Masking in Telegram.

Requirements

Step one: Set up MessageBird and your Telegram bot

Before you can set up the pre-made flows, you'll need to make sure you have a MessageBird account and a Telegram bot Follow these steps to get set up:
  1. 1.
    Sign up for a MessageBird account
  2. 2.
    Create a Telegram bot and install it as a channel in your MessageBird Dashboard

Step two: Set up the customer-to-business flow

  1. 1.
    Download the pre-made TGAM - C2B flow
  2. 2.
    Log in to your MessageBird Dashboard
  3. 3.
    Navigate to Flow Builder
  4. 4.
    Click on Import flow and import your TGAM - C2B flow
  5. 5.
    Go to the Webhook step and copy the Webhook URL (make a note of it)
    Screen_Shot_2020-04-02_at_10.06.33_pm.png
  6. 6.
    Go to the step called Your TGAM 1 of 3 and select your Telegram channel from the menu
    unnamed__1_.png
  7. 7.
    Save the step
  8. 8.
    Publish your flow

Step three: Set up the business-to-business flow

  1. 1.
    Download the pre-made TGAM - B2B flow
  2. 2.
    Navigate to Flow Builder
  3. 3.
    Click on Import flow and import your TGAM - B2B flow
  4. 4.
    Go to the Webhook step and copy the Webhook URL (make a note of it)
    Screen_Shot_2020-04-02_at_10.06.33_pm.png
  5. 5.
    Go to the step called Your TGAM 1 of 3 and select your Telegram channel from the menu
  6. 6.
    Save the step
  7. 7.
    Publish your flow

Step four: Set up the engage flow

  1. 1.
    Download the pre-made TGAM - Engage flow
  2. 2.
    Navigate to Flow Builder
  3. 3.
    Click on Import flow and import your TGAM - Engage flow
  4. 4.
    Go to the Omni-channel step and select your Telegram channel from the menu
    unnamed__2_.png
  5. 5.
    Go to the Webhook URL of TGAM - B2C step and replace the URL with the TGAM B2C URL you copied in step one. Save the step
    unnamed__3_.png
  6. 6.
    Go to the Webhook URL of TGAM - B2B step and replace the URL with the TGAM B2B URL you copied in step two. Save the step
  7. 7.
    Because the customer will start the conversation, the customer Telegram ID can be retrieved via our conversation API. Go to the Fetch customer telegram ID step and add your MessageBird access key in the Authorization header
    Screenshot_2020-08-24_at_09.30.07.png
  8. 8.
    Go to the Set variables step. This flow is set up to fetch the driver TelegramID, which it is assumed you have collected and stored at a previous stage, such as during the driver onboarding. For demonstration purposes, just add your TelegramID, which you can fetch using our conversation API. Save the step
  9. 9.
    Publish your flow

Step five: Test your Telegram Account Masking bot

  1. 1.
    Add your Telegram bot username to the following deep link
    https://t.me/<bot username>
  2. 2.
    Send the link to your conversation buddy (someone who can help you test the flow)
  3. 3.
    Your buddy must reply with the following, which will trigger the Telegram Account Masking bot
    #tgam
  4. 4.
    You will receive their message. Respond to start the masked conversation!