public MessageAdapterFactory(TelegramBotClient bot, ChatSettings chatSettings, ReactionsList reactions, BoyanList boyans) { _bot = bot; _chatSettings = chatSettings; _reactions = reactions; _boyans = boyans; }
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; }
public BoyanAdapter(TelegramBotClient bot, BoyanList boyans) : base(bot, boyans) { }
private static void LoadBoyans() { var boyansString = ReadSettings("boyans.json"); _boyans = JsonConvert.DeserializeObject <BoyanList>(boyansString) ?? new BoyanList(); }