aspnetboilerplate: Controller Frombody parameter is null

  • Abp package version : 5.8.0
  • base framework: .Net Core.
        [HttpPost]
        [DisableValidation]
        [DontWrapResult]
        public async Task<IActionResult> Post([FromBody]Update update)
        {
            await _telegramBotAppService.EchoAsync(update);
            return Ok();
        }

I want to handle Telegram Bot with webhook. In a new clean .Net Core solution it works but it not work with my Abp solution.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (10 by maintainers)

Most upvoted comments

Same problem here. It was working before but stopped working few month ago. Here how I fixed

public async Task<IActionResult> Webhook([FromBody]dynamic jsonresult)
{

            try
            {
                await _updateService.EchoAsync(JsonConvert.DeserializeObject<Update>(jsonresult.ToString()));
            }
}

Hi @behiunforgiven I will test your steps as soon as possible.