Telethon/telethon/client
Lonami Exo 219b4ecb77 Abstract away treating a file as a stream
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.
2020-09-14 16:20:44 +02:00
..
__init__.py Add new takeout method 2019-01-05 17:18:40 +01:00
account.py Avoid using telethon.sync in the examples 2019-08-13 23:33:39 +02:00
auth.py Fix warning when using formatted phones in start (#1532) 2020-08-24 10:53:29 +02:00
bots.py Avoid using telethon.sync in the examples 2019-08-13 23:33:39 +02:00
buttons.py Add some missing words in the docs 2020-01-19 13:25:58 +01:00
chats.py Add a workaround for channels that claim have no photos but do 2020-08-13 15:13:29 +02:00
dialogs.py Avoid explicitly passing the loop to asyncio 2020-07-25 18:39:35 +02:00
downloads.py Sort thumbs to ensure -1 is largest 2020-08-11 23:14:31 +02:00
messageparse.py Fix another crash for return value when sending albums 2020-05-24 19:01:05 +02:00
messages.py Return produced service message with pin_message 2020-04-29 10:29:14 +02:00
telegrambaseclient.py Update init params to match those of tdesktop (#1549) 2020-09-10 14:52:25 +02:00
telegramclient.py Remove messy subclassing in the TelegramClient 2019-06-24 17:48:46 +02:00
updates.py Fix AlbumHack in combination with events.Raw (#1555) 2020-09-10 16:25:44 +02:00
uploads.py Abstract away treating a file as a stream 2020-09-14 16:20:44 +02:00
users.py Consider all reconnect attempts as retrying (#1557) 2020-09-13 09:43:01 +02:00