Rich messages

RichBlockPhoto

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

fields

fieldtyperequireddescription
typestringrequiredType of the block, always “photo”
photoPhotoSize[]requiredAvailable sizes of the photo
has_spoilerbooleanoptionalOptional. True, if the media preview is covered by a spoiler animation
captionRichBlockCaptionoptionalOptional. Caption of the block

import

types.ts
import type { RichBlockPhoto } from "@yaebal/types";

used by

types