Remove auto-reconnect callback

It's an abstraction leak.
The client should know to refetch updates if a long period passed
without them on its own.
This commit is contained in:
Lonami Exo
2022-01-18 18:21:56 +01:00
parent 7142734fb4
commit 3afabdd7c0
4 changed files with 1 additions and 55 deletions

View File

@@ -3513,10 +3513,6 @@ class TelegramClient:
def _handle_update(self: 'TelegramClient', update):
pass
@forward_call(updates._handle_auto_reconnect)
async def _handle_auto_reconnect(self: 'TelegramClient'):
pass
@forward_call(auth._update_session_state)
async def _update_session_state(self, user, *, save=True):
pass