mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
219b4ecb77
Makes upload_file cleaner (context manager instead of try-finally) and helps keep the logic "we may own this stream and need to close it or not" separated. It can be overengineered to allow nesting the same instance in context managers and also provide implementations for synchronous context managers but it adds quite a bit of unnecessary complexity for the time being. YAGNI. |
||
---|---|---|
.. | ||
__init__.py | ||
account.py | ||
auth.py | ||
bots.py | ||
buttons.py | ||
chats.py | ||
dialogs.py | ||
downloads.py | ||
messageparse.py | ||
messages.py | ||
telegrambaseclient.py | ||
telegramclient.py | ||
updates.py | ||
uploads.py | ||
users.py |