GithubHelp home page GithubHelp logo

jainamoswal / pytgauth Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 3.0 15 KB

A wrapper to authenticate Telegram data while web auth.

Home Page: https://pypi.org/project/pytgauth/

License: GNU General Public License v3.0

Python 100.00%

pytgauth's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.