Part 1: Telegram Setup
Before configuring the bot, you must set up the channel permissions.Create a Channel
- Open Telegram.
- Click the Edit (pencil) icon -> New Channel.
- Name your channel and create it.
Add Bot as Administrator
- Open your new channel info settings.
- Go to Administrators.
- Click Add Admin.
- Search for your bot (by its username) and select it.
- Grant Permission: Ensure “Post Messages” is enabled.
Get Channel ID
You need the unique numeric ID of your channel.
- Open Telegram Web (web.telegram.org) in your browser.
- Click on your channel.
- Look at the URL in your browser address bar.
- It will look like
.../#-123456789. - Copy the ID, including the
-(hyphen) and the100prefix if present (e.g.,-100123456789).
Part 2: Chatbot Builder AI Configuration
Now, use the External API Request action to instruct the bot to post to that channel ID.Configure Endpoint
- Method:
POSTorGET - URL:
Replace
<YOUR_BOT_TOKEN> with the token you received from @BotFather when you created the bot.Set JSON Body
Click on Body and enter the following JSON structure:
- chat_id: The ID you retrieved in Part 1.
- text: The content of the post. You can use Custom Fields like
{{variable_name}}here.
Triggering the Post
You can now trigger this flow using any standard method:- Keywords: User types “announcement” -> Bot asks for text -> Bot posts to channel.
- Triggers: Automatically post when a specific event happens (e.g., “New Order Received”).
- Broadcast: Send this flow to yourself to manually trigger a channel post.
