tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Image previews not working for (some?) IDN domain names

Open why opened this issue 9 years ago • 8 comments

Steps to reproduce

  1. Send a Telegram message containing a direct link to an image hosted on a website that uses an IDN domain name, for example: "http://ã.co/i/pMDWVn.png"
  2. Expect an image preview.
  3. ... Don't get one!

Expected behaviour

An image preview should appear in the Telegram message.

Actual behaviour

Only the URL to the image is being shown, no preview will ever show up.

Configuration

Windows 10

Telegram Desktop Version 1.0

My personal comment

Since I use my own domain, which happens to be an IDN domain name, for screenshot uploads, it's rather annoying for me and the people that I send screenshots to to not be able to get a preview, or even view the image within Telegram like you can using a regular domain name.

why avatar Jan 12 '17 21:01 why

@notmika it does work for currently:

image

It doesn't show that there is preview while you edit the message, because it is not recognized on the client side, but when you send it the preview gets there.

john-preston avatar Jan 13 '17 09:01 john-preston

@john-preston What in the world am I doing wrong then, it really never shows for me or anyone I send it to. I'll try again just now..

why avatar Jan 13 '17 09:01 why

I does work now, but it didn't work yesterday..

auchri avatar Jan 13 '17 09:01 auchri

What?! @auchri that's even more confusing. The image I used in my issue here does somehow work indeed, but now I'm trying some other image it still does not. Not even using the punycode version of the domain.

image

EDIT: In case someone wants to reproduce it using that URL: http://ã.co/i/FyoNYg.png

why avatar Jan 13 '17 10:01 why

I've tried it yesterday with the link you provided and Telegram was not showing a link preview.

I just tried it again and it works today ¯\_(ツ)_/¯

auchri avatar Jan 13 '17 10:01 auchri

@notmika there is a problem on server side, it will be fixed soon. Thanks for your report.

john-preston avatar Jan 13 '17 13:01 john-preston

Just saw this, thanks alot @john-preston :)

why avatar Jan 14 '17 11:01 why

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Mar 09 '21 17:03 github-actions[bot]