Пример #1
0
        private async Task StartBot()
        {
            await _machine.AsyncStart(new VersionCheckState(), _session);

            if (_settings.UseTelegramApi)
            {
                _session.Telegram = new TelegramService(_settings.TelegramApiKey, _session);
            }
            _settings.CheckProxy();
            QuitEvent.WaitOne();
        }