Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does telegram shows the Icon of some websites?

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 message:

Image

The first website is vajehyab.com and it has a favicon too (But do not showing that website icon), and the second is Stackoverflow and as you see the logo of stackoverflow and a litle description shows beside it.

Does websites do something or having some metadata that allow Telegram to access their logo, or it is an static program form Telegram programmers and the set some famous websites logo?


2 Answers

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" />
like image 62
Manikiran Avatar answered Sep 10 '25 12:09

Manikiran


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

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

and use telegrams @WebpageBot afterwards

like image 34
Dmitriy Kuznetsov Avatar answered Sep 10 '25 11:09

Dmitriy Kuznetsov