mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
class File parse fix
This commit is contained in:
parent
efb1b44e59
commit
7e68721475
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user