This is an issue in the Telegram Bot API (option missing in this form).
This has happened to me several times.
My bot does a series of restrictChatMember requests for the same user on several chats. It does 5 requests, waits a few seconds, then 5 more, and so on, on a total of about 40 chats.
Sometimes, completely randomly and for no reason, all the 5 request in one of the "bursts" fail with the nonsensical error "user not found".
But that makes no sense because the user does exist, and a lot of other restrictChatMember requests for the same user on other chats succeed. Minutes or hours later, I make the bot repeat the exact same requests that failed and they succeed.
This is utterly random. It does not happen often but it does happen from time to time.
Steps to reproduce
This is an issue in the Telegram Bot API (option missing in this form).
This has happened to me several times.
My bot does a series of restrictChatMember requests for the same user on several chats. It does 5 requests, waits a few seconds, then 5 more, and so on, on a total of about 40 chats.
Sometimes, completely randomly and for no reason, all the 5 request in one of the "bursts" fail with the nonsensical error "user not found".
But that makes no sense because the user does exist, and a lot of other restrictChatMember requests for the same user on other chats succeed. Minutes or hours later, I make the bot repeat the exact same requests that failed and they succeed.
This is utterly random. It does not happen often but it does happen from time to time.