Files
2026-matrix-csonac/bot_types.py

23 lines
778 B
Python

"""Data types required for the bot"""
from pathlib import Path
from dataclasses import dataclass
@dataclass
class MatrixBotConfig:
"""Configuration for MatrixBot"""
matrix_homeserver_url: str
"""Homeserver, for example: `https://matrix.domain.su`"""
matrix_username_localpart: str
"""Localpart of matrix username (without homeserver), for example: `valid-username`"""
storage_directory: Path
"""Path to the storage directory (will be created if needed)"""
auto_verify_all_known_devices: bool = True
"""Enable automatic verification of all known devices on related errors"""
auto_join_any_room_on_invite: bool = True
"""Enable automatic join for invites (implemented by automatically adding internal callback on bot creation)"""