1
0
mirror of https://github.com/danog/tl-schema.git synced 2025-01-07 13:41:15 +01:00
tl-schema/l041/schema.json
Viktor Oreshkin 1461e6fc25 Add layer 041
2017-08-16 15:16:58 +03:00

452 lines
8.8 KiB
JSON

{
"constructors": [
{
"id": "-652419756",
"predicate": "chat",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "creator",
"type": "flags.0?true"
},
{
"name": "kicked",
"type": "flags.1?true"
},
{
"name": "left",
"type": "flags.2?true"
},
{
"name": "admins_enabled",
"type": "flags.3?true"
},
{
"name": "admin",
"type": "flags.4?true"
},
{
"name": "deactivated",
"type": "flags.5?true"
},
{
"name": "id",
"type": "int"
},
{
"name": "title",
"type": "string"
},
{
"name": "photo",
"type": "ChatPhoto"
},
{
"name": "participants_count",
"type": "int"
},
{
"name": "date",
"type": "int"
},
{
"name": "version",
"type": "int"
},
{
"name": "migrated_to",
"type": "flags.6?InputChannel"
}
],
"type": "Chat"
},
{
"id": "1217033015",
"predicate": "messageActionChatAddUser",
"params": [
{
"name": "users",
"type": "Vector<int>"
}
],
"type": "MessageAction"
},
{
"id": "1823925854",
"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": "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": "disabled_features",
"type": "Vector<DisabledFeature>"
}
],
"type": "Config"
},
{
"id": "-1813406880",
"predicate": "chatInvite",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "channel",
"type": "flags.0?true"
},
{
"name": "broadcast",
"type": "flags.1?true"
},
{
"name": "public",
"type": "flags.2?true"
},
{
"name": "megagroup",
"type": "flags.3?true"
},
{
"name": "title",
"type": "string"
}
],
"type": "ChatInvite"
},
{
"id": "1737397639",
"predicate": "channel",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "creator",
"type": "flags.0?true"
},
{
"name": "kicked",
"type": "flags.1?true"
},
{
"name": "left",
"type": "flags.2?true"
},
{
"name": "editor",
"type": "flags.3?true"
},
{
"name": "moderator",
"type": "flags.4?true"
},
{
"name": "broadcast",
"type": "flags.5?true"
},
{
"name": "verified",
"type": "flags.7?true"
},
{
"name": "megagroup",
"type": "flags.8?true"
},
{
"name": "id",
"type": "int"
},
{
"name": "access_hash",
"type": "long"
},
{
"name": "title",
"type": "string"
},
{
"name": "username",
"type": "flags.6?string"
},
{
"name": "photo",
"type": "ChatPhoto"
},
{
"name": "date",
"type": "int"
},
{
"name": "version",
"type": "int"
}
],
"type": "Chat"
},
{
"id": "-1640751649",
"predicate": "channelFull",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "can_view_participants",
"type": "flags.3?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": "unread_count",
"type": "int"
},
{
"name": "unread_important_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"
}
],
"type": "ChatFull"
},
{
"id": "1371385889",
"predicate": "messageActionChatMigrateTo",
"params": [
{
"name": "channel_id",
"type": "int"
}
],
"type": "MessageAction"
},
{
"id": "-1336546578",
"predicate": "messageActionChannelMigrateFrom",
"params": [
{
"name": "title",
"type": "string"
},
{
"name": "chat_id",
"type": "int"
}
],
"type": "MessageAction"
},
{
"id": "-1328445861",
"predicate": "channelParticipantsBots",
"params": [],
"type": "ChannelParticipantsFilter"
}
],
"methods": [
{
"id": "-421563528",
"method": "messages.startBot",
"params": [
{
"name": "bot",
"type": "InputUser"
},
{
"name": "peer",
"type": "InputPeer"
},
{
"name": "random_id",
"type": "long"
},
{
"name": "start_param",
"type": "string"
}
],
"type": "Updates"
},
{
"id": "-192332417",
"method": "channels.createChannel",
"params": [
{
"name": "flags",
"type": "#"
},
{
"name": "broadcast",
"type": "flags.0?true"
},
{
"name": "megagroup",
"type": "flags.1?true"
},
{
"name": "title",
"type": "string"
},
{
"name": "about",
"type": "string"
}
],
"type": "Updates"
},
{
"id": "363051235",
"method": "messages.migrateChat",
"params": [
{
"name": "chat_id",
"type": "int"
}
],
"type": "Updates"
},
{
"id": "-1640190800",
"method": "messages.searchGlobal",
"params": [
{
"name": "q",
"type": "string"
},
{
"name": "offset_date",
"type": "int"
},
{
"name": "offset_peer",
"type": "InputPeer"
},
{
"name": "offset_id",
"type": "int"
},
{
"name": "limit",
"type": "int"
}
],
"type": "messages.Messages"
}
]
}