简体   繁体   English

Telegram Bots:我现在可以开始聊天吗?

[英]Telegram Bots: Can I now start a chat or not?

https://core.telegram.org/bots clearly says: https://core.telegram.org/bots清楚地说:

Bots can't initiate conversations with users.机器人无法与用户发起对话。 A user must either add them to a group or send them a message first.用户必须先将他们添加到组或向他们发送消息。

But if I visit https://telegram.org/blog/login it says但是如果我访问https://telegram.org/blog/login它说

Telegram bots are a powerful communication tool, but until today they couldn't start a conversation. Telegram bots 是一种强大的通信工具,但直到今天他们还无法开始对话。 Even if you wanted them to reach out to you, you had to chat them up first.即使你想让他们联系你,你也必须先和他们聊天。 With the new login widget, moving from interacting with a website to a conversation on Telegram becomes completely frictionless.使用新的登录小部件,从与网站交互到在 Telegram 上进行对话变得完全没有摩擦。

So it is somehow possible to start a conversation via the login widget.因此,可以通过登录小部件以某种方式开始对话。 But how do I do it?但是我该怎么做呢? I get a user id.我得到一个用户 ID。 Is there an api endpoint to initiate a chat with the user?是否有 api 端点来发起与用户的聊天?

The only way to begin conversing with a Telegram bot is to start the conversation with them yourself.开始与 Telegram 机器人对话的唯一方法是自己开始与他们对话。 There's no way for the bot to start a conversation with a user themselves.机器人无法自己与用户开始对话。

正如您所说,电报清楚地表明机器人无法开始对话,机器人唯一能做的就是向旧对话发送消息(我的意思是用户必须开始对话)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM