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

This version

2.0.0

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-2.0.0.tar.gz (5.6 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-2.0.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tma_authenticator-2.0.0.tar.gz
Algorithm Hash digest
SHA256 af677e5cdafcac5caa42c6f3e4e9544b8278c5a3f70936953eda129849d44477
MD5 6b0315fa87d43c4ba59de4a763ff8ebc
BLAKE2b-256 54445d38392286c93419a2041bf372d127ae67b9296296313b57d42d94ce4f49

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tma_authenticator-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbab5a10d36394d829258727c888080fe932d2b60bc70786fc29b44f2e8570be
MD5 0b483f0a5e93373b747d73e847dc780f
BLAKE2b-256 14ec48c024cca03d228533bdc0a4a24e4a6cdba317ce1d02b65a1a579bc6e056

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