Releases: nessshon/aiogram-tonconnect
Releases · nessshon/aiogram-tonconnect
v0.14.2
v0.14.1
What's Changed
Full Changelog: v0.14.0...v0.14.1
v0.14.0
v0.13.9
0.13.8
What's Changed
- CHAIN Model Refactor: Updated the
CHAIN
class to inherit fromstr
andEnum
instead ofIntEnum
. This prevents the incorrect casting of string values to integers, ensuring compatibility with Tonkeeper wallet transactions. ?
Remove pause/unpause_connection: Removed thepause_connection
andunpause_connection
methods to streamline the connection management process.- Middleware Refactor: Refactored the middleware to handle only private chats, improving efficiency and reducing unnecessary processing for group chats.
- Bug Fixes: Fixed the issue causing "Wrong network" errors when performing transactions with the Tonkeeper wallet by ensuring correct network type handling. #1
Full Changelog: v0.13.6...0.13.8
v0.13.6
What's Changed
- Refactor middleware for private chat handling only.
- ValidationError: 1 validation error for ATCUser
language_code
- ValidationError: 1 validation error for ATCUser
Full Changelog: v0.13.5...v0.13.6
v0.13.5
What's Changed
- Refactored
AiogramTonConnectMiddleware
for user events only. - Added
tonapi_token
to prevent errors with bridge tonapi 429.
Set the key inAiogramTonConnectMiddleware
:AiogramTonConnectMiddleware( ..., tonapi_token=config.tonapi.TONCONNECT_KEY, )
Full Changelog: v0.13.2...v0.13.5
v0.13.2
What's Changed
-
Implemented custom
proof_payload
support in connect_wallet. -
Refactored code and improved documentation for NFTTransferTransaction and JettonTransferTransaction.
-
Dropped support for Python 3.7.
Full Changelog: v0.13.1...v0.13.2
v0.13.1
What's Changed
AccountWallet Changes
- Updated
AccountWallet.address
from a string to theAddress
model for a user-friendly display withurlSafe=true
,bouncable=false
, and testnet support. - Introduced two new methods:
Address.to_raw
for obtaining the wallet address in raw format.Address.to_userfriendly(test_only=False)
for displaying the wallet address in a user-friendly format.
Model and Transaction Enhancements
- Replaced the dataclass model with Pydantic, enhancing overall functionality.
- Improved documentation for models.
- Added 'from' and 'network' parameters to the
Transaction
class.
Transaction Functionality
- Enhanced functionality for NFT and Jetton transfer transactions.
ATCManager Class Changes
- Made the
send_message
method private in theATCManager
class. - Split the
send_transaction
method inATCManager
into two methods:send_transaction
retry_last_send_transaction
- Split the
connect_wallet
method inATCManager
into two methods:connect_wallet
retry_connect_wallet
Exception Handling
- Added exceptions for retrying failed transaction and wallet connection attempts.
TextMessage Updates
- Removed '_emoji' from
ATCManager
and replaced it with two texts:- 'loader_text' - When the bot response time exceeds 2-3 seconds, such as during QR code generation.
- 'outdated_text' - If a message is older than 2 days, the Telegram Bot API does not support direct deletion. Instead, we modify the message text as 'outdated_text'.
Wallet Connection
- Added support for
ton_proof
in wallet connection. To use it, simply specifyatc_manager.connect_wallet(callbacks, check_prof=True)
.
QR Code Refactoring
- Refactored
qrcode_type
andqrcode_base_url
into a unified parameter,qrcode_provider
, accommodating interfacesQRUrlProvider
andQRImageProvider
.
Storage Enhancements
- Refactored storage to enhance functionality with the option to add custom providers.
- Added two default storage options:
ATCMemoryStorage
ATCRedisStorage
.
Full Changelog: v0.12.7...v0.13.1
v0.12.7
What's Changed
- Added support for using the default wallet picture in case of errors when loading an image from the wallets-list for QR code generation.