mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Lower log severity when receiving empty messages
This commit is contained in:
parent
67b87a0ea0
commit
5c5cee16d9
|
@ -135,7 +135,10 @@ class StateCache:
|
|||
return update.channel_id
|
||||
elif cid in has_message:
|
||||
if update.message.peer_id is None:
|
||||
self._logger.info('Update has None peer_id %s', update)
|
||||
# Telegram sometimes sends empty messages to give a newer pts:
|
||||
# UpdateNewChannelMessage(message=MessageEmpty(id), pts=pts, pts_count=1)
|
||||
# Not sure why, but it's safe to ignore them.
|
||||
self._logger.debug('Update has None peer_id %s', update)
|
||||
else:
|
||||
return update.message.peer_id.channel_id
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user