1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Merge pull request #1540 from Badiboy/master

class File parse fix
This commit is contained in:
Badiboy 2022-05-08 23:39:00 +03:00 committed by GitHub
commit a2f3cd03e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -909,7 +909,7 @@ class File(JsonDeserializable):
obj = cls.check_json(json_string, dict_copy=False)
return cls(**obj)
def __init__(self, file_id, file_unique_id, file_size, file_path, **kwargs):
def __init__(self, file_id, file_unique_id, file_size=None, file_path=None, **kwargs):
self.file_id: str = file_id
self.file_unique_id: str = file_unique_id
self.file_size: int = file_size