2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Update API scheme to layer 95.

This commit is contained in:
John Preston
2019-01-28 12:58:53 +03:00
parent a1baa23a52
commit e10c928207
7 changed files with 45 additions and 22 deletions

View File

@@ -160,11 +160,12 @@ void PhoneWidget::submit() {
//_sentRequest = MTP::send(MTPauth_CheckPhone(MTP_string(_sentPhone)), rpcDone(&PhoneWidget::phoneCheckDone), rpcFail(&PhoneWidget::phoneSubmitFail));
_sentRequest = MTP::send(
MTPauth_SendCode(
MTP_flags(0),
MTP_string(_sentPhone),
MTPBool(),
MTP_int(ApiId),
MTP_string(ApiHash)),
MTP_string(ApiHash),
MTP_codeSettings(
MTP_flags(0),
MTPstring())),
rpcDone(&PhoneWidget::phoneSubmitDone),
rpcFail(&PhoneWidget::phoneSubmitFail));
}