mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-18 11:06:39 +00:00
Don't catch up on reconnect and fix typo
The feature is not ready yet.
This commit is contained in:
parent
8868ce14e8
commit
4e783728f9
@ -321,8 +321,8 @@ class UpdateMethods(UserMethods):
|
|||||||
name)
|
name)
|
||||||
|
|
||||||
async def _handle_auto_reconnect(self):
|
async def _handle_auto_reconnect(self):
|
||||||
# Upon reconnection, we want to send getState
|
# TODO Catch-up
|
||||||
# for Telegram to keep sending us updates.
|
return
|
||||||
try:
|
try:
|
||||||
self._log[__name__].info(
|
self._log[__name__].info(
|
||||||
'Asking for the current state after reconnect...')
|
'Asking for the current state after reconnect...')
|
||||||
|
@ -49,7 +49,7 @@ class NewMessage(EventBuilder):
|
|||||||
incoming = not outgoing
|
incoming = not outgoing
|
||||||
elif all(x is not None and not x for x in (incoming, outgoing)):
|
elif all(x is not None and not x for x in (incoming, outgoing)):
|
||||||
raise ValueError("Don't create an event handler if you "
|
raise ValueError("Don't create an event handler if you "
|
||||||
"don't want neither incoming or outgoing!")
|
"don't want neither incoming nor outgoing!")
|
||||||
|
|
||||||
super().__init__(chats, blacklist_chats=blacklist_chats, func=func)
|
super().__init__(chats, blacklist_chats=blacklist_chats, func=func)
|
||||||
self.incoming = incoming
|
self.incoming = incoming
|
||||||
|
Loading…
Reference in New Issue
Block a user