feat: filter inline bot messages from blocked bots

This commit is contained in:
Ireina
2026-04-29 19:06:03 +08:00
committed by AlexeyZavar
parent 4de4665fc3
commit f3f6b349ea
@@ -33,6 +33,11 @@ bool filterBlocked(const not_null<HistoryItem*> item) {
return true;
}
}
if (const auto bot = item->viaBot()) {
if (isBlocked(bot)) {
return true;
}
}
return false;
}