1
0
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:
Enrico Fasoli 2015-09-05 15:51:05 +02:00
parent 7ab5395f7d
commit d83f50e317

View File

@ -119,7 +119,8 @@ data.onPhoneNumber = function(something,s){
var mindate = moment()
data.log('Checking your phone number with Telegram...')
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)
}
//data.log('Res:',JSON.stringify(result))