Telethon如何获取频道消息?

时间:2017-11-19 18:43:04

标签: python api telegram telethon

Python Telethon

我需要接收来自频道的消息

错误:

  

>>> client.get_message_history(-1001143136828)

追踪(最近一次呼叫最后一次):

文件" messages.py",第23行,in     总计,消息,发件人= client.get_message_history(-1001143136828)

文件" /Users/kosyachniy/anaconda/lib/python3.5/site-packages/telethon/telegram_client.py",第548行,在get_message_history中     add_mark =真

KeyError:1143136828

1 个答案:

答案 0 :(得分:0)

库中的错误

需要更新:self.connect(button3, SIGNAL("clicked()"),lambda who="Three": self.anyButton(who))