Documentation
¶
Index ¶
- type Action
- type Button
- type Document
- type Envelope
- func NewDocument(to string, opts NewDocumentOpts) Envelope
- func NewImageLink(to string, opts NewImageLinkOpts) Envelope
- func NewInteractiveFlow(to string, opts NewFlowOpts) Envelope
- func NewInteractiveReplyButtons(to string, opts InteractiveReplyButtonsOpts) Envelope
- func NewMessageRead(messageId string, typingIndicator bool) Envelope
- func NewSticker(to, link string) Envelope
- func NewText(to string, opts NewTextOpts) Envelope
- type FlowAction
- type Image
- type Interactive
- type InteractiveHeader
- type InteractiveReplyButtonsOpts
- type NewDocumentOpts
- type NewFlowOpts
- type NewImageLinkOpts
- type NewTextOpts
- type Parameters
- type Reply
- type Sticker
- type Text
- type TextObject
- type TypingIndicator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Name *string `json:"name"`
Parameters *Parameters `json:"parameters,omitempty"`
Buttons *[]Button `json:"buttons,omitempty"`
}
type Envelope ¶
type Envelope struct {
MessagingProduct string `json:"messaging_product"`
RecipientType string `json:"recipient_type,omitempty"`
To string `json:"to,omitempty"`
Recipient string `json:"recipient,omitempty"`
Type string `json:"type,omitempty"`
Text *Text `json:"text,omitempty"`
Image *Image `json:"image,omitempty"`
Interactive *Interactive `json:"interactive,omitempty"`
Document *Document `json:"document,omitempty"`
Sticker *Sticker `json:"sticker,omitempty"`
Status string `json:"status,omitempty"`
TypingIndicator *TypingIndicator `json:"typing_indicator,omitempty"`
MessageID string `json:"message_id,omitempty"`
}
func NewDocument ¶
func NewDocument(to string, opts NewDocumentOpts) Envelope
func NewImageLink ¶
func NewImageLink(to string, opts NewImageLinkOpts) Envelope
func NewInteractiveFlow ¶
func NewInteractiveFlow(to string, opts NewFlowOpts) Envelope
func NewInteractiveReplyButtons ¶ added in v1.1.0
func NewInteractiveReplyButtons(to string, opts InteractiveReplyButtonsOpts) Envelope
func NewMessageRead ¶
func NewSticker ¶
func NewText ¶
func NewText(to string, opts NewTextOpts) Envelope
type FlowAction ¶
type FlowAction struct {
Screen string `json:"screen"`
}
type Interactive ¶
type Interactive struct {
Type string `json:"type"`
Header InteractiveHeader `json:"header"`
Body TextObject `json:"body"`
Action Action `json:"action"`
}
type InteractiveHeader ¶
type InteractiveReplyButtonsOpts ¶ added in v1.1.0
type InteractiveReplyButtonsOpts struct {
Header InteractiveHeader
Body string
Buttons []Reply
}
type NewDocumentOpts ¶
type NewFlowOpts ¶
type NewFlowOpts struct {
Header InteractiveHeader
Body TextObject
FlowMode string
FlowId string
FlowToken string
FlowCTA string
FirstScreen string
}
type NewImageLinkOpts ¶
type NewTextOpts ¶
type Parameters ¶
type Parameters struct {
Mode string `json:"mode,omitempty"`
FlowMessageVersion string `json:"flow_message_version"`
FlowToken string `json:"flow_token"`
FlowID string `json:"flow_id"`
FlowCTA string `json:"flow_cta"`
FlowAction string `json:"flow_action"`
FlowActionPayload FlowAction `json:"flow_action_payload,omitempty"`
}
type TextObject ¶
type TextObject struct {
Text string `json:"text"`
}
type TypingIndicator ¶ added in v1.3.0
type TypingIndicator struct {
Type string `json:"type"`
}
Click to show internal directories.
Click to hide internal directories.