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.1.2.tar.gz (1.9 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.1.2-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for safesubs-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6a4a6c38ffad691070725a63d3d76cdc14373cdd9a1039cbfe4a0b64ab785fd1
MD5 983152e3195f656b9d0b44a4abad9f0d
BLAKE2b-256 c8ba963a0b5310160237413237ecb1655483f3dce848bf5375c125df6fc51d7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: safesubs-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.2 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c8b304d96a56e91fc14e6e4ab0d8b28c0582a8139f58dac43005e9ece8736819
MD5 4fd7debe6191b667114cdc56caee0734
BLAKE2b-256 ae72e03454fd093a36c51274c957043f2765f909e8d5c35914844b931a2d23d3

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