Skip to main content

aiogram-tonconnect seamlessly integrates TonConnect into aiogram bots, simplifying wallet connections and transactions with a ready UI. Effortless middleware for enhancing your aiogram-based bots.

Project description

aiogram TON Connect

PyPI Python Versions License

aiogram-tonconnect is a library that simplifies the integration of TonConnect functionality into Telegram bots developed with the aiogram framework. It provides a ready-to-use UI and handles the interaction flow for connecting wallets and sending transactions. This library acts as a middleware, making it easy to incorporate TonConnect features into your existing aiogram-based bots.

Check out the documentation.
Bot example @aiogramTONConnectBot.

Installation

pip install aiogram-tonconnect

Features

  • TonConnect Integration:

    Simplifies the integration of TonConnect functionality with Telegram bots.

  • Built with Aiogram:

    Developed using the Aiogram framework, providing convenience in operation.

  • Ready-to-Use User Interface:

    Offers a ready-to-use user interface that manages the interaction flow for connecting to wallets and sending transactions.

  • Middleware Functionality:

    Acts as middleware, making it easier to incorporate TonConnect features into existing Aiogram-based bots.

  • Multilingual Support:

    Supports multiple languages, making it easy to add new languages and translate messages and button texts.

  • QR Code Provider:

    Includes a QR code provider that generates QR codes for connecting to wallets. There is an option to deploy a custom QR code provider API with open-source code on GitHub, speeding up response time and reducing load on the public API.

  • Full Customization:

    Allows complete customization of texts and buttons. Simply inherit the base class and insert your own texts.

Screenshots

Image 1 Image 3 Image 2 Image 4

Contributions

Contributions, bug reports, and feature requests are welcome. Please feel free to create issues and pull requests.

License

aiogram-tonconnect is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

This project utilizes the following dependencies to enhance its functionality:

  • aiofiles: Asynchronous file operations.
  • aiogram: An asynchronous framework for building Telegram bots.
  • aiohttp: An asynchronous HTTP client/server framework.
  • cachetools: A set of caching utilities.
  • pydantic: Data validation and settings management using Python type hints.
  • pytonconnect: Python SDK for TON Connect 2.0.
  • pytoniq-core: TON Blockchain primitives.
  • redis: A Python client for Redis, an in-memory data structure store.
  • qrcode-fastapi: Generate QR codes with optional image inclusion, supports base64-encoded.

We extend our gratitude to the maintainers and contributors of these libraries for their valuable contributions to the open-source community.

Donations


EQC-3ilVr-W0Uc3pLrGJElwSaFxvhXXfkiQA3EwdVBHNNess

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

aiogram-tonconnect-0.0.8.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

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

aiogram_tonconnect-0.0.8-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file aiogram-tonconnect-0.0.8.tar.gz.

File metadata

  • Download URL: aiogram-tonconnect-0.0.8.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for aiogram-tonconnect-0.0.8.tar.gz
Algorithm Hash digest
SHA256 69dbd246c02a2152d05e764397601e617fbff462625db96c07e4ca4b3a16f269
MD5 14a52a92ba7907058f72ed0f76eaca96
BLAKE2b-256 780c9e181aaabcc2adab6a959670db500570699971e2914571ef3954baa6eb74

See more details on using hashes here.

File details

Details for the file aiogram_tonconnect-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: aiogram_tonconnect-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for aiogram_tonconnect-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2976e6db67d756deff2ab7c8c5cd4af58129ac9f879da2c4a272b7a26dee8e6a
MD5 2dab9cf6b59ee2ceea7a8bf28342ae39
BLAKE2b-256 b93a83f0b5fd71cbea46bff6a628f78145c0bdba1833d1927b725d299703f196

See more details on using hashes here.

Supported by

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