Home>

I am working on a telegram bot with the aiogram library. I'm using Markdown .

I need the output to display text with a link embedded in the word without additional information about the site transmitted in the link. How to do this? (I attach the photo below)

I can make a link to a word, but I don't need to see additional information (it is superfluous), since it can take up a lot of space in a telegram

@ dp.message_handler (commands= ['Python'])
async def process_start_command (message: types.Message):
    await bot.send_message (message.from_user.id, "Hello Python! [python] (https://www.python.org/)", parse_mode= "Markdown")

[]

Thanks in advance!

  • Answer # 1

    After parse_mode add an extra parameter

    disable_web_page_preview= True
    

    I can't help but thank you :-) Thank you very much!

    Искатель программ всея Руси2021-12-29 08:17:30