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

Fix inline bots with secondary usernames.

This commit is contained in:
John Preston
2023-11-01 16:39:36 +04:00
parent af5ad84e72
commit caa1ae4436
2 changed files with 3 additions and 8 deletions

View File

@@ -493,10 +493,7 @@ InlineBotQuery ParseInlineBotQuery(
result.lookingUpBot = true;
}
}
if (result.lookingUpBot) {
result.query = QString();
return result;
} else if (result.bot
if (result.bot
&& (!result.bot->isBot()
|| result.bot->botInfo->inlinePlaceholder.isEmpty())) {
result.bot = nullptr;