Skip to content

Commit 69afd72

Browse files
committed
Fixed typehints for reply markup in editing methods
1 parent a50a6e2 commit 69afd72

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

telebot/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2551,7 +2551,7 @@ def edit_message_live_location(
25512551
chat_id: Optional[Union[int, str]]=None,
25522552
message_id: Optional[int]=None,
25532553
inline_message_id: Optional[str]=None,
2554-
reply_markup: Optional[REPLY_MARKUP_TYPES]=None,
2554+
reply_markup: Optional[types.InlineKeyboardMarkup]=None,
25552555
timeout: Optional[int]=None,
25562556
horizontal_accuracy: Optional[float]=None,
25572557
heading: Optional[int]=None,
@@ -2607,7 +2607,7 @@ def stop_message_live_location(
26072607
self, chat_id: Optional[Union[int, str]]=None,
26082608
message_id: Optional[int]=None,
26092609
inline_message_id: Optional[str]=None,
2610-
reply_markup: Optional[REPLY_MARKUP_TYPES]=None,
2610+
reply_markup: Optional[types.InlineKeyboardMarkup]=None,
26112611
timeout: Optional[int]=None) -> types.Message or bool:
26122612
"""
26132613
Use this method to stop updating a live location message before live_period expires.
@@ -3592,7 +3592,7 @@ def edit_message_text(
35923592
parse_mode: Optional[str]=None,
35933593
entities: Optional[List[types.MessageEntity]]=None,
35943594
disable_web_page_preview: Optional[bool]=None,
3595-
reply_markup: Optional[REPLY_MARKUP_TYPES]=None) -> Union[types.Message, bool]:
3595+
reply_markup: Optional[types.InlineKeyboardMarkup]=None) -> Union[types.Message, bool]:
35963596
"""
35973597
Use this method to edit text and game messages.
35983598
@@ -3638,7 +3638,7 @@ def edit_message_media(
36383638
self, media: Any, chat_id: Optional[Union[int, str]]=None,
36393639
message_id: Optional[int]=None,
36403640
inline_message_id: Optional[str]=None,
3641-
reply_markup: Optional[REPLY_MARKUP_TYPES]=None) -> Union[types.Message, bool]:
3641+
reply_markup: Optional[types.InlineKeyboardMarkup]=None) -> Union[types.Message, bool]:
36423642
"""
36433643
Use this method to edit animation, audio, document, photo, or video messages.
36443644
If a message is a part of a message album, then it can be edited only to a photo or a video.
@@ -3673,7 +3673,7 @@ def edit_message_reply_markup(
36733673
self, chat_id: Optional[Union[int, str]]=None,
36743674
message_id: Optional[int]=None,
36753675
inline_message_id: Optional[str]=None,
3676-
reply_markup: Optional[REPLY_MARKUP_TYPES]=None) -> Union[types.Message, bool]:
3676+
reply_markup: Optional[types.InlineKeyboardMarkup]=None) -> Union[types.Message, bool]:
36773677
"""
36783678
Use this method to edit only the reply markup of messages.
36793679
@@ -4264,7 +4264,7 @@ def edit_message_caption(
42644264
inline_message_id: Optional[str]=None,
42654265
parse_mode: Optional[str]=None,
42664266
caption_entities: Optional[List[types.MessageEntity]]=None,
4267-
reply_markup: Optional[REPLY_MARKUP_TYPES]=None) -> Union[types.Message, bool]:
4267+
reply_markup: Optional[types.InlineKeyboardMarkup]=None) -> Union[types.Message, bool]:
42684268
"""
42694269
Use this method to edit captions of messages.
42704270

0 commit comments

Comments
 (0)