示例#1
0
        internal static ITelegramBotClient GetTelegramBotClient()
        {
            if (telegramBotClient == null)
            {
                telegramBotClient = new TelegramBotClient(BotToken.Get());
            }

            return(telegramBotClient);
        }
示例#2
0
 private ModulesManager()
 {
     telegramBotClient = new TelegramBotClient(BotToken.Get());
     messageManager    = new MessageManager();
     sessionManager    = new SessionManager();
     userManager       = new UserManager();
     secureManager     = new SecureManager();
     databaseManager   = new DatabaseManager();
 }