Layer 224
PageBlock
Abstract type representing one of 29 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.PageBlock interface.
Use any of the following constructors:
PageBlockTitle
Title
PageBlockSubtitle
Subtitle
PageBlockHeader
Page header
PageBlockUnsupported
Unsupported IV element
PageBlockDivider
An empty block separating a page
PageBlockAnchor
Link to section within the page itself (like <a href="#target">anchor</a> )
PageBlockParagraph
A paragraph
PageBlockFooter
Page footer
PageBlockPreformatted
Preformatted ( <pre> text)
PageBlockBlockquote
Quote (equivalent to the HTML <blockquote> )
PageBlockSubheader
Subheader
PageBlockPullquote
Pullquote
PageBlockAuthorDate
Author and date of creation of article
PageBlockList
Unordered list of IV blocks
PageBlockPhoto
A photo
PageBlockCover
A page cover
PageBlockEmbed
An embedded webpage
PageBlockVideo
Video
PageBlockEmbedPost
An embedded post
PageBlockCollage
Collage of media
PageBlockSlideshow
Slideshow
PageBlockAudio
Audio
PageBlockDetails
A collapsible details block
PageBlockTable
Table
PageBlockOrderedList
Ordered list of IV blocks
PageBlockKicker
Kicker
PageBlockChannel
Reference to a telegram channel
PageBlockMap
A map
PageBlockRelatedArticles
Related articles
Gogram Example
// PageBlock is an interface type // You can use any of the following constructors: var _ tg.PageBlock = &tg.PageBlockTitle{} var _ tg.PageBlock = &tg.PageBlockSubtitle{} var _ tg.PageBlock = &tg.PageBlockHeader{} var _ tg.PageBlock = &tg.PageBlockUnsupported{} var _ tg.PageBlock = &tg.PageBlockDivider{} // ... and 24 more constructors