Documentation
¶
Index ¶
- func Handle(text string) ([]telego.InputMedia, []string)
- type Caption
- type CarouselMedia
- type Handler
- type ImageCandidate
- type ImageVersions
- type InputMedia
- type LinkPreviewAttachment
- type Post
- type TextPostAppInfo
- type ThreadItem
- type ThreadsData
- type ThreadsDataData
- type ThreadsDataDataData
- type ThreadsDataEdge
- type ThreadsDataNode
- type User
- type VideoVersions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CarouselMedia ¶
type CarouselMedia struct { OriginalHeight int `json:"original_height"` OriginalWidth int `json:"original_width"` ImageVersions ImageVersions `json:"image_versions2"` VideoVersions []VideoVersions `json:"video_versions"` }
type ImageCandidate ¶
type ImageVersions ¶
type ImageVersions struct {
Candidates []ImageCandidate `json:"candidates"`
}
type LinkPreviewAttachment ¶
type Post ¶
type Post struct { User User `json:"user"` ID string `json:"id"` TextPostAppInfo TextPostAppInfo `json:"text_post_app_info"` Code string `json:"code"` CarouselMedia *[]CarouselMedia `json:"carousel_media"` ImageVersions ImageVersions `json:"image_versions2"` OriginalHeight int `json:"original_height"` OriginalWidth int `json:"original_width"` VideoVersions []VideoVersions `json:"video_versions"` Caption Caption `json:"caption"` }
type TextPostAppInfo ¶
type TextPostAppInfo struct {
LinkPreviewAttachment LinkPreviewAttachment `json:"link_preview_attachment"`
}
type ThreadItem ¶
type ThreadsData ¶
type ThreadsData *struct { Data ThreadsDataData `json:"data"` }
type ThreadsDataData ¶
type ThreadsDataData struct {
Data ThreadsDataDataData `json:"data"`
}
type ThreadsDataDataData ¶
type ThreadsDataDataData struct {
Edges []ThreadsDataEdge `json:"edges"`
}
type ThreadsDataEdge ¶
type ThreadsDataEdge *struct { Node ThreadsDataNode `json:"node"` }
type ThreadsDataNode ¶
type ThreadsDataNode struct {
ThreadItems []ThreadItem `json:"thread_items"`
}
type VideoVersions ¶
type VideoVersions struct {
URL string `json:"url"`
}
Click to show internal directories.
Click to hide internal directories.