> For the complete documentation index, see [llms.txt](https://help.telebotcreator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.telebotcreator.com/changelog/version-4.9.0-update.md).

# Version 4.9.0 — TON, time.sleep(), Extended Timeouts

*Platform version at time of release: 4.9.0 | Current platform: 7.1.2 · Telegram Bot API 10.1*

We're excited to announce the release of TeleBot Creator 4.9.0 with significant improvements to stability, performance, and functionality.

## Major Improvements

### 🛠️ Bug Fixes

* Most of the previously reported bugs have been fixed in this release
* Improved stability across all components and libraries

### ⏱️ New Timing Controls

* Added native `time.sleep()` function with a maximum limit of 10 seconds
* Increased code execution timeout from 60 to 120 seconds
* Enhanced `run_after` / `runCommandAfter` command:
  * Maximum timeout: up to 366 days
  * Minimum timeout: 1 second
  * Up to 50,000 scheduled tasks per user
  * `cancelScheduledTask(job_id)` to cancel a pending task

### 💰 TON Integration

* Added comprehensive TON blockchain support through the new `TonLib` (see dedicated [TON Library Documentation](/libraries-and-integrations/ton-library-documentation.md))
* Features include wallet creation, balance checking, transactions, and more

### 🔄 Code Improvements

* Direct HTTP module usage is now recommended over `libs.customHTTP()`
* For handling inline queries and other update types, use the `/handler_<update_type>` command format

### ⚠️ Important Changes

* The `import x` statement should not be present in any user code
* Use built-in libraries and modules instead of external imports

## Documentation Updates

We've added new documentation pages:

* [TON Library Documentation](/libraries-and-integrations/ton-library-documentation.md): Complete guide to blockchain integration
* Updated examples and use cases across all documentation

## Upgrading

To take advantage of these new features, simply restart your bot or create a new one. All improvements are automatically available in your workspace.

## Feedback

As always, we value your feedback. If you encounter any issues or have suggestions for further improvements, please let us know through our support channels.
