How to force telegram to update the link preview?
Asked Answered
H

4

121

Telegram show description meta tag as link preview. I changed the description meta tag but the link preview of my website didn't changed. How to force telegram to update link preview?

Hippocrene answered 8/2, 2016 at 11:48 Comment(0)
N
259

Go to @webpagebot and send the link (up to 10) you want to update. Automatically will scan your site and generate the new image thumbnail, site name and description.

Remember to have og prefix in your html tag as: <html prefix="og: http://ogp.me/ns#"> or telegram bot will not update the graph cache.

via telegramgeeks

Nahtanha answered 4/3, 2016 at 10:15 Comment(13)
How I can tell telegram to run my javascript code before capturing meta data?Quarterly
I think it's not supported.Nahtanha
@rezcash ask Telegram support for this.Nahtanha
I’ve tried it, it doesn’t work when I update my website.Afebrile
@Afebrile try again or ask Telegram support.Nahtanha
I forgot to add prefix="og: http://ogp.me/ns#" to the head. After added this Telegram bot updated preview of my website.Afebrile
@rezCash You can't. Meta data is in the <meta> tag. javascript is not ran by a server, only a browser can interpret it.Grillo
@rezKesh use server side renderingAdulterant
@AvenDesta yes, it's official bot.Nahtanha
As far as I can tell, the og prefix in the html tag isn't required anymore.Malinowski
Worked for me, thanks. Though I would have never guessed I'm supposed to do this manually just for my website description to show correctly on Telegram link previews...Presidio
Worked awesome.Rase
Unfortunately, this doesn't work anymore! [Jan 2024]Phosphide
D
20

You may add /?v=n at the end of URL when sharing the link, where n can be any number and should increase after an update.

Diatomaceous answered 4/2, 2018 at 9:42 Comment(1)
works for me, thanks!Rehnberg
N
5

Sending the pure link to @webpagebot would not work so I used

<meta property="og:url" content="https://mylink.com" />

and it worked.

Nightgown answered 26/5, 2019 at 1:9 Comment(1)
The mentioned bot is not to generate preview for you (w/o appropriate meta-tag)!Phosphide
G
1

Actually it still works, added this line of code to my html head:

<meta prefix="og: http://ogp.me/ns#" /> 

then move to telegram bot and update your link 10 times:https://telegram.me/webpagebot?.

Once you have done that, you can copy your link again and the preview comes out.

Govea answered 15/7, 2022 at 16:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.