mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-24 08:14:14 +03:00
0e4611a593
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. |
||
---|---|---|
.. | ||
crypto | ||
errors | ||
extensions | ||
network | ||
tl | ||
__init__.py | ||
helpers.py | ||
telegram_bare_client.py | ||
telegram_client.py | ||
update_state.py | ||
utils.py | ||
version.py |