From 24ef64456b941b84177d3fad43b5c87095b1300c Mon Sep 17 00:00:00 2001 From: _run Date: Mon, 16 Aug 2021 14:53:00 +0400 Subject: [PATCH] Update __init__.py --- telebot/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 249fcab..30b36b9 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -2110,6 +2110,7 @@ class TeleBot: message_id: Optional[int]=None, inline_message_id: Optional[str]=None, parse_mode: Optional[str]=None, + caption_entities: Optional[List[types.MessageEntity]]=None, reply_markup: Optional[REPLY_MARKUP_TYPES]=None) -> Union[types.Message, bool]: """ Use this method to edit captions of messages @@ -2124,7 +2125,7 @@ class TeleBot: parse_mode = self.parse_mode if (parse_mode is None) else parse_mode result = apihelper.edit_message_caption(self.token, caption, chat_id, message_id, inline_message_id, - parse_mode, reply_markup) + parse_mode, caption_entities, reply_markup) if type(result) == bool: return result return types.Message.de_json(result)