Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASP.NET Core 3.1+ compatibility #835

Open
derigel23 opened this issue Oct 2, 2019 · 1 comment · May be fixed by #1368
Open

ASP.NET Core 3.1+ compatibility #835

derigel23 opened this issue Oct 2, 2019 · 1 comment · May be fixed by #1368

Comments

@derigel23
Copy link
Contributor

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.

@tuscen
Copy link
Member

tuscen commented Oct 2, 2019

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();

@karb0f0s karb0f0s pinned this issue Sep 16, 2020
@karb0f0s karb0f0s changed the title ASP.NET Core 3.0 compatibility ASP.NET Core 3.1+ compatibility Jul 5, 2021
@tuscen tuscen linked a pull request Apr 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants