Repository navigation
v1.2.0
TrueConf Server 5.5.3 Support
Support for new features introduced in TrueConf Server 5.5.3 has been added, including:
- chat title editing (
bot.edit_chat_title(...)); - chat avatar editing (
bot.edit_chat_avatar(...)); - chat history clearing (
bot.clear_chat_history(...)); - retrieving file storage limits (
bot.get_file_info_upload_limits(...)); - a new file transfer approach where the
file_nameparameter is now required (FSInputFile(...)and other file upload methods).
Other Improvements
- File storage limit settings are now cached and used for pre-upload validation. If a file does not meet the defined constraints, the library raises an exception.
- Added
python-magicandfiletypelibraries for more reliable file type detection based on magic numbers (byte signatures). - Automatic file extension appending when missing from filenames.
- Improved WebSocket connection stability: added exponential backoff and a configurable retry strategy. You can now control the maximum number of reconnection attempts via
ws_max_retriesand the maximum delay between attempts viaws_max_delay(#6). - Added TrueConf Server version validation: the library now raises a
RuntimeErrorwith upgrade instructions if an incompatible server version is detected. - Added the ability to safely split long messages exceeding 4096 characters into chunks of up to 4096 characters using the
safe_split_textutility. This is especially useful for AI agents generating long responses. - Added AI-friendly documentation builds:
llms.txtandllms-full.txt. - Logging has been added and expanded.
Fixed
- Fixed an issue with sending stickers in TrueConf Server 5.5.3+.
- Fixed issue #7.
- Fixed various minor bugs and made general improvements.
Deprecation
- The
filenameandmimetypeparameters are now deprecated. - Please migrate to the new
snake_caseparameter naming, as the old parameters will be removed in future versions.