Skip to main content

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)

Uploaded Source

Built Distribution

telegram_pay-0.1.2-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page