Andrej-Adamenko / Taskhelper

Telegram bot for managing tasks
0 stars 1 forks source link

Problem with adding users #60

Closed Lebed02 closed 1 month ago

Lebed02 commented 1 year ago

It is necessary to make it possible to add users via username and user id

Lebed02 commented 1 year ago

Sometimes when trying to update a user via id, the following message appears: Can't find user by provided id. Although this user is already in the system. If you update the user via "@" everything will go correctly and after that you will be able to update this user via id. Is this a telegram problem?

In the console it says the following: INFO: Core api get_user(762156706) exception: Telegram says: [400 PEER_ID_INVALID] - The peer id being used is invalid or not known yet. Make sure you meet the peer before interacting with it

Note: problems with duplicate tickets described in task #57 are still observed

DnRuban commented 9 months ago

Bot can't find a user by id if user hasn't written something to bot before, but it can always find the user by username. There is nothing we can do about this.

DnRuban commented 9 months ago

Updated /set_user_tag command to ensure that user has bot's chat so bot can access information about this user.

Lebed02 commented 9 months ago

Approved. Issues not found. All works good.