我写了
while True:
try:
updates = bot.get_updates()
for update in updates:
process_message(bot, update)
except Exception as e:
print(e)`
但是我有
'NoneType' object has no attribute 'chat_id'
错误
和
process_message()
功能在消息到达频道时继续而不运行。我认为功能没有问题。
我找不到解决方案,因为我不明白为什么会发生此错误。我检查了
process_message()
功能,功能没有问题,但仍然报错。找原因的时候,还是没法得出结论(我也是找这个论坛的时候没看懂错误)