Skip to main content

A Wrapper to verify Telegram auth data while Web login.

Project description

Issues Stars Size


Support

  • Channel
  • Support

Verify Telegram Auth via website or Bot.

Installation.


pip install pytgauth --upgrade

Sample data from Telegram.

{
    "id": XXXXXXXXX,
    "first_name": "XXX",
    "last_name": "XXX",
    "username": "XXXXX",
    "photo_url": "https://t.meXXXXXX.jpg",
    "auth_date": XXXXXXXXXX,
    "hash": "XXXXXXXXXXXXXXXXXXXXXX....."
}

from pytgauth import verify
bot_token = 'xxx:xxxx'
data = {...}

if verify(data, bot_token):
    print('Hey ! You are verified.')
else:
    print('Upps, the data is not verified')

Watch the Example.py for more information.

License

PyTgAuth is licensed under GNU Affero General Public License v3 or later.

License

The GNU General Public License (GNU GPL or simply GPL) is a series of widely-used free software licenses that guarantee end users the freedom to run, study, share, and modify the software.[8] The licenses were originally written by Richard Stallman, founder of the Free Software Foundation (FSF), for the GNU Project, and grant the recipients of a computer program the rights of the Free Software Definition.[9] The GPL series are all copyleft licenses, which means that any derivative work must be distributed under the same or equivalent license terms. This is in distinction to permissive software licenses, of which the BSD licenses and the MIT License are widely used, less restrictive examples. GPL was the first copyleft license for general use.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytgauth-0.0.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytgauth-0.0.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file pytgauth-0.0.2.tar.gz.

File metadata

  • Download URL: pytgauth-0.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pytgauth-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ccdb6f5c950d1cf01e1d9097cd2d8573a7d350673a9871de5c5afabcf7a15458
MD5 b392b562f04b5fff16e56412221dbc94
BLAKE2b-256 6c3007ce7ab55a883d0af62cf73b72e0dae8ee5144a2af492f58705aa34a674a

See more details on using hashes here.

File details

Details for the file pytgauth-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pytgauth-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.60.0 CPython/3.8.9

File hashes

Hashes for pytgauth-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c49365dd6db0d85f5091e1a94909daf244eb6745402380917af52cf736540cfc
MD5 ca5ba024f63aaf96827805b0b3a06c26
BLAKE2b-256 92071d1de31080dececc6bcdb2ce78f52279ee5970bd8b702ee5aa0bf33ebe5f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page