Telegram Bot Trigger
The Telegram Bot is a handy trigger within BuildShip that enables you to handle incoming messages in Telegram chat or Telegram group with a visual workflow builder.
This trigger allows you to easily manage Telegram groups, moderate and respond with meaningful messages and even include OpenAI in your workflow to generate meaningful responses to assist users in your group.

Pre-requisites ✅
- Telegram bot API key - The API keys of the Telegram bot that will be responding to the incoming messages. To setup a bot and get the API key, follow the instructions here.
- Telegram group Chat ID - This is the group on which your Telegram bot will operate and listen to messages and send responses to. To learn how setup a group and get chat id, go here.
Step to create a Telegram Bot workflow
Add the Telegram Bot Trigger
Add the telegram bot's API Key, that you can get from this step.
Also,
optionally you can add a Verification Code if you want incoming requests to be verified.

Add "Send Telegram message" Node
- Next to you workflow, add a node by searching in the node explorer for "Send Telegram message" node to reply to incoming messages.
- Add the "Chat ID" of the group that you want the bot to reply to.
- To this node also add the response "Text" that you want the bot to reply with. We have added here, a generic message of "Welcome to the group...".
- You can however, add nodes like OpenAI text generation to respond with AI, or even verify if the incoming message is from a Stripe paying user before responding
- There is full flexibiliy to add more nodes and handle what your bot is replying with.
Return success status and click Ship
Finally, add a "Return" node that will respond with a success status. And click the "Ship" button to deploy the workflow
Send a message to Test
Finally, you can send a message and test the response is as expected.

That's it 🎉
This is a starting point, you can tweak this anyway you like.
How to setup a Telegram bot and get API key
- Enter @BotFather in the search tab and select the verified bot with tick mark that shows up.
- Click Start to activate the BotFather bot. You will receive a list of commands to manage the bots.
- Choose or type the /newbot command and click Send.
- Choose a name for your bot. Your subscribers will see it in their conversations. Next, choose a username for your bot. The bot can be found by its username in the search bar. The username must be unique and end with the word “bot.”
- Once you've made your selection for your bot's name, your bot will be brought to life. Shortly thereafter, you'll receive a message containing a link leading to your bot, which can be accessed at "t.me/[bot_username] as well as your API key.
- Make note of this API key as this is what you will need to use in the Telegram Trigger node on BuildShip.
How to setup a Telegram group and get chat id
- Create a group on Telegram
- Invite the bot you created in the previous steps
- Also search and invite "RawDataBot" to your group.
- Once you invite this RawDataBot to your group, it will post a message with the Chat ID of this group. Make a note of
it for use in the Step 2 of your Telegram workflow.
Setup Telegram Bot for individual user
- Search for
@userdetailsbot
on telegram to get your personl UID. - Add the UID generated by Userinfo | Get id bot in teh chat ID of the Send Telegram Messaging Node.
- Search for your created Bot on Telegram and click start.
- Start chatting with your Bot.
Need help? Chat with us and our community of low-code/no-code builders and developers on Discord (opens in a new tab).