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.1

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.1.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.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tma_authenticator-2.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 73106832f3f96ea2db9d8c50a6aa7ab7fb7d779550666a2b74d57b5f38e63e6f
MD5 b4e921a1c591794574a379a4c6a09a29
BLAKE2b-256 d7b763f91830378968af0505ec444f47942adad16d8f91c6f7826f708fc31159

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tma_authenticator-2.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f23c5daca2a5f47a0e2bbb53198e75a6193fbf3d3903f7a29ce0d41f0c17bebc
MD5 c5753b1860b65272c569f3e76a363dfb
BLAKE2b-256 024665e8bafa72e5751eaab8603b33c7e36504d396af6bb85668191e7ce7cbed

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