Skip to content

Commit

Permalink
Pyrofork: Add support for bot business message in Message.edit_{text,…
Browse files Browse the repository at this point in the history
…caption} bound methods

Signed-off-by: wulan17 <wulan17@nusantararom.org>
  • Loading branch information
wulan17 committed Apr 6, 2024
1 parent 007f6e3 commit 5b94ef7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyrogram/types/messages_and_media/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -3968,10 +3968,12 @@ async def edit_text(
Raises:
RPCError: In case of a Telegram RPC error.
"""

return await self._client.edit_message_text(
chat_id=self.chat.id,
message_id=self.id,
text=text,
business_connection_id=self.business_connection_id,
parse_mode=parse_mode,
entities=entities,
disable_web_page_preview=disable_web_page_preview,
Expand Down Expand Up @@ -4028,6 +4030,7 @@ async def edit_caption(
chat_id=self.chat.id,
message_id=self.id,
caption=caption,
business_connection_id=self.business_connection_id,
parse_mode=parse_mode,
caption_entities=caption_entities,
reply_markup=reply_markup
Expand Down

0 comments on commit 5b94ef7

Please sign in to comment.