Пример #1
0
 public AdminTasker(TelegramFSMBot Bot)
 {
     this.Bot            = Bot;
     TasksTimer.Elapsed += AdminTaskerTimerElapsed;
     TasksTimer.Start();
 }
Пример #2
0
        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();
        }
Пример #3
0
 public TestMachine(long UserId, TelegramMessageSender sender, Type InitStateType, TelegramFSMBot Bot) : base(UserId, sender, InitStateType, Bot)
 {
 }