feat: add interactive buttons support to telegram channel

This commit is contained in:
root
2026-02-14 16:06:36 +00:00
parent b3b7c3edfd
commit f56005246d
2 changed files with 95 additions and 123 deletions

View File

@@ -10,10 +10,16 @@ type InboundMessage struct {
Metadata map[string]string `json:"metadata,omitempty"`
}
type Button struct {
Text string `json:"text"`
Data string `json:"data"`
}
type OutboundMessage struct {
Channel string `json:"channel"`
ChatID string `json:"chat_id"`
Content string `json:"content"`
Channel string `json:"channel"`
ChatID string `json:"chat_id"`
Content string `json:"content"`
Buttons [][]Button `json:"buttons,omitempty"`
}
type MessageHandler func(InboundMessage) error