richblockphoto

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

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

Fields

FieldTypeRequiredDescription
typeStringAlwaysType of the block, always "photo"
photoArray of PhotoSizeAlwaysAvailable sizes of the photo
has_spoilerTrueOptionalTrue, if the media preview is covered by a spoiler animation
captionRichBlockCaptionOptionalCaption of the block
Botlify Cloud Runtime
Credentials are auto-injected in .env — always load them with getenv(): BOT_TOKEN, ADMIN_CHAT_ID, BOT_USERNAME. Main database: database.db (SQLite, WAL mode). Runtime errors: error.log. Quick test: send to $ADMIN_CHAT_ID. Full details: Runtime Reference.