Esempio n. 1
0
        public override async Task Execute(Message message, TelegramBotClient client)
        {
            var chatId = message.Chat.Id;
            await client.SendChatActionAsync(chatId, ChatAction.Typing);

            var inlineKeyboard = InlineKeyboardGenerator.CreateLanguagesKeyboard();
            await client.SendTextMessageAsync(chatId, CommandsResources.SelectLanguage, replyMarkup : inlineKeyboard);
        }
Esempio n. 2
0
        public override async Task Execute(Message message, TelegramBotClient client)
        {
            await client.SendChatActionAsync(message.Chat.Id, ChatAction.Typing);

            var user = await service.FindUserAsync(message.From.Id);

            var inlineKeyboard = InlineKeyboardGenerator.CreateCurrencyKeyboard(user.Currencies);
            await client.SendTextMessageAsync(
                chatId : message.Chat.Id,
                text : CommandsResources.SetCurrencyAbout,
                replyMarkup : inlineKeyboard
                );
        }