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
AiogramTonconnect
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.
Installation
pip install aiogram-tonconnect
Features
- Language Selection: Allow users to choose between supported languages (Russian and English).
- Connect Wallet: Seamlessly connect TON wallets, excluding specified wallets.
- Send Transaction: Initiate and complete transactions with ease.
- Customizable: Easily customize and extend functionality based on your bot's needs.
Usage
...
Example
...
Callbacks
- Connect Wallet Before Callback:
Execute actions before initiating the wallet connection. - Connect Wallet After Callback:
Execute actions after a successful wallet connection. - Send Transaction Before Callback:
Execute actions before initiating a transaction. - Send Transaction After Callback:
Execute actions after a successful transaction.
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.
Donations
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.