Amistio
Start building
All connectors

Telegram

Connect your account

Send Telegram messages as your bot, and start agents when your bot receives one. Create a bot with @BotFather, paste its token under Integrations, and Amistio registers the webhook for you when you activate.

Publisher: Amistio (built-in) - version 1.0.0 - Apache-2.0

Triggers (1)

Setup guide
  • Starts agents

    New message to your bot

    telegram.message.received

    Starts the agent whenever your bot receives a message - a direct message, or any message in a group the bot is in (with group privacy disabled in @BotFather, or when mentioned). Text, sender, chat, and any photo or document attachment are available to later blocks.

    Provides

    • {{trigger.message.text}} (string) - The message text (empty for pure media messages).
    • {{trigger.message.messageId}} (number) - Telegram's message id.
    • {{trigger.chat.id}} (string) - The chat/group id the message arrived in.
    • {{trigger.chat.type}} (string) - private, group, supergroup, or channel.
    • {{trigger.chat.title}} (string) - The group/channel title (empty for direct messages).
    • {{trigger.sender.id}} (string) - The sender's Telegram user id.
    • {{trigger.sender.username}} (string) - The sender's @username, when they have one.
    • {{trigger.sender.firstName}} (string) - The sender's first name.
    • {{trigger.photo}} (photo) - The attached photo (largest size), when the message has one.
    • {{trigger.document}} (document) - The attached document/file, when the message has one.

    Official Telegram documentation

Operations (1)

  • Send a Telegram message

    telegram.messages.send

    Send a text message as your bot. Provide the chat id (a user, group, or channel the bot can post to) and the text. To reply in the chat that triggered the run, use {{trigger.source.chatId}}.

    Inputs

    • chat_id * (string) - Target chat id. Groups look like -1001234567890; use {{trigger.source.chatId}} to reply in place.
    • text * (string) - The message text (up to 4096 characters).
    • reply_to_message_id (number) - Quote-reply to a specific message; use {{trigger.source.messageId}} for the triggering one.

    Returns

    • messageId (number) - The sent message's id.
    • chatId (string) - The chat the message landed in.

    Safety rules

    • Messages send as your bot; make sure the text is something you would post yourself.

Use Telegram from the agent builder - add the block, and reviewed operations run with your own connected account.

Open the builder