Files
2026-matrix-csonac/bot_types.py
Nikita Tyukalov a2a1b6c2ed Updated bot implementation
- Added ability to send text messages
- Added ability to verify all devices
- Added configuration field to enable autoverification of all known devices
- Added ability to get client
2026-08-21 06:25:27 +03:00

20 lines
615 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"""