예제 #1
0
        public async Task ExecuteCallbackQueryAsync(long chatId, int messageId, string callbackQueryId, string payload)
        {
            var pageCount = int.Parse(payload);
            var pageModel = _firewallPaginatorService.GetPage(pageCount);

            await _telegramBotClient.EditMessageTextAsync(
                chatId : chatId,
                messageId : messageId,
                text : pageModel.MessageText,
                parseMode : ParseMode.Markdown,
                replyMarkup : pageModel.Keyboard);
        }