Automate tasks with Telegram Bot

Bots are special Telegram accounts designed to handle messages automatically. Users can interact with bots by sending them command messages in private or group chats.
https://core.telegram.org/bots


Triggers

The trigger is the event that starts the automation.

Actions

The action is what happens automatically, without you having to do anything else.

  • telegrambot

    Edit a message

    Edit the text, image, video or file of a specific post.

  • telegrambot

    Wait for user response

    Task is paused and will resume once a response is received from the user.

  • telegrambot

    Send a video

    Send a video along with a description to a specific chat, group or channel.

    • Supported video format: MP4.
    • Maximum size 50 MB (Maximum established by Telegram in its API).

  • telegrambot

    Send a new document

    Send a document along with a description to a specific chat, group or channel.

    • Supported document formats: GIF, PDF and ZIP.
    • Maximum size 20 MB.

  • telegrambot

    Restrict chat member

    Restricts the operations that a user can perform on a supergroup.

    • The bot must be an administrator in the supergroup.

  • telegrambot

    Send a poll

    Send a poll to the users of a chat.

  • telegrambot

    Send a new message

    Send a message, an image/video/document or both to a specific chat, group or channel.

    • The following tags are currently supported in the messages: b, strong , i, em, u, ins, s, strike, del, a, code, pre.
    • You can include URL Buttons and Callback Buttons in posts.

  • telegrambot

    Ask user

    Send a message (usually a question) that may include an image/video/file to a chat and wait for the user's response before continuing.

    • The following tags are currently supported in the messages: b, strong , i, em, u, ins, s, strike, del, a, code, pre.
    • You can include URL Buttons and Callback Buttons in posts.

  • telegrambot

    Forward message

    Forward a message from one group or channel to another.

    • Service messages can't be forwarded.
    • Forwarding messages from groups or channels requires that your bot is included in them and with administrator permissions (also to forward from other channels and public groups).

  • telegrambot

    Copy a message between chats

    Copy a message from one chat, group, or channel to another.

    • Service messages cannot be copied.
    • Copying messages requires your bot to be included in them and with administrator permissions (even to copy messages from other groups and public channels).

  • telegrambot

    Delete a message

    Delete a message from a specific chat including service messages, with the following limitations:

    • A message can only be deleted if it was sent less than 48 hours ago.
    • A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.
    • Bots can delete outgoing messages in private chats, groups, and supergroups.
    • Bots can delete incoming messages in private chats.
    • Bots granted can_post_messages permissions can delete outgoing messages in channels.
    • If the bot is an administrator of a group, it can delete any message there.
    • If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there.

  • telegrambot

    Get the URL of a file

    Given a Telegram File Id, it returns the download URL.

    • Telegram file download URLs are valid for one hour.

  • telegrambot

    Send a reply to the user

    Respond to the message received from a user.

    • The reply to messages is valid for both private chats, groups and channels.
    • Reply can contain an image, video or file.
    • The following tags are currently supported in the messages: b, strong , i, em, u, ins, s, strike, del, a, code, pre.

Featured articles

Telegram task automation with Botize

What is the response window or duration of conversations?

The duration of the conversation window refers to the time a user has to respond to a message sent by a chatbot. This period is 24 hours, which means that if the bot does not receive a response from the user within this timeframe, the conversation is considered finished.

Common Errors


Telegram requires you to indicate a Chat Id before executing this task

  1. Enter the 'Reply to user' step.
  2. Complete the 'Chat Id to reply' field by providing a valid chat Id or label.

Invalid Chat Id

The chat ID you specified in the automated task is not valid or does not correspond to an existing chat in Telegram with that code.

Edit your automated task and ensure that the chat ID is correct and corresponds to an existing chat in Telegram.

Bad Request: group chat was upgraded to a supergroup chat

This occurs when a Telegram group is converted into a supergroup, which changes its ID. To fix this, you need to edit your automated task and reconnect it to your group.