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.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for telegram_pay-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47686608542a9222f59eccd231f37825646fd54deadc9d8281ea15193a6d61c5 |
|
MD5 | 04d52fa0ba3f8837145d8389686af71e |
|
BLAKE2b-256 | 63e0261e7dc46a3e73d769534fc7d292cace23e0cea265fa5eb6e3411f05b5fc |