feat(controller): add source for command handling.

feat(telegram): switch message type to markdown
feat(controller): add welcome message for telegram bot.
This commit is contained in:
2026-08-13 17:07:55 +08:00
parent 8589654ba4
commit f2cc16177c
8 changed files with 90 additions and 65 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ import (
// Command represents a parsed bot command.
type Command struct {
RawText string
Source string // The source pipe (e.g., "telegram", "qq", "napcat")
RawText string // The raw text of the command message
Command string // The command word (e.g., "list", "status")
Args []string // Command arguments
ChatID int64 // Chat/group ID where the command was issued