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