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. Sign up for a MessageBird account

  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. Download the pre-made TGAM - C2B flow

  2. Log in to your MessageBird Dashboard

  3. Navigate to Flow Builder

  4. Click on Import flow and import your TGAM - C2B flow

  5. Go to the Webhook step and copy the Webhook URL (make a note of it)

  6. Go to the step called Your TGAM 1 of 3 and select your Telegram channel from the menu

  7. Save the step

  8. Publish your flow

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

  1. Download the pre-made TGAM - B2B flow

  2. Navigate to Flow Builder

  3. Click on Import flow and import your TGAM - B2B flow

  4. Go to the Webhook step and copy the Webhook URL (make a note of it)

  5. Go to the step called Your TGAM 1 of 3 and select your Telegram channel from the menu

  6. Save the step

  7. Publish your flow

Step four: Set up the engage flow

  1. Download the pre-made TGAM - Engage flow

  2. Navigate to Flow Builder

  3. Click on Import flow and import your TGAM - Engage flow

  4. Go to the Omni-channel step and select your Telegram channel from the menu

  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

  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. 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

  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. Publish your flow

Step five: Test your Telegram Account Masking bot

  1. Add your Telegram bot username to the following deep link

    https://t.me/<bot username>
  2. Send the link to your conversation buddy (someone who can help you test the flow)

  3. Your buddy must reply with the following, which will trigger the Telegram Account Masking bot

    #tgam
  4. You will receive their message. Respond to start the masked conversation!

Last updated