Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
coder2020official committed Aug 16, 2021
1 parent 3e7da0f commit 24ef644
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion telebot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2110,6 +2110,7 @@ def edit_message_caption(
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
Expand All @@ -2124,7 +2125,7 @@ def edit_message_caption(
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)
Expand Down

0 comments on commit 24ef644

Please sign in to comment.