Skip to main content

Telegram Custom Command Trigger

Category: Trigger

Description: This trigger starts a bot flow when a user sends the defined command to the bot in a chat.

Default​

Inputs​

NameTypeRequiredDescription
CommandtexttrueThe command the bot will listen for, without the "/" slash prefix (e.g. "add")

Outputs​

NameTypeDescription
Command ArgumentstextThe arguments passed to the command, separated by spaces (e.g. if the user sends "/add 5 8" the arguments will be "5 8")
Telegram ContextjsonThe Telegram context object containing information about the command message
DatenumberThe date/time the command was sent
Message TexttextThe text of the command (e.g. "/add")
Message IDnumberThe ID of the command message
Chat IDnumberThe ID of the chat the command was sent to
Chat TitletextThe title of the chat the command was sent to
Chat TypetextThe type of the chat the command was sent to
Sender IDnumberThe ID of the user who sent the command

Output Event Triggers​

Name
Next