public SendStoryCommand(ITelegramClient telegramClient, IStoryRepository storyRepository)
        {
            _telegramBotClient = telegramClient.GetInstance();
            _storyRepository   = storyRepository;

            _telegramBotClient.OnCallbackQuery += _telegramBotClient_OnCallbackQuery;
        }
 public QuestionReminder(IWordRepository wordRepository, ITelegramClient telegramClient, IRequestHistoryRepository requestHistoryRepository)
 {
     _wordRepository           = wordRepository;
     _requestHistoryRepository = requestHistoryRepository;
     _telegramBotClient        = telegramClient.GetInstance();
 }
Example #3
0
 public SendNewDailyPhraseCommand(ITelegramClient telegramClient, IDailyPhraseRepository dailyPhraseRepository)
 {
     _dailyPhraseRepository = dailyPhraseRepository;
     _telegramBotClient     = telegramClient.GetInstance();
 }
Example #4
0
 public ContactCommand(ITelegramClient telegramClient)
 {
     _telegramBotClient = telegramClient.GetInstance();
 }
Example #5
0
 public SendVolunteerPageCommand(ITelegramClient telegramClient, IVolunteerPageRepository volunteerPageRepository)
 {
     _telegramBotClient       = telegramClient.GetInstance();
     _volunteerPageRepository = volunteerPageRepository;
 }
 public SendNewQuoteCommand(ITelegramClient telegramClient, IQuoteRepository quoteRepository)
 {
     _quoteRepository   = quoteRepository;
     _telegramBotClient = telegramClient.GetInstance();
 }
 public ShowCommand(ITelegramClient telegramClient)
 {
     _telegramBotClient = telegramClient.GetInstance();
 }
Example #8
0
 public SendNewQuestionCommand(IWordRepository wordRepository, ITelegramClient telegramClient)
 {
     _wordRepository    = wordRepository;
     _telegramBotClient = telegramClient.GetInstance();
 }
Example #9
0
 public SendNewWordCommand(ITelegramClient telegramClient, IWordRepository wordRepository)
 {
     _wordRepository    = wordRepository;
     _telegramBotClient = telegramClient.GetInstance();
 }
Example #10
0
 public TranslateCommand(ITranslateService translateService, ITelegramClient telegramClient)
 {
     _translateService  = translateService;
     _telegramBotClient = telegramClient.GetInstance();
 }