1
0
mirror of https://github.com/danog/tl-schema.git synced 2024-11-30 04:19:47 +01:00
tl-schema/l018/schema.json
Viktor Oreshkin 2fbf17d1bb Add layer 018
2017-08-16 15:13:41 +03:00

260 lines
4.7 KiB
JSON

{
"constructors": [
{
"id": "1879553105",
"predicate": "userSelf",
"params": [
{
"name": "id",
"type": "int"
},
{
"name": "first_name",
"type": "string"
},
{
"name": "last_name",
"type": "string"
},
{
"name": "username",
"type": "string"
},
{
"name": "phone",
"type": "string"
},
{
"name": "photo",
"type": "UserProfilePhoto"
},
{
"name": "status",
"type": "UserStatus"
},
{
"name": "inactive",
"type": "Bool"
}
],
"type": "User"
},
{
"id": "-894214632",
"predicate": "userContact",
"params": [
{
"name": "id",
"type": "int"
},
{
"name": "first_name",
"type": "string"
},
{
"name": "last_name",
"type": "string"
},
{
"name": "username",
"type": "string"
},
{
"name": "access_hash",
"type": "long"
},
{
"name": "phone",
"type": "string"
},
{
"name": "photo",
"type": "UserProfilePhoto"
},
{
"name": "status",
"type": "UserStatus"
}
],
"type": "User"
},
{
"id": "-640891665",
"predicate": "userRequest",
"params": [
{
"name": "id",
"type": "int"
},
{
"name": "first_name",
"type": "string"
},
{
"name": "last_name",
"type": "string"
},
{
"name": "username",
"type": "string"
},
{
"name": "access_hash",
"type": "long"
},
{
"name": "phone",
"type": "string"
},
{
"name": "photo",
"type": "UserProfilePhoto"
},
{
"name": "status",
"type": "UserStatus"
}
],
"type": "User"
},
{
"id": "123533224",
"predicate": "userForeign",
"params": [
{
"name": "id",
"type": "int"
},
{
"name": "first_name",
"type": "string"
},
{
"name": "last_name",
"type": "string"
},
{
"name": "username",
"type": "string"
},
{
"name": "access_hash",
"type": "long"
},
{
"name": "photo",
"type": "UserProfilePhoto"
},
{
"name": "status",
"type": "UserStatus"
}
],
"type": "User"
},
{
"id": "-704549510",
"predicate": "userDeleted",
"params": [
{
"name": "id",
"type": "int"
},
{
"name": "first_name",
"type": "string"
},
{
"name": "last_name",
"type": "string"
},
{
"name": "username",
"type": "string"
}
],
"type": "User"
},
{
"id": "-1489818765",
"predicate": "updateUserName",
"params": [
{
"name": "user_id",
"type": "int"
},
{
"name": "first_name",
"type": "string"
},
{
"name": "last_name",
"type": "string"
},
{
"name": "username",
"type": "string"
}
],
"type": "Update"
},
{
"id": "942527460",
"predicate": "updateServiceNotification",
"params": [
{
"name": "type",
"type": "string"
},
{
"name": "message",
"type": "string"
},
{
"name": "media",
"type": "MessageMedia"
},
{
"name": "popup",
"type": "Bool"
}
],
"type": "Update"
}
],
"methods": [
{
"id": "655677548",
"method": "account.checkUsername",
"params": [
{
"name": "username",
"type": "string"
}
],
"type": "Bool"
},
{
"id": "1040964988",
"method": "account.updateUsername",
"params": [
{
"name": "username",
"type": "string"
}
],
"type": "User"
},
{
"id": "479200567",
"method": "invokeWithLayer18",
"params": [
{
"name": "query",
"type": "!X"
}
],
"type": "X"
}
]
}