ton-society / grants-and-bounties

TON Foundation invites talent to imagine and realize projects that have the potential to integrate with the daily lives of users.
https://ton.org/grants
314 stars 137 forks source link

TON Connect UI for aiogram-based telegram bots #379

Closed nessshon closed 9 months ago

nessshon commented 1 year ago

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

delovoyhomie commented 9 months ago

Rewards sent! Thank you for the contribution.

Questbook proposal