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


Release history Release notifications | RSS feed

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.0.0.dev22665.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

tma_authenticator-1.0.0.dev22665-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file tma_authenticator-1.0.0.dev22665.tar.gz.

File metadata

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

File hashes

Hashes for tma_authenticator-1.0.0.dev22665.tar.gz
Algorithm Hash digest
SHA256 60b0da3798a524d47deb8a62207ee6468f6fc3073a156c2aa1b7be8feb0511d0
MD5 9c74b57979075599296d17f446f8bc85
BLAKE2b-256 51ce6cda258ee0e4726ba47c4431dfb9c7401fd6ae55ae0d5c8dc8fb46df60df

See more details on using hashes here.

File details

Details for the file tma_authenticator-1.0.0.dev22665-py3-none-any.whl.

File metadata

File hashes

Hashes for tma_authenticator-1.0.0.dev22665-py3-none-any.whl
Algorithm Hash digest
SHA256 254aca4b0dc46c4ad6157c4d5ce306202844ff25e80aaefe8044d36da33fa6ab
MD5 cd5c86ab11e1591c7b07d75ce7b6dcdb
BLAKE2b-256 cbb4f39aee34805e80990f7e8ec2d5ccd341f860a920d68bd4b866f61bb11d17

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