Beispiel #1
0
 def write(self, reply_markup):
     return types.InputBotInlineMessageText(
         no_webpage=self.disable_web_page_preview or None,
         reply_markup=reply_markup.write() if reply_markup else None,
         **(HTML() if self.parse_mode.lower() == "html" else Markdown()).parse(self.message_text)
     )
Beispiel #2
0
 async def write(self, reply_markup):
     return types.InputBotInlineMessageText(
         no_webpage=self.disable_web_page_preview or None,
         reply_markup=reply_markup.write() if reply_markup else None,
         **await (Parser(None)).parse(self.message_text, self.parse_mode))