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

Middleware to validate secret_token

Open karb0f0s opened this issue 3 years ago • 0 comments

We can ship middleware/extension method to validate secret_token in ASP.NET Core applications.

If you'd like to make sure that the webhook was set by you, you can specify secret data in the parameter secret_token. If specified, the request will contain a header “X-Telegram-Bot-Api-Secret-Token” with the secret token as content.

karb0f0s avatar Jun 24 '22 18:06 karb0f0s