Rename edit -> edit_text and reply -> reply_text bound methods · Python-Repository-Hub/pyrogram@3ae77d5 · GitHub
Skip to content

Commit 3ae77d5

Browse files
committed
Rename edit -> edit_text and reply -> reply_text bound methods
1 parent c485715 commit 3ae77d5

3 files changed

Lines changed: 18 additions & 18 deletions

File tree

docs/source/api/bound-methods.rst

Lines changed: 10 additions & 10 deletions

pyrogram/client/types/bots_and_keyboards/callback_query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,14 @@ def answer(self, text: str = None, show_alert: bool = None, url: str = None, cac
173173
cache_time=cache_time
174174
)
175175

176-
def edit(
176+
def edit_text(
177177
self,
178178
text: str,
179179
parse_mode: str = "",
180180
disable_web_page_preview: bool = None,
181181
reply_markup: "pyrogram.InlineKeyboardMarkup" = None
182182
) -> Union["pyrogram.Message", bool]:
183-
"""Bound method *edit* of :obj:`CallbackQuery`.
183+
"""Bound method *edit_text* of :obj:`CallbackQuery`.
184184
185185
Parameters:
186186
text (``str``):

pyrogram/client/types/messages_and_media/message.py

Lines changed: 6 additions & 6 deletions

0 commit comments

Comments
 (0)