Wrapper for api.pay.4u.studio
Project description
Install
pip install telegram-pay
Use
from telegram_pay import TelegramPay
async def main():
client = TelegramPay(shop_id=SHOP_ID, shop_token=SHOP_TOKEN)
subscription = await client.get_user_subscription(USER_ID, SUBSCRIPTION_ID)
if subscription.valid:
# User is subscribed
else:
# User is not subscribed
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
telegram_pay-0.1.3.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for telegram_pay-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 792552cebec991245258909033636660bbbf58252a954251d9bf0a3b56d95597 |
|
MD5 | 033ee6837810ad6a4e89af140a21f692 |
|
BLAKE2b-256 | 48d5e78bd14452eb028bf2c1f0bdd0502a0eb6c914326f709ec19f269af5dd17 |