Add custom error types for new FROZEN codes

This commit is contained in:
Aayco (Coder) 2025-05-26 22:04:26 +03:00 committed by GitHub
parent 1db71f6d7d
commit 69e4493c04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -525,3 +525,5 @@ WEBPUSH_KEY_INVALID,400,The specified web push elliptic curve Diffie-Hellman pub
WEBPUSH_TOKEN_INVALID,400,The specified web push token is invalid
WORKER_BUSY_TOO_LONG_RETRY,500,Telegram workers are too busy to respond immediately
YOU_BLOCKED_USER,400,You blocked this user
FROZEN_METHOD_INVALID,420,You tried to use a method that is not available for frozen accounts
FROZEN_PARTICIPANT_MISSING,400,Your account is frozen and can't access the chat

1 name codes description
525 WEBPUSH_TOKEN_INVALID 400 The specified web push token is invalid
526 WORKER_BUSY_TOO_LONG_RETRY 500 Telegram workers are too busy to respond immediately
527 YOU_BLOCKED_USER 400 You blocked this user
528 FROZEN_METHOD_INVALID 420 You tried to use a method that is not available for frozen accounts
529 FROZEN_PARTICIPANT_MISSING 400 Your account is frozen and can't access the chat