2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-10-03 13:07:48 +00:00

Update API scheme on layer 180.

This commit is contained in:
John Preston
2024-05-16 12:54:39 +04:00
parent 363b700f1f
commit 5bfbae3afc
4 changed files with 17 additions and 8 deletions

View File

@@ -266,8 +266,10 @@ void CodeWidget::sendCall() {
_callStatus = CallStatus::Calling;
_callTimer.cancel();
_callRequestId = api().request(MTPauth_ResendCode(
MTP_flags(0),
MTP_string(getData()->phone),
MTP_bytes(getData()->phoneHash)
MTP_bytes(getData()->phoneHash),
MTPstring() // reason
)).done([=](const MTPauth_SentCode &result) {
callDone(result);
}).send();
@@ -376,8 +378,10 @@ void CodeWidget::noTelegramCode() {
return;
}
_noTelegramCodeRequestId = api().request(MTPauth_ResendCode(
MTP_flags(0),
MTP_string(getData()->phone),
MTP_bytes(getData()->phoneHash)
MTP_bytes(getData()->phoneHash),
MTPstring() // reason
)).done([=](const MTPauth_SentCode &result) {
noTelegramCodeDone(result);
}).fail([=](const MTP::Error &error) {