Currently writing my first bot using pyTelegramBotAPI. I want to disable link previews on certain messages. How do I do this?
Question posted in Telegram API
A comprehensive official documentation can be found here.
A comprehensive official documentation can be found here.
3
Answers
It looks like there is an
disable_web_page_preview
parameter on thesendMessage
method.Original code;
Try using
link_preview
/disable_web_page_preview
parameter.To me this works:
(Python 3.8, Telethon 1.24)