mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 11:10:18 +03:00
add caching for videos in albums
This commit is contained in:
parent
50665bc881
commit
520f8a1ecd
|
@ -393,6 +393,8 @@ class UploadMethods:
|
||||||
r = await self(functions.messages.UploadMediaRequest(
|
r = await self(functions.messages.UploadMediaRequest(
|
||||||
entity, media=fm
|
entity, media=fm
|
||||||
))
|
))
|
||||||
|
self.session.cache_file(
|
||||||
|
fh.md5, fh.size, utils.get_input_document(r.document))
|
||||||
|
|
||||||
fm = utils.get_input_media(
|
fm = utils.get_input_media(
|
||||||
r.document, supports_streaming=supports_streaming)
|
r.document, supports_streaming=supports_streaming)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user