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.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for telegram_pay-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e89876599fa207cdc1f1bff6516b5f0509bb6ccbc67174d6d3c443a6b65ee4 |
|
MD5 | e12ee6ddb6110acee91b073254d8f96b |
|
BLAKE2b-256 | edfbba639a6bcc14fc88850f3b3ee80cef362aba14d11f4168b76cedb37f4242 |