From 8653e357d166fa63d0a95a0a01648233a0349f33 Mon Sep 17 00:00:00 2001 From: Sergey Gut Date: Sun, 28 Jan 2024 20:38:32 +0300 Subject: [PATCH] Rollout small cleanup --- Core/Controllers/Telegram.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Controllers/Telegram.cs b/Core/Controllers/Telegram.cs index acdc2c7..894a39f 100644 --- a/Core/Controllers/Telegram.cs +++ b/Core/Controllers/Telegram.cs @@ -33,7 +33,7 @@ namespace Kruzya.TelegramBot.Core.Controllers } [HttpPost] - public IActionResult Index([FromBody] Update? update) + public IActionResult Index() { if (_secretToken != null && !Request.Headers.ContainsKey(SecretTokenHeader)) { @@ -48,7 +48,7 @@ namespace Kruzya.TelegramBot.Core.Controllers return BadRequest(); } - LaunchHandle(update); + LaunchHandle(JsonConvert.DeserializeObject(Request.Body.ToString())); return Ok(); }