Esempio n. 1
0
        public async Task ExecuteCommand(string chatId, User userJoined, User userLeft)
        {
            var rates = await _lykkeApiClient.GetRates(Constants.ETHUSD);

            var msg = await _messagesService.GetRatesMsg(Constants.ETHUSD, rates.Bid, rates.Ask);

            await _telegramBotClient.SendTextMessageAsync(chatId, msg);
        }
Esempio n. 2
0
        public async Task ExecuteCommand(string chatId, User userJoined, User userLeft)
        {
            var rates = RatesConverter.Inverse(await _lykkeApiClient.GetRates("BTCLKK1Y"));

            var msg = await _messagesService.GetRatesMsg(Constants.LKK1YBTC, rates.Bid, rates.Ask);

            await _telegramBotClient.SendTextMessageAsync(chatId, msg);
        }