Raw schema
{
"type": "object",
"properties": {
"shape": {
"description": "The figure. Examples: {\"type\":\"heart\"} (size picked from the photo count), {\"type\":\"heart\",\"cells\":70}, {\"type\":\"number\",\"text\":\"30\"}, {\"type\":\"text\",\"text\":\"LOVE\"}, {\"type\":\"love\"} (\"I love you\"), {\"type\":\"star\",\"size\":\"large\"}, {\"type\":\"grid\",\"n\":4}. Call list_collage_shapes for all options.",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"heart",
"number",
"text",
"love",
"circle",
"star",
"flower",
"daisy",
"yinyang",
"grid",
"mask_url"
]
},
"cells": {
"type": "integer",
"enum": [
27,
34,
70,
79,
91,
164
],
"description": "Heart only: number of photo cells."
},
"text": {
"type": "string",
"maxLength": 14,
"description": "number/text: the digits or word (Latin letters and digits)."
},
"size": {
"type": "string",
"enum": [
"small",
"medium",
"large"
],
"description": "number/text/circle/star/flower: how many cells (bigger = more photos)."
},
"n": {
"type": "integer",
"minimum": 2,
"maximum": 12,
"description": "grid: n x n."
},
"url": {
"type": "string",
"description": "mask_url: link to a black-and-white picture; each black pixel is one photo cell."
}
},
"required": [
"type"
]
},
"photo_urls": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"maxItems": 300,
"description": "Public http(s) links to the photos (JPEG/PNG/WEBP)."
},
"photos": {
"type": "array",
"items": {
"type": "object",
"properties": {
"download_url": {
"type": "string"
},
"file_id": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"file_name": {
"type": "string"
}
},
"required": [
"download_url",
"file_id"
]
},
"maxItems": 300,
"description": "Photos the user attached in the chat."
},
"gap_pct": {
"type": "number",
"minimum": 0,
"maximum": 40,
"description": "White gap between photos, % of a cell (default 6)."
},
"background": {
"type": "string",
"description": "Background colour: white (default), cream, pink, black or #rrggbb."
}
},
"required": [
"shape"
],
"additionalProperties": false
}