public async Task ExecuteCommand(string chatId, User userJoined, User userLeft)
        {
            var keyboard = new ReplyKeyboardMarkup(new[]
            {
                new[]
                {
                    new KeyboardButton(BotCommands.BtcUsd),
                    new KeyboardButton(BotCommands.EthUsd)
                },
                new[]
                {
                    new KeyboardButton(BotCommands.EthBtc),
                    new KeyboardButton(BotCommands.LkkBtc)
                },
                new[]
                {
                    new KeyboardButton(BotCommands.LkkUsd),
                    new KeyboardButton(BotCommands.Lkk1Ybtc),
                },
                new[]
                {
                    new KeyboardButton(BotCommands.TimeBtc),
                    new KeyboardButton(BotCommands.SlrBtc),
                },
                new[]
                {
                    new KeyboardButton(BotCommands.Return)
                }
            }, true);

            var msg = await _messagesService.GetPairsMsg();

            await _telegramBotClient.SendTextMessageAsync(chatId, msg, ParseMode.Default, false, false, 0,
                                                          keyboard);
        }
示例#2
0
        public async Task ExecuteCommand(string chatId, User userJoined, User userLeft)
        {
            var keyboard = new ReplyKeyboardMarkup(new[]
            {
                new KeyboardButton(BotCommands.AndroidApp),
                new KeyboardButton(BotCommands.IosApp),
                new KeyboardButton(BotCommands.Return)
            }, true);

            var msg = await _messagesService.GetAppMsg();

            await _telegramBotClient.SendTextMessageAsync(chatId, msg, ParseMode.Default, false, false, 0, keyboard);
        }
示例#3
0
        public async Task ExecuteCommand(string chatId, User userJoined, User userLeft)
        {
            var msg = await _messagesService.GetStartPrivateMsg();

            await _telegramBotClient.SendTextMessageAsync(chatId, msg, ParseMode.Default, false, false, 0, KeyBoards.MainKeyboard);
        }