diff --git a/Core/Controllers/Telegram.cs b/Core/Controllers/Telegram.cs index 2736019..093ac6c 100644 --- a/Core/Controllers/Telegram.cs +++ b/Core/Controllers/Telegram.cs @@ -6,6 +6,7 @@ using Microsoft.Extensions.Options; using System.IO; using System.Text.Json; using System.Threading.Tasks; +using Telegram.Bot; using Telegram.Bot.Types; namespace Kruzya.TelegramBot.Core.Controllers @@ -47,7 +48,7 @@ namespace Kruzya.TelegramBot.Core.Controllers } var body = await (new StreamReader(Request.Body)).ReadToEndAsync(); - LaunchHandle(JsonSerializer.Deserialize(body)); + LaunchHandle(JsonSerializer.Deserialize(body, JsonBotAPI.Options)); return Ok(); }