System:
- OS: Synology DSM Docker
- Version: 7.2.1
- Container version: boredazfcuk/icloudpd v1.0.1359_28-02-2026
Describe the bug
When I use the "user auth" command to notify the Telegram bot to update the cookies, I can receive the verification code from Apple. However, when I send the "user xxxxxx" command to submit the verification code, the log shows "ERROR Authentication failed." From the icloudpd logs, I can see that icloudpd used the previous verification code instead of the latest message received from Telegram. Below is a screenshot of the log at that time.

System:
Describe the bug
When I use the "user auth" command to notify the Telegram bot to update the cookies, I can receive the verification code from Apple. However, when I send the "user xxxxxx" command to submit the verification code, the log shows "ERROR Authentication failed." From the icloudpd logs, I can see that icloudpd used the previous verification code instead of the latest message received from Telegram. Below is a screenshot of the log at that time.