public SendNewQuoteCommand(ITelegramClient telegramClient, IQuoteRepository quoteRepository)
 {
     _quoteRepository   = quoteRepository;
     _telegramBotClient = telegramClient.GetInstance();
 }
Example #2
0
 public SendVolunteerPageCommand(ITelegramClient telegramClient, IVolunteerPageRepository volunteerPageRepository)
 {
     _telegramBotClient       = telegramClient.GetInstance();
     _volunteerPageRepository = volunteerPageRepository;
 }
Example #3
0
 public TranslateCommand(ITranslateService translateService, ITelegramClient telegramClient)
 {
     _translateService  = translateService;
     _telegramBotClient = telegramClient.GetInstance();
 }
 public StartCommand(IChatRepo repo, ITelegramClient client, ILogger <StartCommand> logger)
 {
     this._repo   = repo;
     this._client = client;
     this._logger = logger;
 }
Example #5
0
 public Handler(IAggregateStore aggregateStore, ITelegramClient telegramClient)
 {
     _aggregateStore = aggregateStore;
     _telegramClient = telegramClient;
 }
 private async Task SendMessage(ITelegramClient client, TlUser user)
 {
     await client.SendMessageAsync(new TlInputPeerUser { UserId = user.Id }, "TEST_" + Random.Next());
 }
Example #7
0
 public DeleteScheduleCommandMatcher(IChatRepo repo, ITelegramClient client)
     : base(repo, client, CommandNames.DeleteSchedule)
 {
 }
Example #8
0
 public SendNewQuestionCommand(IWordRepository wordRepository, ITelegramClient telegramClient)
 {
     _wordRepository    = wordRepository;
     _telegramBotClient = telegramClient.GetInstance();
 }
Example #9
0
 public TrackingController(BotDbContext context, ITelegramClient client)
 {
     _context = context;
     _client  = client;
 }
Example #10
0
 public SendNewWordCommand(ITelegramClient telegramClient, IWordRepository wordRepository)
 {
     _wordRepository    = wordRepository;
     _telegramBotClient = telegramClient.GetInstance();
 }
 public TelegramController(ITelegramClient telegramClient)
 {
     _telegramClient = telegramClient;
 }
Example #12
0
 public HangfireActions(ITelegramClient client)
 {
     this._client = client;
 }
Example #13
0
 public AddAlertsCommandMatcher(ITelegramClient client, IChatRepo repo)
     : base(client, repo, CommandNames.AddAlerts)
 {
 }
 public SetupCommandMatcher(IChatRepo repo, ITelegramClient client)
     : base(client, repo, CommandNames.Setup)
 {
 }
Example #15
0
 public ContactCommand(ITelegramClient telegramClient)
 {
     _telegramBotClient = telegramClient.GetInstance();
 }
 public ShowCommand(ITelegramClient telegramClient)
 {
     _telegramBotClient = telegramClient.GetInstance();
 }
 public SubscriberDtoFactory(
     ITelegramClient telegramClient
     )
 {
     this.telegramClient = telegramClient;
 }
 public StatsService(IOccasionRepository occasionRepository, IPollRepository pollRepository, ITelegramClient telegramClient, IPollAnswerRepository pollAnswerRepository)
 {
     _occasionRepository   = occasionRepository;
     _pollRepository       = pollRepository;
     _telegramClient       = telegramClient;
     _pollAnswerRepository = pollAnswerRepository;
 }
Example #19
0
 public AccountDeletedHandler(ITelegramClient telegramClient)
 {
     _telegramClient = telegramClient;
 }
Example #20
0
 private async Task <IUpdates> SendMessage(ITelegramClient client, TUser user, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await client.MessagesService.SendMessageAsync(new TInputPeerUser { UserId = user.Id }, "TEST_" + Random.Next(), cancellationToken));
 }
 public SendingService(SimpleIoC ioc)
 {
     _client = ioc.Resolve <ITelegramClient>();
     _ioc    = ioc;
 }
Example #22
0
 public Handler(ITelegramClient telegramClient, IAggregateStore aggregateStore)
 {
     _telegramClient = telegramClient;
     _aggregateStore = aggregateStore;
 }
 public TelegramOutMessageRenderer(ITelegramClient telegramClient)
 {
     _telegramClient = telegramClient;
 }
 public CreateScheduleCommand(ITelegramClient client)
 {
     this._client = client;
 }
        //public event Action<string, string, DateTime> OnAddUnreadMessageFromChannel;

        public ReceivingService(SimpleIoC ioc)
        {
            _ioc    = ioc;
            _client = ioc.Resolve <ITelegramClient>();
            _client.Updates.RecieveUpdates += Updates_RecieveUpdates;
        }
Example #26
0
 public RenderingMiddleware(ITelegramClient telegramClient)
 {
     _telegramClient = telegramClient;
 }
 public ContactsService(SimpleIoC ioc)
 {
     _ioc    = ioc;
     _client = ioc.Resolve <ITelegramClient>();
 }
Example #28
0
 public WebhookController(BotDbContext context, ITelegramClient client, IOptionsSnapshot <TelegramOptions> options)
 {
     _context = context;
     _client  = client;
     _options = options;
 }