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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user