Features
- Telegram Bot API v7 Integration: Complete support for the latest Telegram Bot API version, enabling more features and capabilities.
- Development Hooks (Dev Hook): Introducing Dev Hook, which activates upon code save, utilizing webhooks. Fully compatible with servers such as VERCEL, GAS, and RENDER, streamlining the development process.
- Long Polling Support: Enhanced development experience with the addition of long polling, making bot interactions more dynamic and responsive.
- Refactored API Method Organization: Telegram Bot API methods have been reorganized and grouped under various Managers for improved usability and code structure.
- Full Type Support: Comprehensive type support for better code reliability and developer experience, facilitating auto-completion and error checking.
- Update Handling with 'on' Method: A new 'on' handler for efficiently managing different types of updates, making bot interactions more versatile.
- Dynamic Update Management with 'handleUpdate': Advanced method 'handleUpdate' for dynamically attaching all methods to the context (ctx), enhancing flexibility in handling updates.
- Optimized Middleware 'next' Function: Performance enhancements in the 'next' middleware function, ensuring faster and more efficient bot operation.
- Custom 'TelesunError' Class: Introduction of 'TelesunError', a custom error handling class tailored for Telesun-specific exceptions.
- Debugging with 'ctx._debug()': A new debugging method 'ctx._debug()' to list all available context methods, aiding in development and troubleshooting.
- Expanded Update Type Methods: Added methods to capture every kind of update type, enriching bot interaction capabilities.
- Contextual Access to Sessions and Caches: Sessions and caches can now be directly accessed through
ctx.<methodname>
, simplifying state management. - Enhanced Google Sheets Integration: Access to Google Sheets methods is now streamlined through
ctx.sheet(<sheetName>).<methodName>
, providing seamless integration.
Bug Fixes
- Parameter Handling Fix: Addressed and resolved an issue with methods that failed to accept parameters correctly, ensuring full functionality.
For more detailed information and documentation, please visit Telesun V2 Documentation.
We appreciate your support and feedback for Telesun!