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:
Sign up for a MessageBird account
Create a Telegram bot and install it as a channel in your MessageBird Dashboard
Step two: Set up the customer-to-business flow
Download the pre-made TGAM - C2B flow
Log in to your MessageBird Dashboard
Navigate to Flow Builder
Click on Import flow and import your TGAM - C2B flow
Go to the Webhook step and copy the Webhook URL (make a note of it)
Go to the step called Your TGAM 1 of 3 and select your Telegram channel from the menu
Save the step
Publish your flow
Step three: Set up the business-to-business flow
Download the pre-made TGAM - B2B flow
Navigate to Flow Builder
Click on Import flow and import your TGAM - B2B flow
Go to the Webhook step and copy the Webhook URL (make a note of it)
Go to the step called Your TGAM 1 of 3 and select your Telegram channel from the menu
Save the step
Publish your flow
Step four: Set up the engage flow
Download the pre-made TGAM - Engage flow
Navigate to Flow Builder
Click on Import flow and import your TGAM - Engage flow
Go to the Omni-channel step and select your Telegram channel from the menu
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
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
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
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
Publish your flow
Step five: Test your Telegram Account Masking bot
Add your Telegram bot username to the following deep link
Send the link to your conversation buddy (someone who can help you test the flow)
Your buddy must reply with the following, which will trigger the Telegram Account Masking bot
You will receive their message. Respond to start the masked conversation!
Last updated