Flows - Telegram integration
How to connect your Telegram channel to Flows.
Step 1: Create a Telegram Bot and Get the API Key
- Open Telegram and search for @BotFather.
- Start a chat with BotFather and send the command:
/newbot
- Follow the prompts:
- Enter a name for your bot (e.g., "Flows Bot").
- Enter a username for your bot (must end in bot, e.g., "FlowsMessengerBot").
- Once created, BotFather will provide a bot token (API key) in this format:
123456789:ABCdefGhIjKlMnOpQrStUvWxYz123456789
- Install the Telegram app in your Flows instance and add this token as your connection Api Key. Save this token securely for any future use.
Step 2: Create a Telegram Channel
- Open Telegram and tap the menu (three lines in the top left corner).
- Select New Channel and enter:
- A channel name (e.g., "Flows Updates").
- A description (optional).
- Choose whether the channel is Public or Private:
- Public: Anyone can find and join.
- Private: Only invited users can join.
- Complete the setup and copy the channel link for reference.
Step 3: Add the Bot as an Admin to the Channel
- Open your bot in Telegram and tap on the bot logo at the top right.
- Select Add to Group or Channel.
- Search for your channel and select what the app can do.
- Click on "Add Bot as Admin".
Step 4: Find the Telegram Channel ID
- Using Telegram Web:
- Open Telegram Web.
- Go to your channel and check the URL:
https://web.telegram.org/k/#-1234567890
- Add -100 in front of the number (e.g., -1001234567890).
- Using a Bot:
- Search for @username_to_id_bot in Telegram.
- Forward a message from your channel to this bot.
- It will reply with the channel ID.
Once set up, you can use the Telegram app within Flows to automate Telegram message posting. π