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

Uploaded Python 3

File details

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

File metadata

  • Download URL: safesubs-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a690dfa0220e0329dfb91a5b13e147118c187bd879f6d06c2efb7ae211648485
MD5 2b8fe7162d5fdf95706d9ff28b5b1a65
BLAKE2b-256 2f77531c5baad413b8f67f94d30f5b9ea5a8ca6cdc95ea913b0782024b05c4e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: safesubs-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 042127f53e0355aa311e60dfb437d8428b9062b70364f57b3dddb1e781d1fe42
MD5 e3fe2e6ff8df222d88beb8c9ae51499e
BLAKE2b-256 fe8013f24b431d81ec3369faba8078af858955f398e4447fb6033d87b429da6a

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