Telegram 节点聊天操作#
¥Telegram node Chat operations
使用这些操作来获取有关聊天、成员、管理员、离开聊天以及设置聊天标题和描述的信息。有关 Telegram 节点本身的更多信息,请参阅 Telegram。
¥Use these operations to get information about chats, members, administrators, leave chat, and set chat titles and descriptions. Refer to Telegram for more information on the Telegram node itself.
This node can be used as an AI tool
This node can be used to enhance the capabilities of an AI agent. When used in this way, many parameters can be set automatically, or with information directed by AI - find out more in the AI tool parameters documentation.
获取聊天#
¥Get Chat
使用此操作通过 Bot API getChat 方法获取聊天记录的最新信息。
¥Use this operation to get up to date information about a chat using the Bot API getChat method.
请输入以下参数:
¥Enter these parameters:
- 用于连接的凭据:创建或选择现有 Telegram 凭证。
¥Credential to connect with: Create or select an existing Telegram credential.
- 资源:选择“聊天”。
¥Resource: Select Chat.
- 操作:选择“获取”。
¥Operation: Select Get.
- 聊天 ID:请输入目标通道的聊天 ID 或用户名,格式为
@channelusername。
¥Chat ID: Enter the Chat ID or username of the target channel in the format @channelusername.
-
要将聊天 ID 直接输入到此节点,请使用 Telegram 触发器 节点。有关更多信息,请参阅 常见问题 |获取聊天 ID。
¥To feed a Chat ID directly into this node, use the Telegram Trigger node. Refer to Common Issues | Get the Chat ID for more information.
请参阅 Telegram Bot API getChat 文档了解更多信息。
¥Refer to the Telegram Bot API getChat documentation for more information.
获取管理员#
¥Get Administrators
使用此操作通过 Bot API getChatAdministrators 方法获取聊天中所有管理员的列表。
¥Use this operation to get a list of all administrators in a chat using the Bot API getChatAdministrators method.
请输入以下参数:
¥Enter these parameters:
- 用于连接的凭据:创建或选择现有 Telegram 凭证。
¥Credential to connect with: Create or select an existing Telegram credential.
- 资源:选择“聊天”。
¥Resource: Select Chat.
- 操作:选择“获取管理员”。
¥Operation: Select Get Administrators.
- 聊天 ID:请输入目标通道的聊天 ID 或用户名,格式为
@channelusername。
¥Chat ID: Enter the Chat ID or username of the target channel in the format @channelusername.
-
要将聊天 ID 直接输入到此节点,请使用 Telegram 触发器 节点。有关更多信息,请参阅 常见问题 |获取聊天 ID。
¥To feed a Chat ID directly into this node, use the Telegram Trigger node. Refer to Common Issues | Get the Chat ID for more information.
请参阅 Telegram Bot API getChatAdministrators 文档了解更多信息。
¥Refer to the Telegram Bot API getChatAdministrators documentation for more information.
获取聊天成员#
¥Get Chat Member
使用此操作通过 Bot API getChatMember 方法获取聊天成员的详细信息。
¥Use this operation to get the details of a chat member using the Bot API getChatMember method.
请输入以下参数:
¥Enter these parameters:
- 用于连接的凭据:创建或选择现有 Telegram 凭证。
¥Credential to connect with: Create or select an existing Telegram credential.
- 资源:选择“聊天”。
¥Resource: Select Chat.
- 操作:选择“获取成员”。
¥Operation: Select Get Member.
- 聊天 ID:请输入目标通道的聊天 ID 或用户名,格式为
@channelusername。
¥Chat ID: Enter the Chat ID or username of the target channel in the format @channelusername.
-
要将聊天 ID 直接输入到此节点,请使用 Telegram 触发器 节点。有关更多信息,请参阅 常见问题 |获取聊天 ID。
¥To feed a Chat ID directly into this node, use the Telegram Trigger node. Refer to Common Issues | Get the Chat ID for more information.
-
用户 ID:输入要获取其信息的用户的唯一标识符。
¥User ID: Enter the unique identifier of the user whose information you want to get.
请参阅 Telegram Bot API getChatMember 文档了解更多信息。
¥Refer to the Telegram Bot API getChatMember documentation for more information.
离开聊天#
¥Leave Chat
使用此操作通过 Bot API leaveChat 方法退出聊天。
¥Use this operation to leave a chat using the Bot API leaveChat method.
请输入以下参数:
¥Enter these parameters:
- 用于连接的凭据:创建或选择现有 Telegram 凭证。
¥Credential to connect with: Create or select an existing Telegram credential.
- 资源:选择“聊天”。
¥Resource: Select Chat.
- 操作:选择“离开”。
¥Operation: Select Leave.
- 聊天 ID:以
@channelusername的格式输入要保留的通道的聊天 ID 或用户名。
¥Chat ID: Enter the Chat ID or username of the channel you wish to leave in the format @channelusername.
-
要将聊天 ID 直接输入到此节点,请使用 Telegram 触发器 节点。有关更多信息,请参阅 常见问题 |获取聊天 ID。
¥To feed a Chat ID directly into this node, use the Telegram Trigger node. Refer to Common Issues | Get the Chat ID for more information.
请参阅 Telegram Bot API leaveChat 文档了解更多信息。
¥Refer to the Telegram Bot API leaveChat documentation for more information.
设置描述#
¥Set Description
使用此操作通过 Bot API setChatDescription 方法设置聊天描述。
¥Use this operation to set the description of a chat using the Bot API setChatDescription method.
请输入以下参数:
¥Enter these parameters:
- 用于连接的凭据:创建或选择现有 Telegram 凭证。
¥Credential to connect with: Create or select an existing Telegram credential.
- 资源:选择“聊天”。
¥Resource: Select Chat.
- 操作:选择“设置描述”。
¥Operation: Select Set Description.
- 聊天 ID:以
@channelusername的格式输入要保留的通道的聊天 ID 或用户名。
¥Chat ID: Enter the Chat ID or username of the channel you wish to leave in the format @channelusername.
-
要将聊天 ID 直接输入到此节点,请使用 Telegram 触发器 节点。有关更多信息,请参阅 常见问题 |获取聊天 ID。
¥To feed a Chat ID directly into this node, use the Telegram Trigger node. Refer to Common Issues | Get the Chat ID for more information.
-
描述:输入你希望聊天使用的新描述,最多 255 个字符。
¥Description: Enter the new description you'd like to set the chat to use, maximum of 255 characters.
请参阅 Telegram Bot API setChatDescription 文档了解更多信息。
¥Refer to the Telegram Bot API setChatDescription documentation for more information.
设置标题#
¥Set Title
使用此操作通过 Bot API setChatTitle 方法设置聊天标题。
¥Use this operation to set the title of a chat using the Bot API setChatTitle method.
请输入以下参数:
¥Enter these parameters:
- 用于连接的凭据:创建或选择现有 Telegram 凭证。
¥Credential to connect with: Create or select an existing Telegram credential.
- 资源:选择“聊天”。
¥Resource: Select Chat.
- 操作:选择“设置标题”。
¥Operation: Select Set Title.
- 聊天 ID:以
@channelusername的格式输入要保留的通道的聊天 ID 或用户名。
¥Chat ID: Enter the Chat ID or username of the channel you wish to leave in the format @channelusername.
-
要将聊天 ID 直接输入到此节点,请使用 Telegram 触发器 节点。有关更多信息,请参阅 常见问题 |获取聊天 ID。
¥To feed a Chat ID directly into this node, use the Telegram Trigger node. Refer to Common Issues | Get the Chat ID for more information.
-
标题:输入你希望聊天使用的新标题,最多 255 个字符。
¥Title: Enter the new title you'd like to set the chat to use, maximum of 255 characters.
请参阅 Telegram Bot API setChatTitle 文档了解更多信息。
¥Refer to the Telegram Bot API setChatTitle documentation for more information.