From 3b772667df1702f81cd5a11b4acaf2c626fdbdb7 Mon Sep 17 00:00:00 2001 From: Viktor Oreshkin Date: Sat, 1 Jul 2017 18:34:02 +0300 Subject: [PATCH] Add layer 065 --- l065/README.md | 4 + l065/schema.json | 1281 ++++++++++++++++++++++++++++++++++++++++++++++ l065/schema.tl | 76 +++ schema.json | 956 +++++++++++++++++++++++++++++----- schema.tl | 74 ++- 5 files changed, 2243 insertions(+), 148 deletions(-) create mode 100644 l065/README.md create mode 100644 l065/schema.json create mode 100644 l065/schema.tl diff --git a/l065/README.md b/l065/README.md new file mode 100644 index 0000000..dc7b854 --- /dev/null +++ b/l065/README.md @@ -0,0 +1,4 @@ +### Version info +App|Version/Hash|Date +---|---|--- +TDesktop|df6972eeba0960de920ab733f032e3c75ad97def|31.03.17 diff --git a/l065/schema.json b/l065/schema.json new file mode 100644 index 0000000..988f8de --- /dev/null +++ b/l065/schema.json @@ -0,0 +1,1281 @@ +{ + "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" + }, + { + "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" + } + ], + "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" + } + ], + "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" + } + ], + "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" + }, + { + "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" + } + ], + "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" + } + ], + "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" + } + ], + "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" + } + ], + "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" + } + ], + "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" + } + ] +} \ No newline at end of file diff --git a/l065/schema.tl b/l065/schema.tl new file mode 100644 index 0000000..3efde06 --- /dev/null +++ b/l065/schema.tl @@ -0,0 +1,76 @@ +---types--- +// help.appChangelogEmpty#af7e0394 = help.AppChangelog; +// help.appChangelog#2a137e7c message:string media:MessageMedia entities:Vector = help.AppChangelog; +// invoiceAmount#9ea74300 label:string amount:int = InvoiceAmount; +// paymentChargeStripe#b861498 id:string stripe_charge_id:string = PaymentCharge; +// messageActionPaymentReceipt#a54bf5cd = MessageAction; +// paymentProviderStripe#38a9a3ec = PaymentProvider; +// paymentCredentialsToken#8970d135 token:string token_type:string = PaymentCredentials; +// userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull; +userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull; +// config#3af6fb5f flags:# phonecalls_enabled:flags.1?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int chat_big_size:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int rating_e_decay:int stickers_recent_limit:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int disabled_features:Vector = Config; +config#cb601684 flags:# phonecalls_enabled:flags.1?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int chat_big_size:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int rating_e_decay:int stickers_recent_limit:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string disabled_features:Vector = Config; +// phoneCallRequested#6c448ae8 id:long access_hash:long date:int admin_id:int participant_id:int g_a:bytes protocol:PhoneCallProtocol = PhoneCall; +phoneCallRequested#83761ce4 id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; +// phoneCallDiscarded#50ca4de1 flags:# id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; +phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; +// invoice#39d7e2cc flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true currency:string amounts:Vector = Invoice; +invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true currency:string prices:Vector = Invoice; +// inputMediaInvoice#52411b invoice:Invoice payload:bytes = InputMedia; +inputMediaInvoice#92153685 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string start_param:string = InputMedia; +// messageActionPaymentSentMe#2c39bfa9 flags:# currency:string total_amount:int payload:bytes add_info:PaymentRequestedInfo charge:PaymentCharge = MessageAction; +messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction; +// messageMediaInvoice#54293561 currency:string total_amount:int = MessageMedia; +messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia; +// messageActionPaymentSent#eacd8c80 currency:string total_amount:int = MessageAction; +messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction; +// payments.paymentForm#38253273 bot_id:int url:string invoice:Invoice provider:PaymentProvider users:Vector = payments.PaymentForm; +payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector = payments.PaymentForm; +updateBotWebhookJSON#8317c0c3 data:DataJSON = Update; +updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update; +updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update; +updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update; +dataJSON#7d748d04 data:string = DataJSON; +labeledPrice#cb296bf8 label:string amount:long = LabeledPrice; +paymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge; +paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials; +webDocument#c61acbd8 url:string access_hash:long size:int mime_type:string attributes:Vector dc_id:int = WebDocument; +inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector = InputWebDocument; +inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation; +upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile; +payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo; +payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult; +payments.paymentVerficationNeeded#6b56b921 url:string = payments.PaymentResult; +payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt; +payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo; +inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials; +inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials; +account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword; +shippingOption#b6213cdf id:string title:string prices:Vector = ShippingOption; +phoneCallAccepted#6d003d3f id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall; +---functions--- +// payments.confirmBuy#3709fb95 msg_id:int currency:string total_amount:int = Updates; +// help.getAppChangelog#b921197a = help.AppChangelog; +help.getAppChangelog#9010ef6f prev_app_version:string = Updates; +// phone.requestCall#a41aa5e4 user_id:InputUser random_id:int g_a:bytes protocol:PhoneCallProtocol = phone.PhoneCall; +phone.requestCall#5b95b3d4 user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall; +// phone.acceptCall#220f0b20 peer:InputPhoneCall g_b:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall; +phone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall; +// phone.discardCall#5dfbcddc peer:InputPhoneCall duration:int reason:PhoneCallDiscardReason connection_id:long = Bool; +phone.discardCall#78d413a6 peer:InputPhoneCall duration:int reason:PhoneCallDiscardReason connection_id:long = Updates; +// payments.sendPaymentForm#2922d956 msg_id:int credentials:PaymentCredentials info:PaymentRequestedInfo = Updates; +payments.sendPaymentForm#2b8879b3 flags:# msg_id:int requested_info_id:flags.0?string shipping_option_id:flags.1?string credentials:InputPaymentCredentials = payments.PaymentResult; +account.getTmpPassword#4a82327e password_hash:bytes period:int = account.TmpPassword; +messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector = Bool; +messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool; +upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile; +bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON; +bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool; +payments.getPaymentReceipt#a092a980 msg_id:int = payments.PaymentReceipt; +payments.validateRequestedInfo#770a8e74 flags:# save:flags.0?true msg_id:int info:PaymentRequestedInfo = payments.ValidatedRequestedInfo; +payments.getSavedInfo#227d824b = payments.SavedInfo; +payments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?true = Bool; +phone.getCallConfig#55451fa9 = DataJSON; +phone.confirmCall#2efe1722 peer:InputPhoneCall g_a:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall; +phone.setCallRating#1c536a34 peer:InputPhoneCall rating:int comment:string = Updates; +phone.saveCallDebug#277add7e peer:InputPhoneCall debug:DataJSON = Bool; diff --git a/schema.json b/schema.json index 14ce6af..b1a4c4e 100644 --- a/schema.json +++ b/schema.json @@ -1352,6 +1352,10 @@ "name": "phone_calls_available", "type": "flags.4?true" }, + { + "name": "phone_calls_private", + "type": "flags.5?true" + }, { "name": "user", "type": "User" @@ -2304,7 +2308,7 @@ "type": "DcOption" }, { - "id": "989264735", + "id": "-882895228", "predicate": "config", "params": [ { @@ -2423,6 +2427,10 @@ "name": "call_packet_timeout_ms", "type": "int" }, + { + "name": "me_url_prefix", + "type": "string" + }, { "name": "disabled_features", "type": "Vector" @@ -4706,31 +4714,6 @@ ], "type": "InputUser" }, - { - "id": "-1350696044", - "predicate": "help.appChangelogEmpty", - "params": [], - "type": "help.AppChangelog" - }, - { - "id": "705920636", - "predicate": "help.appChangelog", - "params": [ - { - "name": "message", - "type": "string" - }, - { - "name": "media", - "type": "MessageMedia" - }, - { - "name": "entities", - "type": "Vector" - } - ], - "type": "help.AppChangelog" - }, { "id": "-1148011883", "predicate": "messageEntityUnknown", @@ -8281,7 +8264,7 @@ "type": "PhoneCall" }, { - "id": "1816431336", + "id": "-2089411356", "predicate": "phoneCallRequested", "params": [ { @@ -8305,7 +8288,7 @@ "type": "int" }, { - "name": "g_a", + "name": "g_a_hash", "type": "bytes" }, { @@ -8374,6 +8357,14 @@ "name": "flags", "type": "#" }, + { + "name": "need_rating", + "type": "flags.2?true" + }, + { + "name": "need_debug", + "type": "flags.3?true" + }, { "name": "id", "type": "long" @@ -8521,22 +8512,7 @@ "type": "MessageAction" }, { - "id": "-1633205504", - "predicate": "invoiceAmount", - "params": [ - { - "name": "label", - "type": "string" - }, - { - "name": "amount", - "type": "int" - } - ], - "type": "InvoiceAmount" - }, - { - "id": "970449612", + "id": "-1022713000", "predicate": "invoice", "params": [ { @@ -8563,21 +8539,41 @@ "name": "shipping_address_requested", "type": "flags.4?true" }, + { + "name": "flexible", + "type": "flags.5?true" + }, { "name": "currency", "type": "string" }, { - "name": "amounts", - "type": "Vector" + "name": "prices", + "type": "Vector" } ], "type": "Invoice" }, { - "id": "5390619", + "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" @@ -8585,27 +8581,20 @@ { "name": "payload", "type": "bytes" + }, + { + "name": "provider", + "type": "string" + }, + { + "name": "start_param", + "type": "string" } ], "type": "InputMedia" }, { - "id": "193336472", - "predicate": "paymentChargeStripe", - "params": [ - { - "name": "id", - "type": "string" - }, - { - "name": "stripe_charge_id", - "type": "string" - } - ], - "type": "PaymentCharge" - }, - { - "id": "741982121", + "id": "-1892568281", "predicate": "messageActionPaymentSentMe", "params": [ { @@ -8618,15 +8607,19 @@ }, { "name": "total_amount", - "type": "int" + "type": "long" }, { "name": "payload", "type": "bytes" }, { - "name": "add_info", - "type": "PaymentRequestedInfo" + "name": "info", + "type": "flags.0?PaymentRequestedInfo" + }, + { + "name": "shipping_option_id", + "type": "flags.1?string" }, { "name": "charge", @@ -8636,16 +8629,48 @@ "type": "MessageAction" }, { - "id": "1411986785", + "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": "int" + "type": "long" + }, + { + "name": "start_param", + "type": "string" } ], "type": "MessageMedia" @@ -8662,7 +8687,7 @@ "type": "KeyboardButton" }, { - "id": "-355627904", + "id": "1080663248", "predicate": "messageActionPaymentSent", "params": [ { @@ -8671,42 +8696,58 @@ }, { "name": "total_amount", - "type": "int" + "type": "long" } ], "type": "MessageAction" }, { - "id": "-1521748531", - "predicate": "messageActionPaymentReceipt", - "params": [], - "type": "MessageAction" - }, - { - "id": "950641644", - "predicate": "paymentProviderStripe", - "params": [], - "type": "PaymentProvider" - }, - { - "id": "941961843", + "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": "invoice", - "type": "Invoice" + "name": "native_provider", + "type": "flags.4?string" }, { - "name": "provider", - "type": "PaymentProvider" + "name": "native_params", + "type": "flags.4?DataJSON" + }, + { + "name": "saved_info", + "type": "flags.0?PaymentRequestedInfo" + }, + { + "name": "saved_credentials", + "type": "flags.1?PaymentSavedCredentials" }, { "name": "users", @@ -8715,21 +8756,6 @@ ], "type": "payments.PaymentForm" }, - { - "id": "-1989095115", - "predicate": "paymentCredentialsToken", - "params": [ - { - "name": "token", - "type": "string" - }, - { - "name": "token_type", - "type": "string" - } - ], - "type": "PaymentCredentials" - }, { "id": "512535275", "predicate": "postAddress", @@ -8787,6 +8813,464 @@ } ], "type": "PaymentRequestedInfo" + }, + { + "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" + }, + { + "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" + } + ], + "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" + } + ], + "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" + } + ], + "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" + } + ], + "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": [ @@ -10468,10 +10952,15 @@ "type": "Updates" }, { - "id": "-1189013126", + "id": "-1877938321", "method": "help.getAppChangelog", - "params": [], - "type": "help.AppChangelog" + "params": [ + { + "name": "prev_app_version", + "type": "string" + } + ], + "type": "Updates" }, { "id": "-820669733", @@ -11906,7 +12395,7 @@ "type": "messages.PeerDialogs" }, { - "id": "-1541757468", + "id": "1536537556", "method": "phone.requestCall", "params": [ { @@ -11918,7 +12407,7 @@ "type": "int" }, { - "name": "g_a", + "name": "g_a_hash", "type": "bytes" }, { @@ -11929,7 +12418,7 @@ "type": "phone.PhoneCall" }, { - "id": "571411232", + "id": "1003664544", "method": "phone.acceptCall", "params": [ { @@ -11940,10 +12429,6 @@ "name": "g_b", "type": "bytes" }, - { - "name": "key_fingerprint", - "type": "long" - }, { "name": "protocol", "type": "PhoneCallProtocol" @@ -11952,7 +12437,7 @@ "type": "phone.PhoneCall" }, { - "id": "1576783324", + "id": "2027164582", "method": "phone.discardCall", "params": [ { @@ -11972,7 +12457,7 @@ "type": "long" } ], - "type": "Bool" + "type": "Updates" }, { "id": "399855457", @@ -12008,42 +12493,263 @@ "type": "payments.PaymentForm" }, { - "id": "690149718", + "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": "PaymentCredentials" + "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" + } + ], + "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": "Updates" + "type": "payments.ValidatedRequestedInfo" }, { - "id": "923401109", - "method": "payments.confirmBuy", + "id": "578650699", + "method": "payments.getSavedInfo", + "params": [], + "type": "payments.SavedInfo" + }, + { + "id": "-667062079", + "method": "payments.clearSavedInfo", "params": [ { - "name": "msg_id", + "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": "currency", + "name": "comment", "type": "string" - }, - { - "name": "total_amount", - "type": "int" } ], "type": "Updates" + }, + { + "id": "662363518", + "method": "phone.saveCallDebug", + "params": [ + { + "name": "peer", + "type": "InputPhoneCall" + }, + { + "name": "debug", + "type": "DataJSON" + } + ], + "type": "Bool" } ] } \ No newline at end of file diff --git a/schema.tl b/schema.tl index d96c12d..944d036 100644 --- a/schema.tl +++ b/schema.tl @@ -89,7 +89,7 @@ peerNotifyEventsAll#6d1ded88 = PeerNotifyEvents; peerNotifySettingsEmpty#70a68512 = PeerNotifySettings; peerNotifySettings#9acda4c0 flags:# show_previews:flags.0?true silent:flags.1?true mute_until:int sound:string = PeerNotifySettings; wallPaper#ccb03657 id:int title:string sizes:Vector color:int = WallPaper; -userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull; +userFull#f220f3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true user:User about:flags.1?string link:contacts.Link profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo common_chats_count:int = UserFull; contact#f911c994 user_id:int mutual:Bool = Contact; importedContact#d0028438 user_id:int client_id:long = ImportedContact; contactBlocked#561bc879 user_id:int date:int = ContactBlocked; @@ -136,7 +136,7 @@ updates#74ae4240 updates:Vector users:Vector chats:Vector da photos.photo#20212ca8 photo:Photo users:Vector = photos.Photo; upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File; dcOption#5d8c6cc flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true id:int ip_address:string port:int = DcOption; -config#3af6fb5f flags:# phonecalls_enabled:flags.1?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int chat_big_size:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int rating_e_decay:int stickers_recent_limit:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int disabled_features:Vector = Config; +config#cb601684 flags:# phonecalls_enabled:flags.1?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int chat_big_size:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int rating_e_decay:int stickers_recent_limit:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string disabled_features:Vector = Config; nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc; help.appUpdate#8987f311 id:int critical:Bool url:string text:string = help.AppUpdate; help.noAppUpdate#c45a6536 = help.AppUpdate; @@ -280,8 +280,6 @@ replyKeyboardMarkup#3502758c flags:# resize:flags.0?true single_use:flags.1?true inputMessagesFilterUrl#7ef0dd87 = MessagesFilter; inputPeerUser#7b8e7de6 user_id:int access_hash:long = InputPeer; inputUser#d8292816 user_id:int access_hash:long = InputUser; -help.appChangelogEmpty#af7e0394 = help.AppChangelog; -help.appChangelog#2a137e7c message:string media:MessageMedia entities:Vector = help.AppChangelog; messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity; messageEntityMention#fa04579d offset:int length:int = MessageEntity; messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity; @@ -496,9 +494,9 @@ pageBlockCollage#8b31c4f items:Vector caption:RichText = PageBlock; inputPhoneCall#1e36fded id:long access_hash:long = InputPhoneCall; phoneCallEmpty#5366c915 id:long = PhoneCall; phoneCallWaiting#1b8f4ad1 flags:# id:long access_hash:long date:int admin_id:int participant_id:int protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall; -phoneCallRequested#6c448ae8 id:long access_hash:long date:int admin_id:int participant_id:int g_a:bytes protocol:PhoneCallProtocol = PhoneCall; +phoneCallRequested#83761ce4 id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall; phoneCall#ffe6ab67 id:long access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connection:PhoneConnection alternative_connections:Vector start_date:int = PhoneCall; -phoneCallDiscarded#50ca4de1 flags:# id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; +phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall; phoneConnection#9d4c17c0 id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection; phoneCallProtocol#a2bb35cb flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int = PhoneCallProtocol; phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector = phone.PhoneCall; @@ -508,20 +506,37 @@ phoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason; phoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason; inputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter; messageActionPhoneCall#80e11a7f flags:# call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction; -invoiceAmount#9ea74300 label:string amount:int = InvoiceAmount; -invoice#39d7e2cc flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true currency:string amounts:Vector = Invoice; -inputMediaInvoice#52411b invoice:Invoice payload:bytes = InputMedia; -paymentChargeStripe#b861498 id:string stripe_charge_id:string = PaymentCharge; -messageActionPaymentSentMe#2c39bfa9 flags:# currency:string total_amount:int payload:bytes add_info:PaymentRequestedInfo charge:PaymentCharge = MessageAction; -messageMediaInvoice#54293561 currency:string total_amount:int = MessageMedia; +invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true currency:string prices:Vector = Invoice; +inputMediaInvoice#92153685 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string start_param:string = InputMedia; +messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction; +messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia; keyboardButtonBuy#afd93fbb text:string = KeyboardButton; -messageActionPaymentSent#eacd8c80 currency:string total_amount:int = MessageAction; -messageActionPaymentReceipt#a54bf5cd = MessageAction; -paymentProviderStripe#38a9a3ec = PaymentProvider; -payments.paymentForm#38253273 bot_id:int url:string invoice:Invoice provider:PaymentProvider users:Vector = payments.PaymentForm; -paymentCredentialsToken#8970d135 token:string token_type:string = PaymentCredentials; +messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction; +payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector = payments.PaymentForm; postAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress; paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo; +updateBotWebhookJSON#8317c0c3 data:DataJSON = Update; +updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update; +updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update; +updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update; +dataJSON#7d748d04 data:string = DataJSON; +labeledPrice#cb296bf8 label:string amount:long = LabeledPrice; +paymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge; +paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials; +webDocument#c61acbd8 url:string access_hash:long size:int mime_type:string attributes:Vector dc_id:int = WebDocument; +inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector = InputWebDocument; +inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation; +upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile; +payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo; +payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult; +payments.paymentVerficationNeeded#6b56b921 url:string = payments.PaymentResult; +payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt; +payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo; +inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials; +inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials; +account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword; +shippingOption#b6213cdf id:string title:string prices:Vector = ShippingOption; +phoneCallAccepted#6d003d3f id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall; ---functions--- invokeAfterMsg#cb9f372d msg_id:long query:!X = X; invokeAfterMsgs#3dc4b4f0 msg_ids:Vector query:!X = X; @@ -634,7 +649,7 @@ messages.installStickerSet#c78fe460 stickerset:InputStickerSet archived:Bool = m messages.uninstallStickerSet#f96e55de stickerset:InputStickerSet = Bool; auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization; messages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_param:string = Updates; -help.getAppChangelog#b921197a = help.AppChangelog; +help.getAppChangelog#9010ef6f prev_app_version:string = Updates; messages.reportSpam#cf1592db peer:InputPeer = Bool; messages.getMessagesViews#c4c8a55d peer:InputPeer id:Vector increment:Bool = Vector; updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; @@ -715,11 +730,24 @@ messages.getWebPage#32ca8f91 url:string hash:int = WebPage; messages.toggleDialogPin#3289be6a flags:# pinned:flags.0?true peer:InputPeer = Bool; messages.reorderPinnedDialogs#959ff644 flags:# force:flags.0?true order:Vector = Bool; messages.getPinnedDialogs#e254d64e = messages.PeerDialogs; -phone.requestCall#a41aa5e4 user_id:InputUser random_id:int g_a:bytes protocol:PhoneCallProtocol = phone.PhoneCall; -phone.acceptCall#220f0b20 peer:InputPhoneCall g_b:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall; -phone.discardCall#5dfbcddc peer:InputPhoneCall duration:int reason:PhoneCallDiscardReason connection_id:long = Bool; +phone.requestCall#5b95b3d4 user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall; +phone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall; +phone.discardCall#78d413a6 peer:InputPhoneCall duration:int reason:PhoneCallDiscardReason connection_id:long = Updates; phone.receivedCall#17d54f61 peer:InputPhoneCall = Bool; messages.reportEncryptedSpam#4b0c8c0f peer:InputEncryptedChat = Bool; payments.getPaymentForm#99f09745 msg_id:int = payments.PaymentForm; -payments.sendPaymentForm#2922d956 msg_id:int credentials:PaymentCredentials info:PaymentRequestedInfo = Updates; -payments.confirmBuy#3709fb95 msg_id:int currency:string total_amount:int = Updates; +payments.sendPaymentForm#2b8879b3 flags:# msg_id:int requested_info_id:flags.0?string shipping_option_id:flags.1?string credentials:InputPaymentCredentials = payments.PaymentResult; +account.getTmpPassword#4a82327e password_hash:bytes period:int = account.TmpPassword; +messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector = Bool; +messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool; +upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile; +bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON; +bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool; +payments.getPaymentReceipt#a092a980 msg_id:int = payments.PaymentReceipt; +payments.validateRequestedInfo#770a8e74 flags:# save:flags.0?true msg_id:int info:PaymentRequestedInfo = payments.ValidatedRequestedInfo; +payments.getSavedInfo#227d824b = payments.SavedInfo; +payments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?true = Bool; +phone.getCallConfig#55451fa9 = DataJSON; +phone.confirmCall#2efe1722 peer:InputPhoneCall g_a:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall; +phone.setCallRating#1c536a34 peer:InputPhoneCall rating:int comment:string = Updates; +phone.saveCallDebug#277add7e peer:InputPhoneCall debug:DataJSON = Bool;