Actions40
- Chat Actions
- Custom Request Actions
- Group Actions
- File Actions
- Login Actions
- Message Actions
- User Actions
- Contact Actions
Overview
This node operation adds members to a specified Telegram chat, such as a Supergroup or Channel, by providing the chat ID and a list of user IDs to be added. It is useful for managing group memberships programmatically, for example, to automate adding users to a community or team chat.
Use Case Examples
- Adding multiple users to a Telegram Supergroup by specifying the chat ID and a comma-separated list of user IDs.
- Automating the process of inviting new members to a channel after they sign up on a platform.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat (Supergroup or Channel) where members will be added. |
| User IDs | A comma-separated list of user IDs to be added to the specified chat. |
Output
JSON
chat_id- The ID of the chat where members were added.user_ids- The list of user IDs that were added to the chat.result- The response from the Telegram API indicating the success or failure of adding members.
Dependencies
- Requires an API key credential for Telegram (telePilotApi) to authenticate requests.
Troubleshooting
- Ensure the Telegram API credentials are valid and the session is logged in; otherwise, the node will throw login-related errors.
- User IDs must be valid and the bot or user must have permission to add members to the chat; otherwise, the operation may fail.
- If the Telegram session is closed or unauthorized, re-login is required as indicated by error messages.
- Check that the chat ID corresponds to a Supergroup or Channel where adding members is supported.
Links
- Telegram Bot API - Add Chat Members - Official Telegram API documentation for adding members to chats.