mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Fix StateCache accessing None to_id and add logging (#1160)
This commit is contained in:
@@ -308,7 +308,8 @@ class TelegramBaseClient(abc.ABC):
|
||||
|
||||
# Update state (for catching up after a disconnection)
|
||||
# TODO Get state from channels too
|
||||
self._state_cache = StateCache(self.session.get_update_state(0))
|
||||
self._state_cache = StateCache(
|
||||
self.session.get_update_state(0), self._log)
|
||||
|
||||
# Some further state for subclasses
|
||||
self._event_builders = []
|
||||
|
Reference in New Issue
Block a user