Skip to main content

BotConfig

Defined in the config module.
Configuration for messaging bots. Attributes: token: Bot authentication token webhook_url: URL for webhook mode (optional) webhook_path: Path for webhook endpoint polling_interval: Interval for polling mode (seconds) allowed_users: List of allowed user IDs (empty = all allowed) allowed_channels: List of allowed channel IDs (empty = all allowed) command_prefix: Prefix for commands (default: ”/”) mention_required: Whether bot mention is required in groups typing_indicator: Whether to show typing indicator max_message_length: Maximum message length before splitting retry_attempts: Number of retry attempts for failed operations timeout: Request timeout in seconds metadata: Additional platform-specific configuration

Properties

token
str
No description available.
webhook_url
Optional
No description available.
webhook_path
str
No description available.
polling_interval
float
No description available.
allowed_users
List
No description available.
allowed_channels
List
No description available.
command_prefix
str
No description available.
mention_required
bool
No description available.
typing_indicator
bool
No description available.
max_message_length
int
No description available.
retry_attempts
int
No description available.
timeout
int
No description available.
metadata
Dict
No description available.

Methods

  • to_dict: Convert to dictionary (hides sensitive data).