Telegram 机器人可以订阅频道吗? [英] Can a Telegram bot subscribe to a channel?

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

问题描述

我想知道机器人是否可以订阅频道,我似乎无法做到.

I'd like to know if a bot can subscribe to a channel, I don't seem to be able to do it.

谢谢

推荐答案

实际上,机器人可以接收来自频道的所有消息——它应该只是频道的成员.请参阅我的机器人会收到什么消息?在常见问题解答中.但只有频道管理员才能订阅"频道.以这种方式进入频道的机器人.

Actually a bot can can receive all the messages from a channel — it should be just a member of the channel. See What messages will my bot get? in the FAQ. But only a channel admin can "subscribe" a bot to the channel in such a way.

另一种方法是使用一些可编程的 Telegram 客户端应用程序或库(感谢开放的 MTProto 协议).例如,请参阅 Telethon 库 (Python3).

Another way is to use some programmable Telegram client application or library (thanks to the open MTProto protocol). For example, see Telethon library (Python3).

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

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