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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tma_authenticator-1.3.0.dev25622.tar.gz
  • Upload date:
  • Size: 5.4 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.dev25622.tar.gz
Algorithm Hash digest
SHA256 0be1b8a51dd9333730dceff101b741a1d050383fcf36b1640671c2f4b7d0d823
MD5 852d92864de34177e4ea30588f32d55e
BLAKE2b-256 b3eb0635dc4ec188eb913ff0fed2875e043ff6ce2763eb7fdfa83a2eae6273e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tma_authenticator-1.3.0.dev25622-py3-none-any.whl
Algorithm Hash digest
SHA256 ab155add169f176a11ab5e943d98807c296c20f7a78fb8f035ec2639cac36064
MD5 97ebd607d25b8780f36eb165cc76ee7a
BLAKE2b-256 d74ed50b8c66234a381798d4721377da950363ee75ac8b4c817fcd22ae6aea55

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