Zum Inhalt springen
DeutschlandGPT

Telegram

Send messages and files via a Telegram bot, and trigger workflows on new messages

Connect a Telegram bot to send messages, photos, and files, and to start workflows when the bot receives new messages or commands.

Authentication: API Key. Provide your Telegram Bot Token from @BotFather.

Triggers

New Message

Fires when the bot receives any new message.

OutputTypeDescription
messageIdnumberMessage ID
textstringMessage text
chatIdnumberChat ID
userIdnumberSender's user ID
usernamestringSender's username
datenumberUnix timestamp

New Command Message

Fires when the bot receives a message starting with / (a bot command).

OutputTypeDescription
messageIdnumberMessage ID
commandstringThe command text (e.g. /start)
argsstringAny text following the command
chatIdnumberChat ID
userIdnumberSender's user ID

Actions

Send Message

Sends a text message to a chat.

InputRequiredDescription
Chat IDYesThe target chat, channel, or group ID
TextYesMessage text (supports Telegram markdown)
OutputTypeDescription
messageIdnumberID of the sent message

Send Photo

Sends a photo to a chat.

InputRequiredDescription
Chat IDYesTarget chat ID
PhotoYesImage file or URL
CaptionNoText caption

Send Document

Sends a file to a chat.

InputRequiredDescription
Chat IDYesTarget chat ID
DocumentYesFile to send
CaptionNoText caption

Edit Message

Edits a previously sent message.

InputRequiredDescription
Chat IDYesChat containing the message
Message IDYesID of the message to edit
TextYesNew message text

Forward Message

Forwards a message from one chat to another.

InputRequiredDescription
From Chat IDYesSource chat
Message IDYesMessage to forward
To Chat IDYesTarget chat

Get Chat

Retrieves information about a chat, channel, or group.

InputRequiredDescription
Chat IDYesChat to look up
OutputTypeDescription
chatobjectChat info with id, title, type, username
Was this page helpful?