1
0
mirror of https://github.com/danog/tl-schema.git synced 2025-01-09 06:28:23 +01:00
tl-schema/l061/schema.json
Viktor Oreshkin 44323c68d2 Add layer 061
2017-08-20 15:57:41 +03:00

1008 lines
20 KiB
JSON

{
"constructors": [
{
"id": "1728035348",
"predicate": "dialog",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "pinned",
"type": "flags.2?true"
},
{
"name": "peer",
"type": "Peer"
},
{
"name": "top_message",
"type": "int"
},
{
"name": "read_inbox_max_id",
"type": "int"
},
{
"name": "read_outbox_max_id",
"type": "int"
},
{
"name": "unread_count",
"type": "int"
},
{
"name": "notify_settings",
"type": "PeerNotifySettings"
},
{
"name": "pts",
"type": "flags.0?int"
},
{
"name": "draft",
"type": "flags.1?DraftMessage"
}
],
"type": "Dialog"
},
{
"id": "253890367",
"predicate": "userFull",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "blocked",
"type": "flags.0?true"
},
{
"name": "phone_calls_available",
"type": "flags.4?true"
},
{
"name": "user",
"type": "User"
},
{
"name": "about",
"type": "flags.1?string"
},
{
"name": "link",
"type": "contacts.Link"
},
{
"name": "profile_photo",
"type": "flags.2?Photo"
},
{
"name": "notify_settings",
"type": "PeerNotifySettings"
},
{
"name": "bot_info",
"type": "flags.3?BotInfo"
},
{
"name": "common_chats_count",
"type": "int"
}
],
"type": "UserFull"
},
{
"id": "989264735",
"predicate": "config",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "phonecalls_enabled",
"type": "flags.1?true"
},
{
"name": "date",
"type": "int"
},
{
"name": "expires",
"type": "int"
},
{
"name": "test_mode",
"type": "Bool"
},
{
"name": "this_dc",
"type": "int"
},
{
"name": "dc_options",
"type": "Vector<DcOption>"
},
{
"name": "chat_size_max",
"type": "int"
},
{
"name": "megagroup_size_max",
"type": "int"
},
{
"name": "forwarded_count_max",
"type": "int"
},
{
"name": "online_update_period_ms",
"type": "int"
},
{
"name": "offline_blur_timeout_ms",
"type": "int"
},
{
"name": "offline_idle_timeout_ms",
"type": "int"
},
{
"name": "online_cloud_timeout_ms",
"type": "int"
},
{
"name": "notify_cloud_delay_ms",
"type": "int"
},
{
"name": "notify_default_delay_ms",
"type": "int"
},
{
"name": "chat_big_size",
"type": "int"
},
{
"name": "push_chat_period_ms",
"type": "int"
},
{
"name": "push_chat_limit",
"type": "int"
},
{
"name": "saved_gifs_limit",
"type": "int"
},
{
"name": "edit_time_limit",
"type": "int"
},
{
"name": "rating_e_decay",
"type": "int"
},
{
"name": "stickers_recent_limit",
"type": "int"
},
{
"name": "tmp_sessions",
"type": "flags.0?int"
},
{
"name": "pinned_dialogs_count_max",
"type": "int"
},
{
"name": "call_receive_timeout_ms",
"type": "int"
},
{
"name": "call_ring_timeout_ms",
"type": "int"
},
{
"name": "call_connect_timeout_ms",
"type": "int"
},
{
"name": "call_packet_timeout_ms",
"type": "int"
},
{
"name": "disabled_features",
"type": "Vector<DisabledFeature>"
}
],
"type": "Config"
},
{
"id": "-337352679",
"predicate": "updateServiceNotification",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "popup",
"type": "flags.0?true"
},
{
"name": "inbox_date",
"type": "flags.1?int"
},
{
"name": "type",
"type": "string"
},
{
"name": "message",
"type": "string"
},
{
"name": "media",
"type": "MessageMedia"
},
{
"name": "entities",
"type": "Vector<MessageEntity>"
}
],
"type": "Update"
},
{
"id": "705920636",
"predicate": "help.appChangelog",
"params": [
{
"name": "message",
"type": "string"
},
{
"name": "media",
"type": "MessageMedia"
},
{
"name": "entities",
"type": "Vector<MessageEntity>"
}
],
"type": "help.AppChangelog"
},
{
"id": "-1663561404",
"predicate": "messages.chatsSlice",
"params": [
{
"name": "count",
"type": "int"
},
{
"name": "chats",
"type": "Vector<Chat>"
}
],
"type": "messages.Chats"
},
{
"id": "-1162877472",
"predicate": "pageBlockAuthorDate",
"params": [
{
"name": "author",
"type": "RichText"
},
{
"name": "published_date",
"type": "int"
}
],
"type": "PageBlock"
},
{
"id": "-640214938",
"predicate": "pageBlockVideo",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "autoplay",
"type": "flags.0?true"
},
{
"name": "loop",
"type": "flags.1?true"
},
{
"name": "video_id",
"type": "long"
},
{
"name": "caption",
"type": "RichText"
}
],
"type": "PageBlock"
},
{
"id": "-840826671",
"predicate": "pageBlockEmbed",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "full_width",
"type": "flags.0?true"
},
{
"name": "allow_scrolling",
"type": "flags.3?true"
},
{
"name": "url",
"type": "flags.1?string"
},
{
"name": "html",
"type": "flags.2?string"
},
{
"name": "poster_photo_id",
"type": "flags.4?long"
},
{
"name": "w",
"type": "int"
},
{
"name": "h",
"type": "int"
},
{
"name": "caption",
"type": "RichText"
}
],
"type": "PageBlock"
},
{
"id": "690781161",
"predicate": "pageBlockEmbedPost",
"params": [
{
"name": "url",
"type": "string"
},
{
"name": "webpage_id",
"type": "long"
},
{
"name": "author_photo_id",
"type": "long"
},
{
"name": "author",
"type": "string"
},
{
"name": "date",
"type": "int"
},
{
"name": "blocks",
"type": "Vector<PageBlock>"
},
{
"name": "caption",
"type": "RichText"
}
],
"type": "PageBlock"
},
{
"id": "-1425052898",
"predicate": "updatePhoneCall",
"params": [
{
"name": "phone_call",
"type": "PhoneCall"
}
],
"type": "Update"
},
{
"id": "-686710068",
"predicate": "updateDialogPinned",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "pinned",
"type": "flags.0?true"
},
{
"name": "peer",
"type": "Peer"
}
],
"type": "Update"
},
{
"id": "-657787251",
"predicate": "updatePinnedDialogs",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "order",
"type": "flags.0?Vector<Peer>"
}
],
"type": "Update"
},
{
"id": "-88417185",
"predicate": "inputPrivacyKeyPhoneCall",
"params": [],
"type": "InputPrivacyKey"
},
{
"id": "1030105979",
"predicate": "privacyKeyPhoneCall",
"params": [],
"type": "PrivacyKey"
},
{
"id": "324435594",
"predicate": "pageBlockUnsupported",
"params": [],
"type": "PageBlock"
},
{
"id": "-837994576",
"predicate": "pageBlockAnchor",
"params": [
{
"name": "name",
"type": "string"
}
],
"type": "PageBlock"
},
{
"id": "145955919",
"predicate": "pageBlockCollage",
"params": [
{
"name": "items",
"type": "Vector<PageBlock>"
},
{
"name": "caption",
"type": "RichText"
}
],
"type": "PageBlock"
},
{
"id": "506920429",
"predicate": "inputPhoneCall",
"params": [
{
"name": "id",
"type": "long"
},
{
"name": "access_hash",
"type": "long"
}
],
"type": "InputPhoneCall"
},
{
"id": "1399245077",
"predicate": "phoneCallEmpty",
"params": [
{
"name": "id",
"type": "long"
}
],
"type": "PhoneCall"
},
{
"id": "462375633",
"predicate": "phoneCallWaiting",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "id",
"type": "long"
},
{
"name": "access_hash",
"type": "long"
},
{
"name": "date",
"type": "int"
},
{
"name": "admin_id",
"type": "int"
},
{
"name": "participant_id",
"type": "int"
},
{
"name": "protocol",
"type": "PhoneCallProtocol"
},
{
"name": "receive_date",
"type": "flags.0?int"
}
],
"type": "PhoneCall"
},
{
"id": "1816431336",
"predicate": "phoneCallRequested",
"params": [
{
"name": "id",
"type": "long"
},
{
"name": "access_hash",
"type": "long"
},
{
"name": "date",
"type": "int"
},
{
"name": "admin_id",
"type": "int"
},
{
"name": "participant_id",
"type": "int"
},
{
"name": "g_a",
"type": "bytes"
},
{
"name": "protocol",
"type": "PhoneCallProtocol"
}
],
"type": "PhoneCall"
},
{
"id": "-1660057",
"predicate": "phoneCall",
"params": [
{
"name": "id",
"type": "long"
},
{
"name": "access_hash",
"type": "long"
},
{
"name": "date",
"type": "int"
},
{
"name": "admin_id",
"type": "int"
},
{
"name": "participant_id",
"type": "int"
},
{
"name": "g_a_or_b",
"type": "bytes"
},
{
"name": "key_fingerprint",
"type": "long"
},
{
"name": "protocol",
"type": "PhoneCallProtocol"
},
{
"name": "connection",
"type": "PhoneConnection"
},
{
"name": "alternative_connections",
"type": "Vector<PhoneConnection>"
},
{
"name": "start_date",
"type": "int"
}
],
"type": "PhoneCall"
},
{
"id": "1355435489",
"predicate": "phoneCallDiscarded",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "id",
"type": "long"
},
{
"name": "reason",
"type": "flags.0?PhoneCallDiscardReason"
},
{
"name": "duration",
"type": "flags.1?int"
}
],
"type": "PhoneCall"
},
{
"id": "-1655957568",
"predicate": "phoneConnection",
"params": [
{
"name": "id",
"type": "long"
},
{
"name": "ip",
"type": "string"
},
{
"name": "ipv6",
"type": "string"
},
{
"name": "port",
"type": "int"
},
{
"name": "peer_tag",
"type": "bytes"
}
],
"type": "PhoneConnection"
},
{
"id": "-1564789301",
"predicate": "phoneCallProtocol",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "udp_p2p",
"type": "flags.0?true"
},
{
"name": "udp_reflector",
"type": "flags.1?true"
},
{
"name": "min_layer",
"type": "int"
},
{
"name": "max_layer",
"type": "int"
}
],
"type": "PhoneCallProtocol"
},
{
"id": "-326966976",
"predicate": "phone.phoneCall",
"params": [
{
"name": "phone_call",
"type": "PhoneCall"
},
{
"name": "users",
"type": "Vector<User>"
}
],
"type": "phone.PhoneCall"
},
{
"id": "-2048646399",
"predicate": "phoneCallDiscardReasonMissed",
"params": [],
"type": "PhoneCallDiscardReason"
},
{
"id": "-527056480",
"predicate": "phoneCallDiscardReasonDisconnect",
"params": [],
"type": "PhoneCallDiscardReason"
},
{
"id": "1471006352",
"predicate": "phoneCallDiscardReasonHangup",
"params": [],
"type": "PhoneCallDiscardReason"
},
{
"id": "-84416311",
"predicate": "phoneCallDiscardReasonBusy",
"params": [],
"type": "PhoneCallDiscardReason"
}
],
"methods": [
{
"id": "421243333",
"method": "messages.getDialogs",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "exclude_pinned",
"type": "flags.0?true"
},
{
"name": "offset_date",
"type": "int"
},
{
"name": "offset_id",
"type": "int"
},
{
"name": "offset_peer",
"type": "InputPeer"
},
{
"name": "limit",
"type": "int"
}
],
"type": "messages.Dialogs"
},
{
"id": "-1896289088",
"method": "messages.setGameScore",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "edit_message",
"type": "flags.0?true"
},
{
"name": "force",
"type": "flags.1?true"
},
{
"name": "peer",
"type": "InputPeer"
},
{
"name": "id",
"type": "int"
},
{
"name": "user_id",
"type": "InputUser"
},
{
"name": "score",
"type": "int"
}
],
"type": "Updates"
},
{
"id": "363700068",
"method": "messages.setInlineGameScore",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "edit_message",
"type": "flags.0?true"
},
{
"name": "force",
"type": "flags.1?true"
},
{
"name": "id",
"type": "InputBotInlineMessageID"
},
{
"name": "user_id",
"type": "InputUser"
},
{
"name": "score",
"type": "int"
}
],
"type": "Bool"
},
{
"id": "852135825",
"method": "messages.getWebPage",
"params": [
{
"name": "url",
"type": "string"
},
{
"name": "hash",
"type": "int"
}
],
"type": "WebPage"
},
{
"id": "847887978",
"method": "messages.toggleDialogPin",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "pinned",
"type": "flags.0?true"
},
{
"name": "peer",
"type": "InputPeer"
}
],
"type": "Bool"
},
{
"id": "-1784678844",
"method": "messages.reorderPinnedDialogs",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "force",
"type": "flags.0?true"
},
{
"name": "order",
"type": "Vector<InputPeer>"
}
],
"type": "Bool"
},
{
"id": "-497756594",
"method": "messages.getPinnedDialogs",
"params": [],
"type": "messages.PeerDialogs"
},
{
"id": "-1541757468",
"method": "phone.requestCall",
"params": [
{
"name": "user_id",
"type": "InputUser"
},
{
"name": "random_id",
"type": "int"
},
{
"name": "g_a",
"type": "bytes"
},
{
"name": "protocol",
"type": "PhoneCallProtocol"
}
],
"type": "phone.PhoneCall"
},
{
"id": "571411232",
"method": "phone.acceptCall",
"params": [
{
"name": "peer",
"type": "InputPhoneCall"
},
{
"name": "g_b",
"type": "bytes"
},
{
"name": "key_fingerprint",
"type": "long"
},
{
"name": "protocol",
"type": "PhoneCallProtocol"
}
],
"type": "phone.PhoneCall"
},
{
"id": "1576783324",
"method": "phone.discardCall",
"params": [
{
"name": "peer",
"type": "InputPhoneCall"
},
{
"name": "duration",
"type": "int"
},
{
"name": "reason",
"type": "PhoneCallDiscardReason"
},
{
"name": "connection_id",
"type": "long"
}
],
"type": "Bool"
},
{
"id": "399855457",
"method": "phone.receivedCall",
"params": [
{
"name": "peer",
"type": "InputPhoneCall"
}
],
"type": "Bool"
}
]
}