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

Telegram users without usernames are mentioned incorrectly #41

Open
ishevche opened this issue Oct 28, 2023 · 1 comment
Open

Telegram users without usernames are mentioned incorrectly #41

ishevche opened this issue Oct 28, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers high-priority

Comments

@ishevche
Copy link
Contributor

Sellers without usernames are displayed incorrectly in the listing.
For such users, their user IDs are displayed where the username is supposed to be, resulting in the mention @[some numbers here]. Such mentions are parsed by Telegram incorrectly, as it treats these IDs as actual usernames.

To Reproduce
Steps to reproduce the behavior:

  1. Get a Telegram account without a username.
  2. Add an item using the bot.
  3. In the moderator chat or channel, the seller mention is displayed incorrectly and is not traversable.

Additional
It is possible to create a link to a user using formatting: [some text](tg://user?id=), then, with the proper formatting method, "some text" will be displayed as a link to an account. With this method, there might be some issues with account privacy settings.

@Salz0 Salz0 added bug Something isn't working high-priority good first issue Good for newcomers labels Oct 29, 2023
@Salz0
Copy link
Owner

Salz0 commented Nov 6, 2023

I would suggest after the /start command to request the user to either share their phone number, if their tag isn't there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers high-priority
Projects
None yet
Development

No branches or pull requests

2 participants