Actions7
Chat → Get Administrators
AI-generatedOverview
This node operation retrieves the list of administrators for a specified Telegram chat. It is useful for scenarios where you need to manage or audit chat administrators, such as in group management or bot moderation tasks. For example, a bot can fetch the administrators of a group to verify permissions or notify admins about important updates.
Use Case Examples
- Fetch administrators of a Telegram group to display their usernames.
- Check if a user is an admin before allowing certain bot commands.
Properties
| Name | Meaning |
|---|---|
| Authentication Method | Method to provide the bot token for authentication with Telegram API. Options include encrypted credentials, environment variable, or direct input. |
| Environment Token | Environment variable containing the bot token, shown only if authentication method is environment variable. |
| Bot Token | Direct bot token input from @BotFather, shown only if authentication method is direct input. |
| Chat ID | Identifier for the chat, which can be a username (@channel_name) or a group ID (-123456789). This is required to specify which chat's administrators to retrieve. |
| Additional Fields | Optional parameters to customize the request, such as parse mode, caption, disabling web page preview, disabling notification, or replying to a specific message ID. |
Output
JSON
json- The JSON response containing the list of chat administrators retrieved from the Telegram API.
Dependencies
- Requires a Telegram bot token for authentication, which can be provided via encrypted credentials, environment variable, or direct input.
Troubleshooting
- Common issues include invalid or missing bot token, which will cause authentication errors. Ensure the bot token is correctly provided and valid.
- If the chat ID is incorrect or the bot is not an administrator in the chat, the API call may fail or return an empty list.
- Error messages related to invalid authentication method or token format will be thrown if the input is incorrect.