Action
Perform operations through your connected Telegram account
The Action block executes concrete Telegram operations on behalf of your linked account. It is the main tool for automating chats and groups.
Message actions
Send messages
Send text, audio, or media to one or many chats
Parameters:
Recipient chat ID(s)One id or @username, a list, or {{ [id1, id2] }} for several chatsMessage textBody of the message to sendMediaPath to media—a URL or a variable from the Trigger block, for example.Media spoilerHide media behind a spoilerMark all messages read
Mark every message in a chat as read
Parameters:
Chat IDChat whose messages should be marked readForward messages
Forward one or many messages from one chat to another
Parameters:
Destination chat IDChat that should receive the forwarded messagesSource chat IDChat that originally contained the messagesMessage IDsJSON array of message IDs to forwardHide senderDo not show the original author on the forwardStrip captionsRemove media captionsWith my reaction (coming soon)In developmentNote: Provide message IDs as a JSON array: ["123", "124", "125"]
Edit message
Change the text of a message you already sent
Parameters:
Chat IDChat that contains the messageMessage IDID of the message to editNew textReplacement textDelete messages
Remove one or more messages from a chat
Parameters:
Chat IDChat where messages should be deletedMessage IDsJSON array of message IDs to deleteRevoke for everyoneDelete the messages for all participantsNote: Provide message IDs as a JSON array: ["123", "124", "125"]
Get message IDs
List message IDs from a chat and optionally export them to variables
Parameters:
Chat IDChat to read message IDs fromOffsetMessage ID cursor for pagination (optional)LimitMaximum number of messages (optional)Export to variablesVariable names that will store the returned IDsTip: Export IDs into variables for follow-up blocks such as forward or delete.
User management
Remove (kick) user
Remove a user from a chat or group—they can rejoin if allowed
Parameters:
Chat IDChat to remove the user fromUser IDUser to removeChange user permissions (includes banning)
Adjust a member’s rights in a chat or supergroup
Parameters:
Chat IDChat where permissions changeUser IDMember whose rights you are editingUntil dateDate/time when the restriction should expire (optional—omit for permanent changes)Permissions:
Change administrator rights
Promote or demote admins inside a chat or group
Parameters:
Chat IDChat where admin rights changeUser IDAdministrator whose rights you are editingAdministrator capabilities:
Chat management
Delete conversation
Fully delete a private chat or leave a group and remove history
Parameters:
Chat IDChat to deleteGood to know
- •Every action runs through the Telegram account you connected
- •Make sure that account actually has permission to perform the action
- •Chat and user IDs usually come from the Trigger block
