mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Fix copy pasted docs and snake_case files
This commit is contained in:
9
telethon/tl/custom/inputsizedfile.py
Normal file
9
telethon/tl/custom/inputsizedfile.py
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
Reference in New Issue
Block a user