Async Python client for Telegram Wallet P2P Market API.
pip install tgwalletimport asyncio
from tgwallet import WalletP2PClient
async def main():
async with WalletP2PClient(api_key="YOUR_API_KEY") as client:
async for item in client.get_buy_items(limit=10):
print(item)
asyncio.run(main())from tgwallet import WalletP2PClient
from tgwallet.exceptions import APIError
try:
...
except APIError as e:
print(e)This library is a wrapper around the official Telegram Wallet P2P API
This project is licensed under the MIT License – see the LICENSE file for details.