Fix td_api scheme.
GitOrigin-RevId: c4eb552d8abb33932f649db9c8809570ea46cd71
This commit is contained in:
parent
a48fe6d2a5
commit
353cfb3196
@ -286,13 +286,6 @@ EOT
|
|||||||
$this->addDocumentation(' static const std::int32_t ID', <<<EOT
|
$this->addDocumentation(' static const std::int32_t ID', <<<EOT
|
||||||
/// Identifier uniquely determining a type of the object.
|
/// Identifier uniquely determining a type of the object.
|
||||||
EOT
|
EOT
|
||||||
);
|
|
||||||
|
|
||||||
$this->addDocumentation(' virtual std::int32_t get_id() const = 0;', <<<EOT
|
|
||||||
/**
|
|
||||||
* Returns identifier uniquely determining a type of the object.
|
|
||||||
*/
|
|
||||||
EOT
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->addDocumentation(' std::int32_t get_id() const final {', <<<EOT
|
$this->addDocumentation(' std::int32_t get_id() const final {', <<<EOT
|
||||||
|
@ -837,11 +837,11 @@ passportData type:PassportDataType data:string files:vector<file> selfie:file =
|
|||||||
inputPassportData type:PassportDataType data:string files:vector<InputFile> selfie:InputFile = InputPassportData;
|
inputPassportData type:PassportDataType data:string files:vector<InputFile> selfie:InputFile = InputPassportData;
|
||||||
|
|
||||||
|
|
||||||
//@class PassportAuthorizationForm Contains information about requested Telegram Passport authorization form @data Available data
|
//@description Contains information about requested Telegram Passport authorization form @id Authorization form unique identifier @data Available data
|
||||||
passportAuthorizationForm id:int32 data:vector<PassportData> = PassportAuthorizationForm;
|
passportAuthorizationForm id:int32 data:vector<passportData> = PassportAuthorizationForm;
|
||||||
|
|
||||||
|
|
||||||
//@class EncryptedCredentials Contains an encrypted Telegram Passport data credentials @data The encrypted credentials @hash The decrypted data hash @secret Encrypted by service public key secret for data decryption
|
//@description Contains an encrypted Telegram Passport data credentials @data The encrypted credentials @hash The decrypted data hash @secret Encrypted by service public key secret for data decryption
|
||||||
encryptedCredentials data:bytes hash:bytes secret:bytes = EncryptedCredentials;
|
encryptedCredentials data:bytes hash:bytes secret:bytes = EncryptedCredentials;
|
||||||
|
|
||||||
|
|
||||||
@ -968,7 +968,7 @@ messageWebsiteConnected domain_name:string = MessageContent;
|
|||||||
messagePassportDataSent types:vector<PassportDataType> = MessageContent;
|
messagePassportDataSent types:vector<PassportDataType> = MessageContent;
|
||||||
|
|
||||||
//@description Telegram Passport data has been received; for bots only @data List of received Telegram Passport data @credentials Encrypted Secure storage data credentials
|
//@description Telegram Passport data has been received; for bots only @data List of received Telegram Passport data @credentials Encrypted Secure storage data credentials
|
||||||
messagePassportDataReceived data:vector<EncryptedPassportData> credentials:encryptedCredentials = MessageContent;
|
messagePassportDataReceived data:vector<encryptedPassportData> credentials:encryptedCredentials = MessageContent;
|
||||||
|
|
||||||
//@description Message content that is not supported by the client
|
//@description Message content that is not supported by the client
|
||||||
messageUnsupported = MessageContent;
|
messageUnsupported = MessageContent;
|
||||||
@ -1675,7 +1675,13 @@ fileTypeProfilePhoto = FileType;
|
|||||||
//@description The file was sent to a secret chat (the file type is not known to the server)
|
//@description The file was sent to a secret chat (the file type is not known to the server)
|
||||||
fileTypeSecret = FileType;
|
fileTypeSecret = FileType;
|
||||||
|
|
||||||
|
//@description The file is a thumbnail of a file from a secret chat
|
||||||
|
fileTypeSecretThumbnail = FileType;
|
||||||
|
|
||||||
|
//@description The file is a file from Secure storage used for storing Telegram Passport files
|
||||||
fileTypeSecure = FileType;
|
fileTypeSecure = FileType;
|
||||||
|
|
||||||
|
//@description The file is an encrypted file from Secure storage used for storing Telegram Passport files
|
||||||
fileTypeSecureEncrypted = FileType;
|
fileTypeSecureEncrypted = FileType;
|
||||||
|
|
||||||
//@description The file is a sticker
|
//@description The file is a sticker
|
||||||
@ -1699,9 +1705,6 @@ fileTypeVoiceNote = FileType;
|
|||||||
//@description The file is a wallpaper
|
//@description The file is a wallpaper
|
||||||
fileTypeWallpaper = FileType;
|
fileTypeWallpaper = FileType;
|
||||||
|
|
||||||
//@description The file is a thumbnail of a file from a secret chat
|
|
||||||
fileTypeSecretThumbnail = FileType;
|
|
||||||
|
|
||||||
|
|
||||||
//@description Contains the storage usage statistics for a specific file type @file_type File type @size Total size of the files @count Total number of files
|
//@description Contains the storage usage statistics for a specific file type @file_type File type @size Total size of the files @count Total number of files
|
||||||
storageStatisticsByFileType file_type:FileType size:int53 count:int32 = StorageStatisticsByFileType;
|
storageStatisticsByFileType file_type:FileType size:int53 count:int32 = StorageStatisticsByFileType;
|
||||||
@ -2878,8 +2881,8 @@ resetNetworkStatistics = Ok;
|
|||||||
//@description Returns filled Telegram Passport data @type Data type @password Password of the current user
|
//@description Returns filled Telegram Passport data @type Data type @password Password of the current user
|
||||||
getPassportData type:PassportDataType password:string = PassportData;
|
getPassportData type:PassportDataType password:string = PassportData;
|
||||||
|
|
||||||
//@description Sets Telegram Passport data @type Data type @password Password of the current user
|
//@description Sets Telegram Passport data @data Input Telegram Passport data @password Password of the current user
|
||||||
setPassportData value:InputPassportData password:string = PassportData;
|
setPassportData data:inputPassportData password:string = PassportData;
|
||||||
|
|
||||||
//@description Deletes Telegram Passport data @type Data type
|
//@description Deletes Telegram Passport data @type Data type
|
||||||
deletePassportData type:PassportDataType = Ok;
|
deletePassportData type:PassportDataType = Ok;
|
||||||
|
Binary file not shown.
@ -6842,7 +6842,7 @@ void Td::on_request(uint64 id, td_api::setPassportData &request) {
|
|||||||
CHECK_IS_USER();
|
CHECK_IS_USER();
|
||||||
CLEAN_INPUT_STRING(request.password_);
|
CLEAN_INPUT_STRING(request.password_);
|
||||||
CREATE_REQUEST_PROMISE(promise);
|
CREATE_REQUEST_PROMISE(promise);
|
||||||
auto r_secure_value = get_secure_value(file_manager_.get(), std::move(request.value_));
|
auto r_secure_value = get_secure_value(file_manager_.get(), std::move(request.data_));
|
||||||
if (r_secure_value.is_error()) {
|
if (r_secure_value.is_error()) {
|
||||||
return promise.set_error(r_secure_value.move_as_error());
|
return promise.set_error(r_secure_value.move_as_error());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user