| 2310 | } |
| 2311 | |
| 2312 | bool IsBotUserCreatesTopics(not_null<PeerData*> peer) { |
| 2313 | if (const auto user = peer->asUser()) { |
| 2314 | return user->botInfo && user->botInfo->userCreatesTopics; |
| 2315 | } |
| 2316 | return false; |
| 2317 | } |
| 2318 | |
| 2319 | bool IsBotCreatesTopics(not_null<const PeerData*> peer) { |
| 2320 | if (const auto user = peer->asUser()) { |
no test coverage detected