Telethon/telethon/tl/custom/inputsizedfile.py
2018-07-28 11:28:02 +02:00

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