用Python-Telegram-bot发布超组消息
我一直在使用下面的代码向聊天发送电报消息。它运行良好,但该小组已升级到“超级组”,并且已经停止工作了。它只是给出了“找不到聊天”错误。
我有新的ID,并找到了一个建议,我需要将机器人添加为该组的管理员。这些都没有解决问题。
有人知道问题是什么吗?
bot = telegram.Bot(token='xxxxxxxxxxxxxxxxxxxxxxxxxxx')
def post(message):
msg = dedent(f'''\
On subject {subject}: {message}
''')
bot.send_message('-1111111111', text=msg)
I have been sending Telegram messages to a chat using the code below. It worked fine but the group has been upgraded to a "Supergoup" and it has stopped working. It just gives a "Chat cannot be found" error.
I have the new ID and found a suggestion that I needed to add the bot as admin for the group. Neither of these has fixed the problem.
Does anyone know what the issue is?
bot = telegram.Bot(token='xxxxxxxxxxxxxxxxxxxxxxxxxxx')
def post(message):
msg = dedent(f'''\
On subject {subject}: {message}
''')
bot.send_message('-1111111111', text=msg)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论