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.4.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for telegram_pay-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a49110a1a97fdedf66d554849c5c1b4b2d436859c408cf88b205a40b95e4025b |
|
MD5 | 7e8bfe100006b6cba26b421faccf2581 |
|
BLAKE2b-256 | fb25f60b77146f2a7db54e45263941127e52f53493b9bd9d707dc447ca76a113 |