Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTextAndEntities ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.