MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / IsBotUserCreatesTopics

Function IsBotUserCreatesTopics

Telegram/SourceFiles/data/data_peer.cpp:2312–2317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2310}
2311
2312bool 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
2319bool IsBotCreatesTopics(not_null<const PeerData*> peer) {
2320 if (const auto user = peer->asUser()) {

Callers 3

refreshRowsMethod · 0.85
prepareSendActionMethod · 0.85

Calls 1

asUserMethod · 0.80

Tested by

no test coverage detected