Aiogram TON Connect UI is a middleware library that streamlines the integration of TON Connect technology into Telegram bots based on aiogram. It offers a pre-built user interface and orchestrates the interaction flow for connecting wallets and initiating transactions. The library takes care of all user interactions with TON Connect within the bot, encompassing the presentation of QR codes, texts, and keyboards, along with the handling of timeouts and user cancellations.
Check out the documentation.
Bot example @aiogramTONConnectBot.
pip install aiogram-tonconnect
- Ready-to-Use User Interface
- Middleware Functionality
- Interface Customization
- Multilingual Support
- QR Code Generation
This project utilizes the following dependencies to enhance its functionality:
- aiogram: An asynchronous framework for building Telegram bots.
- pytonconnect: Python SDK for TON Connect 2.0.
- pytoniq-core: TON Blockchain primitives.
- qrcode-fastapi: Generate QR codes with optional image inclusion, supports base64-encoded.
- and more...
We extend our gratitude to the maintainers and contributors of these libraries for their valuable contributions to the open-source community.
We welcome your contributions! If you have ideas for improvement or have identified a bug, please create an issue or submit a pull request.
Supported by TON Society, Grants and Bounties program.
TON - EQC-3ilVr-W0Uc3pLrGJElwSaFxvhXXfkiQA3EwdVBHNNess
USDT (TRC-20) - TJjADKFT2i7jqNJAxkgeRm5o9uarcoLUeR
This repository is distributed under the MIT License. Feel free to use, modify, and distribute the code in accordance with the terms of the license.