The aiogram-tonconnect library provides a single and ready-to-use user interface for TON Connect to Telegram bots based on the aiogram framework. It serves as a wrapper around the main code, easily integrated through middleware and handler registration.
Context
Developers, especially those new to the field, often face challenges in creating a functional UI for TON Connect—from displaying wallet selection and generating QR codes to handling and presenting user warnings about transaction cancellations and timeout errors. This library aims to address these complexities, simplifying the integration of TON Connect into Telegram bots.
The library's concept revolves around pre-built logic for handling, processing, and switching between bot windows and states. Developers need only to install the middleware and register handlers. Subsequently, they gain access to the aiogram-tonconnect manager, enabling user transitions to wallet connection or transaction submission windows. Communication between the developer's code and the library occurs through callback handlers. More information with examples is in the documentation.
Definition of Done
[x] Writing and host a QRCode generation service: GitHub • API
[x] Writing and host library on PyPI: GitHub • PyPI
Summary
The aiogram-tonconnect library provides a single and ready-to-use user interface for TON Connect to Telegram bots based on the aiogram framework. It serves as a wrapper around the main code, easily integrated through middleware and handler registration.
Context
Developers, especially those new to the field, often face challenges in creating a functional UI for TON Connect—from displaying wallet selection and generating QR codes to handling and presenting user warnings about transaction cancellations and timeout errors. This library aims to address these complexities, simplifying the integration of TON Connect into Telegram bots.
The library's concept revolves around pre-built logic for handling, processing, and switching between bot windows and states. Developers need only to install the middleware and register handlers. Subsequently, they gain access to the aiogram-tonconnect manager, enabling user transitions to wallet connection or transaction submission windows. Communication between the developer's code and the library occurs through callback handlers. More information with examples is in the documentation.
Definition of Done
Note: ideally, we need separate hosting for the QR code generator service to ensure stability and speed of response.
References
*
Estimate suggested reward
Total: $1060