An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

go-telegram-widget
==================

[![GoDoc](https://godoc.org/github.com/wesleym/telegramwidget?status.svg)](https://godoc.org/github.com/wesleym/telegramwidget)
[![Build Status](https://github.com/wesleym/telegramwidget/actions/workflows/go.yml/badge.svg)](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.