Skip to content

Allows you to generate embed JavaScript for the Telegram login widget and verify the hashes received

License

Notifications You must be signed in to change notification settings

TelegramBots/Telegram.Bot.Extensions.LoginWidget

Repository files navigation

Telegram bots Login Widget

Build Status Build status

Makes it simple to validate login widget authorization hashes

Built according to specifications published on Telegram's website

Usage

// 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)
{
    // ...
}

Installation

Install as NuGet package:

Package manager:

Install-Package Telegram.Bot.Extensions.LoginWidget

About

Allows you to generate embed JavaScript for the Telegram login widget and verify the hashes received

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages