https://github.com/wesleym/telegramwidget
A data structure and associated utility functions for the Telegram login widget
https://github.com/wesleym/telegramwidget
telegram
Last synced: 5 months ago
JSON representation
A data structure and associated utility functions for the Telegram login widget
- Host: GitHub
- URL: https://github.com/wesleym/telegramwidget
- Owner: wesleym
- License: apache-2.0
- Created: 2018-07-12T20:35:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-09T16:03:51.000Z (over 1 year ago)
- Last Synced: 2025-08-15T05:21:53.281Z (10 months ago)
- Topics: telegram
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
go-telegram-widget
==================
[](https://godoc.org/github.com/wesleym/telegramwidget)
[](https://github.com/wesleym/telegramwidget/actions/workflows/go.yml)
This is not an officially supported Google product.
go-telegram-widget simplifies the process of interacting with the [Telegram
login widget](https://core.telegram.org/widgets/login). This library provides
a data type for expressing a Telegram user. It also provides utilities for
interpreting the results of either the JavaScript callback or the URL redirect
into this Telegram user data structure.
This library also verifies the Telegram user data as it interprets it. The
library calls for interpreting the data also perform verification by comparing
with the HMAC code returned from Telegram.