Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Incorrect non-ASCII text processing in link with ?text=<draft_text> #1201

Open
Drovosek01 opened this issue Dec 21, 2024 · 0 comments
Open

Comments

@Drovosek01
Copy link

Drovosek01 commented Dec 21, 2024

Steps to reproduce

  1. Find any real Telegram username (or use your own)
  2. Create and open link in Browser https://t.me/<username>?text=Привет это тестовый текст `any 123 code`

Or in Terminal in macOS execute command open 'tg://resolve?domain=<username>&text=Привет это тестовый текст \`any 123 code\`'

  1. In Browser in dialog Window click "Open Telegram.app"
  2. Will opened Telegram application and started chat with written message %D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82 %D1%8D%D1%82%D0%BE %D1%82%D0%B5%D1%81%D1%82%D0%BE%D0%B2%D1%8B%D0%B9 %D1%82%D0%B5%D0%BA%D1%81%D1%82 %60any 123 code%60

Expected behaviour

I expect that the text that I wrote will be inserted into the message input field, even if it is not ASCII characters. There should probably be a decodeURIComponent() type function running under the hood of Telegram application.

Actual behaviour

Instead of Привет это тестовый текст `any 123 code` text, I get %D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82 %D1%8D%D1%82%D0%BE %D1%82%D0%B5%D1%81%D1%82%D0%BE%D0%B2%D1%8B%D0%B9 %D1%82%D0%B5%D0%BA%D1%81%D1%82 %60any 123 code%60

Operating system

macOS Monterey 12.7 Intel
macOS Squoia 15.2 ARM

Version of Telegram Desktop

11.5.269855 Stable

Installation source

Static binary from official website


On Windows 10 all works good and Windows version Telegram have no this bug

@Drovosek01 Drovosek01 changed the title Incorrect Cyrillic text processing in link with ?text=<draft_text> BUG: Incorrect Cyrillic text processing in link with ?text=<draft_text> Dec 21, 2024
@Drovosek01 Drovosek01 changed the title BUG: Incorrect Cyrillic text processing in link with ?text=<draft_text> BUG: Incorrect non-ASCII text processing in link with ?text=<draft_text> Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant