Subtitle
Subtitle component display a subtitle.
The text supports emoji shortcodes: :tada: renders as 🎉.
API
func Subtitle(c *tgframe.Container, text string, conf ...*SubtitleConf)
cis Parent container.textis the subtitle text.confis an optional configuration, at most one.
// SubtitleConf is the configuration for the Subtitle component.
type SubtitleConf struct {
tgframe.Base // ID
}
Example
tgcomp.Subtitle(p.Main, "Subtitle")
