Version 5.0.0 Update
We're excited to announce the release of TeleBot Creator 5.0.0, featuring significant improvements to performance, stability, and functionality.
Major Improvements
⏱️ Extended Command Runtime
Commands can now run up to 160 seconds (increased from 120 seconds)
Performance optimizations for better command execution
Major bug fixes improving overall stability
📊 New Statistics Functions
Account and Bot classes now include powerful statistics tracking capabilities:
Account.getStats
This function allows you to retrieve user statistics across multiple bots in your account:
Parameters:
time_frames
: List of time frames to query (optional, default: ["24h"])Format: "h" for hours or "d" for days (e.g., "24h", "7d")
Maximum time frame: 365 days
bot_ids
: List of bot IDs to query (optional, default: all bots in account)
Returns:
Dictionary with time frames as keys and active user counts as values
Example:
{"24h": 150, "7d": 350}
Bot.getStats
Similar to Account.getStats but for a specific bot:
Parameters:
time_frames
: List of time frames to query (optional, default: ["24h"])bot_id
: Bot ID to query (optional, default: current bot)api_key
: API key for authentication when querying other bots (optional)
Returns:
Dictionary with time frames as keys and active user counts as values
Example:
{"24h": 150, "7d": 350}
🔄 Data Transfer Functionality
The new TransferData function in the Account class allows you to transfer bot data between bots:
Parameters:
from_bot
: Source bot ID to transfer data fromto_bot
: Destination bot ID to transfer data to
Returns:
Dictionary with operation status
Success:
{"ok": True, "result": "Data transferred successfully"}
Failure:
{"ok": False, "result": "Error message"}
🤖 OpenRouter AI Integration
OpenRouter API is now fully supported through the openai_lib, with enhanced timeout capabilities:
Key Features:
Support for OpenRouter API with access to multiple AI models
Extended timeout up to 160 seconds (configurable)
Automatic error handling and retries
System message customization
Compatible with various models including Meta's Llama models
Stability Improvements
Enhanced bot optimization for better performance
Improved error handling and logging
Memory usage optimizations
Fixed issues with long-running commands
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.
Last updated