Telegram 机器人可以读取频道的消息吗 [英] Can a Telegram bot read messages of channel

查看:76
本文介绍了Telegram 机器人可以读取频道的消息吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

电报机器人可以读取/访问我或机器人都不是管理员的电报频道吗?

我知道在去年 11 月之前这是不可能的,但我听说有些人已经这样做了,但到目前为止我无法做到.

非常感谢您的意见和知识.

附言任何解决方法都会很棒.

解决方案

FAQ 内容如下:

<块引用>

  1. 所有机器人,无论设置如何,都会收到:

    • 所有服务消息.
    • 来自与用户的私人聊天的所有消息.
    • 来自他们所属频道的所有消息.
  2. 机器人管理员和禁用隐私模式的机器人将接收除其他机器人发送的消息之外的所有消息.

  3. 启用隐私模式的机器人将收到:

    • 明确针对他们的命令(例如,/command@this_bot).
    • 如果机器人是最后一个向群组发送消息的机器人,则来自用户的一般命令(例如/start).
    • 通过此机器人发送的消息.
    • 回复任何暗示或明确发送给该机器人的消息.

因此,如果您的机器人是频道的成员,它将接收除其他机器人发送的消息之外的所有消息.

Can a telegram bot read/access a telegram channel that neither I or the bot is administrator of?

I know that up to last November it was not possible, but I have heard some people have done this, but so far I am not able to do it.

I would really appreciate your input and knowledge.

P.s. any workaround would be great.

解决方案

The FAQ reads:

  1. All bots, regardless of settings, will receive:

    • All service messages.
    • All messages from private chats with users.
    • All messages from channels where they are a member.
  2. Bot admins and bots with privacy mode disabled will receive all messages except messages sent by other bots.

  3. Bots with privacy mode enabled will receive:

    • Commands explicitly meant for them (e.g., /command@this_bot).
    • General commands from users (e.g. /start) if the bot was the last bot to send a message to the group.
    • Messages sent via this bot.
    • Replies to any messages implicitly or explicitly meant for this bot.

So, if your bot is a member of the channel it will receive all messages except those sent by other bots.

这篇关于Telegram 机器人可以读取频道的消息吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆