Replaced int botStatus with a type-safe Data::BotStatus enum class.

This commit is contained in:
23rd
2026-03-30 11:52:49 +03:00
parent 8f4b6f80ad
commit aa5e0440d4
12 changed files with 57 additions and 50 deletions
@@ -24,11 +24,11 @@ bool UseBotTextOptions(
return true;
}
} else if (const auto chat = history->peer->asChat()) {
if (chat->botStatus >= 0) {
if (chat->botStatus != Data::BotStatus::NoBots) {
return true;
}
} else if (const auto group = history->peer->asMegagroup()) {
if (group->mgInfo->botStatus >= 0) {
if (group->mgInfo->botStatus != Data::BotStatus::NoBots) {
return true;
}
}