Update bytes docs

This commit is contained in:
Daniil Gentili 2018-04-19 17:56:40 +00:00
parent 3a5b18f742
commit 06370b8276
478 changed files with 694 additions and 478 deletions

View File

@ -29,7 +29,7 @@ $account_noPassword = ['_' => 'account.noPassword', 'new_salt' => 'bytes', 'emai
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.noPassword", "new_salt": "bytes", "email_unconfirmed_pattern": "string"}
{"_": "account.noPassword", "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "email_unconfirmed_pattern": "string"}
```

View File

@ -32,7 +32,7 @@ $account_password = ['_' => 'account.password', 'current_salt' => 'bytes', 'new_
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.password", "current_salt": "bytes", "new_salt": "bytes", "hint": "string", "has_recovery": Bool, "email_unconfirmed_pattern": "string"}
{"_": "account.password", "current_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hint": "string", "has_recovery": Bool, "email_unconfirmed_pattern": "string"}
```

View File

@ -33,7 +33,7 @@ $account_passwordInputSettings = ['_' => 'account.passwordInputSettings', 'new_s
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.passwordInputSettings", "new_salt": "bytes", "new_password_hash": "bytes", "hint": "string", "email": "string"}
{"_": "account.passwordInputSettings", "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_password_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hint": "string", "email": "string"}
```

View File

@ -29,7 +29,7 @@ $account_tmpPassword = ['_' => 'account.tmpPassword', 'tmp_password' => 'bytes',
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.tmpPassword", "tmp_password": "bytes", "valid_until": int}
{"_": "account.tmpPassword", "tmp_password": {"_": "bytes", "bytes":"base64 encoded bytes"}, "valid_until": int}
```

View File

@ -29,7 +29,7 @@ $auth_exportedAuthorization = ['_' => 'auth.exportedAuthorization', 'id' => int,
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.exportedAuthorization", "id": int, "bytes": "bytes"}
{"_": "auth.exportedAuthorization", "id": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -30,7 +30,7 @@ $cdnFileHash = ['_' => 'cdnFileHash', 'offset' => int, 'limit' => int, 'hash' =>
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "cdnFileHash", "offset": int, "limit": int, "hash": "bytes"}
{"_": "cdnFileHash", "offset": int, "limit": int, "hash": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -30,7 +30,7 @@ $decryptedMessageActionAcceptKey_20 = ['_' => 'decryptedMessageActionAcceptKey',
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "decryptedMessageActionAcceptKey", "exchange_id": long, "g_b": "bytes", "key_fingerprint": long}
{"_": "decryptedMessageActionAcceptKey", "exchange_id": long, "g_b": {"_": "bytes", "bytes":"base64 encoded bytes"}, "key_fingerprint": long}
```

View File

@ -29,7 +29,7 @@ $decryptedMessageActionRequestKey_20 = ['_' => 'decryptedMessageActionRequestKey
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "decryptedMessageActionRequestKey", "exchange_id": long, "g_a": "bytes"}
{"_": "decryptedMessageActionRequestKey", "exchange_id": long, "g_a": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -34,7 +34,7 @@ $decryptedMessageMediaDocument_45 = ['_' => 'decryptedMessageMediaDocument', 'th
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "decryptedMessageMediaDocument", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "mime_type": "string", "size": int, "attributes": [DocumentAttribute], "caption": "string"}
{"_": "decryptedMessageMediaDocument", "thumb": {"_": "bytes", "bytes":"base64 encoded bytes"}, "thumb_w": int, "thumb_h": int, "mime_type": "string", "size": int, "attributes": [DocumentAttribute], "caption": "string"}
```

View File

@ -33,7 +33,7 @@ $decryptedMessageMediaDocument_8 = ['_' => 'decryptedMessageMediaDocument', 'thu
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "decryptedMessageMediaDocument", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "file_name": "string", "mime_type": "string", "size": int}
{"_": "decryptedMessageMediaDocument", "thumb": {"_": "bytes", "bytes":"base64 encoded bytes"}, "thumb_w": int, "thumb_h": int, "file_name": "string", "mime_type": "string", "size": int}
```

View File

@ -34,7 +34,7 @@ $decryptedMessageMediaPhoto_45 = ['_' => 'decryptedMessageMediaPhoto', 'thumb' =
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "decryptedMessageMediaPhoto", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "w": int, "h": int, "size": int, "caption": "string"}
{"_": "decryptedMessageMediaPhoto", "thumb": {"_": "bytes", "bytes":"base64 encoded bytes"}, "thumb_w": int, "thumb_h": int, "w": int, "h": int, "size": int, "caption": "string"}
```

View File

@ -33,7 +33,7 @@ $decryptedMessageMediaPhoto_8 = ['_' => 'decryptedMessageMediaPhoto', 'thumb' =>
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "decryptedMessageMediaPhoto", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "w": int, "h": int, "size": int}
{"_": "decryptedMessageMediaPhoto", "thumb": {"_": "bytes", "bytes":"base64 encoded bytes"}, "thumb_w": int, "thumb_h": int, "w": int, "h": int, "size": int}
```

View File

@ -35,7 +35,7 @@ $decryptedMessageMediaVideo_17 = ['_' => 'decryptedMessageMediaVideo', 'thumb' =
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "decryptedMessageMediaVideo", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "duration": int, "mime_type": "string", "w": int, "h": int, "size": int}
{"_": "decryptedMessageMediaVideo", "thumb": {"_": "bytes", "bytes":"base64 encoded bytes"}, "thumb_w": int, "thumb_h": int, "duration": int, "mime_type": "string", "w": int, "h": int, "size": int}
```

View File

@ -36,7 +36,7 @@ $decryptedMessageMediaVideo_45 = ['_' => 'decryptedMessageMediaVideo', 'thumb' =
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "decryptedMessageMediaVideo", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "duration": int, "mime_type": "string", "w": int, "h": int, "size": int, "caption": "string"}
{"_": "decryptedMessageMediaVideo", "thumb": {"_": "bytes", "bytes":"base64 encoded bytes"}, "thumb_w": int, "thumb_h": int, "duration": int, "mime_type": "string", "w": int, "h": int, "size": int, "caption": "string"}
```

View File

@ -34,7 +34,7 @@ $decryptedMessageMediaVideo_8 = ['_' => 'decryptedMessageMediaVideo', 'thumb' =>
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "decryptedMessageMediaVideo", "thumb": "bytes", "thumb_w": int, "thumb_h": int, "duration": int, "w": int, "h": int, "size": int}
{"_": "decryptedMessageMediaVideo", "thumb": {"_": "bytes", "bytes":"base64 encoded bytes"}, "thumb_w": int, "thumb_h": int, "duration": int, "w": int, "h": int, "size": int}
```

View File

@ -32,7 +32,7 @@ $documentAttributeAudio = ['_' => 'documentAttributeAudio', 'voice' => Bool, 'du
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "documentAttributeAudio", "voice": Bool, "duration": int, "title": "string", "performer": "string", "waveform": "bytes"}
{"_": "documentAttributeAudio", "voice": Bool, "duration": int, "title": "string", "performer": "string", "waveform": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -34,7 +34,7 @@ $encryptedChat = ['_' => 'encryptedChat', 'id' => int, 'access_hash' => long, 'd
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "encryptedChat", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": "bytes", "key_fingerprint": long}
{"_": "encryptedChat", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": {"_": "bytes", "bytes":"base64 encoded bytes"}, "key_fingerprint": long}
```

View File

@ -33,7 +33,7 @@ $encryptedChatRequested = ['_' => 'encryptedChatRequested', 'id' => int, 'access
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "encryptedChatRequested", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a": "bytes"}
{"_": "encryptedChatRequested", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -35,7 +35,7 @@ $inputMediaInvoice = ['_' => 'inputMediaInvoice', 'title' => 'string', 'descript
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "inputMediaInvoice", "title": "string", "description": "string", "photo": InputWebDocument, "invoice": Invoice, "payload": "bytes", "provider": "string", "provider_data": DataJSON, "start_param": "string"}
{"_": "inputMediaInvoice", "title": "string", "description": "string", "photo": InputWebDocument, "invoice": Invoice, "payload": {"_": "bytes", "bytes":"base64 encoded bytes"}, "provider": "string", "provider_data": DataJSON, "start_param": "string"}
```

View File

@ -29,7 +29,7 @@ $inputPaymentCredentialsSaved = ['_' => 'inputPaymentCredentialsSaved', 'id' =>
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "inputPaymentCredentialsSaved", "id": "string", "tmp_password": "bytes"}
{"_": "inputPaymentCredentialsSaved", "id": "string", "tmp_password": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -29,7 +29,7 @@ $keyboardButtonCallback = ['_' => 'keyboardButtonCallback', 'text' => 'string',
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "keyboardButtonCallback", "text": "string", "data": "bytes"}
{"_": "keyboardButtonCallback", "text": "string", "data": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -33,7 +33,7 @@ $messageActionPaymentSentMe = ['_' => 'messageActionPaymentSentMe', 'currency' =
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messageActionPaymentSentMe", "currency": "string", "total_amount": long, "payload": "bytes", "info": PaymentRequestedInfo, "shipping_option_id": "string", "charge": PaymentCharge}
{"_": "messageActionPaymentSentMe", "currency": "string", "total_amount": long, "payload": {"_": "bytes", "bytes":"base64 encoded bytes"}, "info": PaymentRequestedInfo, "shipping_option_id": "string", "charge": PaymentCharge}
```

View File

@ -31,7 +31,7 @@ $messages_dhConfig = ['_' => 'messages.dhConfig', 'g' => int, 'p' => 'bytes', 'v
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messages.dhConfig", "g": int, "p": "bytes", "version": int, "random": "bytes"}
{"_": "messages.dhConfig", "g": int, "p": {"_": "bytes", "bytes":"base64 encoded bytes"}, "version": int, "random": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -28,7 +28,7 @@ $messages_dhConfigNotModified = ['_' => 'messages.dhConfigNotModified', 'random'
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messages.dhConfigNotModified", "random": "bytes"}
{"_": "messages.dhConfigNotModified", "random": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -38,7 +38,7 @@ $phoneCall = ['_' => 'phoneCall', 'id' => long, 'access_hash' => long, 'date' =>
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "phoneCall", "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": [PhoneConnection], "start_date": int}
{"_": "phoneCall", "id": long, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": {"_": "bytes", "bytes":"base64 encoded bytes"}, "key_fingerprint": long, "protocol": PhoneCallProtocol, "connection": PhoneConnection, "alternative_connections": [PhoneConnection], "start_date": int}
```

View File

@ -34,7 +34,7 @@ $phoneCallAccepted = ['_' => 'phoneCallAccepted', 'id' => long, 'access_hash' =>
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "phoneCallAccepted", "id": long, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_b": "bytes", "protocol": PhoneCallProtocol}
{"_": "phoneCallAccepted", "id": long, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_b": {"_": "bytes", "bytes":"base64 encoded bytes"}, "protocol": PhoneCallProtocol}
```

View File

@ -34,7 +34,7 @@ $phoneCallRequested = ['_' => 'phoneCallRequested', 'id' => long, 'access_hash'
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "phoneCallRequested", "id": long, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_hash": "bytes", "protocol": PhoneCallProtocol}
{"_": "phoneCallRequested", "id": long, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "protocol": PhoneCallProtocol}
```

View File

@ -32,7 +32,7 @@ $phoneConnection = ['_' => 'phoneConnection', 'id' => long, 'ip' => 'string', 'i
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "phoneConnection", "id": long, "ip": "string", "ipv6": "string", "port": int, "peer_tag": "bytes"}
{"_": "phoneConnection", "id": long, "ip": "string", "ipv6": "string", "port": int, "peer_tag": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -32,7 +32,7 @@ $photoCachedSize = ['_' => 'photoCachedSize', 'type' => 'string', 'location' =>
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "photoCachedSize", "type": "string", "location": FileLocation, "w": int, "h": int, "bytes": "bytes"}
{"_": "photoCachedSize", "type": "string", "location": FileLocation, "w": int, "h": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -34,7 +34,7 @@ $updateBotCallbackQuery = ['_' => 'updateBotCallbackQuery', 'query_id' => long,
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "updateBotCallbackQuery", "query_id": long, "user_id": int, "peer": Peer, "msg_id": int, "chat_instance": long, "data": "bytes", "game_short_name": "string"}
{"_": "updateBotCallbackQuery", "query_id": long, "user_id": int, "peer": Peer, "msg_id": int, "chat_instance": long, "data": {"_": "bytes", "bytes":"base64 encoded bytes"}, "game_short_name": "string"}
```

View File

@ -34,7 +34,7 @@ $updateBotPrecheckoutQuery = ['_' => 'updateBotPrecheckoutQuery', 'query_id' =>
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "updateBotPrecheckoutQuery", "query_id": long, "user_id": int, "payload": "bytes", "info": PaymentRequestedInfo, "shipping_option_id": "string", "currency": "string", "total_amount": long}
{"_": "updateBotPrecheckoutQuery", "query_id": long, "user_id": int, "payload": {"_": "bytes", "bytes":"base64 encoded bytes"}, "info": PaymentRequestedInfo, "shipping_option_id": "string", "currency": "string", "total_amount": long}
```

View File

@ -31,7 +31,7 @@ $updateBotShippingQuery = ['_' => 'updateBotShippingQuery', 'query_id' => long,
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "updateBotShippingQuery", "query_id": long, "user_id": int, "payload": "bytes", "shipping_address": PostAddress}
{"_": "updateBotShippingQuery", "query_id": long, "user_id": int, "payload": {"_": "bytes", "bytes":"base64 encoded bytes"}, "shipping_address": PostAddress}
```

View File

@ -33,7 +33,7 @@ $updateInlineBotCallbackQuery = ['_' => 'updateInlineBotCallbackQuery', 'query_i
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "updateInlineBotCallbackQuery", "query_id": long, "user_id": int, "msg_id": InputBotInlineMessageID, "chat_instance": long, "data": "bytes", "game_short_name": "string"}
{"_": "updateInlineBotCallbackQuery", "query_id": long, "user_id": int, "msg_id": InputBotInlineMessageID, "chat_instance": long, "data": {"_": "bytes", "bytes":"base64 encoded bytes"}, "game_short_name": "string"}
```

View File

@ -28,7 +28,7 @@ $upload_cdnFile = ['_' => 'upload.cdnFile', 'bytes' => 'bytes'];
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "upload.cdnFile", "bytes": "bytes"}
{"_": "upload.cdnFile", "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -28,7 +28,7 @@ $upload_cdnFileReuploadNeeded = ['_' => 'upload.cdnFileReuploadNeeded', 'request
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "upload.cdnFileReuploadNeeded", "request_token": "bytes"}
{"_": "upload.cdnFileReuploadNeeded", "request_token": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -30,7 +30,7 @@ $upload_file = ['_' => 'upload.file', 'type' => storage_FileType, 'mtime' => int
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "upload.file", "type": storage_FileType, "mtime": int, "bytes": "bytes"}
{"_": "upload.file", "type": storage_FileType, "mtime": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -32,7 +32,7 @@ $upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'fil
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "upload.fileCdnRedirect", "dc_id": int, "file_token": "bytes", "encryption_key": "bytes", "encryption_iv": "bytes", "cdn_file_hashes": [CdnFileHash]}
{"_": "upload.fileCdnRedirect", "dc_id": int, "file_token": {"_": "bytes", "bytes":"base64 encoded bytes"}, "encryption_key": {"_": "bytes", "bytes":"base64 encoded bytes"}, "encryption_iv": {"_": "bytes", "bytes":"base64 encoded bytes"}, "cdn_file_hashes": [CdnFileHash]}
```

View File

@ -32,7 +32,7 @@ $upload_webFile = ['_' => 'upload.webFile', 'size' => int, 'mime_type' => 'strin
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "upload.webFile", "size": int, "mime_type": "string", "file_type": storage_FileType, "mtime": int, "bytes": "bytes"}
{"_": "upload.webFile", "size": int, "mime_type": "string", "file_type": storage_FileType, "mtime": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -47,7 +47,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.getDocumentByHash
* params - `{"sha256": "bytes", "size": int, "mime_type": "string", }`
* params - `{"sha256": {"_": "bytes", "bytes":"base64 encoded bytes"}, "size": int, "mime_type": "string", }`

View File

@ -6,4 +6,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
## Type: bytes
[Back to constructor index](index.md)
A string of bytes of variable length, with length smaller than or equal to 16777215.
An object of type `\danog\MadelineProto\TL\Types\Bytes`.
When casted to string, turns into a string of bytes of variable length, with length smaller than or equal to 16777215.
When JSON-serialized, turns into an array of the following format:
```
[
'_' => 'bytes',
'bytes' => base64_encode($contents)
];
```

View File

@ -31,7 +31,7 @@ $client_DH_inner_data = ['_' => 'client_DH_inner_data', 'nonce' => int128, 'serv
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "client_DH_inner_data", "nonce": int128, "server_nonce": int128, "retry_id": long, "g_b": "bytes"}
{"_": "client_DH_inner_data", "nonce": int128, "server_nonce": int128, "retry_id": long, "g_b": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -28,7 +28,7 @@ $gzip_packed = ['_' => 'gzip_packed', 'packed_data' => 'bytes'];
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "gzip_packed", "packed_data": "bytes"}
{"_": "gzip_packed", "packed_data": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -29,7 +29,7 @@ $msgs_all_info = ['_' => 'msgs_all_info', 'msg_ids' => [long, long], 'info' => '
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "msgs_all_info", "msg_ids": [long], "info": "bytes"}
{"_": "msgs_all_info", "msg_ids": [long], "info": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -29,7 +29,7 @@ $msgs_state_info = ['_' => 'msgs_state_info', 'req_msg_id' => long, 'info' => 'b
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "msgs_state_info", "req_msg_id": long, "info": "bytes"}
{"_": "msgs_state_info", "req_msg_id": long, "info": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -33,7 +33,7 @@ $p_q_inner_data = ['_' => 'p_q_inner_data', 'pq' => 'bytes', 'p' => 'bytes', 'q'
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "p_q_inner_data", "pq": "bytes", "p": "bytes", "q": "bytes", "nonce": int128, "server_nonce": int128, "new_nonce": int256}
{"_": "p_q_inner_data", "pq": {"_": "bytes", "bytes":"base64 encoded bytes"}, "p": {"_": "bytes", "bytes":"base64 encoded bytes"}, "q": {"_": "bytes", "bytes":"base64 encoded bytes"}, "nonce": int128, "server_nonce": int128, "new_nonce": int256}
```

View File

@ -34,7 +34,7 @@ $p_q_inner_data_temp = ['_' => 'p_q_inner_data_temp', 'pq' => 'bytes', 'p' => 'b
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "p_q_inner_data_temp", "pq": "bytes", "p": "bytes", "q": "bytes", "nonce": int128, "server_nonce": int128, "new_nonce": int256, "expires_in": int}
{"_": "p_q_inner_data_temp", "pq": {"_": "bytes", "bytes":"base64 encoded bytes"}, "p": {"_": "bytes", "bytes":"base64 encoded bytes"}, "q": {"_": "bytes", "bytes":"base64 encoded bytes"}, "nonce": int128, "server_nonce": int128, "new_nonce": int256, "expires_in": int}
```

View File

@ -33,7 +33,7 @@ $resPQ = ['_' => 'resPQ', 'nonce' => int128, 'server_nonce' => int128, 'pq' => '
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "resPQ", "nonce": int128, "server_nonce": int128, "pq": "bytes", "server_public_key_fingerprints": [long]}
{"_": "resPQ", "nonce": int128, "server_nonce": int128, "pq": {"_": "bytes", "bytes":"base64 encoded bytes"}, "server_public_key_fingerprints": [long]}
```

View File

@ -33,7 +33,7 @@ $server_DH_inner_data = ['_' => 'server_DH_inner_data', 'nonce' => int128, 'serv
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "server_DH_inner_data", "nonce": int128, "server_nonce": int128, "g": int, "dh_prime": "bytes", "g_a": "bytes", "server_time": int}
{"_": "server_DH_inner_data", "nonce": int128, "server_nonce": int128, "g": int, "dh_prime": {"_": "bytes", "bytes":"base64 encoded bytes"}, "g_a": {"_": "bytes", "bytes":"base64 encoded bytes"}, "server_time": int}
```

View File

@ -30,7 +30,7 @@ $server_DH_params_ok = ['_' => 'server_DH_params_ok', 'nonce' => int128, 'server
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "server_DH_params_ok", "nonce": int128, "server_nonce": int128, "encrypted_answer": "bytes"}
{"_": "server_DH_params_ok", "nonce": int128, "server_nonce": int128, "encrypted_answer": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -50,7 +50,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - req_DH_params
* params - `{"nonce": int128, "server_nonce": int128, "p": "bytes", "q": "bytes", "public_key_fingerprint": long, "encrypted_data": "bytes", }`
* params - `{"nonce": int128, "server_nonce": int128, "p": {"_": "bytes", "bytes":"base64 encoded bytes"}, "q": {"_": "bytes", "bytes":"base64 encoded bytes"}, "public_key_fingerprint": long, "encrypted_data": {"_": "bytes", "bytes":"base64 encoded bytes"}, }`

View File

@ -47,7 +47,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - set_client_DH_params
* params - `{"nonce": int128, "server_nonce": int128, "encrypted_data": "bytes", }`
* params - `{"nonce": int128, "server_nonce": int128, "encrypted_data": {"_": "bytes", "bytes":"base64 encoded bytes"}, }`

View File

@ -6,4 +6,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
## Type: bytes
[Back to constructor index](index.md)
A string of bytes of variable length, with length smaller than or equal to 16777215.
An object of type `\danog\MadelineProto\TL\Types\Bytes`.
When casted to string, turns into a string of bytes of variable length, with length smaller than or equal to 16777215.
When JSON-serialized, turns into an array of the following format:
```
[
'_' => 'bytes',
'bytes' => base64_encode($contents)
];
```

View File

@ -6,4 +6,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
## Type: bytes
[Back to constructor index](index.md)
A string of bytes of variable length, with length smaller than or equal to 16777215.
An object of type `\danog\MadelineProto\TL\Types\Bytes`.
When casted to string, turns into a string of bytes of variable length, with length smaller than or equal to 16777215.
When JSON-serialized, turns into an array of the following format:
```
[
'_' => 'bytes',
'bytes' => base64_encode($contents)
];
```

View File

@ -29,7 +29,7 @@ $auth_exportedAuthorization = ['_' => 'auth.exportedAuthorization', 'id' => int,
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.exportedAuthorization", "id": int, "bytes": "bytes"}
{"_": "auth.exportedAuthorization", "id": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -34,7 +34,7 @@ $encryptedChat = ['_' => 'encryptedChat', 'id' => int, 'access_hash' => long, 'd
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "encryptedChat", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": "bytes", "key_fingerprint": long}
{"_": "encryptedChat", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": {"_": "bytes", "bytes":"base64 encoded bytes"}, "key_fingerprint": long}
```

View File

@ -33,7 +33,7 @@ $encryptedChatRequested = ['_' => 'encryptedChatRequested', 'id' => int, 'access
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "encryptedChatRequested", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a": "bytes"}
{"_": "encryptedChatRequested", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -28,7 +28,7 @@ $messageMediaUnsupported = ['_' => 'messageMediaUnsupported', 'bytes' => 'bytes'
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messageMediaUnsupported", "bytes": "bytes"}
{"_": "messageMediaUnsupported", "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -31,7 +31,7 @@ $messages_dhConfig = ['_' => 'messages.dhConfig', 'g' => int, 'p' => 'bytes', 'v
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messages.dhConfig", "g": int, "p": "bytes", "version": int, "random": "bytes"}
{"_": "messages.dhConfig", "g": int, "p": {"_": "bytes", "bytes":"base64 encoded bytes"}, "version": int, "random": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -28,7 +28,7 @@ $messages_dhConfigNotModified = ['_' => 'messages.dhConfigNotModified', 'random'
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messages.dhConfigNotModified", "random": "bytes"}
{"_": "messages.dhConfigNotModified", "random": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -32,7 +32,7 @@ $photoCachedSize = ['_' => 'photoCachedSize', 'type' => 'string', 'location' =>
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "photoCachedSize", "type": "string", "location": FileLocation, "w": int, "h": int, "bytes": "bytes"}
{"_": "photoCachedSize", "type": "string", "location": FileLocation, "w": int, "h": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -30,7 +30,7 @@ $upload_file = ['_' => 'upload.file', 'type' => storage_FileType, 'mtime' => int
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "upload.file", "type": storage_FileType, "mtime": int, "bytes": "bytes"}
{"_": "upload.file", "type": storage_FileType, "mtime": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -6,4 +6,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
## Type: bytes
[Back to constructor index](index.md)
A string of bytes of variable length, with length smaller than or equal to 16777215.
An object of type `\danog\MadelineProto\TL\Types\Bytes`.
When casted to string, turns into a string of bytes of variable length, with length smaller than or equal to 16777215.
When JSON-serialized, turns into an array of the following format:
```
[
'_' => 'bytes',
'bytes' => base64_encode($contents)
];
```

View File

@ -29,7 +29,7 @@ $auth_exportedAuthorization = ['_' => 'auth.exportedAuthorization', 'id' => int,
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.exportedAuthorization", "id": int, "bytes": "bytes"}
{"_": "auth.exportedAuthorization", "id": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -34,7 +34,7 @@ $encryptedChat = ['_' => 'encryptedChat', 'id' => int, 'access_hash' => long, 'd
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "encryptedChat", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": "bytes", "key_fingerprint": long}
{"_": "encryptedChat", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": {"_": "bytes", "bytes":"base64 encoded bytes"}, "key_fingerprint": long}
```

View File

@ -33,7 +33,7 @@ $encryptedChatRequested = ['_' => 'encryptedChatRequested', 'id' => int, 'access
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "encryptedChatRequested", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a": "bytes"}
{"_": "encryptedChatRequested", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -28,7 +28,7 @@ $messageMediaUnsupported = ['_' => 'messageMediaUnsupported', 'bytes' => 'bytes'
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messageMediaUnsupported", "bytes": "bytes"}
{"_": "messageMediaUnsupported", "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -31,7 +31,7 @@ $messages_dhConfig = ['_' => 'messages.dhConfig', 'g' => int, 'p' => 'bytes', 'v
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messages.dhConfig", "g": int, "p": "bytes", "version": int, "random": "bytes"}
{"_": "messages.dhConfig", "g": int, "p": {"_": "bytes", "bytes":"base64 encoded bytes"}, "version": int, "random": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -28,7 +28,7 @@ $messages_dhConfigNotModified = ['_' => 'messages.dhConfigNotModified', 'random'
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messages.dhConfigNotModified", "random": "bytes"}
{"_": "messages.dhConfigNotModified", "random": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -32,7 +32,7 @@ $photoCachedSize = ['_' => 'photoCachedSize', 'type' => 'string', 'location' =>
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "photoCachedSize", "type": "string", "location": FileLocation, "w": int, "h": int, "bytes": "bytes"}
{"_": "photoCachedSize", "type": "string", "location": FileLocation, "w": int, "h": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -30,7 +30,7 @@ $upload_file = ['_' => 'upload.file', 'type' => storage_FileType, 'mtime' => int
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "upload.file", "type": storage_FileType, "mtime": int, "bytes": "bytes"}
{"_": "upload.file", "type": storage_FileType, "mtime": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -6,4 +6,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
## Type: bytes
[Back to constructor index](index.md)
A string of bytes of variable length, with length smaller than or equal to 16777215.
An object of type `\danog\MadelineProto\TL\Types\Bytes`.
When casted to string, turns into a string of bytes of variable length, with length smaller than or equal to 16777215.
When JSON-serialized, turns into an array of the following format:
```
[
'_' => 'bytes',
'bytes' => base64_encode($contents)
];
```

View File

@ -28,7 +28,7 @@ $account_noPassword = ['_' => 'account.noPassword', 'new_salt' => 'bytes'];
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.noPassword", "new_salt": "bytes"}
{"_": "account.noPassword", "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -30,7 +30,7 @@ $account_password = ['_' => 'account.password', 'current_salt' => 'bytes', 'new_
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.password", "current_salt": "bytes", "new_salt": "bytes", "hint": "string"}
{"_": "account.password", "current_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hint": "string"}
```

View File

@ -29,7 +29,7 @@ $auth_exportedAuthorization = ['_' => 'auth.exportedAuthorization', 'id' => int,
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.exportedAuthorization", "id": int, "bytes": "bytes"}
{"_": "auth.exportedAuthorization", "id": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -34,7 +34,7 @@ $encryptedChat = ['_' => 'encryptedChat', 'id' => int, 'access_hash' => long, 'd
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "encryptedChat", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": "bytes", "key_fingerprint": long}
{"_": "encryptedChat", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": {"_": "bytes", "bytes":"base64 encoded bytes"}, "key_fingerprint": long}
```

View File

@ -33,7 +33,7 @@ $encryptedChatRequested = ['_' => 'encryptedChatRequested', 'id' => int, 'access
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "encryptedChatRequested", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a": "bytes"}
{"_": "encryptedChatRequested", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -31,7 +31,7 @@ $messages_dhConfig = ['_' => 'messages.dhConfig', 'g' => int, 'p' => 'bytes', 'v
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messages.dhConfig", "g": int, "p": "bytes", "version": int, "random": "bytes"}
{"_": "messages.dhConfig", "g": int, "p": {"_": "bytes", "bytes":"base64 encoded bytes"}, "version": int, "random": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -28,7 +28,7 @@ $messages_dhConfigNotModified = ['_' => 'messages.dhConfigNotModified', 'random'
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messages.dhConfigNotModified", "random": "bytes"}
{"_": "messages.dhConfigNotModified", "random": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -32,7 +32,7 @@ $photoCachedSize = ['_' => 'photoCachedSize', 'type' => 'string', 'location' =>
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "photoCachedSize", "type": "string", "location": FileLocation, "w": int, "h": int, "bytes": "bytes"}
{"_": "photoCachedSize", "type": "string", "location": FileLocation, "w": int, "h": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -30,7 +30,7 @@ $upload_file = ['_' => 'upload.file', 'type' => storage_FileType, 'mtime' => int
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "upload.file", "type": storage_FileType, "mtime": int, "bytes": "bytes"}
{"_": "upload.file", "type": storage_FileType, "mtime": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -48,7 +48,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - account.setPassword
* params - `{"current_password_hash": "bytes", "new_salt": "bytes", "new_password_hash": "bytes", "hint": "string", }`
* params - `{"current_password_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_password_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hint": "string", }`

View File

@ -6,4 +6,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
## Type: bytes
[Back to constructor index](index.md)
A string of bytes of variable length, with length smaller than or equal to 16777215.
An object of type `\danog\MadelineProto\TL\Types\Bytes`.
When casted to string, turns into a string of bytes of variable length, with length smaller than or equal to 16777215.
When JSON-serialized, turns into an array of the following format:
```
[
'_' => 'bytes',
'bytes' => base64_encode($contents)
];
```

View File

@ -29,7 +29,7 @@ $account_noPassword = ['_' => 'account.noPassword', 'new_salt' => 'bytes', 'emai
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.noPassword", "new_salt": "bytes", "email_unconfirmed_pattern": "string"}
{"_": "account.noPassword", "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "email_unconfirmed_pattern": "string"}
```

View File

@ -32,7 +32,7 @@ $account_password = ['_' => 'account.password', 'current_salt' => 'bytes', 'new_
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.password", "current_salt": "bytes", "new_salt": "bytes", "hint": "string", "has_recovery": Bool, "email_unconfirmed_pattern": "string"}
{"_": "account.password", "current_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hint": "string", "has_recovery": Bool, "email_unconfirmed_pattern": "string"}
```

View File

@ -33,7 +33,7 @@ $account_passwordInputSettings = ['_' => 'account.passwordInputSettings', 'new_s
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.passwordInputSettings", "new_salt": "bytes", "new_password_hash": "bytes", "hint": "string", "email": "string"}
{"_": "account.passwordInputSettings", "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_password_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hint": "string", "email": "string"}
```

View File

@ -29,7 +29,7 @@ $auth_exportedAuthorization = ['_' => 'auth.exportedAuthorization', 'id' => int,
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.exportedAuthorization", "id": int, "bytes": "bytes"}
{"_": "auth.exportedAuthorization", "id": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -34,7 +34,7 @@ $encryptedChat = ['_' => 'encryptedChat', 'id' => int, 'access_hash' => long, 'd
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "encryptedChat", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": "bytes", "key_fingerprint": long}
{"_": "encryptedChat", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": {"_": "bytes", "bytes":"base64 encoded bytes"}, "key_fingerprint": long}
```

View File

@ -33,7 +33,7 @@ $encryptedChatRequested = ['_' => 'encryptedChatRequested', 'id' => int, 'access
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "encryptedChatRequested", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a": "bytes"}
{"_": "encryptedChatRequested", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -31,7 +31,7 @@ $messages_dhConfig = ['_' => 'messages.dhConfig', 'g' => int, 'p' => 'bytes', 'v
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messages.dhConfig", "g": int, "p": "bytes", "version": int, "random": "bytes"}
{"_": "messages.dhConfig", "g": int, "p": {"_": "bytes", "bytes":"base64 encoded bytes"}, "version": int, "random": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -28,7 +28,7 @@ $messages_dhConfigNotModified = ['_' => 'messages.dhConfigNotModified', 'random'
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messages.dhConfigNotModified", "random": "bytes"}
{"_": "messages.dhConfigNotModified", "random": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -32,7 +32,7 @@ $photoCachedSize = ['_' => 'photoCachedSize', 'type' => 'string', 'location' =>
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "photoCachedSize", "type": "string", "location": FileLocation, "w": int, "h": int, "bytes": "bytes"}
{"_": "photoCachedSize", "type": "string", "location": FileLocation, "w": int, "h": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -30,7 +30,7 @@ $upload_file = ['_' => 'upload.file', 'type' => storage_FileType, 'mtime' => int
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "upload.file", "type": storage_FileType, "mtime": int, "bytes": "bytes"}
{"_": "upload.file", "type": storage_FileType, "mtime": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -6,4 +6,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
## Type: bytes
[Back to constructor index](index.md)
A string of bytes of variable length, with length smaller than or equal to 16777215.
An object of type `\danog\MadelineProto\TL\Types\Bytes`.
When casted to string, turns into a string of bytes of variable length, with length smaller than or equal to 16777215.
When JSON-serialized, turns into an array of the following format:
```
[
'_' => 'bytes',
'bytes' => base64_encode($contents)
];
```

View File

@ -29,7 +29,7 @@ $account_noPassword = ['_' => 'account.noPassword', 'new_salt' => 'bytes', 'emai
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.noPassword", "new_salt": "bytes", "email_unconfirmed_pattern": "string"}
{"_": "account.noPassword", "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "email_unconfirmed_pattern": "string"}
```

View File

@ -32,7 +32,7 @@ $account_password = ['_' => 'account.password', 'current_salt' => 'bytes', 'new_
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.password", "current_salt": "bytes", "new_salt": "bytes", "hint": "string", "has_recovery": Bool, "email_unconfirmed_pattern": "string"}
{"_": "account.password", "current_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hint": "string", "has_recovery": Bool, "email_unconfirmed_pattern": "string"}
```

View File

@ -33,7 +33,7 @@ $account_passwordInputSettings = ['_' => 'account.passwordInputSettings', 'new_s
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.passwordInputSettings", "new_salt": "bytes", "new_password_hash": "bytes", "hint": "string", "email": "string"}
{"_": "account.passwordInputSettings", "new_salt": {"_": "bytes", "bytes":"base64 encoded bytes"}, "new_password_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hint": "string", "email": "string"}
```

View File

@ -29,7 +29,7 @@ $auth_exportedAuthorization = ['_' => 'auth.exportedAuthorization', 'id' => int,
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.exportedAuthorization", "id": int, "bytes": "bytes"}
{"_": "auth.exportedAuthorization", "id": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -34,7 +34,7 @@ $encryptedChat = ['_' => 'encryptedChat', 'id' => int, 'access_hash' => long, 'd
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "encryptedChat", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": "bytes", "key_fingerprint": long}
{"_": "encryptedChat", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a_or_b": {"_": "bytes", "bytes":"base64 encoded bytes"}, "key_fingerprint": long}
```

View File

@ -33,7 +33,7 @@ $encryptedChatRequested = ['_' => 'encryptedChatRequested', 'id' => int, 'access
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "encryptedChatRequested", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a": "bytes"}
{"_": "encryptedChatRequested", "id": int, "access_hash": long, "date": int, "admin_id": int, "participant_id": int, "g_a": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

View File

@ -31,7 +31,7 @@ $messages_dhConfig = ['_' => 'messages.dhConfig', 'g' => int, 'p' => 'bytes', 'v
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messages.dhConfig", "g": int, "p": "bytes", "version": int, "random": "bytes"}
{"_": "messages.dhConfig", "g": int, "p": {"_": "bytes", "bytes":"base64 encoded bytes"}, "version": int, "random": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```

Some files were not shown because too many files have changed in this diff Show More