- Add new /update_token command handler to update mail API token in config.toml - Register command in handlers list and set_my_commands for bot menu - Add command documentation to help text with usage example - Implement token update logic with TOML file read/write operations - Display masked token values (first 8 and last 4 characters) for security - Add automatic config reload after token update - Include error handling for missing tomli_w dependency and file operations - Restrict command to admin users only via @admin_only decorator
196 KiB
196 KiB