mirror of
https://github.com/danog/tl-schema.git
synced 2024-11-30 04:19:47 +01:00
1281 lines
25 KiB
JSON
1281 lines
25 KiB
JSON
{
|
|
"constructors": [
|
|
{
|
|
"id": "253890367",
|
|
"predicate": "userFull",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "blocked",
|
|
"type": "flags.0?true"
|
|
},
|
|
{
|
|
"name": "phone_calls_available",
|
|
"type": "flags.4?true"
|
|
},
|
|
{
|
|
"name": "phone_calls_private",
|
|
"type": "flags.5?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": "-882895228",
|
|
"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": "me_url_prefix",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "disabled_features",
|
|
"type": "Vector<DisabledFeature>"
|
|
}
|
|
],
|
|
"type": "Config"
|
|
},
|
|
{
|
|
"id": "-2089411356",
|
|
"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_hash",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"name": "protocol",
|
|
"type": "PhoneCallProtocol"
|
|
}
|
|
],
|
|
"type": "PhoneCall"
|
|
},
|
|
{
|
|
"id": "1355435489",
|
|
"predicate": "phoneCallDiscarded",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "need_rating",
|
|
"type": "flags.2?true"
|
|
},
|
|
{
|
|
"name": "need_debug",
|
|
"type": "flags.3?true"
|
|
},
|
|
{
|
|
"name": "id",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "reason",
|
|
"type": "flags.0?PhoneCallDiscardReason"
|
|
},
|
|
{
|
|
"name": "duration",
|
|
"type": "flags.1?int"
|
|
}
|
|
],
|
|
"type": "PhoneCall"
|
|
},
|
|
{
|
|
"id": "-1022713000",
|
|
"predicate": "invoice",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "test",
|
|
"type": "flags.0?true"
|
|
},
|
|
{
|
|
"name": "name_requested",
|
|
"type": "flags.1?true"
|
|
},
|
|
{
|
|
"name": "phone_requested",
|
|
"type": "flags.2?true"
|
|
},
|
|
{
|
|
"name": "email_requested",
|
|
"type": "flags.3?true"
|
|
},
|
|
{
|
|
"name": "shipping_address_requested",
|
|
"type": "flags.4?true"
|
|
},
|
|
{
|
|
"name": "flexible",
|
|
"type": "flags.5?true"
|
|
},
|
|
{
|
|
"name": "currency",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "prices",
|
|
"type": "Vector<LabeledPrice>"
|
|
}
|
|
],
|
|
"type": "Invoice"
|
|
},
|
|
{
|
|
"id": "-1844103547",
|
|
"predicate": "inputMediaInvoice",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "photo",
|
|
"type": "flags.0?InputWebDocument"
|
|
},
|
|
{
|
|
"name": "invoice",
|
|
"type": "Invoice"
|
|
},
|
|
{
|
|
"name": "payload",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"name": "provider",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "start_param",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "InputMedia"
|
|
},
|
|
{
|
|
"id": "-1892568281",
|
|
"predicate": "messageActionPaymentSentMe",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "currency",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "total_amount",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "payload",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"name": "info",
|
|
"type": "flags.0?PaymentRequestedInfo"
|
|
},
|
|
{
|
|
"name": "shipping_option_id",
|
|
"type": "flags.1?string"
|
|
},
|
|
{
|
|
"name": "charge",
|
|
"type": "PaymentCharge"
|
|
}
|
|
],
|
|
"type": "MessageAction"
|
|
},
|
|
{
|
|
"id": "-2074799289",
|
|
"predicate": "messageMediaInvoice",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "shipping_address_requested",
|
|
"type": "flags.1?true"
|
|
},
|
|
{
|
|
"name": "test",
|
|
"type": "flags.3?true"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "photo",
|
|
"type": "flags.0?WebDocument"
|
|
},
|
|
{
|
|
"name": "receipt_msg_id",
|
|
"type": "flags.2?int"
|
|
},
|
|
{
|
|
"name": "currency",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "total_amount",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "start_param",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "MessageMedia"
|
|
},
|
|
{
|
|
"id": "1080663248",
|
|
"predicate": "messageActionPaymentSent",
|
|
"params": [
|
|
{
|
|
"name": "currency",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "total_amount",
|
|
"type": "long"
|
|
}
|
|
],
|
|
"type": "MessageAction"
|
|
},
|
|
{
|
|
"id": "1062645411",
|
|
"predicate": "payments.paymentForm",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "can_save_credentials",
|
|
"type": "flags.2?true"
|
|
},
|
|
{
|
|
"name": "password_missing",
|
|
"type": "flags.3?true"
|
|
},
|
|
{
|
|
"name": "bot_id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "invoice",
|
|
"type": "Invoice"
|
|
},
|
|
{
|
|
"name": "provider_id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "url",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "native_provider",
|
|
"type": "flags.4?string"
|
|
},
|
|
{
|
|
"name": "native_params",
|
|
"type": "flags.4?DataJSON"
|
|
},
|
|
{
|
|
"name": "saved_info",
|
|
"type": "flags.0?PaymentRequestedInfo"
|
|
},
|
|
{
|
|
"name": "saved_credentials",
|
|
"type": "flags.1?PaymentSavedCredentials"
|
|
},
|
|
{
|
|
"name": "users",
|
|
"type": "Vector<User>"
|
|
}
|
|
],
|
|
"type": "payments.PaymentForm"
|
|
},
|
|
{
|
|
"id": "-2095595325",
|
|
"predicate": "updateBotWebhookJSON",
|
|
"params": [
|
|
{
|
|
"name": "data",
|
|
"type": "DataJSON"
|
|
}
|
|
],
|
|
"type": "Update"
|
|
},
|
|
{
|
|
"id": "-1684914010",
|
|
"predicate": "updateBotWebhookJSONQuery",
|
|
"params": [
|
|
{
|
|
"name": "query_id",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "data",
|
|
"type": "DataJSON"
|
|
},
|
|
{
|
|
"name": "timeout",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "Update"
|
|
},
|
|
{
|
|
"id": "-523384512",
|
|
"predicate": "updateBotShippingQuery",
|
|
"params": [
|
|
{
|
|
"name": "query_id",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "payload",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"name": "shipping_address",
|
|
"type": "PostAddress"
|
|
}
|
|
],
|
|
"type": "Update"
|
|
},
|
|
{
|
|
"id": "1563376297",
|
|
"predicate": "updateBotPrecheckoutQuery",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "query_id",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "payload",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"name": "info",
|
|
"type": "flags.0?PaymentRequestedInfo"
|
|
},
|
|
{
|
|
"name": "shipping_option_id",
|
|
"type": "flags.1?string"
|
|
},
|
|
{
|
|
"name": "currency",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "total_amount",
|
|
"type": "long"
|
|
}
|
|
],
|
|
"type": "Update"
|
|
},
|
|
{
|
|
"id": "2104790276",
|
|
"predicate": "dataJSON",
|
|
"params": [
|
|
{
|
|
"name": "data",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "DataJSON"
|
|
},
|
|
{
|
|
"id": "-886477832",
|
|
"predicate": "labeledPrice",
|
|
"params": [
|
|
{
|
|
"name": "label",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "amount",
|
|
"type": "long"
|
|
}
|
|
],
|
|
"type": "LabeledPrice"
|
|
},
|
|
{
|
|
"id": "-368917890",
|
|
"predicate": "paymentCharge",
|
|
"params": [
|
|
{
|
|
"name": "id",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "provider_charge_id",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "PaymentCharge"
|
|
},
|
|
{
|
|
"id": "-842892769",
|
|
"predicate": "paymentSavedCredentialsCard",
|
|
"params": [
|
|
{
|
|
"name": "id",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "PaymentSavedCredentials"
|
|
},
|
|
{
|
|
"id": "-971322408",
|
|
"predicate": "webDocument",
|
|
"params": [
|
|
{
|
|
"name": "url",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "access_hash",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "size",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "mime_type",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "attributes",
|
|
"type": "Vector<DocumentAttribute>"
|
|
},
|
|
{
|
|
"name": "dc_id",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "WebDocument"
|
|
},
|
|
{
|
|
"id": "-1678949555",
|
|
"predicate": "inputWebDocument",
|
|
"params": [
|
|
{
|
|
"name": "url",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "size",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "mime_type",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "attributes",
|
|
"type": "Vector<DocumentAttribute>"
|
|
}
|
|
],
|
|
"type": "InputWebDocument"
|
|
},
|
|
{
|
|
"id": "-1036396922",
|
|
"predicate": "inputWebFileLocation",
|
|
"params": [
|
|
{
|
|
"name": "url",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "access_hash",
|
|
"type": "long"
|
|
}
|
|
],
|
|
"type": "InputWebFileLocation"
|
|
},
|
|
{
|
|
"id": "568808380",
|
|
"predicate": "upload.webFile",
|
|
"params": [
|
|
{
|
|
"name": "size",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "mime_type",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "file_type",
|
|
"type": "storage.FileType"
|
|
},
|
|
{
|
|
"name": "mtime",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "bytes",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"type": "upload.WebFile"
|
|
},
|
|
{
|
|
"id": "-784000893",
|
|
"predicate": "payments.validatedRequestedInfo",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "id",
|
|
"type": "flags.0?string"
|
|
},
|
|
{
|
|
"name": "shipping_options",
|
|
"type": "flags.1?Vector<ShippingOption>"
|
|
}
|
|
],
|
|
"type": "payments.ValidatedRequestedInfo"
|
|
},
|
|
{
|
|
"id": "1314881805",
|
|
"predicate": "payments.paymentResult",
|
|
"params": [
|
|
{
|
|
"name": "updates",
|
|
"type": "Updates"
|
|
}
|
|
],
|
|
"type": "payments.PaymentResult"
|
|
},
|
|
{
|
|
"id": "1800845601",
|
|
"predicate": "payments.paymentVerficationNeeded",
|
|
"params": [
|
|
{
|
|
"name": "url",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "payments.PaymentResult"
|
|
},
|
|
{
|
|
"id": "1342771681",
|
|
"predicate": "payments.paymentReceipt",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "date",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "bot_id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "invoice",
|
|
"type": "Invoice"
|
|
},
|
|
{
|
|
"name": "provider_id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "info",
|
|
"type": "flags.0?PaymentRequestedInfo"
|
|
},
|
|
{
|
|
"name": "shipping",
|
|
"type": "flags.1?ShippingOption"
|
|
},
|
|
{
|
|
"name": "currency",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "total_amount",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "credentials_title",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "users",
|
|
"type": "Vector<User>"
|
|
}
|
|
],
|
|
"type": "payments.PaymentReceipt"
|
|
},
|
|
{
|
|
"id": "-74456004",
|
|
"predicate": "payments.savedInfo",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "has_saved_credentials",
|
|
"type": "flags.1?true"
|
|
},
|
|
{
|
|
"name": "saved_info",
|
|
"type": "flags.0?PaymentRequestedInfo"
|
|
}
|
|
],
|
|
"type": "payments.SavedInfo"
|
|
},
|
|
{
|
|
"id": "-1056001329",
|
|
"predicate": "inputPaymentCredentialsSaved",
|
|
"params": [
|
|
{
|
|
"name": "id",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "tmp_password",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"type": "InputPaymentCredentials"
|
|
},
|
|
{
|
|
"id": "873977640",
|
|
"predicate": "inputPaymentCredentials",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "save",
|
|
"type": "flags.0?true"
|
|
},
|
|
{
|
|
"name": "data",
|
|
"type": "DataJSON"
|
|
}
|
|
],
|
|
"type": "InputPaymentCredentials"
|
|
},
|
|
{
|
|
"id": "-614138572",
|
|
"predicate": "account.tmpPassword",
|
|
"params": [
|
|
{
|
|
"name": "tmp_password",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"name": "valid_until",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "account.TmpPassword"
|
|
},
|
|
{
|
|
"id": "-1239335713",
|
|
"predicate": "shippingOption",
|
|
"params": [
|
|
{
|
|
"name": "id",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "prices",
|
|
"type": "Vector<LabeledPrice>"
|
|
}
|
|
],
|
|
"type": "ShippingOption"
|
|
},
|
|
{
|
|
"id": "1828732223",
|
|
"predicate": "phoneCallAccepted",
|
|
"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_b",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"name": "protocol",
|
|
"type": "PhoneCallProtocol"
|
|
}
|
|
],
|
|
"type": "PhoneCall"
|
|
}
|
|
],
|
|
"methods": [
|
|
{
|
|
"id": "-1877938321",
|
|
"method": "help.getAppChangelog",
|
|
"params": [
|
|
{
|
|
"name": "prev_app_version",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "Updates"
|
|
},
|
|
{
|
|
"id": "1536537556",
|
|
"method": "phone.requestCall",
|
|
"params": [
|
|
{
|
|
"name": "user_id",
|
|
"type": "InputUser"
|
|
},
|
|
{
|
|
"name": "random_id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "g_a_hash",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"name": "protocol",
|
|
"type": "PhoneCallProtocol"
|
|
}
|
|
],
|
|
"type": "phone.PhoneCall"
|
|
},
|
|
{
|
|
"id": "1003664544",
|
|
"method": "phone.acceptCall",
|
|
"params": [
|
|
{
|
|
"name": "peer",
|
|
"type": "InputPhoneCall"
|
|
},
|
|
{
|
|
"name": "g_b",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"name": "protocol",
|
|
"type": "PhoneCallProtocol"
|
|
}
|
|
],
|
|
"type": "phone.PhoneCall"
|
|
},
|
|
{
|
|
"id": "2027164582",
|
|
"method": "phone.discardCall",
|
|
"params": [
|
|
{
|
|
"name": "peer",
|
|
"type": "InputPhoneCall"
|
|
},
|
|
{
|
|
"name": "duration",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "reason",
|
|
"type": "PhoneCallDiscardReason"
|
|
},
|
|
{
|
|
"name": "connection_id",
|
|
"type": "long"
|
|
}
|
|
],
|
|
"type": "Updates"
|
|
},
|
|
{
|
|
"id": "730364339",
|
|
"method": "payments.sendPaymentForm",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "msg_id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "requested_info_id",
|
|
"type": "flags.0?string"
|
|
},
|
|
{
|
|
"name": "shipping_option_id",
|
|
"type": "flags.1?string"
|
|
},
|
|
{
|
|
"name": "credentials",
|
|
"type": "InputPaymentCredentials"
|
|
}
|
|
],
|
|
"type": "payments.PaymentResult"
|
|
},
|
|
{
|
|
"id": "1250046590",
|
|
"method": "account.getTmpPassword",
|
|
"params": [
|
|
{
|
|
"name": "password_hash",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"name": "period",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "account.TmpPassword"
|
|
},
|
|
{
|
|
"id": "-436833542",
|
|
"method": "messages.setBotShippingResults",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "query_id",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "error",
|
|
"type": "flags.0?string"
|
|
},
|
|
{
|
|
"name": "shipping_options",
|
|
"type": "flags.1?Vector<ShippingOption>"
|
|
}
|
|
],
|
|
"type": "Bool"
|
|
},
|
|
{
|
|
"id": "163765653",
|
|
"method": "messages.setBotPrecheckoutResults",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "success",
|
|
"type": "flags.1?true"
|
|
},
|
|
{
|
|
"name": "query_id",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "error",
|
|
"type": "flags.0?string"
|
|
}
|
|
],
|
|
"type": "Bool"
|
|
},
|
|
{
|
|
"id": "619086221",
|
|
"method": "upload.getWebFile",
|
|
"params": [
|
|
{
|
|
"name": "location",
|
|
"type": "InputWebFileLocation"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "upload.WebFile"
|
|
},
|
|
{
|
|
"id": "-1440257555",
|
|
"method": "bots.sendCustomRequest",
|
|
"params": [
|
|
{
|
|
"name": "custom_method",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "params",
|
|
"type": "DataJSON"
|
|
}
|
|
],
|
|
"type": "DataJSON"
|
|
},
|
|
{
|
|
"id": "-434028723",
|
|
"method": "bots.answerWebhookJSONQuery",
|
|
"params": [
|
|
{
|
|
"name": "query_id",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "data",
|
|
"type": "DataJSON"
|
|
}
|
|
],
|
|
"type": "Bool"
|
|
},
|
|
{
|
|
"id": "-1601001088",
|
|
"method": "payments.getPaymentReceipt",
|
|
"params": [
|
|
{
|
|
"name": "msg_id",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "payments.PaymentReceipt"
|
|
},
|
|
{
|
|
"id": "1997180532",
|
|
"method": "payments.validateRequestedInfo",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "save",
|
|
"type": "flags.0?true"
|
|
},
|
|
{
|
|
"name": "msg_id",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "info",
|
|
"type": "PaymentRequestedInfo"
|
|
}
|
|
],
|
|
"type": "payments.ValidatedRequestedInfo"
|
|
},
|
|
{
|
|
"id": "578650699",
|
|
"method": "payments.getSavedInfo",
|
|
"params": [],
|
|
"type": "payments.SavedInfo"
|
|
},
|
|
{
|
|
"id": "-667062079",
|
|
"method": "payments.clearSavedInfo",
|
|
"params": [
|
|
{
|
|
"name": "flags",
|
|
"type": "#"
|
|
},
|
|
{
|
|
"name": "credentials",
|
|
"type": "flags.0?true"
|
|
},
|
|
{
|
|
"name": "info",
|
|
"type": "flags.1?true"
|
|
}
|
|
],
|
|
"type": "Bool"
|
|
},
|
|
{
|
|
"id": "1430593449",
|
|
"method": "phone.getCallConfig",
|
|
"params": [],
|
|
"type": "DataJSON"
|
|
},
|
|
{
|
|
"id": "788404002",
|
|
"method": "phone.confirmCall",
|
|
"params": [
|
|
{
|
|
"name": "peer",
|
|
"type": "InputPhoneCall"
|
|
},
|
|
{
|
|
"name": "g_a",
|
|
"type": "bytes"
|
|
},
|
|
{
|
|
"name": "key_fingerprint",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "protocol",
|
|
"type": "PhoneCallProtocol"
|
|
}
|
|
],
|
|
"type": "phone.PhoneCall"
|
|
},
|
|
{
|
|
"id": "475228724",
|
|
"method": "phone.setCallRating",
|
|
"params": [
|
|
{
|
|
"name": "peer",
|
|
"type": "InputPhoneCall"
|
|
},
|
|
{
|
|
"name": "rating",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "comment",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "Updates"
|
|
},
|
|
{
|
|
"id": "662363518",
|
|
"method": "phone.saveCallDebug",
|
|
"params": [
|
|
{
|
|
"name": "peer",
|
|
"type": "InputPhoneCall"
|
|
},
|
|
{
|
|
"name": "debug",
|
|
"type": "DataJSON"
|
|
}
|
|
],
|
|
"type": "Bool"
|
|
}
|
|
]
|
|
} |