Makes it simple to validate login widget authorization hashes
Built according to specifications published on Telegram's website
// Parsed from the query string / from the callback object
Dictionary<string, string> fields = QueryStringFields;
LoginWidget loginWidget = new LoginWidget("your API access Token");
if (loginWidget.CheckAuthorization(fields) == Authorization.Valid)
{
// ...
}
Install as NuGet package:
Package manager:
Install-Package Telegram.Bot.Extensions.LoginWidget