public AdminTasker(TelegramFSMBot Bot) { this.Bot = Bot; TasksTimer.Elapsed += AdminTaskerTimerElapsed; TasksTimer.Start(); }
public BotMachine(long UserId, TelegramMessageSender sender, Type InitStateType, TelegramFSMBot Bot) { this.UserId = UserId; this.Sender = sender; this.InitStateType = InitStateType; this.Bot = Bot; BotState state = Activator.CreateInstance(InitStateType, UserId, this) as BotState; ActiveState = state; SubscribeActiveStateEvents(); }
public TestMachine(long UserId, TelegramMessageSender sender, Type InitStateType, TelegramFSMBot Bot) : base(UserId, sender, InitStateType, Bot) { }