Skip to content

GroupModerBot v1.2.0

Choose a tag to compare

@TiptevDmitry TiptevDmitry released this 05 Jul 12:56

What's Changed

Commands:

  • The /admins command now displays Telegram IDs of administrators.
  • The /remove_admin command now accepts the admin's Telegram ID.
  • Commands are now processed completely asynchronously.
  • Updated descriptions for several commands.
  • Messages sent to private chats for commands that require replying to a user's message have been updated.

Configuration file:

  • The DbPath parameter is now mandatory.
  • If the path specified in DbPath or LogDirectory does not exist, it will be created automatically.
  • Parameter keys must now be placed at the beginning of the line. There can now be spaces after = and after the value.
  • Added the LogMode parameter with the following options: Console (logging to console only), File (logging to file only), or ConsoleAndFile (logging to console and file).
  • Added the MaxLogFileSize parameter to define the size limit (in bytes) before a new log file is generated.
  • Added the LogDirectory parameter to specify the folder where log files will be created.
  • File paths in parameters must now be absolute.

Logging:

  • Added the ability to enable and configure logging to a file using the LogMode, MaxLogFileSize, and LogDirectory parameters.

General:

  • Added program shutdown handling. If the program is closed without the /disable_bot command, it will not close immediately, but will delay closing and attempt to exit gracefully.
  • Admin data is now automatically updated in the database whenever an administrator executes a command.
  • Improved performance and security.
  • If LogMode is set to File or ConsoleAndFile, the program will not require a keystroke to close.