Telethon/telethon/tl
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
..
custom Remove optional add_mark parameter from .get_peer_id 2017-12-28 13:31:43 +01:00
__init__.py Rename handmade Message class to TLMessage to avoid confusion 2017-09-28 11:59:24 +02:00
gzip_packed.py Replace .to_bytes() with the special .__bytes__ function 2017-10-17 19:54:59 +02:00
message_container.py Implement missing .to_dict() and .stringify() on message/container 2017-10-29 20:13:36 +01:00
session.py Properly implement InputPhoto/InputDocument caching 2018-01-18 19:36:47 +01:00
tl_message.py Implement missing .to_dict() and .stringify() on message/container 2017-10-29 20:13:36 +01:00
tlobject.py More consistent with asyncio branch (style/small fixes) 2018-01-05 18:31:48 +01:00