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.0.tar.gz (2.3 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.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: safesubs-0.2.0.tar.gz
  • Upload date:
  • Size: 2.3 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.0.tar.gz
Algorithm Hash digest
SHA256 a7b84de1cff4428d987b222aeb040c29bb42ef02b3ab60fd28b516df74d5a3c2
MD5 005ff549327e89b3cef8dfca9ee82b71
BLAKE2b-256 6e576a8c80250644cc12fee51b64f69bdec1959d23263adaabe9919686117202

See more details on using hashes here.

File details

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

File metadata

  • Download URL: safesubs-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28803623bc4cece006430674e09a4866e7bd13bdde5309b912afed7387d5a0c4
MD5 0e1e20737173c820a313195168eeb7cf
BLAKE2b-256 314cc23ae79ca1d535e8ae6263eae67b0da4a12165ded227badf69a93cae497f

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