mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Rollout small cleanup
This commit is contained in:
@@ -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<Update>(Request.Body.ToString()));
|
||||
return Ok();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user