Layer 224
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:
TextBold
Bold text
TextEmpty
Empty rich text element
TextPlain
Plain text
TextItalic
Italic text
TextUnderline
Underlined text
TextUrl
Link
TextStrike
Strikethrough text
TextEmail
Rich text email link
TextFixed
fixed-width rich text
TextConcat
Concatenation of rich texts
TextSubscript
Subscript text
TextSuperscript
Superscript text
TextMarked
Highlighted text
TextImage
Inline image
TextAnchor
Text linking to another section of the page
TextPhone
Rich text linked to a phone number
Gogram Example
// RichText is an interface type // You can use any of the following constructors: var _ tg.RichText = &tg.TextBold{} var _ tg.RichText = &tg.TextEmpty{} var _ tg.RichText = &tg.TextPlain{} var _ tg.RichText = &tg.TextItalic{} var _ tg.RichText = &tg.TextUnderline{} // ... and 11 more constructors