Esempio n. 1
0
        protected override async Task ExecuteAsync(CancellationToken token)
        {
            _logger.LogInformation("Signals Service Executing..");
            _telegram.StartReceivingMessages(token, Telegram_OnMessageReceived);

            await _telegram.SendMessageAsync("Creepto signals bot started..");
        }
Esempio n. 2
0
 protected override async Task ExecuteAsync(CancellationToken cancellationToken)
 {
     _telegram.OnMessageReceived += OnTelegramMessage;
     _telegram.StartReceivingMessages(cancellationToken);
 }