/
Rustam116
/
Parser
Обзор
Документация
Войти
/
Rustam116
/
Parser
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
json.py
208 строк
7 KB
Rustam116
upload files
24 июн 2025, 19:08
24 июн 2025, 19:08
e6d4c3c
Код
Авторство
О чём код?
json = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Telegram Bot API GetUpdates Response", "type": "object", "properties": { "ok": { "type": "boolean", "description": "Indicates if the request was successful" }, "result": { "type": "array", "items": { "type": "object", "properties": { "update_id": { "type": "integer", "description": "The update's unique identifier" }, "message": { "type": "object", "properties": { "message_id": { "type": "integer", "description": "Unique message identifier" }, "from": { "type": "object", "properties": { "id": { "type": "integer", "description": "User's or bot's unique identifier" }, "is_bot": { "type": "boolean", "description": "True, if this user is a bot" }, "first_name": { "type": "string", "description": "User's first name" } }, "required": ["id", "is_bot", "first_name"] }, "sender_chat": { "type": "object", "properties": { "id": { "type": "integer", "description": "Chat's unique identifier" }, "title": { "type": "string", "description": "Chat title" }, "type": { "type": "string", "enum": ["channel", "group", "supergroup", "private"], "description": "Type of chat" } }, "required": ["id", "title", "type"] }, "chat": { "type": "object", "properties": { "id": { "type": "integer", "description": "Chat's unique identifier" }, "title": { "type": "string", "description": "Chat title" }, "type": { "type": "string", "enum": ["channel", "group", "supergroup", "private"], "description": "Type of chat" } }, "required": ["id", "title", "type"] }, "date": { "type": "integer", "description": "Date the message was sent in Unix time" }, "forward_origin": { "type": "object", "properties": { "type": { "type": "string", "enum": ["channel", "user", "hidden_user", "chat"], "description": "Type of message origin" }, "chat": { "type": "object", "properties": { "id": { "type": "integer", "description": "Chat's unique identifier" }, "title": { "type": "string", "description": "Chat title" }, "type": { "type": "string", "enum": ["channel", "group", "supergroup", "private"], "description": "Type of chat" } }, "required": ["id", "title", "type"] }, "message_id": { "type": "integer", "description": "Original message ID" }, "author_signature": { "type": "string", "description": "Signature of the original author" }, "date": { "type": "integer", "description": "Original message date in Unix time" } }, "required": ["type", "chat", "message_id", "date"] }, "is_automatic_forward": { "type": "boolean", "description": "True, if the message was automatically forwarded" }, "forward_from_chat": { "type": "object", "properties": { "id": { "type": "integer", "description": "Chat's unique identifier" }, "title": { "type": "string", "description": "Chat title" }, "type": { "type": "string", "enum": ["channel", "group", "supergroup", "private"], "description": "Type of chat" } }, "required": ["id", "title", "type"] }, "forward_from_message_id": { "type": "integer", "description": "Original forwarded message ID" }, "forward_signature": { "type": "string", "description": "Signature of the original author" }, "forward_date": { "type": "integer", "description": "Original message date in Unix time" }, "text": { "type": "string", "description": "Text of the message" }, "entities": { "type": "array", "items": { "type": "object", "properties": { "offset": { "type": "integer", "description": "Offset in UTF-16 code units" }, "length": { "type": "integer", "description": "Length of the entity in UTF-16 code units" }, "type": { "type": "string", "enum": ["mention", "hashtag", "url", "bot_command", "email", "phone_number", "bold", "italic", "underline", "strikethrough", "code", "pre", "text_link", "text_mention"], "description": "Type of the entity" } }, "required": ["offset", "length", "type"] } }, "link_preview_options": { "type": "object", "properties": { "url": { "type": "string", "description": "URL to be displayed in the link preview" } }, "required": ["url"] } }, "required": ["message_id", "chat", "date", "text"] } }, "required": ["update_id", "message"] } } }, "required": ["ok", "result"] }