Skip to main content

Verifying telegram user token.

Project description

How to use

1. authorization.py

from tma_authenticator.tma_authentication_router import TMAAuthenticationRouter
from tma_authenticator.tma_authenticator import TMAAuthenticator

from database.users import UsersDatabase
from config import TELEGRAM_BOT_TOKEN, IMPERSONATE_ADMIN_PASSWORD

user_database: UsersDatabase = UsersDatabase()
authenticator = TMAAuthenticator(TELEGRAM_BOT_TOKEN, IMPERSONATE_ADMIN_PASSWORD, user_database)
authentication_router = authenticator.authentication_router
    

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

tma_authenticator-1.1.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

tma_authenticator-1.1.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file tma_authenticator-1.1.2.tar.gz.

File metadata

  • Download URL: tma_authenticator-1.1.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.10 Linux/5.4.0-146-generic

File hashes

Hashes for tma_authenticator-1.1.2.tar.gz
Algorithm Hash digest
SHA256 fe3076732f0d1fccc1b51a4428c7fb8304c1a6e27a2b5d2a60fe743dac0dae8c
MD5 43abc373210edcb2136dc17e48092597
BLAKE2b-256 7420b8c3fb08be7b3dd40262bdd21171fff488639819226154a84b66ff0a6373

See more details on using hashes here.

File details

Details for the file tma_authenticator-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: tma_authenticator-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.10 Linux/5.4.0-146-generic

File hashes

Hashes for tma_authenticator-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ec7f436a0b46320a924260307325cd256d55cacf3699d5f6b3ea0bba6a3cf2c
MD5 cffde1a792c4ae489ca4e13a1b025575
BLAKE2b-256 06ec756a2c358ebd54e8edd0803d1fddca1e502d72a6cd65f35329991a45942f

See more details on using hashes here.

Supported by

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