Skip to content
Telegram Bot

How to use Telegram Bot

CommunicationCost: 1 credit per runTop 100 · #71Full guide

What it is for

Telegram Bot in flooows lets you build bots that send messages, files, polls or locations, manage chats and groups, and respond to what users type. It is used for personal or team alerts, customer support, AI-powered bots or quick approvals from your phone.

The New Update trigger is instant: Telegram sends every message or event to the flow's webhook and flooows processes it right away. Use Update Types to choose which events you want (messages, button presses, etc.).

Set up the connection

Authentication type: API key or token

  1. 1Open Telegram and message @BotFather.
  2. 2Send the /newbot command and choose a display name and a username (it must end in "bot").
  3. 3BotFather replies with the bot token; copy it.
  4. 4In flooows, add a Telegram Bot step, click "Connect" and paste the token.
  5. 5Save the connection.

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Send Text Message: set the Chat ID (map it from New Update to reply in the same chat) and the Message; pick Format if you use Markdown or HTML.
  • Send Media, Send Document and Send Audio send files from earlier steps or by ID; add a Caption for text.
  • Send Poll needs Question and Options; Send Location needs Latitude and Longitude.
  • Request Approval Message sends approve and reject buttons and pauses the flow until someone answers.
  • Edit Message Text, Delete Message and Pin Message use the Message ID returned when sending.

Tips

  • •A user must message the bot first before it can send them private messages.
  • •In groups, add the bot and disable privacy mode in BotFather if it needs to read every message.
  • •Use Send Chat Action ("typing...") before slow AI replies.

Triggers (1)

Events that can start a flow. Expand each one to see its fields.

New UpdateWebhook (paste the URL in the app)1 fields
FieldTypeRequired
Update TypesMulti-selectNo

Actions (20)

Operations available as flow steps. Expand each one to see its fields.

Send Text Message9 fields
FieldTypeRequired
Chat IDTextYes
FormatFixed listNo
MessageLong textYes
Topic IDTextNo
Disable Link PreviewYes / NoNo
Disable NotificationYes / NoNo
Protect ContentYes / NoNo
Reply To Message IDNumberNo
ButtonsJSONNo
Send Media9 fields
FieldTypeRequired
Chat IDTextYes
Media TypeFixed listYes
FileDynamic fieldsNo
FormatFixed listNo
CaptionLong textNo
Topic IDTextNo
Disable NotificationYes / NoNo
Protect ContentYes / NoNo
ButtonsJSONNo
Send Document10 fields
FieldTypeRequired
Chat IDTextYes
DocumentFileNo
Document IDTextNo
FormatFixed listNo
CaptionLong textNo
Topic IDTextNo
Disable NotificationYes / NoNo
Protect ContentYes / NoNo
Reply To Message IDNumberNo
ButtonsJSONNo
Send Audio13 fields
FieldTypeRequired
Chat IDTextYes
AudioFileNo
Audio IDTextNo
FormatFixed listNo
CaptionLong textNo
TitleTextNo
PerformerTextNo
DurationNumberNo
Topic IDTextNo
Disable NotificationYes / NoNo
Protect ContentYes / NoNo
Reply To Message IDNumberNo
ButtonsJSONNo
Send Location12 fields
FieldTypeRequired
Chat IDTextYes
LatitudeNumberYes
LongitudeNumberYes
Horizontal AccuracyNumberNo
Live PeriodNumberNo
HeadingNumberNo
Proximity Alert RadiusNumberNo
Topic IDTextNo
Disable NotificationYes / NoNo
Protect ContentYes / NoNo
Reply To Message IDNumberNo
ButtonsJSONNo
Send Media Group7 fields
FieldTypeRequired
Chat IDTextYes
MediaList of valuesYes
Caption FormatFixed listNo
Topic IDTextNo
Disable NotificationYes / NoNo
Protect ContentYes / NoNo
Reply To Message IDNumberNo
Send Poll17 fields
FieldTypeRequired
Chat IDTextYes
QuestionTextYes
OptionsList of valuesYes
Poll TypeFixed listNo
AnonymousYes / NoNo
Allow Multiple AnswersYes / NoNo
Correct OptionNumberNo
ExplanationLong textNo
Explanation FormatFixed listNo
Open PeriodNumberNo
Close DateDate and timeNo
ClosedYes / NoNo
Topic IDTextNo
Disable NotificationYes / NoNo
Protect ContentYes / NoNo
Reply To Message IDNumberNo
ButtonsJSONNo
Send Chat Action3 fields
FieldTypeRequired
Chat IDTextYes
ActionFixed listYes
Topic IDTextNo
Edit Message Text7 fields
FieldTypeRequired
Chat IDTextNo
Message IDNumberNo
Inline Message IDTextNo
FormatFixed listNo
New TextLong textYes
Disable Link PreviewYes / NoNo
ButtonsJSONNo
Delete Message2 fields
FieldTypeRequired
Chat IDTextYes
Message IDNumberYes
Forward Message6 fields
FieldTypeRequired
From Chat IDTextYes
Message IDNumberYes
Chat IDTextYes
Topic IDTextNo
Disable NotificationYes / NoNo
Protect ContentYes / NoNo
Pin Message3 fields
FieldTypeRequired
Chat IDTextYes
Message IDNumberYes
Disable NotificationYes / NoNo
Unpin Message2 fields
FieldTypeRequired
Chat IDTextYes
Message IDNumberNo
Get Chat1 fields
FieldTypeRequired
Chat IDTextYes
Get Chat Member2 fields
FieldTypeRequired
Chat IDTextYes
User IDTextYes
Get File2 fields
FieldTypeRequired
File IDTextYes
Download FileYes / NoNo
Create Invite Link5 fields
FieldTypeRequired
Chat IDTextYes
Link NameTextNo
Expiry DateDate and timeNo
Member LimitNumberNo
Require Admin ApprovalYes / NoNo
Answer Callback Query5 fields
FieldTypeRequired
Callback Query IDTextYes
TextLong textNo
Show AlertYes / NoNo
URLTextNo
Cache TimeNumberNo
Request Approval Message3 fields
FieldTypeRequired
Chat IDTextYes
MessageLong textYes
FormatFixed listNo
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

Chat not found

Check the Chat ID and that the user has started a conversation with the bot.

Unauthorized

The token is wrong or was regenerated: update the connection.

Can't parse entities

Escape special characters or switch Format to plain text.

Too Many Requests

Add a delay between bulk sends.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps