Skip to content

v1.2.0

Choose a tag to compare

@tb-sourse tb-sourse released this 21 Apr 21:46
· 51 commits to master since this release

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_name parameter 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-magic and filetype libraries 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_retries and the maximum delay between attempts via ws_max_delay (#6).
  • Added TrueConf Server version validation: the library now raises a RuntimeError with 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_text utility. This is especially useful for AI agents generating long responses.
  • Added AI-friendly documentation builds: llms.txt and llms-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 filename and mimetype parameters are now deprecated.
  • Please migrate to the new snake_case parameter naming, as the old parameters will be removed in future versions.