When you share a link in Telegram, the app automatically generates a preview with a title, description, and image. If the default image is wrong, missing, or just not what you want, you can change it—but only if you control the webpage or the social media tags it uses. This guide walks you through the two main methods: editing the Open Graph tags on your site, and forcing Telegram to refresh its cache. You’ll need access to your website’s HTML files or a CMS that lets you edit meta tags.
What You’ll Need
- Access to the HTML source of the webpage (via a code editor, CMS, or website builder).
- A hosted image file (PNG, JPG, or GIF) that you want to use as the preview. It should be at least 300×200 pixels, but 1200×630 is recommended for best quality.
- Telegram Desktop or Web version (the refresh trick is easiest there).
Step-by-Step
- Identify the current preview source. Open your link in Telegram and click on the preview to see where the image comes from. Usually it’s pulled from Open Graph (og:image) or Twitter Card (twitter:image) meta tags in your page’s <head> section.
- Upload your new image. Host the image somewhere publicly accessible—your own server, a CDN, or a free image host. Note the full URL (e.g.,
https://example.com/images/preview.jpg). - Edit the Open Graph tags. In your HTML, find or add the following meta tags in the <head> section:
<meta property="og:image" content="https://example.com/images/preview.jpg" /> <meta property="og:image:width" content="1200" /> <meta property="og:image:height" content="630" /> <meta property="og:title" content="Your Page Title" /> <meta property="og:description" content="Your page description." />
If your page uses Twitter Cards, also update
twitter:image,twitter:title, andtwitter:description. - Save and publish the changes. Upload the modified HTML file to your server, or save the changes in your CMS. Make sure the image URL is accessible—test it in a browser (it should load directly).
- Force Telegram to refresh its cache. Telegram caches previews aggressively. To clear the old one, paste your link into Telegram Desktop or Web, and send it to a chat (like “Saved Messages”). Then click on the preview and select “Refresh preview” from the menu (the three-dot icon next to the preview). If you don’t see that option, delete the message and resend after a few minutes.
- Verify the new preview. After refreshing, the preview should update. If it doesn’t, try the troubleshooting steps below.
Common Mistakes
- Using a relative URL like
/images/preview.jpginstead of an absolute URL (https://example.com/images/preview.jpg). Telegram cannot resolve relative paths. - Image too small. Telegram may ignore images smaller than 300×200 pixels. Use at least 600×315 for best results.
- Forgetting to update Twitter Card tags. Telegram sometimes falls back to Twitter Card tags if Open Graph is missing. Update both to be safe.
- Editing the wrong file. If your site uses a CMS, the meta tags might be in a template file, not the main page. Check your theme’s header.php or equivalent.
- Not clearing the cache. Even after updating tags, Telegram may show the old preview for days unless you manually refresh.
Tips
- Use a dedicated preview image. A custom image with text or a logo often performs better than a generic screenshot.
- Test with the Telegram Bot API. If you’re a developer, use the
getMeandsendMessagemethods with a link to see what preview Telegram generates—but that’s more advanced. - Set og:image:width and height. Providing dimensions helps Telegram render the preview faster and avoids layout shifts.
- Use a CDN for the image. A fast-loading image ensures the preview appears quickly.
Troubleshooting
Preview still shows the old image after refreshing. This usually means the cache hasn’t cleared. Try the following:
- Use Telegram’s BotFather to create a bot and send the link to it—sometimes that forces a fresh fetch.
- Add a query string to your URL (e.g.,
?v=2) to trick Telegram into treating it as a new link. This is a quick workaround. - Wait a few hours. Telegram’s cache may take time to expire.
No preview appears at all. This happens when the Open Graph tags are missing or malformed. Validate your page using Facebook’s Sharing Debugger (it checks og tags) or a similar tool. Ensure the meta tags are in the <head> section, not the body.
Image loads in a browser but not in Telegram. Check if your server blocks bots. Telegram uses a user agent that might be blocked by your firewall. Allow Telegram’s crawler (user agent: TelegramBot) in your server settings.
Frequently Asked Questions
Can I change the preview image for someone else’s link?
No. You only control previews for pages you own. For other sites, you’d need to contact the site owner or use a link shortener that lets you customize the preview (like some social sharing tools).
Why does Telegram show a different image than Facebook or Twitter?
Each platform has its own caching and may prioritize different meta tags. Telegram primarily uses Open Graph, but if it’s missing, it falls back to Twitter Card or other heuristics like the first image on the page.
Does the image need to be a specific size?
Telegram recommends at least 300×200, but for high-quality previews, use 1200×630 (the standard Open Graph size). Larger images are scaled down, but very small ones may be ignored.
How long does it take for Telegram to update the preview?
It can take from a few minutes to a few days. Using the “Refresh preview” feature on Desktop usually updates it instantly.
Can I use a GIF as the preview image?
Yes, Telegram supports GIFs in link previews. Just set the og:image URL to a GIF file. Keep the file size reasonable (under 1MB) to avoid slow loading.
What if my site is a single-page app (React, Vue)?
SPAs often render meta tags via JavaScript, which Telegram’s crawler may not execute. You’ll need to use server-side rendering (SSR) or a pre-rendering service to serve the correct tags to bots.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix msmpeg2vdec.dll Errors in Windows
- How to Update Sonos App and Speakers
- Unlock iPad Without Apple ID: Is It Possible?
- iOS 18 WhatsApp Notifications Not Working? Fix
- Fix Windows Cannot Locate Suitable Printer Driver
- How to Group Text and Pictures in Word