Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.04 KB

File metadata and controls

30 lines (21 loc) · 1.04 KB

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