将机器人连接到 Telegram


Connect a bot to Telegram

本文内容


可设置机器人,使其与使用 Telegram 消息通报应用的用户进行通讯。


You can configure your bot to communicate with people using the Telegram messaging app.

提示


有关说明每个通道支持的功能的表,请参阅 通道参考 一文。


For tables describing which features are supported on each channel, see the channels reference div.


访问 Bot Father 来新建一个 Telegram 机器人


Visit the Bot Father to create a new Telegram bot


使用 Bot Father 创建新的 Telegram 机器人 。


Create a new Telegram bot using the Bot Father.

访问 Bot Father


创建新的 Telegram 机器人


Create a new Telegram bot


要创建新的 Telegram 机器人,请发送死令

/newbot




To create a new Telegram bot, send command

/newbot

.

创建新的机器人


指定易记名称


Specify a friendly name


Telegram 机器人提供易记名称。


Give the Telegram bot a friendly name.

为机器人提供易记名称


指定用户名


Specify a username


Telegram 机器人提供唯一用户名。


Give the Telegram bot a unique username.

为机器人提供唯一名称


复制访问令牌


Copy the access token


复制 Telegram 机器人的访问令牌。


Copy the Telegram bot’s access token.

复制访问令牌


输入 Telegram 机器人的访问令牌


Enter the Telegram bot’s access token


转到 Azure 流派中机器人的“通道”部分,单击“Telegram”按钮。


Go to your bot’s

Channels

section in the Azure portal and click the

Telegram

button.

备注


假如已将机器人连接到 Telegram,Azure 流派 UI 看起来会稍有差别。


The Azure portal UI will look slightly different if you have already connected your bot to Telegram.

在通道中选择 Telegram


将之前复制的令牌粘贴到“访问令牌”字段中,然后单击“保存” 。


Paste the token you copied previously into the

Access Token

field and click

Save

.

Telegram 访问令牌


机器人如今已成功设置为与 Telegram 中的用户通讯。


Your bot is now successfully configured to communicate with users in Telegram.

启用的 Telegram 机器人