Update API scheme on layer 145.

This commit is contained in:
John Preston
2022-08-12 22:08:59 +03:00
parent e22bb40dd1
commit 77772caabb
6 changed files with 81 additions and 34 deletions
+3 -1
View File
@@ -381,9 +381,11 @@ void CodeWidget::submit() {
_sentCode = text;
getData()->pwdState = Core::CloudPasswordState();
_sentRequest = api().request(MTPauth_SignIn(
MTP_flags(MTPauth_SignIn::Flag::f_phone_code),
MTP_string(getData()->phone),
MTP_bytes(getData()->phoneHash),
MTP_string(_sentCode)
MTP_string(_sentCode),
MTPEmailVerification()
)).done([=](const MTPauth_Authorization &result) {
codeSubmitDone(result);
}).fail([=](const MTP::Error &error) {