예제 #1
0
 public DefaultInstruction(ITelegramBotClient telegramBotClient, MessageEventArgs messageEventArgs, BotPlatform botPlatform)
 {
     _telegramBotClient = telegramBotClient;
     _messageEventArgs  = messageEventArgs;
     _commandRssService = botPlatform.Resolve <ICommandRssService>();
     _queryRssService   = botPlatform.Resolve <IQueryRssService>();
 }
예제 #2
0
 public RemoveRssInstruction(ITelegramBotClient telegramBotClient, CallbackQueryEventArgs callbackQueryEventArgs, BotPlatform botPlatform)
 {
     _telegramBotClient           = telegramBotClient;
     _callbackQueryEventArgs      = callbackQueryEventArgs;
     _queryRssService             = botPlatform.Resolve <IQueryRssService>();
     _queryRssChatRelationService = botPlatform.Resolve <IQueryRssChatRelationService>();
 }
 public Add_Channel_Rss_Instruction(ITelegramBotClient telegramBotClient, CallbackQueryEventArgs callbackQueryEventArgs, BotPlatform botPlatform)
 {
     _telegramBotClient      = telegramBotClient;
     _callbackQueryEventArgs = callbackQueryEventArgs;
     _commandRssChatService  = botPlatform.Resolve <ICommandRssChatRelationService>();
     _queryRssService        = botPlatform.Resolve <IQueryRssService>();
     _queryChannelService    = botPlatform.Resolve <IQueryChannelService>();
 }