mirror of
https://github.com/danog/tl-schema.git
synced 2024-11-30 04:19:47 +01:00
560 lines
11 KiB
JSON
560 lines
11 KiB
JSON
{
|
|
"constructors": [
|
|
{
|
|
"id": "-139464256",
|
|
"predicate": "inputMediaUploadedPhoto",
|
|
"params": [
|
|
{
|
|
"name": "file",
|
|
"type": "InputFile"
|
|
},
|
|
{
|
|
"name": "caption",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "InputMedia"
|
|
},
|
|
{
|
|
"id": "-373312269",
|
|
"predicate": "inputMediaPhoto",
|
|
"params": [
|
|
{
|
|
"name": "id",
|
|
"type": "InputPhoto"
|
|
},
|
|
{
|
|
"name": "caption",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "InputMedia"
|
|
},
|
|
{
|
|
"id": "-515910468",
|
|
"predicate": "inputMediaUploadedVideo",
|
|
"params": [
|
|
{
|
|
"name": "file",
|
|
"type": "InputFile"
|
|
},
|
|
{
|
|
"name": "duration",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "w",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "h",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "caption",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "InputMedia"
|
|
},
|
|
{
|
|
"id": "-1761896484",
|
|
"predicate": "inputMediaUploadedThumbVideo",
|
|
"params": [
|
|
{
|
|
"name": "file",
|
|
"type": "InputFile"
|
|
},
|
|
{
|
|
"name": "thumb",
|
|
"type": "InputFile"
|
|
},
|
|
{
|
|
"name": "duration",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "w",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "h",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "caption",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "InputMedia"
|
|
},
|
|
{
|
|
"id": "-1821749571",
|
|
"predicate": "inputMediaVideo",
|
|
"params": [
|
|
{
|
|
"name": "id",
|
|
"type": "InputVideo"
|
|
},
|
|
{
|
|
"name": "caption",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "InputMedia"
|
|
},
|
|
{
|
|
"id": "-891418735",
|
|
"predicate": "chatFull",
|
|
"params": [
|
|
{
|
|
"name": "id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "participants",
|
|
"type": "ChatParticipants"
|
|
},
|
|
{
|
|
"name": "chat_photo",
|
|
"type": "Photo"
|
|
},
|
|
{
|
|
"name": "notify_settings",
|
|
"type": "PeerNotifySettings"
|
|
},
|
|
{
|
|
"name": "exported_invite",
|
|
"type": "ExportedChatInvite"
|
|
}
|
|
],
|
|
"type": "ChatFull"
|
|
},
|
|
{
|
|
"id": "1032643901",
|
|
"predicate": "messageMediaPhoto",
|
|
"params": [
|
|
{
|
|
"name": "photo",
|
|
"type": "Photo"
|
|
},
|
|
{
|
|
"name": "caption",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "MessageMedia"
|
|
},
|
|
{
|
|
"id": "1540298357",
|
|
"predicate": "messageMediaVideo",
|
|
"params": [
|
|
{
|
|
"name": "video",
|
|
"type": "Video"
|
|
},
|
|
{
|
|
"name": "caption",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "MessageMedia"
|
|
},
|
|
{
|
|
"id": "-1014792074",
|
|
"predicate": "photo",
|
|
"params": [
|
|
{
|
|
"name": "id",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "access_hash",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "date",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "geo",
|
|
"type": "GeoPoint"
|
|
},
|
|
{
|
|
"name": "sizes",
|
|
"type": "Vector<PhotoSize>"
|
|
}
|
|
],
|
|
"type": "Photo"
|
|
},
|
|
{
|
|
"id": "-291550643",
|
|
"predicate": "video",
|
|
"params": [
|
|
{
|
|
"name": "id",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "access_hash",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "date",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "duration",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "size",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "thumb",
|
|
"type": "PhotoSize"
|
|
},
|
|
{
|
|
"name": "dc_id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "w",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "h",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "Video"
|
|
},
|
|
{
|
|
"id": "1311946900",
|
|
"predicate": "config",
|
|
"params": [
|
|
{
|
|
"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": "broadcast_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": "disabled_features",
|
|
"type": "Vector<DisabledFeature>"
|
|
}
|
|
],
|
|
"type": "Config"
|
|
},
|
|
{
|
|
"id": "-378127636",
|
|
"predicate": "sendMessageUploadVideoAction",
|
|
"params": [
|
|
{
|
|
"name": "progress",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "SendMessageAction"
|
|
},
|
|
{
|
|
"id": "-212740181",
|
|
"predicate": "sendMessageUploadAudioAction",
|
|
"params": [
|
|
{
|
|
"name": "progress",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "SendMessageAction"
|
|
},
|
|
{
|
|
"id": "-774682074",
|
|
"predicate": "sendMessageUploadPhotoAction",
|
|
"params": [
|
|
{
|
|
"name": "progress",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "SendMessageAction"
|
|
},
|
|
{
|
|
"id": "-1441998364",
|
|
"predicate": "sendMessageUploadDocumentAction",
|
|
"params": [
|
|
{
|
|
"name": "progress",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "SendMessageAction"
|
|
},
|
|
{
|
|
"id": "673687578",
|
|
"predicate": "inputMediaVenue",
|
|
"params": [
|
|
{
|
|
"name": "geo_point",
|
|
"type": "InputGeoPoint"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "address",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "provider",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "venue_id",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "InputMedia"
|
|
},
|
|
{
|
|
"id": "2031269663",
|
|
"predicate": "messageMediaVenue",
|
|
"params": [
|
|
{
|
|
"name": "geo",
|
|
"type": "GeoPoint"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "address",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "provider",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "venue_id",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "MessageMedia"
|
|
},
|
|
{
|
|
"id": "-1551583367",
|
|
"predicate": "receivedNotifyMessage",
|
|
"params": [
|
|
{
|
|
"name": "id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "flags",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "ReceivedNotifyMessage"
|
|
},
|
|
{
|
|
"id": "1776236393",
|
|
"predicate": "chatInviteEmpty",
|
|
"params": [],
|
|
"type": "ExportedChatInvite"
|
|
},
|
|
{
|
|
"id": "-64092740",
|
|
"predicate": "chatInviteExported",
|
|
"params": [
|
|
{
|
|
"name": "link",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "ExportedChatInvite"
|
|
},
|
|
{
|
|
"id": "1516793212",
|
|
"predicate": "chatInviteAlready",
|
|
"params": [
|
|
{
|
|
"name": "chat",
|
|
"type": "Chat"
|
|
}
|
|
],
|
|
"type": "ChatInvite"
|
|
},
|
|
{
|
|
"id": "-829325875",
|
|
"predicate": "chatInvite",
|
|
"params": [
|
|
{
|
|
"name": "title",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "ChatInvite"
|
|
},
|
|
{
|
|
"id": "-123931160",
|
|
"predicate": "messageActionChatJoinedByLink",
|
|
"params": [
|
|
{
|
|
"name": "inviter_id",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "MessageAction"
|
|
},
|
|
{
|
|
"id": "1757493555",
|
|
"predicate": "updateReadMessagesContents",
|
|
"params": [
|
|
{
|
|
"name": "messages",
|
|
"type": "Vector<int>"
|
|
},
|
|
{
|
|
"name": "pts",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "pts_count",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "Update"
|
|
}
|
|
],
|
|
"methods": [
|
|
{
|
|
"id": "94983360",
|
|
"method": "messages.receivedMessages",
|
|
"params": [
|
|
{
|
|
"name": "max_id",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "Vector<ReceivedNotifyMessage>"
|
|
},
|
|
{
|
|
"id": "-1080796745",
|
|
"method": "invokeWithoutUpdates",
|
|
"params": [
|
|
{
|
|
"name": "query",
|
|
"type": "!X"
|
|
}
|
|
],
|
|
"type": "X"
|
|
},
|
|
{
|
|
"id": "2106086025",
|
|
"method": "messages.exportChatInvite",
|
|
"params": [
|
|
{
|
|
"name": "chat_id",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "ExportedChatInvite"
|
|
},
|
|
{
|
|
"id": "1051570619",
|
|
"method": "messages.checkChatInvite",
|
|
"params": [
|
|
{
|
|
"name": "hash",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "ChatInvite"
|
|
},
|
|
{
|
|
"id": "1817183516",
|
|
"method": "messages.importChatInvite",
|
|
"params": [
|
|
{
|
|
"name": "hash",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "Updates"
|
|
}
|
|
]
|
|
} |