Files
Memoh/internal/schedule/trigger.go
T
BBQ ca5c6a1866 refactor(core): restructure conversation, channel and message domains
- Rename chat module to conversation with flow-based architecture
- Move channelidentities into channel/identities subpackage
- Add channel/route for routing logic
- Add message service with event hub
- Add MCP providers: container, directory, schedule
- Refactor Feishu/Telegram adapters with directory and stream support
- Add platform management page and channel badges in web UI
- Update database schema for conversations, messages and channel routes
- Add @memoh/shared package for cross-package type definitions
2026-02-12 15:34:40 +08:00

21 lines
508 B
Go

package schedule
import "context"
// TriggerPayload describes the parameters passed to the chat side when a schedule triggers.
type TriggerPayload struct {
ID string
Name string
Description string
Pattern string
MaxCalls *int
Command string
OwnerUserID string
ChatID string
}
// Triggerer triggers schedule execution for chat-related jobs.
type Triggerer interface {
TriggerSchedule(ctx context.Context, botID string, payload TriggerPayload, token string) error
}