diff --git a/Dodo1000Bot.Messengers.Telegram/TelegramController.cs b/Dodo1000Bot.Messengers.Telegram/TelegramController.cs index b4c4be4..3f31fe3 100644 --- a/Dodo1000Bot.Messengers.Telegram/TelegramController.cs +++ b/Dodo1000Bot.Messengers.Telegram/TelegramController.cs @@ -1,4 +1,5 @@ -using System.Threading.Tasks; +using System.Text.Json; +using System.Threading.Tasks; using Dodo1000Bot.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; @@ -10,10 +11,11 @@ public class TelegramController : MessengerController { private readonly ITelegramService _telegramService; - public TelegramController(ILogger log, ITelegramService telegramService, TelegramConfiguration configuration) + public TelegramController(ILogger log, ITelegramService telegramService, TelegramConfiguration configuration, JsonSerializerOptions jsonOptions) : base(log, telegramService, configuration) { _telegramService = telegramService; + SerializerSettings = jsonOptions; } [HttpGet("TestTelegramApi")]