From 7e6872147538d2c68dcd3720837dd71a8429c610 Mon Sep 17 00:00:00 2001 From: Badiboy Date: Sun, 8 May 2022 23:34:56 +0300 Subject: [PATCH] class File parse fix --- telebot/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/types.py b/telebot/types.py index 4700c28..9793417 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -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