mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
fix(debug_tools): /dump json encoding & field naming
This commit is contained in:
@@ -1,18 +1,23 @@
|
||||
using BotFramework;
|
||||
using System.Text.Encodings.Web;
|
||||
using BotFramework;
|
||||
using BotFramework.Attributes;
|
||||
using BotFramework.Enums;
|
||||
using BotFramework.Utils;
|
||||
using Kruzya.TelegramBot.Core.Extensions;
|
||||
using Kruzya.TelegramBot.Core.Service;
|
||||
using System.Text.Json;
|
||||
using Telegram.Bot;
|
||||
|
||||
namespace West.TelegramBot.DebugTools;
|
||||
|
||||
public class Handler : BotEventHandler
|
||||
{
|
||||
private readonly UserService _userService;
|
||||
private static readonly JsonSerializerOptions DumpOptions = new() { WriteIndented = true };
|
||||
|
||||
private static readonly JsonSerializerOptions DumpOptions = new(JsonBotAPI.Options)
|
||||
{
|
||||
WriteIndented = true,
|
||||
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping
|
||||
};
|
||||
|
||||
public Handler(UserService userService)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user