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.2.tar.gz (2.5 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.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: safesubs-0.2.2.tar.gz
  • Upload date:
  • Size: 2.5 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.2.tar.gz
Algorithm Hash digest
SHA256 5dbd082bf6ca9eb9de85978118ee4cc7b1f98e23c9944d3b0269a12d5c4d6735
MD5 c0b83892ef4890bc3ad630df46087fdc
BLAKE2b-256 ffaade948aaaa7a12da776491f57287eb19c011a4954ac3916b569205b5db677

See more details on using hashes here.

File details

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

File metadata

  • Download URL: safesubs-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 2.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a14124fa4c939fa9e3d00f96698ae179cecb51d61ee88355ba9c7d9c99b79298
MD5 0e7e58882f9d9cf984701f0d510b4bf4
BLAKE2b-256 fa05c73aa6c33826f2ed76e30c902710fd59769b2650771904f27cb9d72e6e39

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