Skip to content

Telegram Message

  • Action
  • Web
  • Advanced mode

Sends a message (and a picture, if you choose one) to a Telegram chat from your bot. Make a bot with @BotFather to get its token, start a chat with it (or add it to a group), and use that chat's ID. Continues on Success or Failed.

In the editor, press Space on the canvas to add a step, then open Actions > Web, or type its name. In Simple mode it's under Show all, and search finds it.

Settings

Bot token

Text Required

From @BotFather, e.g. 123456:ABC-DEF... Stored as a password: anyone who has it can use your bot.

Starts as: empty Takes ${variables} and expressions Can come from another step's output Starts as a password

Chat ID

Text Required

The chat's number (a group's starts with -), or @channelname for a channel the bot posts in.

Starts as: empty Takes ${variables} and expressions Can come from another step's output

Message

Text

Up to 4096 characters (1024 with a picture). ${variables} are filled in.

Starts as: Message text Takes ${variables} and expressions Can come from another step's output

Format

A choice
  • Plain text
  • Markdown: *bold*, _italic_, `code` and [links](https://example.com).
  • HTML: <b>, <i>, <code> and <a href> tags.

Starts as: Plain text Can come from another step's output

Send silently

On or off

Arrives without a sound.

Starts as: Off Can come from another step's output

Picture

A file path

Optional: a PNG or JPEG sent with the message as its caption.

Starts as: empty Takes ${variables} and expressions Can come from another step's output

Time limit (ms)

A duration More options

0 waits as long as it takes.

Starts as: 30000 Can come from another step's output

Where it continues

  • Success: Continues here when the answer has a 2xx status.
  • Failed: Continues here when it fails; the reason is in the run log.

Outputs

Values the step gives to the steps after it. In the Graph view, drag a wire from an output to another step's field.

Telegram Message outputs
OutputGivesWhat it is
StatusCodeThe HTTP status Telegram answered (200 when it worked); 0 when there was no answer.
ErrorTextWhy it failed; empty on success.

Good to know

  • Fields marked as passwords keep their value in the Windows password vault, never in the macro.

More in Web