This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Telegram/validation/spoilers.json

59 lines
1.8 KiB
JSON
Raw Normal View History

2023-01-05 11:49:22 +02:00
{
"$jsonSchema": {
"required": [
"user",
"completed",
"category",
2023-01-05 11:49:22 +02:00
"description",
"photo",
"video",
"animation",
2023-01-05 22:15:34 +02:00
"document",
"caption",
2023-01-05 11:49:22 +02:00
"text"
],
"properties": {
"user": {
"bsonType": ["int", "long"],
"description": "Telegram ID of user"
},
"completed": {
"bsonType": "bool",
"description": "Whether spoiler is a completed one"
},
"category": {
"bsonType": ["string", "null"],
"enum": ["nsfw", "deanon", "other"],
"description": "Spoiler's category"
},
2023-01-05 11:49:22 +02:00
"description": {
"bsonType": ["string", "null"],
"description": "Spoiler's description"
},
"photo": {
"bsonType": ["string", "null"],
"description": "Spoilered photo"
},
"video": {
"bsonType": ["string", "null"],
"description": "Spoilered video"
},
"animation": {
"bsonType": ["string", "null"],
"description": "Spoilered animation/GIF"
},
2023-01-05 22:15:34 +02:00
"document": {
"bsonType": ["string", "null"],
"description": "Spoilered document/file"
},
"caption": {
"bsonType": ["string", "null"],
"description": "Spoilered caption for media"
},
2023-01-05 11:49:22 +02:00
"text": {
"bsonType": ["string", "null"],
"description": "Spoilered text"
}
}
}
}