Example #1
0
 public MessageAdapterFactory(TelegramBotClient bot, ChatSettings chatSettings, ReactionsList reactions, BoyanList boyans)
 {
     _bot          = bot;
     _chatSettings = chatSettings;
     _reactions    = reactions;
     _boyans       = boyans;
 }
Example #2
0
 public CommandAdapter(TelegramBotClient bot, ChatSettings chatSettings, BoyanList boyanList) : base(bot, chatSettings, boyanList)
 {
 }
 protected MessageAdapterBase(TelegramBotClient bot, BoyanList boyans) : this(bot)
 {
     Boyans = boyans;
 }
 protected MessageAdapterBase(TelegramBotClient bot, ChatSettings chatSettings, BoyanList boyans) : this(bot)
 {
     ChatSettings = chatSettings;
     Boyans       = boyans;
 }
Example #5
0
 public BoyanAdapter(TelegramBotClient bot, BoyanList boyans) : base(bot, boyans)
 {
 }
Example #6
0
        private static void LoadBoyans()
        {
            var boyansString = ReadSettings("boyans.json");

            _boyans = JsonConvert.DeserializeObject <BoyanList>(boyansString) ?? new BoyanList();
        }