telegramx.js

RichBlockPhoto

interface

A block with a photo, corresponding to the HTML tag .

Declaration

interface RichBlockPhoto 

Properties

captionproperty#
caption?: RichBlockCaption;

Optional. Caption of the block

has_spoilerproperty#
has_spoiler?: boolean;

Optional. True, if the media preview is covered by a spoiler animation

photoproperty#
photo: PhotoSize[];

Available sizes of the photo

typeproperty#
type: 'photo';

Type of the block, always "photo"