Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot wraps a Telegram bot with agent pool integration. It implements channel.Channel.
func New ¶
func New(cfg Config, pool *agent.Pool, listFn channel.ModelListFunc, switchFn channel.ModelSwitchFunc) (*Bot, error)
New creates a Telegram bot and registers handlers. Call Start to begin polling.
type Config ¶
type Config struct {
Token string // bot token
NotifyChat string // default chat ID for proactive notifications
ChannelID string // broadcast channel ID or @username
GroupMode string // "mention" | "always" | "disabled"
AllowedIDs []int64 // user IDs allowed to use the bot (empty = allow all)
}
Config holds Telegram bot settings.
Click to show internal directories.
Click to hide internal directories.