Telegram节点聊天操作#
使用这些操作可以获取有关聊天、成员、管理员的信息,退出聊天,以及设置聊天标题和描述。有关Telegram节点本身的更多信息,请参考Telegram。
该节点可用作AI工具
该节点可用于增强AI智能体的能力。以这种方式使用时,许多参数可以自动设置,或由AI引导信息进行配置 - 更多详情请参阅AI工具参数文档。
获取聊天#
使用此操作通过Bot API的getChat方法获取关于聊天的最新信息。
输入以下参数:
- 用于连接的凭证: 创建或选择一个现有的Telegram凭证。
- 资源: 选择 聊天.
- 操作: 选择 获取。
- Chat ID: Enter the Chat ID or username of the target channel in the format
@channelusername.- 要将聊天ID直接输入到此节点,请使用Telegram Trigger节点。更多信息请参阅Common Issues | Get the Chat ID。
更多信息请参考Telegram Bot API的getChat文档。
获取管理员#
使用此操作通过Bot API的getChatAdministrators方法获取聊天中所有管理员列表。
输入以下参数:
- 连接凭证: 创建或选择现有的Telegram凭证。
- 资源: 选择 聊天.
- 操作: 选择 获取管理员.
- Chat ID: Enter the Chat ID or username of the target channel in the format
@channelusername.- 要将聊天ID直接输入到此节点,请使用Telegram Trigger节点。更多信息请参阅Common Issues | Get the Chat ID。
更多信息请参考Telegram Bot API getChatAdministrators文档。
获取聊天成员#
使用此操作通过Bot API的getChatMember方法获取聊天成员的详细信息。
输入以下参数:
- 连接凭证: 创建或选择现有的Telegram凭证。
- 资源: 选择 聊天.
- 操作: 选择 获取成员.
- Chat ID: Enter the Chat ID or username of the target channel in the format
@channelusername.- 要将聊天ID直接输入到此节点,请使用Telegram触发器节点。更多信息请参阅常见问题 | 获取聊天ID。
- 用户ID: 输入您想获取信息的用户的唯一标识符。
更多信息请参考Telegram Bot API getChatMember文档。
离开聊天#
使用此操作通过Bot API的leaveChat方法退出聊天。
输入以下参数:
- 连接凭证: 创建或选择现有的Telegram凭证。
- 资源: 选择 聊天.
- 操作: 选择离开。
- Chat ID: Enter the Chat ID or username of the channel you wish to leave in the format
@channelusername.- 要将聊天ID直接输入到此节点,请使用Telegram Trigger节点。更多信息请参阅Common Issues | Get the Chat ID。
更多信息请参考Telegram Bot API leaveChat文档。
设置描述#
使用此操作通过Bot API的setChatDescription方法设置聊天描述。
输入以下参数:
- 连接凭证: 创建或选择现有的Telegram凭证。
- 资源: 选择 聊天.
- 操作: 选择设置描述.
- Chat ID: Enter the Chat ID or username of the channel you wish to leave in the format
@channelusername.- 要将聊天ID直接输入到此节点,请使用Telegram Trigger节点。更多信息请参阅Common Issues | Get the Chat ID。
- 描述: 输入您希望聊天使用的新描述,最多255个字符。
更多信息请参考Telegram Bot API的setChatDescription文档。
设置标题#
使用此操作通过Bot API的setChatTitle方法设置聊天标题。
输入以下参数:
- 连接凭证: 创建或选择一个现有的Telegram凭证。
- 资源: 选择 聊天.
- 操作: 选择设置标题.
- Chat ID: Enter the Chat ID or username of the channel you wish to leave in the format
@channelusername.- 要将聊天ID直接输入到此节点,请使用Telegram Trigger节点。更多信息请参阅Common Issues | Get the Chat ID。
- 标题: 输入您希望聊天使用的新标题,最多255个字符。
更多信息请参考Telegram Bot API setChatTitle文档。