From 1fe651f0b06c132688a7875ea63f198f1cf654fe Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 6 Dec 2017 21:48:25 +0100 Subject: [PATCH] Add edit_message_text method --- pyrogram/client/client.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 57133837..2d624906 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -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 + ) + )