How does telegram shows the Icon of some websites?

后端 未结 2 1758
再見小時候
再見小時候 2021-02-05 05:06

I am working with telegram on windows and its online version on web.telegram.org, when I share a link with my friend Telegram shows the icon or logo of some websites in that mes

相关标签:
2条回答
  • 2021-02-05 05:19

    Just add these tags to your website

    <meta property="og:title" content="Title" />
    <meta property="og:site_name" content="Site name"/>
    <meta property="og:description" content="Description" />
    <meta property="og:image" content="Link to your logo" />
    
    0 讨论(0)
  • 2021-02-05 05:36

    As well as adding what @Manikiran proposed you need to add this

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

    and use telegrams @WebpageBot afterwards

    0 讨论(0)
提交回复
热议问题