What PEER_ID_INVALID means
Every user, group and channel in Telegram has a numeric id. But an account can reach a peer by the number alone only if it has already "met" them: seen them in a shared chat, in contacts, or found them by username. Otherwise Telegram answers PEER_ID_INVALID. In programs built on Telethon, a similar situation looks like "Could not find the input entity".
Why it happens
- The list was collected by another account, and your account does not recognize the ids in it.
- The person has no username, so they can be found only through a shared chat.
- The list has a mistake: a cut-off or someone else's id.
What to do
- Write by username, not by id. That way the account finds the person on its own.
- If there is no username, the account can reach the person through a shared group they belong to.
- Check that the id in your list is not cut off or mixed up.
How TG Combine handles it
The parser saves the username, id and names, and a direct-message mailing writes by username first. Targets the account cannot reach are skipped, and the reason is written to the log.