mirror of
https://github.com/LonamiWebs/Telethon
synced 2025-08-31 14:26:06 +00:00
Fixed bugs when handling updates
GZipPacked updates are now handled correctly. Also, fixed another bug which did not allow resending a request when BadServerSalt occured.
This commit is contained in:
8
main.py
8
main.py
@@ -42,7 +42,13 @@ if __name__ == '__main__':
|
||||
print('{}. {}'.format(i, display))
|
||||
|
||||
# Let the user decide who they want to talk to
|
||||
i = int(input('Who do you want to send messages to (0 to exit)?: ')) - 1
|
||||
i = None
|
||||
while i is None:
|
||||
try:
|
||||
i = int(input('Who do you want to send messages to (0 to exit)?: ')) - 1
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
if i == -1:
|
||||
break
|
||||
|
||||
|
Reference in New Issue
Block a user