Rahsaz Telegram icon

Rahsaz Telegram

Sends data to Telegram

Overview

The "Get Member" operation of the Chat resource in this Telegram node retrieves detailed information about a specific member of a chat. This is useful when you want to obtain up-to-date data about a user’s status or role within a particular chat group, supergroup, or channel.

Common scenarios include:

  • Checking if a user is an administrator or has special permissions in a chat.
  • Verifying membership status before performing actions like sending messages or managing users.
  • Auditing or logging user roles and participation in chats.

For example, you might use this operation to confirm whether a user is still part of a group before sending them a notification or to fetch their current role to customize bot responses accordingly.

Properties

Name Meaning
Chat ID Unique identifier for the target chat or username of the target channel (format: @channelusername). Required to specify which chat to query.
User ID Unique identifier of the target user whose membership information you want to retrieve. Required.

Output

The output JSON contains the member information returned by the Telegram API's getChatMember method. This typically includes details such as:

  • The user's status in the chat (e.g., creator, administrator, member, restricted, left, kicked).
  • User profile information (id, first name, last name, username).
  • Permissions and restrictions applicable to the user in the chat.

The output is structured as an array of JSON objects, each representing the member data corresponding to the input item.

No binary data is produced by this operation.

Dependencies

  • Requires a valid Telegram Bot API key credential configured in n8n to authenticate requests.
  • Relies on the Telegram Bot API endpoint getChatMember.
  • No additional external services are required.

Troubleshooting

  • Invalid Chat ID or User ID: If either the chat or user identifier is incorrect or the bot does not have access to the chat, the API will return an error. Verify that the chat ID or username and user ID are correct and that the bot is a member of the chat.
  • Bot Permissions: The bot must have permission to access chat member information. Lack of appropriate permissions may cause errors.
  • User Not Found: If the specified user is not a member of the chat, the API response will indicate this. Ensure the user is currently part of the chat.
  • API Rate Limits: Excessive requests may lead to rate limiting by Telegram. Implement retries with backoff if necessary.

Links and References

Discussion