2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Support complex invite-users responses.

This commit is contained in:
John Preston
2024-04-01 22:39:29 +04:00
parent 3cdb528dfe
commit c0117e72ad
15 changed files with 631 additions and 43 deletions

View File

@@ -3862,7 +3862,7 @@ void ApiWrap::sendBotStart(
Expects(bot->isBot());
if (chat && chat->isChannel() && !chat->isMegagroup()) {
ShowAddParticipantsError(show, "USER_BOT", chat, { 1, bot });
ShowAddParticipantsError(show, "USER_BOT", chat, bot);
return;
}
@@ -3894,7 +3894,7 @@ void ApiWrap::sendBotStart(
}).fail([=](const MTP::Error &error) {
if (chat) {
const auto type = error.type();
ShowAddParticipantsError(show, type, chat, { 1, bot });
ShowAddParticipantsError(show, type, chat, bot);
}
}).send();
}