I've tried the following options, but I still see the link preview
await BOT.sendMessage(message.chat.id, uiMessage, menuOptions, {disable_web_page_preview: true })
await BOT.sendMessage(message.chat.id, uiMessage, menuOptions, { parse_mode: 'Markdown'})
await BOT.sendMessage(message.chat.id, uiMessage, menuOptions, { parse_mode: 'Markdown', disable_web_page_preview: true })
await BOT.sendMessage(message.chat.id, uiMessage, menuOptions, [{ parse_mode: 'Markdown'}, {disable_web_page_preview: true }])
The
disable_web_page_preview
is part of theoptions
parameter.Looking at the
sendMessage
documentation:So you should extend
menuOptions
to also includedisable_web_page_preview
:A litte snippet to test this:
Shows as: