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-0.0.1.tar.gz (4.1 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-0.0.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tma_authenticator-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 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-0.0.1.tar.gz
Algorithm Hash digest
SHA256 943850a2cea318a87e20854796a87783054e27c93acc9d5b61dc71fbca7cab5a
MD5 2cc1fcf05270d6ba2d0ea8c1995f5a39
BLAKE2b-256 e133dec46a183eed9628c5aea6a54b10d2e98f80a1461659cd8597612874ce26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tma_authenticator-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • 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-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4af74c1f5e229c26e7b67f39fd5df46531609e494b7cfac9a1c6bcd63c090e47
MD5 e18f78a70e40cf3753ee3fe8dcf37909
BLAKE2b-256 b77388e3caf578f2c5dacdea796d760a918d4644fcaae58ccc7151c73a97c37c

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