Проверка обязательных подписок пользователей в 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.3.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file safesubs-0.2.3.tar.gz.
File metadata
- Download URL: safesubs-0.2.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
591242df9128faef21c457c7f0bd59807e5f7ddcfda1f4de0bb94794c283710a
|
|
| MD5 |
5bb080154776b145bbbde48525b1477f
|
|
| BLAKE2b-256 |
cd83a2445c245d0b121cd2af4cce8844e040c6b3483c25696ab2468b0514080a
|
File details
Details for the file safesubs-0.2.3-py3-none-any.whl.
File metadata
- Download URL: safesubs-0.2.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a862f3ad84714fcfea193b3dfca1f5166a4234a597276292f8676b5ed544bedf
|
|
| MD5 |
65689d6a670f23c4cf5a8f9dbc48cb85
|
|
| BLAKE2b-256 |
dadd1e504884c9261eef158c2773bc7d7b373257bed424965a55aa94fd74bbe0
|