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.5.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for telegram_pay-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f5a3a26bc6467a5e30d11fe4b00de58ffd743f2fb6dc2fd1f41744fb1902c35 |
|
MD5 | f16de93b6eab1b170c739a487187a3ae |
|
BLAKE2b-256 | 23141812f65958c949fe387f29c77d9741e16a21949842a6ba851ec0764bfe1c |