When the operator misses a QR and retries /pair for the same label, the previous pairing flow (Baileys session in memory + Telegram message id + event listener) was still alive. Multiple listeners then raced to edit the same QR message, surfacing as 400 'message is not modified' errors. Fixes: - Track one listener per account; new /pair tears down the previous one - Stop the existing Baileys session and wipe its session dir so the new attempt starts from a clean slate - Skip duplicate QR pushes (Baileys can re-emit identical QR strings) - Fall back to a fresh photo if editMessageMedia fails for any reason
Description
No description provided
Languages
TypeScript
97.8%
Shell
1.2%
Dockerfile
0.5%
CSS
0.5%