helper

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTextAndEntities

func GetTextAndEntities(msg *tdlib.Message) (string, []*tdlib.TextEntity, string)

func GetTextAndEntitiesFromRichMessage

func GetTextAndEntitiesFromRichMessage(msg *tdlib.RichMessage) (*tdlib.FormattedText, error)

Types

type RawCaption

type RawCaption struct {
	Type   string       `json:"@type"`
	Text   RawRichText  `json:"text"`
	Credit *RawRichText `json:"credit,omitempty"`
}

type RawPageBlock

type RawPageBlock struct {
	Type     string         `json:"@type"`
	Text     *RawRichText   `json:"text,omitempty"`
	Caption  *RawCaption    `json:"caption,omitempty"`
	Blocks   []RawPageBlock `json:"blocks,omitempty"`
	Language string         `json:"language,omitempty"`
}

type RawRichText

type RawRichText struct {
	Type     string          `json:"@type"`
	Text     json.RawMessage `json:"text,omitempty"`
	Texts    []RawRichText   `json:"texts,omitempty"`
	URL      string          `json:"url,omitempty"`
	Language string          `json:"language,omitempty"`
}

Jump to

Keyboard shortcuts

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