what should be structure of website to retrieve site information in telegram?

谁说我不能喝 提交于 2019-12-07 07:37:13

问题


Some website retrieved information in telegram when send link and some website doesn't like this:

So my question is there any structure for website to load information in telegram ?


回答1:


The Open Graph protocol enables any web page to become a rich object in a social graph like Facebook, twitter, telegram, Skype and ...

As an example, the following is the Open Graph protocol markup for The Rock on IMDB:

<html prefix="og: http://ogp.me/ns#">
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
...
</head>
...
</html>



回答2:


Simply use meta tag with name description:

<head>
<meta name='description' content="some content"/>
</head>


来源:https://stackoverflow.com/questions/31376378/what-should-be-structure-of-website-to-retrieve-site-information-in-telegram

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!