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.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for telegram_pay-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cde55a170d43d821e637b4c2c9b16df4b716690f7acec20d9829d00640a7b54 |
|
MD5 | 99fd5498823b4ce3a0a1927a2d4c4601 |
|
BLAKE2b-256 | 650848338434d757e5518043c07d5ef1afdf832681e5cab19afd83eba48de627 |