Document 'PHONE_NOT_OCCUPIED'

Co-Authored-By: Shrimadhav U K <SpEcHiDe@users.noreply.github.com>
This commit is contained in:
Devesh Pal 2022-03-01 14:36:27 +05:30
parent 341da0d9f5
commit 5aa683b6b3
2 changed files with 2 additions and 0 deletions

View File

@ -259,6 +259,7 @@ PHONE_CODE_EXPIRED,400,The confirmation code has expired
PHONE_CODE_HASH_EMPTY,400,The phone code hash is missing
PHONE_CODE_INVALID,400,The phone code entered was invalid
PHONE_MIGRATE_0,303,The phone number a user is trying to use for authorization is associated with DC {new_dc}
PHONE_NOT_OCCUPIED,400,
PHONE_NUMBER_APP_SIGNUP_FORBIDDEN,400,You can't sign up using this app
PHONE_NUMBER_BANNED,400,The used phone number has been banned from Telegram and cannot be used anymore. Maybe check https://www.telegram.org/faq_spam
PHONE_NUMBER_FLOOD,400,You asked for the code too many times.

1 name codes description
259 PHONE_CODE_HASH_EMPTY 400 The phone code hash is missing
260 PHONE_CODE_INVALID 400 The phone code entered was invalid
261 PHONE_MIGRATE_0 303 The phone number a user is trying to use for authorization is associated with DC {new_dc}
262 PHONE_NOT_OCCUPIED 400
263 PHONE_NUMBER_APP_SIGNUP_FORBIDDEN 400 You can't sign up using this app
264 PHONE_NUMBER_BANNED 400 The used phone number has been banned from Telegram and cannot be used anymore. Maybe check https://www.telegram.org/faq_spam
265 PHONE_NUMBER_FLOOD 400 You asked for the code too many times.

View File

@ -140,6 +140,7 @@ contacts.getTopPeers,user,TYPES_EMPTY
contacts.importContacts,user,
contacts.resetSaved,user,
contacts.resetTopPeerRating,user,PEER_ID_INVALID
contacts.resolvePhone,user,PHONE_NOT_OCCUPIED
contacts.resolveUsername,both,AUTH_KEY_PERM_EMPTY SESSION_PASSWORD_NEEDED USERNAME_INVALID USERNAME_NOT_OCCUPIED
contacts.search,user,QUERY_TOO_SHORT SEARCH_QUERY_EMPTY TIMEOUT
contacts.toggleTopPeers,user,

1 method usability errors
140 contacts.importContacts user
141 contacts.resetSaved user
142 contacts.resetTopPeerRating user PEER_ID_INVALID
143 contacts.resolvePhone user PHONE_NOT_OCCUPIED
144 contacts.resolveUsername both AUTH_KEY_PERM_EMPTY SESSION_PASSWORD_NEEDED USERNAME_INVALID USERNAME_NOT_OCCUPIED
145 contacts.search user QUERY_TOO_SHORT SEARCH_QUERY_EMPTY TIMEOUT
146 contacts.toggleTopPeers user