mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 22:47:00 +00:00
Add Cloud Password Support
This commit is contained in:
parent
7a6191871d
commit
6f9c328349
4 changed files with 52 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue