Exemplo n.º 1
0
      public static async Task MainAsync()
      {
          PrivateData.Read();
          await DataManager.ReadAllDataAsync();

          await BotClient.PrepareAsync();

          bool launchResult = false;

          while (!launchResult)
          {
              launchResult = await BotClient.Launch();
          }
          await BotClient.Log(new LogMessage(LogSeverity.Info, "", "Бот запущен"));

          await Task.Delay(-1);
      }