1616# You should have received a copy of the GNU Lesser General Public License
1717# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818
19- from typing import Optional
19+ from typing import Optional , List
2020
2121import pyrogram
2222from pyrogram import raw , enums
@@ -31,6 +31,7 @@ async def edit_inline_text(
3131 inline_message_id : str ,
3232 text : str ,
3333 parse_mode : Optional ["enums.ParseMode" ] = None ,
34+ entities : List ["types.MessageEntity" ] = None ,
3435 disable_web_page_preview : bool = None ,
3536 reply_markup : "types.InlineKeyboardMarkup" = None
3637 ) -> bool :
@@ -49,6 +50,9 @@ async def edit_inline_text(
4950 By default, texts are parsed using both Markdown and HTML styles.
5051 You can combine both syntaxes together.
5152
53+ entities (List of :obj:`~pyrogram.types.MessageEntity`):
54+ List of special entities that appear in message text, which can be specified instead of *parse_mode*.
55+
5256 disable_web_page_preview (``bool``, *optional*):
5357 Disables link previews for links in this message.
5458
@@ -82,7 +86,7 @@ async def edit_inline_text(
8286 id = unpacked ,
8387 no_webpage = disable_web_page_preview or None ,
8488 reply_markup = await reply_markup .write (self ) if reply_markup else None ,
85- ** await self . parser . parse ( text , parse_mode )
89+ ** await utils . parse_text_entities ( self , text , parse_mode , entities )
8690 ),
8791 sleep_threshold = self .sleep_threshold
8892 )
0 commit comments