示例#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)
 {
 }