How do you clear the Open Graph cache of an URL on Telegram?
Asked Answered
L

5

85

When I send a new link on Telegram, it automatically reads Open Graph data of the URL and generates a preview of the page.

When the Open Graph data of the same page changes, though, Telegram doesn't update its preview: it has cached the old Open Graph data!

How do you clear the Open Graph cache?

Preview Example:

For the URL https://asp.net/ Telegram is reading the following tags:

<meta property="og:site_name" content="Microsoft">
<meta property="og:title" content="ASP.NET | Open-source web framework for .NET">
<meta name="twitter:image" content="https://dotnet.microsoft.com/images/redesign/social/large.png">
<meta property="og:description" content="ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript." />

And is generating the following preview:

enter image description here

Leathaleather answered 10/1, 2016 at 16:32 Comment(1)
send another link to redirect to your desired link, Maybe works.Carpospore
A
142

Use @webpagebot

You can send the link [up to 10] you want to update to this Bot and it will scan your site and generate the new image thumbnail, site name and description.

Note: You may need to restart your Telegram client to see the updates

Images are cached too. Update them the same way. Be sure they're specified using Open Graph but note you do not need to use the prefix attribute on your html tag to define the OG namespace.


Second solution:

Use a pattern like the following pattern for your web address:

http://{webpage address}?v={number}

Then replace previous number with a new one to force telegram update og data.

For example use this:

http://www.example.com/mypage?v=3

Instead of:

http://www.example.com/mypage
Addison answered 2/2, 2016 at 14:31 Comment(3)
The bot that worked for me is @WebpageBot (the one in lowercase doesn't answer)Halifax
The patterns dosent worked for me, but the bot done it right, thanks!Waine
Unfortunately, this doesn't work anymore! [Jan 2024]Delightful
D
51

Go to @webpagebot and send the link (up to 10) you want to update.

Drooff answered 27/5, 2016 at 11:50 Comment(4)
It didn't update for me. I sent the command updatepreview But it sent the same preview back to me. But url shortener worked fine.Inner
the same for me. Bot says ''...all is fine" but it isn't trueCordellcorder
Guys you should restart Telegram client to see updated cardPostage
Unfortunately, this doesn't work anymore! [Jan 2024]Delightful
T
9

you must chat with [@webpagebot][1] both and tell him in chat

https://theurlyouwanttoupdate.com /updatepreview
Trescott answered 4/9, 2018 at 13:1 Comment(1)
Notice that correct bot name is not webpage but webpagebot insteadBountiful
L
6

I've solved this problem by using bitly.com and changing url.

Leathaleather answered 7/2, 2016 at 12:27 Comment(0)
D
0

Important addition: None of the "meta property" strings (og:site_name, og:title, og:description) should contain the same data. Such strings are not accepted by Telegram bot and therefore Open Graph does not work there. At least that's the way it is at the moment, I tested it today. Maybe someday Telegram will fix it.

Dish answered 22/7, 2023 at 8:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.