Layer 227
PageBlock
Abstract type representing one of 39 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.PageBlock interface.
Use any of the following constructors:
InputPageBlockMap
Input for a map page block: a geo point, zoom level, dimensions, and a caption.
PageBlockAnchor
Link to section within the page itself (like <a href="#target">anchor</a> )
PageBlockAudio
Audio
PageBlockAuthorDate
Author and date of creation of article
PageBlockBlockquote
Quote (equivalent to the HTML <blockquote> )
PageBlockBlockquoteBlocks
Block-quote page block whose contents are themselves a list of page blocks.
PageBlockChannel
Reference to a telegram channel
PageBlockCollage
Collage of media
PageBlockCover
A page cover
PageBlockDetails
A collapsible details block
PageBlockDivider
An empty block separating a page
PageBlockEmbed
An embedded webpage
PageBlockEmbedPost
An embedded post
PageBlockFooter
Page footer
PageBlockHeader
Page header
PageBlockHeading1
Top-level (H 1) heading in an Instant View page.
PageBlockHeading2
H 2 heading in an Instant View page.
PageBlockHeading3
H 3 heading in an Instant View page.
PageBlockHeading4
H 4 heading in an Instant View page.
PageBlockHeading5
H 5 heading in an Instant View page.
PageBlockHeading6
H 6 heading (deepest) in an Instant View page.
PageBlockKicker
Kicker
PageBlockList
Unordered list of IV blocks
PageBlockMap
A map
PageBlockMath
Block-level math expression rendered from a La Te X source string.
PageBlockOrderedList
Ordered list of IV blocks
PageBlockParagraph
A paragraph
PageBlockPhoto
A photo
PageBlockPreformatted
Preformatted ( <pre> text)
PageBlockPullquote
Pullquote
PageBlockRelatedArticles
Related articles
PageBlockSlideshow
Slideshow
PageBlockSubheader
Subheader
PageBlockSubtitle
Subtitle
PageBlockTable
Table
PageBlockThinking
Collapsible chain-of-thought block used to show an AI assistant's reasoning.
PageBlockTitle
Title
PageBlockUnsupported
Unsupported IV element
PageBlockVideo
Video
Gogram Example
// PageBlock is an interface type // You can use any of the following constructors: var _ tg.PageBlock = &tg.InputPageBlockMap{} var _ tg.PageBlock = &tg.PageBlockAnchor{} var _ tg.PageBlock = &tg.PageBlockAudio{} var _ tg.PageBlock = &tg.PageBlockAuthorDate{} var _ tg.PageBlock = &tg.PageBlockBlockquote{} // ... and 34 more constructors