RichBlockPhoto
A block with a photo, corresponding to the HTML tag <img>.
fields
| field | type | required | description |
|---|---|---|---|
type | string | required | Type of the block, always “photo” |
photo | PhotoSize[] | required | Available sizes of the photo |
has_spoiler | boolean | optional | Optional. True, if the media preview is covered by a spoiler animation |
caption | RichBlockCaption | optional | Optional. Caption of the block |
import
import type { RichBlockPhoto } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#richblockphoto