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.3.0.dev25651.tar.gz (5.5 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.3.0.dev25651-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file tma_authenticator-1.3.0.dev25651.tar.gz.

File metadata

  • Download URL: tma_authenticator-1.3.0.dev25651.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.8 Linux/5.4.0-146-generic

File hashes

Hashes for tma_authenticator-1.3.0.dev25651.tar.gz
Algorithm Hash digest
SHA256 44a6c1c9b5fb7a714882be00d8a248e9e73ccf092b08a1b097a9b00df0ec5d13
MD5 fc18ac956b37574e87e2b1c6151ccbbe
BLAKE2b-256 2c742fa19428505d0ced427bd110214a8b849ca2533583f003c82063bee14b6a

See more details on using hashes here.

File details

Details for the file tma_authenticator-1.3.0.dev25651-py3-none-any.whl.

File metadata

File hashes

Hashes for tma_authenticator-1.3.0.dev25651-py3-none-any.whl
Algorithm Hash digest
SHA256 6879f7112ba6ec2dea00ef62f3648cbd73bfeb648a19c2bea3e595312260b585
MD5 fff6521c56eae1c45b9cbe694d567122
BLAKE2b-256 fdd03abec2b2ab54da0a2a929b98d36281ed59c46b93f1643a6d6e34e23e65e3

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