Add errors for chat restrictions (#4729)

This commit is contained in:
欧阳 2026-01-04 02:24:06 +08:00 committed by GitHub
parent 5efa1fe2ed
commit f3bd039f85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -528,3 +528,6 @@ WORKER_BUSY_TOO_LONG_RETRY,500,Telegram workers are too busy to respond immediat
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
CHAT_SEND_VOICES_FORBIDDEN,403,You cannot send voices results in this chat
CHAT_SEND_PHOTOS_FORBIDDEN,403,You cannot send photos results in this chat
CHAT_SEND_PLAIN_FORBIDDEN,403,You cannot send plain results in this chat

1 name codes description
528 YOU_BLOCKED_USER 400 You blocked this user
529 FROZEN_METHOD_INVALID 420 You tried to use a method that is not available for frozen accounts
530 FROZEN_PARTICIPANT_MISSING 400 Your account is frozen and can't access the chat
531 CHAT_SEND_VOICES_FORBIDDEN 403 You cannot send voices results in this chat
532 CHAT_SEND_PHOTOS_FORBIDDEN 403 You cannot send photos results in this chat
533 CHAT_SEND_PLAIN_FORBIDDEN 403 You cannot send plain results in this chat