Add Cloud Password Support

This commit is contained in:
Afshin Arani 2016-11-16 17:01:00 +03:30
parent 7a6191871d
commit 6f9c328349
4 changed files with 52 additions and 2 deletions

View file

@ -309,6 +309,10 @@ namespace TLSharp.Core.Network
{
throw new InvalidPhoneCodeException("The numeric code used to authenticate does not match the numeric code sent by SMS/Telegram");
}
else if (errorMessage == "SESSION_PASSWORD_NEEDED")
{
throw new CloudPasswordNeededException("This Account has Cloud Password !");
}
else
{
throw new InvalidOperationException(errorMessage);