节点与集成

Chat operations

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.

Get Chat

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.
  • Chat ID: Enter the Chat ID or username of the target channel in the format @channelusername.
  • 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.

Refer to the Telegram Bot API getChat documentation for more information.

Get Administrators

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.
  • Chat ID: Enter the Chat ID or username of the target channel in the format @channelusername.
  • 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.

Refer to the Telegram Bot API getChatAdministrators documentation for more information.

Get Chat Member

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.
  • Chat ID: Enter the Chat ID or username of the target channel in the format @channelusername.
  • 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.
  • User ID: Enter the unique identifier of the user whose information you want to get.

Refer to the Telegram Bot API getChatMember documentation for more information.

Leave Chat

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.
  • Chat ID: Enter the Chat ID or username of the channel you wish to leave in the format @channelusername.
  • 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.

Refer to the Telegram Bot API leaveChat documentation for more information.

Set Description

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.
  • Chat ID: Enter the Chat ID or username of the channel you wish to leave in the format @channelusername.
  • 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.
  • Description: Enter the new description you'd like to set the chat to use, maximum of 255 characters.

Refer to the Telegram Bot API setChatDescription documentation for more information.

Set Title

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.
  • Chat ID: Enter the Chat ID or username of the channel you wish to leave in the format @channelusername.
  • 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.
  • Title: Enter the new title you'd like to set the chat to use, maximum of 255 characters.

Refer to the Telegram Bot API setChatTitle documentation for more information.

官方原文和授权

本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。

来源、授权与修改

本站保留许可证、固定提交号、社区作者和修改说明,不代表 n8n 对本站背书。

查看许可证查看来源和修改说明