What USER_ALREADY_PARTICIPANT means
In the error table for the messages.importChatInvite method, the code is described as: the user is already in the group, with response code 400. It comes back when the account tries to join by invite link a chat where it is already a member.
Why it appears
- The same chat got into the list twice, for example by link and by username.
- The account joined earlier, and you built the list after that.
- The join was repeated after a dropped connection, although the first request had gone through.
What to do
- Do not fix anything: the account is already inside, and the goal is reached.
- Remove duplicates from the chat list so you do not send extra requests.
- If you need to confirm membership, open the chat from this account in the Telegram app.