mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-23 23:34:28 +00:00
Add edit_message_text method
This commit is contained in:
parent
79e972df85
commit
1fe651f0b0
@ -482,3 +482,13 @@ class Client:
|
||||
)(progress=progress)
|
||||
)
|
||||
)
|
||||
|
||||
def edit_message_text(self, chat_id: int or str, message_id: int, text: str, disable_web_page_preview: bool = None):
|
||||
return self.send(
|
||||
functions.messages.EditMessage(
|
||||
peer=self.resolve_peer(chat_id),
|
||||
id=message_id,
|
||||
message=text,
|
||||
disable_web_page_preview=disable_web_page_preview or None
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user