Skip to content

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:

¥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.

请参阅 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:

¥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.

请参阅 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:

¥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.

¥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:

¥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.

请参阅 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:

¥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.

¥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:

¥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.

¥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.