Skip to content

jainamoswal/PyTgAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

About

A wrapper to authenticate Telegram data while web auth.

Resources

License

Stars

Watchers

Forks

Languages