TelegramBots / Telegram.Bot.Extensions.LoginWidget

Allows you to generate embed JavaScript for the Telegram login widget and verify the hashes received
MIT License
32 stars 12 forks source link

Validation fails because of missing fields #4

Closed Franklin89 closed 6 years ago

Franklin89 commented 6 years ago

https://github.com/TelegramBots/Telegram.Bot.Extensions.LoginWidget/blob/59ea03c65fb2ac44be0312e07d6eb775f9b8e65a/src/Telegram.Bot.Extensions.LoginWidget/LoginWidget.cs#L51

I tried to use this extension but it will not work. From the Login Widget I only get 4 fields: id, first_name, auth_date and the hash.

I checked the user has no username set. And also no last name.

MihaZupan commented 6 years ago

Thank you for the report.

I will update the requirements. Would be nice if telegram noted what fields are actually mandatory.

MihaZupan commented 6 years ago

Fixed in NuGet 1.2.0 Now only id, auth_date and hash are counted as mandatory.