2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Check if bot supports Telegram Business.

This commit is contained in:
John Preston
2024-03-28 18:22:03 +04:00
parent f65bc7c0bd
commit 0d740c21a2
4 changed files with 30 additions and 12 deletions

View File

@@ -722,6 +722,7 @@ not_null<UserData*> Session::processUser(const MTPUser &data) {
result->botInfo->inlinePlaceholder = QString();
}
result->botInfo->supportsAttachMenu = data.is_bot_attach_menu();
result->botInfo->supportsBusiness = data.is_bot_business();
result->botInfo->canEditInformation = data.is_bot_can_edit();
} else {
result->setBotInfoVersion(-1);