threads

package
v0.0.0-...-6d47440 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(text string) ([]telego.InputMedia, []string)

Types

type Caption

type Caption struct {
	Text string `json:"text"`
}

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 Handler

type Handler struct {
	// contains filtered or unexported fields
}

type ImageCandidate

type ImageCandidate struct {
	URL    string `json:"url"`
	Height int    `json:"height"`
	Width  int    `json:"width"`
}

type ImageVersions

type ImageVersions struct {
	Candidates []ImageCandidate `json:"candidates"`
}

type InputMedia

type InputMedia struct {
	File      *os.File
	Thumbnail *os.File
}

type LinkPreviewAttachment

type LinkPreviewAttachment struct {
	DisplayURL string `json:"display_url"`
	ImageURL   string `json:"image_url"`
	Title      string `json:"title"`
	URL        string `json:"url"`
}

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 ThreadItem struct {
	Post                 Post   `json:"post"`
	LineType             string `json:"line_type"`
	ShouldShowRepliesCta bool   `json:"should_show_replies_cta"`
}

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 User

type User struct {
	Username string `json:"username"`
}

type VideoVersions

type VideoVersions struct {
	URL string `json:"url"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL