In many libraries like python-telegram-bot , you now pass a LinkPreviewOptions object.
bot.sendMessage(chatId, "https://example.com", disable_web_page_preview: true ); Use code with caution. disable_web_page_preview
For PHP wrappers, the parameter is often passed within an arguments array to the request method: In many libraries like python-telegram-bot , you now
Is disable_web_page_preview always the right choice? No. A review would be incomplete without acknowledging the friction it introduces. - GitHub As of recent Telegram Bot API
[FEATURE] API 7.0 · Issue #4033 · python-telegram-bot/ ... - GitHub
As of recent Telegram Bot API updates, the disable_web_page_preview parameter is technically in favor of the more robust link_preview_options object. While the legacy boolean still works for backward compatibility, new projects should use the object to gain finer control, such as: is_disabled : The direct replacement for the boolean. url : The specific URL to use for the preview. prefer_small_media : To force a smaller thumbnail.