mirror of
https://github.com/fazo96/telecommander.git
synced 2025-01-10 11:34:20 +01:00
implemented error message for PHONE_MIGRATE_X (fix coming soon)
This commit is contained in:
parent
7ab5395f7d
commit
d83f50e317
@ -119,7 +119,8 @@ data.onPhoneNumber = function(something,s){
|
|||||||
var mindate = moment()
|
var mindate = moment()
|
||||||
data.log('Checking your phone number with Telegram...')
|
data.log('Checking your phone number with Telegram...')
|
||||||
data.client.auth.sendCode(data.user.phone,5,'en',function(result){
|
data.client.auth.sendCode(data.user.phone,5,'en',function(result){
|
||||||
if(result.err_code){
|
if(result.instanceOf('mtproto.type.Rpc_error')){
|
||||||
|
data.switchToBox(data.statusWindow)
|
||||||
return data.log('Errors:',result.error_code,result.error_message)
|
return data.log('Errors:',result.error_code,result.error_message)
|
||||||
}
|
}
|
||||||
//data.log('Res:',JSON.stringify(result))
|
//data.log('Res:',JSON.stringify(result))
|
||||||
|
Loading…
Reference in New Issue
Block a user