Add Global::bot_info_manager().
This commit is contained in:
parent
8396faa832
commit
daa7c39688
@ -37,6 +37,7 @@ class AuthManager;
|
||||
class AutosaveManager;
|
||||
class BackgroundManager;
|
||||
class BoostManager;
|
||||
class BotInfoManager;
|
||||
class BusinessConnectionManager;
|
||||
class BusinessManager;
|
||||
class CallManager;
|
||||
@ -237,6 +238,13 @@ class Global final : public ActorContext {
|
||||
boost_manager_ = boost_manager;
|
||||
}
|
||||
|
||||
ActorId<BotInfoManager> bot_info_manager() const {
|
||||
return bot_info_manager_;
|
||||
}
|
||||
void set_bot_info_manager(ActorId<BotInfoManager> bot_info_manager) {
|
||||
bot_info_manager_ = bot_info_manager;
|
||||
}
|
||||
|
||||
ActorId<BusinessConnectionManager> business_connection_manager() const {
|
||||
return business_connection_manager_;
|
||||
}
|
||||
@ -657,6 +665,7 @@ class Global final : public ActorContext {
|
||||
ActorId<AutosaveManager> autosave_manager_;
|
||||
ActorId<BackgroundManager> background_manager_;
|
||||
ActorId<BoostManager> boost_manager_;
|
||||
ActorId<BotInfoManager> bot_info_manager_;
|
||||
ActorId<BusinessConnectionManager> business_connection_manager_;
|
||||
ActorId<BusinessManager> business_manager_;
|
||||
ActorId<CallManager> call_manager_;
|
||||
|
@ -3713,6 +3713,7 @@ void Td::init_managers() {
|
||||
G()->set_boost_manager(boost_manager_actor_.get());
|
||||
bot_info_manager_ = make_unique<BotInfoManager>(this, create_reference());
|
||||
bot_info_manager_actor_ = register_actor("BotInfoManager", bot_info_manager_.get());
|
||||
G()->set_bot_info_manager(bot_info_manager_actor_.get());
|
||||
business_connection_manager_ = make_unique<BusinessConnectionManager>(this, create_reference());
|
||||
business_connection_manager_actor_ = register_actor("BusinessConnectionManager", business_connection_manager_.get());
|
||||
G()->set_business_connection_manager(business_connection_manager_actor_.get());
|
||||
|
Loading…
Reference in New Issue
Block a user