Skip to content

Telegram 凭据(Telegram credentials)#

你可以使用以下凭据验证以下节点:

🌐 You can use these credentials to authenticate the following nodes:

先决条件(Prerequisites)#

创建一个 Telegram 账户。

🌐 Create a Telegram account.

支持的身份验证方法(Supported authentication methods)#

  • API 机器人访问令牌

有关该服务的更多信息,请参阅Telegram 机器人 API 文档

🌐 Refer to Telegram's Bot API documentation for more information about the service.

有关创建和使用机器人的更多信息,请参考 Telegram 机器人功能 文档。

🌐 Refer to the Telegram Bot Features documentation for more information on creating and working with bots.

使用 API 机器人访问令牌(Using API bot access token)#

要配置此凭据,你需要:

🌐 To configure this credential, you'll need:

  • 机器人 访问令牌

生成访问令牌:

🌐 To generate your access token:

  1. 开始与 BotFather 聊天。
  2. 输入 /newbot 命令以创建一个新的机器人。
  3. BotFather 会要求你为新机器人输入名称和用户名:
    • 名称是机器人在联系人信息及其他地方显示的名称。你可以在之后更改机器人名称。
    • 用户名是用于搜索、提及和 t.me 链接的简短名称。创建用户名时请遵循以下指南:
      • 长度必须介于 5 和 32 个字符之间。
      • 不区分大小写。
      • 只能包含拉丁字符、数字和下划线。
      • 必须以 bot 结尾,比如 tetris_botTetrisBot
      • 你无法稍后更改用户名。
  4. 复制 BotFather 生成的 token,并将其作为 访问令牌 添加到 n8n 中。

有关更多信息,请参阅 BotFather 创建新机器人文档

🌐 Refer to the BotFather Create a new bot documentation for more information.