Skip to main content

Проверка обязательных подписок пользователей в Telegram ботах с локальным кэшем

Project description

Установка библиотеки

pip install safesubs

Пример использования

from safesubs import checksubs

isSubs = checksubs(api_token="********")

async def my_handler(message):
    user_id = message.from_user.id
    if not await isSubs(user_id):
        return 
    # Ваш код для обработки сообщения, если пользователь подписан

Интеграция так же доступна через API

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

safesubs-0.2.4.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

safesubs-0.2.4-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file safesubs-0.2.4.tar.gz.

File metadata

  • Download URL: safesubs-0.2.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for safesubs-0.2.4.tar.gz
Algorithm Hash digest
SHA256 0d3eb2c6b7eb30513e9287ca427c2d656e44472bac19a617fa48397c0c166038
MD5 370f492fb765d8196f1e0a1c8f751eb0
BLAKE2b-256 a4c067931890bc9958a3a4e2c8d6d096803a017e22b31959ce3f6efdbbc71fbf

See more details on using hashes here.

File details

Details for the file safesubs-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: safesubs-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for safesubs-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 628520093d9ec5aae08c5bdc2402de8e3e48348bc419f8931211cc8f251e9049
MD5 ff4131bd42a546136786e3923d2982c5
BLAKE2b-256 7c5a6c6d869ef95073333cf90965f9986846e767b7b89a1c1123d8e134c0949d

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