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

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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