Documentation
¶
Index ¶
- type Audio
- type Button
- type ButtonReply
- type Change
- type Contact
- type Context
- type Conversation
- type Document
- type Entry
- type Error
- type ErrorData
- type Identity
- type Image
- type Interactive
- type InteractiveType
- type ListReply
- type Message
- type Metadata
- type NotificationPayload
- type Order
- type Origin
- type Pricing
- type ProductItem
- type Profile
- type Referral
- type ReferredProduct
- type Status
- type Sticker
- type System
- type Text
- type Value
- type Video
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ButtonReply ¶
type Context ¶
type Context struct {
Forwarded bool `json:"forwarded"`
FrequentlyForwarded bool `json:"frequently_forwarded"`
From string `json:"from"`
ID string `json:"id"`
ReferredProduct *ReferredProduct `json:"referred_product,omitempty"`
}
type Conversation ¶
type Interactive ¶
type Interactive struct {
Type *InteractiveType `json:"type,omitempty"`
}
type InteractiveType ¶
type InteractiveType struct {
ButtonReply *ButtonReply `json:"button_reply,omitempty"`
ListReply *ListReply `json:"list_reply,omitempty"`
}
type Message ¶
type Message struct {
Audio *Audio `json:"audio,omitempty"`
Button *Button `json:"button,omitempty"`
Context *Context `json:"context,omitempty"`
Document *Document `json:"document,omitempty"`
Errors []Error `json:"errors,omitempty"`
From string `json:"from"`
ID string `json:"id"`
Identity *Identity `json:"identity,omitempty"`
Image *Image `json:"image,omitempty"`
Interactive *Interactive `json:"interactive,omitempty"`
Order *Order `json:"order,omitempty"`
Referral *Referral `json:"referral,omitempty"`
Sticker *Sticker `json:"sticker,omitempty"`
System *System `json:"system,omitempty"`
Text *Text `json:"text,omitempty"`
Timestamp time.Time `json:"timestamp"`
Type string `json:"type"`
Video *Video `json:"video,omitempty"`
}
type NotificationPayload ¶
type Order ¶
type Order struct {
CatalogID string `json:"catalog_id"`
Text string `json:"text"`
ProductItems []ProductItem `json:"product_items"`
}
type ProductItem ¶
type Referral ¶
type Referral struct {
SourceURL string `json:"source_url"`
SourceType string `json:"source_type"`
SourceID string `json:"source_id"`
Headline string `json:"headline"`
Body string `json:"body"`
MediaType string `json:"media_type"`
ImageURL string `json:"image_url,omitempty"`
VideoURL string `json:"video_url,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
}
type ReferredProduct ¶
Click to show internal directories.
Click to hide internal directories.