如何清除 Telegram 上 URL 的 Open Graph 缓存? [英] How do you clear the Open Graph cache of an URL on Telegram?

查看:73
本文介绍了如何清除 Telegram 上 URL 的 Open Graph 缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 Telegram 上发送新链接时,它会自动读取 URL 的

解决方案

使用 @webpagebot

您可以将要更新的链接 [最多 10 个] 发送到此 Bot,它会扫描您的网站并生成新的 图像缩略图网站名称描述.

<块引用>

注意:您可能需要重新启动 Telegram 客户端才能查看更新

图像也被缓存.以同样的方式更新它们.确保它们是使用 Open Graph 指定的,但请注意 不需要在您的 prefix 属性上使用 prefixcode>html 标签来定义 OG 命名空间.

<小时>

第二种解决方案:

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

http://{网页地址}?v={number}

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

例如使用这个:

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

代替:

http://www.example.com/mypage

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:

解决方案

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

这篇关于如何清除 Telegram 上 URL 的 Open Graph 缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆