Telethon/telethon
Lonami Exo 0e4611a593 Properly implement InputPhoto/InputDocument caching
Since uploading a file is done on the TelegramClient, and the
InputFiles are only valid for a short period of time, it only
makes sense to cache the sent media instead (which should not
expire). The problem is the MD5 is only needed when uploading
the file.

The solution is to allow this method to check for the wanted
cache, and if available, return an instance of that, so to
preserve the flexibility of both options (always InputFile,
or the cached InputPhoto/InputDocument) instead reuploading.
2018-01-18 19:36:47 +01:00
..
crypto Move utils.calc_msg_key into auth_key (cyclic imports py3.4) 2018-01-08 12:07:14 +01:00
errors Make exception types correspond to Python docs 2017-12-28 09:48:02 +10:00
extensions Also handle ECONNREFUSED on .connect() (report on #392) 2018-01-08 12:26:32 +01:00
network Add more useful logging on invalid packet length received 2018-01-13 19:26:45 +01:00
tl Properly implement InputPhoto/InputDocument caching 2018-01-18 19:36:47 +01:00
__init__.py Use NullHandler as default for the library 2017-11-13 10:59:43 +01:00
helpers.py Move utils.calc_msg_key into auth_key (cyclic imports py3.4) 2018-01-08 12:07:14 +01:00
telegram_bare_client.py Move upload/download file methods to the TelegramClient 2018-01-18 13:55:03 +01:00
telegram_client.py Properly implement InputPhoto/InputDocument caching 2018-01-18 19:36:47 +01:00
update_state.py Make a proper use of the logging module 2017-12-20 12:47:39 +01:00
utils.py Fix .get_input_media using None caption and missing venue type 2018-01-16 14:04:12 +01:00
version.py Update to v0.16.1 2018-01-11 22:18:58 +01:00