3

Here is a Sample Code I use to Send a Reply to a User (A Python Telegram Bot)

        conf_mes = await e.reply(
            f"<a href='https://URL'>My Text</a>/n/n ..Description..",
            parse_mode="html",
            buttons=buts,
        )

How can I Disable Web Page Preview, When bot send Msg to User!

CallMeStag
  • 5,467
  • 1
  • 7
  • 22
IruPC
  • 31
  • 1
  • 5
  • Please provide the library name with your question. – ELAi Oct 07 '21 at 01:30
  • 1
    Does this answer your question? [pyTelegramBotAPI disable link preview](https://stackoverflow.com/questions/59535901/pytelegrambotapi-disable-link-preview). Even if that's not the library that you're using, the parameter should be available, since is specified by the Bot API. – CallMeStag Oct 07 '21 at 06:24

1 Answers1

8

add this parameter in the sendMessage method

disable_web_page_preview=True