Layer 220
RichText
Abstract type representing one of 16 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.RichText interface.
Use any of the following constructors:
TextEmpty
Empty rich text element
TextPlain
Plain text
TextBold
Bold text
TextItalic
Italic text
TextUnderline
Underlined text
TextStrike
Strikethrough text
TextFixed
fixed-width rich text
TextUrl
Link
TextConcat
Concatenation of rich texts
TextEmail
Rich text email link
TextSubscript
Subscript text
TextMarked
Highlighted text
TextSuperscript
Superscript text
TextPhone
Rich text linked to a phone number
TextImage
Inline image
TextAnchor
Text linking to another section of the page
Gogram Example
// RichText is an interface type // You can use any of the following constructors: var _ tg.RichText = &tg.TextEmpty{} var _ tg.RichText = &tg.TextPlain{} var _ tg.RichText = &tg.TextBold{} var _ tg.RichText = &tg.TextItalic{} var _ tg.RichText = &tg.TextUnderline{} // ... and 11 more constructors