Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TemplateVriableRegex = regexp.MustCompile(`\{\{\s*\d+\s*\}\}`)
Functions ¶
func ReplaceVariables ¶
Types ¶
type Conversation ¶
type Message ¶
type Message struct { gorm.Model ConversationID uint `json:"conversationId"` WhatsappID string `json:"whatsappID"` Direction Direction `json:"direction"` HeaderMessage *string `json:"headerMessage"` Message string `json:"message"` Timestamp int64 `json:"timestamp"` Buttons []MessageButton `json:"buttons"` }
func (*Message) CreateOrAppend ¶
type MessageButton ¶ added in v1.0.1
type Template ¶
type Template struct { gorm.Model Name string `json:"name"` // FIXME different types of headers Header *string `json:"header"` Body string `json:"body"` TemplateCustomButtons []TemplateCustomButton `json:"templateCustomButtons"` }
func (*Template) CreateCustomButton ¶
Click to show internal directories.
Click to hide internal directories.