如何清除 Telegram 上 URL 的 Open Graph 缓存?

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

当我在 Telegram 上发送新的 link 时,它会自动读取 URL 的 Open Graph 数据并生成页面预览。

当同一页面的 Open Graph 数据发生变化时,Telegram 不会更新其预览:它缓存了旧的 Open Graph 数据!

如何清除 Open Graph 缓存?

预览示例:

对于 URL https://asp.net/ Telegram 正在阅读以下标签:

<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." />

并且正在生成以下预览:

使用@webpagebot

您可以将要更新的 link [最多 10] 个发送到此 Bot,它会扫描您的网站并生成新的 image thumbnailsite namedescription.

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

图像也被缓存。以同样的方式更新它们。确保使用 Open Graph but note you do not need 指定它们以使用 html 标记上的 prefix 属性来定义 OG 命名空间。


第二种解决方案:

为您的网址使用类似于以下模式的模式:

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

然后用新的 number 替换以前的 number 以强制电报更新 og 数据。

例如使用这个:

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

而不是:

http://www.example.com/mypage

我已经通过使用 bitly.com 并更改 url.

解决了这个问题

转到@webpagebot 并发送您要更新的 link(最多 10 个)。

你必须和 [@webpagebot][1] 聊天并在聊天中告诉他

https://theurlyouwanttoupdate.com /updatepreview