mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-11 03:56:36 +03:00
10 lines
310 B
Python
10 lines
310 B
Python
from ..types import InputFile
|
|
|
|
|
|
class InputSizedFile(InputFile):
|
|
"""InputFile class with two extra parameters: md5 (digest) and size"""
|
|
def __init__(self, id_, parts, name, md5, size):
|
|
super().__init__(id_, parts, name, md5.hexdigest())
|
|
self.md5 = md5.digest()
|
|
self.size = size
|