1
0
mirror of https://github.com/danog/tl-schema.git synced 2024-11-30 04:19:47 +01:00
tl-schema/l053/schema.json
Viktor Oreshkin 9b79f6c0a3 Add layer 053
2017-08-20 15:57:21 +03:00

1010 lines
20 KiB
JSON

{
"constructors": [
{
"id": "-1063525281",
"predicate": "message",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "out",
"type": "flags.1?true"
},
{
"name": "mentioned",
"type": "flags.4?true"
},
{
"name": "media_unread",
"type": "flags.5?true"
},
{
"name": "silent",
"type": "flags.13?true"
},
{
"name": "post",
"type": "flags.14?true"
},
{
"name": "id",
"type": "int"
},
{
"name": "from_id",
"type": "flags.8?int"
},
{
"name": "to_id",
"type": "Peer"
},
{
"name": "fwd_from",
"type": "flags.2?MessageFwdHeader"
},
{
"name": "via_bot_id",
"type": "flags.11?int"
},
{
"name": "reply_to_msg_id",
"type": "flags.3?int"
},
{
"name": "date",
"type": "int"
},
{
"name": "message",
"type": "string"
},
{
"name": "media",
"type": "flags.9?MessageMedia"
},
{
"name": "reply_markup",
"type": "flags.6?ReplyMarkup"
},
{
"name": "entities",
"type": "flags.7?Vector<MessageEntity>"
},
{
"name": "views",
"type": "flags.10?int"
},
{
"name": "edit_date",
"type": "flags.15?int"
}
],
"type": "Message"
},
{
"id": "-1642487306",
"predicate": "messageService",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "out",
"type": "flags.1?true"
},
{
"name": "mentioned",
"type": "flags.4?true"
},
{
"name": "media_unread",
"type": "flags.5?true"
},
{
"name": "silent",
"type": "flags.13?true"
},
{
"name": "post",
"type": "flags.14?true"
},
{
"name": "id",
"type": "int"
},
{
"name": "from_id",
"type": "flags.8?int"
},
{
"name": "to_id",
"type": "Peer"
},
{
"name": "reply_to_msg_id",
"type": "flags.3?int"
},
{
"name": "date",
"type": "int"
},
{
"name": "action",
"type": "MessageAction"
}
],
"type": "Message"
},
{
"id": "1728035348",
"predicate": "dialog",
"params": [
{
"name": "flags",
"type": "#"
},
{
"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": "-1857044719",
"predicate": "updateShortMessage",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "out",
"type": "flags.1?true"
},
{
"name": "mentioned",
"type": "flags.4?true"
},
{
"name": "media_unread",
"type": "flags.5?true"
},
{
"name": "silent",
"type": "flags.13?true"
},
{
"name": "id",
"type": "int"
},
{
"name": "user_id",
"type": "int"
},
{
"name": "message",
"type": "string"
},
{
"name": "pts",
"type": "int"
},
{
"name": "pts_count",
"type": "int"
},
{
"name": "date",
"type": "int"
},
{
"name": "fwd_from",
"type": "flags.2?MessageFwdHeader"
},
{
"name": "via_bot_id",
"type": "flags.11?int"
},
{
"name": "reply_to_msg_id",
"type": "flags.3?int"
},
{
"name": "entities",
"type": "flags.7?Vector<MessageEntity>"
}
],
"type": "Updates"
},
{
"id": "377562760",
"predicate": "updateShortChatMessage",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "out",
"type": "flags.1?true"
},
{
"name": "mentioned",
"type": "flags.4?true"
},
{
"name": "media_unread",
"type": "flags.5?true"
},
{
"name": "silent",
"type": "flags.13?true"
},
{
"name": "id",
"type": "int"
},
{
"name": "from_id",
"type": "int"
},
{
"name": "chat_id",
"type": "int"
},
{
"name": "message",
"type": "string"
},
{
"name": "pts",
"type": "int"
},
{
"name": "pts_count",
"type": "int"
},
{
"name": "date",
"type": "int"
},
{
"name": "fwd_from",
"type": "flags.2?MessageFwdHeader"
},
{
"name": "via_bot_id",
"type": "flags.11?int"
},
{
"name": "reply_to_msg_id",
"type": "flags.3?int"
},
{
"name": "entities",
"type": "flags.7?Vector<MessageEntity>"
}
],
"type": "Updates"
},
{
"id": "301019932",
"predicate": "updateShortSentMessage",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "out",
"type": "flags.1?true"
},
{
"name": "id",
"type": "int"
},
{
"name": "pts",
"type": "int"
},
{
"name": "pts_count",
"type": "int"
},
{
"name": "date",
"type": "int"
},
{
"name": "media",
"type": "flags.9?MessageMedia"
},
{
"name": "entities",
"type": "flags.7?Vector<MessageEntity>"
}
],
"type": "Updates"
},
{
"id": "-2059962289",
"predicate": "channelForbidden",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "broadcast",
"type": "flags.5?true"
},
{
"name": "megagroup",
"type": "flags.8?true"
},
{
"name": "id",
"type": "int"
},
{
"name": "access_hash",
"type": "long"
},
{
"name": "title",
"type": "string"
}
],
"type": "Chat"
},
{
"id": "-1009430225",
"predicate": "channelFull",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "can_view_participants",
"type": "flags.3?true"
},
{
"name": "can_set_username",
"type": "flags.6?true"
},
{
"name": "id",
"type": "int"
},
{
"name": "about",
"type": "string"
},
{
"name": "participants_count",
"type": "flags.0?int"
},
{
"name": "admins_count",
"type": "flags.1?int"
},
{
"name": "kicked_count",
"type": "flags.2?int"
},
{
"name": "read_inbox_max_id",
"type": "int"
},
{
"name": "read_outbox_max_id",
"type": "int"
},
{
"name": "unread_count",
"type": "int"
},
{
"name": "chat_photo",
"type": "Photo"
},
{
"name": "notify_settings",
"type": "PeerNotifySettings"
},
{
"name": "exported_invite",
"type": "ExportedChatInvite"
},
{
"name": "bot_info",
"type": "Vector<BotInfo>"
},
{
"name": "migrated_from_chat_id",
"type": "flags.4?int"
},
{
"name": "migrated_from_max_id",
"type": "flags.4?int"
},
{
"name": "pinned_msg_id",
"type": "flags.5?int"
}
],
"type": "ChatFull"
},
{
"id": "-1725551049",
"predicate": "messages.channelMessages",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "pts",
"type": "int"
},
{
"name": "count",
"type": "int"
},
{
"name": "messages",
"type": "Vector<Message>"
},
{
"name": "chats",
"type": "Vector<Chat>"
},
{
"name": "users",
"type": "Vector<User>"
}
],
"type": "messages.Messages"
},
{
"id": "1091431943",
"predicate": "updates.channelDifferenceTooLong",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "final",
"type": "flags.0?true"
},
{
"name": "pts",
"type": "int"
},
{
"name": "timeout",
"type": "flags.1?int"
},
{
"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": "messages",
"type": "Vector<Message>"
},
{
"name": "chats",
"type": "Vector<Chat>"
},
{
"name": "users",
"type": "Vector<User>"
}
],
"type": "updates.ChannelDifference"
},
{
"id": "-847783593",
"predicate": "channelMessagesFilter",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "exclude_new_messages",
"type": "flags.1?true"
},
{
"name": "ranges",
"type": "Vector<MessageRange>"
}
],
"type": "ChannelMessagesFilter"
},
{
"id": "975236280",
"predicate": "inputMessagesFilterChatPhotos",
"params": [],
"type": "MessagesFilter"
},
{
"id": "634833351",
"predicate": "updateReadChannelOutbox",
"params": [
{
"name": "channel_id",
"type": "int"
},
{
"name": "max_id",
"type": "int"
}
],
"type": "Update"
},
{
"id": "-299124375",
"predicate": "updateDraftMessage",
"params": [
{
"name": "peer",
"type": "Peer"
},
{
"name": "draft",
"type": "DraftMessage"
}
],
"type": "Update"
},
{
"id": "-1169445179",
"predicate": "draftMessageEmpty",
"params": [],
"type": "DraftMessage"
},
{
"id": "-40996577",
"predicate": "draftMessage",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "no_webpage",
"type": "flags.1?true"
},
{
"name": "reply_to_msg_id",
"type": "flags.0?int"
},
{
"name": "message",
"type": "string"
},
{
"name": "entities",
"type": "flags.3?Vector<MessageEntity>"
},
{
"name": "date",
"type": "int"
}
],
"type": "DraftMessage"
},
{
"id": "-1615153660",
"predicate": "messageActionHistoryClear",
"params": [],
"type": "MessageAction"
}
],
"methods": [
{
"id": "-2035355412",
"method": "auth.sendCode",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "allow_flashcall",
"type": "flags.0?true"
},
{
"name": "phone_number",
"type": "string"
},
{
"name": "current_number",
"type": "flags.0?Bool"
},
{
"name": "api_id",
"type": "int"
},
{
"name": "api_hash",
"type": "string"
}
],
"type": "auth.SentCode"
},
{
"id": "1669245048",
"method": "account.registerDevice",
"params": [
{
"name": "token_type",
"type": "int"
},
{
"name": "token",
"type": "string"
}
],
"type": "Bool"
},
{
"id": "-732523960",
"method": "messages.search",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "peer",
"type": "InputPeer"
},
{
"name": "q",
"type": "string"
},
{
"name": "filter",
"type": "MessagesFilter"
},
{
"name": "min_date",
"type": "int"
},
{
"name": "max_date",
"type": "int"
},
{
"name": "offset",
"type": "int"
},
{
"name": "max_id",
"type": "int"
},
{
"name": "limit",
"type": "int"
}
],
"type": "messages.Messages"
},
{
"id": "469850889",
"method": "messages.deleteHistory",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "just_clear",
"type": "flags.0?true"
},
{
"name": "peer",
"type": "InputPeer"
},
{
"name": "max_id",
"type": "int"
}
],
"type": "messages.AffectedHistory"
},
{
"id": "-91733382",
"method": "messages.sendMessage",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "no_webpage",
"type": "flags.1?true"
},
{
"name": "silent",
"type": "flags.5?true"
},
{
"name": "background",
"type": "flags.6?true"
},
{
"name": "clear_draft",
"type": "flags.7?true"
},
{
"name": "peer",
"type": "InputPeer"
},
{
"name": "reply_to_msg_id",
"type": "flags.0?int"
},
{
"name": "message",
"type": "string"
},
{
"name": "random_id",
"type": "long"
},
{
"name": "reply_markup",
"type": "flags.2?ReplyMarkup"
},
{
"name": "entities",
"type": "flags.3?Vector<MessageEntity>"
}
],
"type": "Updates"
},
{
"id": "-923703407",
"method": "messages.sendMedia",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "silent",
"type": "flags.5?true"
},
{
"name": "background",
"type": "flags.6?true"
},
{
"name": "clear_draft",
"type": "flags.7?true"
},
{
"name": "peer",
"type": "InputPeer"
},
{
"name": "reply_to_msg_id",
"type": "flags.0?int"
},
{
"name": "media",
"type": "InputMedia"
},
{
"name": "random_id",
"type": "long"
},
{
"name": "reply_markup",
"type": "flags.2?ReplyMarkup"
}
],
"type": "Updates"
},
{
"id": "1888354709",
"method": "messages.forwardMessages",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "silent",
"type": "flags.5?true"
},
{
"name": "background",
"type": "flags.6?true"
},
{
"name": "from_peer",
"type": "InputPeer"
},
{
"name": "id",
"type": "Vector<int>"
},
{
"name": "random_id",
"type": "Vector<long>"
},
{
"name": "to_peer",
"type": "InputPeer"
}
],
"type": "Updates"
},
{
"id": "-1372724842",
"method": "help.getAppUpdate",
"params": [],
"type": "help.AppUpdate"
},
{
"id": "1295590211",
"method": "help.getInviteText",
"params": [],
"type": "help.InviteText"
},
{
"id": "-1189013126",
"method": "help.getAppChangelog",
"params": [],
"type": "help.AppChangelog"
},
{
"id": "889286899",
"method": "help.getTermsOfService",
"params": [],
"type": "help.TermsOfService"
},
{
"id": "-1318189314",
"method": "messages.sendInlineBotResult",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "silent",
"type": "flags.5?true"
},
{
"name": "background",
"type": "flags.6?true"
},
{
"name": "clear_draft",
"type": "flags.7?true"
},
{
"name": "peer",
"type": "InputPeer"
},
{
"name": "reply_to_msg_id",
"type": "flags.0?int"
},
{
"name": "random_id",
"type": "long"
},
{
"name": "query_id",
"type": "long"
},
{
"name": "id",
"type": "string"
}
],
"type": "Updates"
},
{
"id": "764901049",
"method": "messages.getPeerDialogs",
"params": [
{
"name": "peers",
"type": "Vector<InputPeer>"
}
],
"type": "messages.PeerDialogs"
},
{
"id": "-1137057461",
"method": "messages.saveDraft",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "no_webpage",
"type": "flags.1?true"
},
{
"name": "reply_to_msg_id",
"type": "flags.0?int"
},
{
"name": "peer",
"type": "InputPeer"
},
{
"name": "message",
"type": "string"
},
{
"name": "entities",
"type": "flags.3?Vector<MessageEntity>"
}
],
"type": "Bool"
},
{
"id": "1782549861",
"method": "messages.getAllDrafts",
"params": [],
"type": "Updates"
}
]
}