Skip to main content

aiosend

Python aiosend Crypto Pay API Documentation Status Pydantic v2 Aiohttp uv Code linter: ruff Checked with mypy

aiosend is a synchronous & asynchronous Crypto Pay API client.

Official documentation

Telegram chat

Quick start

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

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())

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiosend-3.0.7.tar.gz (233.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiosend-3.0.7-py3-none-any.whl (61.0 kB view details)

Uploaded Python 3

File details

Details for the file aiosend-3.0.7.tar.gz.

File metadata

  • Download URL: aiosend-3.0.7.tar.gz
  • Upload date:
  • Size: 233.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aiosend-3.0.7.tar.gz
Algorithm Hash digest
SHA256 73af8a47161b90e3051f1209a6e4b45593c0f40996340b93fa5bf5c4612a8acb
MD5 de0eafea58ebdef307a934984576b910
BLAKE2b-256 029e8d5b407d2b142ba7e8f464fd703825f8d7ad41695d16d92bf613583f1c2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiosend-3.0.7.tar.gz:

Publisher: deploy.yml on vovchic17/aiosend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aiosend-3.0.7-py3-none-any.whl.

File metadata

  • Download URL: aiosend-3.0.7-py3-none-any.whl
  • Upload date:
  • Size: 61.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aiosend-3.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9418eda699a47ea7d67c2e1ac307c9508ce842e77901929ab579a8b689cf6791
MD5 6b2251c48a465a75795595087a76ee4e
BLAKE2b-256 f6b3e1f50420be712454231094c89b3f518c2a569bfd13ee0a785c0a458adf15

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiosend-3.0.7-py3-none-any.whl:

Publisher: deploy.yml on vovchic17/aiosend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

3.0.7 This release

2 files

3.0.6

2 files

3.0.5

2 files

3.0.4

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

2.1.3

2 files

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.6

2 files

2.0.5

2 files

2.0.4

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.1.15

2 files

0.1.14

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page