允许机器人访问电报组消息 [英] Allow bot to access Telegram Group messages
问题描述
比如何将机器人添加到 Telegram 群组更进一步? --
如何以管理员身份将机器人添加到 Telegram 群组?
How to add a bot to a Telegram Group as admin?
我已将我的机器人添加到我的 Telegram Group,但请注意
I've added my bot to my Telegram Group, but see that it
无法访问消息
我听说机器人需要成为管理员才能访问消息.真的?如果是这样,如何?否则,如何让我的机器人访问群组消息?
I heard the bot need to be admin to access to messages. True? If so, how? Else, how to have my bot access to group messages?
推荐答案
您必须使用@BotFather bot 将组隐私设置为关闭.这让机器人可以访问所有群组消息.
You have to use the @BotFather bot to set the Group Privacy off. This let the bot to access all the group messages.
默认情况下,Group Privacy
为机器人enabled
.必须使用@BotFather bot >> Bot Settings >> Group Privacy >> Turn off 更改此设置
By default, Group Privacy
is enabled
for bots. This setting has to be changed used the @BotFather bot >> Bot Settings >> Group Privacy >> Turn off
请注意,此更改不会自动传播,因此如果机器人在关闭隐私模式之前已在群组中,它将保持之前的状态.要应用更改,应删除机器人并重新添加到组中.
Please note that this change is not propagated automatically, so in case the bot is already in a group before turning off privacy mode, it will remain as it was before. To apply the changes, the bot should be removed and added again to the group(s).
这篇关于允许机器人访问电报组消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!