Skip to content

Releases: nessshon/aiogram-tonconnect

v0.14.2

30 Aug 04:52
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.14.1...v0.14.2

v0.14.1

22 Jul 06:16
Compare
Choose a tag to compare

v0.14.0

14 Jul 21:11
Compare
Choose a tag to compare

What's Changed

  • Fix handling users with null language code by @nurikk in #3

Full Changelog: v0.13.9...v0.14.0

v0.13.9

31 May 01:57
Compare
Choose a tag to compare

What's Changed

  • Add wallets_order parameter to AiogramTonConnectMiddleware for configure inline keyboard order. By @nurikk in #2

New Contributors

  • @nurikk made their first contribution in #2

Full Changelog: 0.13.8...v0.13.9

0.13.8

29 May 16:46
Compare
Choose a tag to compare

What's Changed

  • CHAIN Model Refactor: Updated the CHAIN class to inherit from str and Enum instead of IntEnum. This prevents the incorrect casting of string values to integers, ensuring compatibility with Tonkeeper wallet transactions.
  • ? Remove pause/unpause_connection: Removed the pause_connection and unpause_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

19 May 12:51
Compare
Choose a tag to compare

What's Changed

  • Refactor middleware for private chat handling only.
    • ValidationError: 1 validation error for ATCUser language_code

Full Changelog: v0.13.5...v0.13.6

v0.13.5

14 May 09:34
Compare
Choose a tag to compare

What's Changed

  • Refactored AiogramTonConnectMiddleware for user events only.
  • Added tonapi_token to prevent errors with bridge tonapi 429.
    Set the key in AiogramTonConnectMiddleware:
    AiogramTonConnectMiddleware(
        ...,
        tonapi_token=config.tonapi.TONCONNECT_KEY,
    )

Full Changelog: v0.13.2...v0.13.5

v0.13.2

01 Mar 00:45
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.13.1...v0.13.2

v0.13.1

29 Feb 00:58
Compare
Choose a tag to compare

What's Changed

AccountWallet Changes

  • Updated AccountWallet.address from a string to the Address model for a user-friendly display with urlSafe=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 the ATCManager class.
  • Split the send_transaction method in ATCManager into two methods:
    • send_transaction
    • retry_last_send_transaction
  • Split the connect_wallet method in ATCManager 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 specify atc_manager.connect_wallet(callbacks, check_prof=True).

QR Code Refactoring

  • Refactored qrcode_type and qrcode_base_url into a unified parameter, qrcode_provider, accommodating interfaces QRUrlProvider and QRImageProvider.

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

27 Jan 09:03
Compare
Choose a tag to compare

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.