https://github.com/vovchic17/aiosend
synchronous & asynchronous Crypto Pay API client.
https://github.com/vovchic17/aiosend
crypto-bot crypto-pay crypto-pay-api
Last synced: 5 months ago
JSON representation
synchronous & asynchronous Crypto Pay API client.
- Host: GitHub
- URL: https://github.com/vovchic17/aiosend
- Owner: vovchic17
- License: mit
- Created: 2024-09-01T00:58:39.000Z (almost 2 years ago)
- Default Branch: dev
- Last Pushed: 2025-12-06T15:27:52.000Z (6 months ago)
- Last Synced: 2025-12-10T07:36:06.824Z (6 months ago)
- Topics: crypto-bot, crypto-pay, crypto-pay-api
- Language: Python
- Homepage: https://pypi.org/p/aiosend/
- Size: 684 KB
- Stars: 48
- Watchers: 1
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
aiosend
[](https://www.python.org/)
[](https://help.crypt.bot/crypto-pay-api)
[](https://aiosend.readthedocs.io/en/latest/?badge=latest)
[](https://pydantic.dev)
[](https://docs.aiohttp.org/en/stable/)
[](https://github.com/astral-sh/uv)
[](https://github.com/charliermarsh/ruff)
[](https://mypy-lang.org/)
**aiosend** is a synchronous & asynchronous [Crypto Pay API](https://help.crypt.bot/crypto-pay-api) client.
> ## [Official documentation](https://aiosend.readthedocs.io/en/latest/)
>
> ## [
Telegram chat](https://aiosend.t.me/)
## Quick start
```python
import asyncio
from aiosend import CryptoPay
async def main():
cp = CryptoPay(token="TOKEN")
app = await cp.get_me()
print(app.name) # Your App's Name
if __name__ == "__main__":
asyncio.run(main())
```
## aiogram 3.x integration example
```python
import asyncio
from aiogram import Bot, Dispatcher
from aiosend import CryptoPay
cp = CryptoPay("TOKEN")
bot = Bot("TOKEN")
dp = Dispatcher()
@dp.message()
async def get_invoice(message):
invoice = await cp.create_invoice(1, "USDT")
await message.answer(f"pay: {invoice.bot_invoice_url}")
invoice.poll(message=message)
@cp.invoice_paid()
async def handle_payment(invoice, message):
await message.answer(f"invoice #{invoice.invoice_id} has been paid")
async def main():
await asyncio.gather(
dp.start_polling(bot),
cp.start_polling(),
)
if __name__ == "__main__":
asyncio.run(main())
```