Telegram.Bot icon indicating copy to clipboard operation
Telegram.Bot copied to clipboard

ASP.NET Core 3.1+ compatibility

Open derigel23 opened this issue 6 years ago • 1 comments

By default ASP.NET Core 3.0 doesn't use Newtonsoft JSON parser anymore. And all POC objects from bot annotated with Newtonsoft attributes are not deserializing correctly. Generally speaking ASP.NET Controller/Handler doesn't get any update from telegram server anymore.

derigel23 avatar Oct 02 '19 14:10 derigel23

We're investigating options on how to add System.Text.Json support. Until then you can use Newtonsoft.Json formatter package in your web hooks:

services.AddMvc()
    .AddNewtonsoftJson();

tuscen avatar Oct 02 '19 20:10 tuscen