Reputation: 1
I have a telegram channel and since yesterday it does not show the image preview of the links that I send with a bot.
I send links with my ID of amazon afiliates and it doesn't work.
Anyone knows how to solve it?
bot = telegram.Bot(bot_token)
bot.send_message(bot_chatID,
text='<b>Hello</b> \n <a href="//www.amazon.es/dp/B076MMCQWW?psc=1">https://www.amazon.es/dp/B076MMCQWW?psc=1</a>',
parse_mode=telegram.ParseMode.HTML)
Upvotes: 0
Views: 1161
Reputation: 140
If your goal is to create a link preview and not using html
markup, then this might help you:
bot = telegram.Bot(bot_token)
bot.send_message(
bot_chatID,
text='''*Hello*
[https://www.amazon.es/dp/B076MMCQWW?psc=1](https://www.amazon.es/dp/B076MMCQWW?psc=1)
''',
parse_mode=telegram.ParseMode.MARKDOWN,
disable_web_page_preview = False
)
Upvotes: 0