Telegram.Bot
Telegram.Bot copied to clipboard
Middleware to validate secret_token
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.