mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
commit
29c092c556
2 changed files with 86 additions and 86 deletions
|
@ -26,9 +26,9 @@ pub struct EncryptedPassportElement {
|
|||
pub enum EncryptedPassportElementKind {
|
||||
PersonalDetails {
|
||||
/// Base64-encoded encrypted Telegram Passport element data provided
|
||||
/// by the user, available for `personal_details”, `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport” and
|
||||
/// `address” types. Can be decrypted and verified using the
|
||||
/// by the user, available for `personal_details`, `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport` and
|
||||
/// `address` types. Can be decrypted and verified using the
|
||||
/// accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -37,9 +37,9 @@ pub enum EncryptedPassportElementKind {
|
|||
},
|
||||
Passport {
|
||||
/// Base64-encoded encrypted Telegram Passport element data provided
|
||||
/// by the user, available for `personal_details”, `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport” and
|
||||
/// `address” types. Can be decrypted and verified using the
|
||||
/// by the user, available for `personal_details`, `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport` and
|
||||
/// `address` types. Can be decrypted and verified using the
|
||||
/// accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -47,8 +47,8 @@ pub enum EncryptedPassportElementKind {
|
|||
data: String,
|
||||
|
||||
/// Encrypted file with the front side of the document, provided by the
|
||||
/// user. Available for `passport”, `driver_license”, `identity_card”
|
||||
/// and `internal_passport”. The file can be decrypted and verified
|
||||
/// user. Available for `passport`, `driver_license`, `identity_card`
|
||||
/// and `internal_passport`. The file can be decrypted and verified
|
||||
/// using the accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -56,8 +56,8 @@ pub enum EncryptedPassportElementKind {
|
|||
front_side: PassportFile,
|
||||
|
||||
/// Encrypted file with the selfie of the user holding a document,
|
||||
/// provided by the user; available for `passport”, `driver_license”,
|
||||
/// `identity_card” and `internal_passport”. The file can be decrypted
|
||||
/// provided by the user; available for `passport`, `driver_license`,
|
||||
/// `identity_card` and `internal_passport`. The file can be decrypted
|
||||
/// and verified using the accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -65,10 +65,10 @@ pub enum EncryptedPassportElementKind {
|
|||
selfie: PassportFile,
|
||||
|
||||
/// Array of encrypted files with translated versions of documents
|
||||
/// provided by the user. Available if requested for `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport”,
|
||||
/// `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// provided by the user. Available if requested for `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport`,
|
||||
/// `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -78,9 +78,9 @@ pub enum EncryptedPassportElementKind {
|
|||
},
|
||||
DriverLicense {
|
||||
/// Base64-encoded encrypted Telegram Passport element data provided
|
||||
/// by the user, available for `personal_details”, `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport” and
|
||||
/// `address” types. Can be decrypted and verified using the
|
||||
/// by the user, available for `personal_details`, `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport` and
|
||||
/// `address` types. Can be decrypted and verified using the
|
||||
/// accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -88,8 +88,8 @@ pub enum EncryptedPassportElementKind {
|
|||
data: String,
|
||||
|
||||
/// Encrypted file with the front side of the document, provided by the
|
||||
/// user. Available for `passport”, `driver_license”, `identity_card”
|
||||
/// and `internal_passport”. The file can be decrypted and verified
|
||||
/// user. Available for `passport`, `driver_license`, `identity_card`
|
||||
/// and `internal_passport`. The file can be decrypted and verified
|
||||
/// using the accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -97,7 +97,7 @@ pub enum EncryptedPassportElementKind {
|
|||
front_side: PassportFile,
|
||||
|
||||
/// Encrypted file with the reverse side of the document, provided by
|
||||
/// the user. Available for `driver_license” and `identity_card”. The
|
||||
/// the user. Available for `driver_license` and `identity_card`. The
|
||||
/// file can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -106,8 +106,8 @@ pub enum EncryptedPassportElementKind {
|
|||
reverse_side: PassportFile,
|
||||
|
||||
/// Encrypted file with the selfie of the user holding a document,
|
||||
/// provided by the user; available for `passport”, `driver_license”,
|
||||
/// `identity_card” and `internal_passport”. The file can be decrypted
|
||||
/// provided by the user; available for `passport`, `driver_license`,
|
||||
/// `identity_card` and `internal_passport`. The file can be decrypted
|
||||
/// and verified using the accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -115,10 +115,10 @@ pub enum EncryptedPassportElementKind {
|
|||
selfie: PassportFile,
|
||||
|
||||
/// Array of encrypted files with translated versions of documents
|
||||
/// provided by the user. Available if requested for `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport”,
|
||||
/// `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// provided by the user. Available if requested for `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport`,
|
||||
/// `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -128,9 +128,9 @@ pub enum EncryptedPassportElementKind {
|
|||
},
|
||||
IdentityCard {
|
||||
/// Base64-encoded encrypted Telegram Passport element data provided
|
||||
/// by the user, available for `personal_details”, `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport” and
|
||||
/// `address” types. Can be decrypted and verified using the
|
||||
/// by the user, available for `personal_details`, `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport` and
|
||||
/// `address` types. Can be decrypted and verified using the
|
||||
/// accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -138,8 +138,8 @@ pub enum EncryptedPassportElementKind {
|
|||
data: String,
|
||||
|
||||
/// Encrypted file with the front side of the document, provided by the
|
||||
/// user. Available for `passport”, `driver_license”, `identity_card”
|
||||
/// and `internal_passport”. The file can be decrypted and verified
|
||||
/// user. Available for `passport`, `driver_license`, `identity_card`
|
||||
/// and `internal_passport`. The file can be decrypted and verified
|
||||
/// using the accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -147,7 +147,7 @@ pub enum EncryptedPassportElementKind {
|
|||
front_side: PassportFile,
|
||||
|
||||
/// Encrypted file with the reverse side of the document, provided by
|
||||
/// the user. Available for `driver_license” and `identity_card”. The
|
||||
/// the user. Available for `driver_license` and `identity_card`. The
|
||||
/// file can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -156,8 +156,8 @@ pub enum EncryptedPassportElementKind {
|
|||
reverse_side: PassportFile,
|
||||
|
||||
/// Encrypted file with the selfie of the user holding a document,
|
||||
/// provided by the user; available for `passport”, `driver_license”,
|
||||
/// `identity_card” and `internal_passport”. The file can be decrypted
|
||||
/// provided by the user; available for `passport`, `driver_license`,
|
||||
/// `identity_card` and `internal_passport`. The file can be decrypted
|
||||
/// and verified using the accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -165,10 +165,10 @@ pub enum EncryptedPassportElementKind {
|
|||
selfie: PassportFile,
|
||||
|
||||
/// Array of encrypted files with translated versions of documents
|
||||
/// provided by the user. Available if requested for `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport”,
|
||||
/// `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// provided by the user. Available if requested for `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport`,
|
||||
/// `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -178,9 +178,9 @@ pub enum EncryptedPassportElementKind {
|
|||
},
|
||||
InternalPassport {
|
||||
/// Base64-encoded encrypted Telegram Passport element data provided
|
||||
/// by the user, available for `personal_details”, `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport” and
|
||||
/// `address” types. Can be decrypted and verified using the
|
||||
/// by the user, available for `personal_details`, `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport` and
|
||||
/// `address` types. Can be decrypted and verified using the
|
||||
/// accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -188,8 +188,8 @@ pub enum EncryptedPassportElementKind {
|
|||
data: String,
|
||||
|
||||
/// Encrypted file with the front side of the document, provided by the
|
||||
/// user. Available for `passport”, `driver_license”, `identity_card”
|
||||
/// and `internal_passport”. The file can be decrypted and verified
|
||||
/// user. Available for `passport`, `driver_license`, `identity_card`
|
||||
/// and `internal_passport`. The file can be decrypted and verified
|
||||
/// using the accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -197,8 +197,8 @@ pub enum EncryptedPassportElementKind {
|
|||
front_side: PassportFile,
|
||||
|
||||
/// Encrypted file with the selfie of the user holding a document,
|
||||
/// provided by the user; available for `passport”, `driver_license”,
|
||||
/// `identity_card” and `internal_passport”. The file can be decrypted
|
||||
/// provided by the user; available for `passport`, `driver_license`,
|
||||
/// `identity_card` and `internal_passport`. The file can be decrypted
|
||||
/// and verified using the accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -206,10 +206,10 @@ pub enum EncryptedPassportElementKind {
|
|||
selfie: PassportFile,
|
||||
|
||||
/// Array of encrypted files with translated versions of documents
|
||||
/// provided by the user. Available if requested for `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport”,
|
||||
/// `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// provided by the user. Available if requested for `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport`,
|
||||
/// `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -219,9 +219,9 @@ pub enum EncryptedPassportElementKind {
|
|||
},
|
||||
Address {
|
||||
/// Base64-encoded encrypted Telegram Passport element data provided
|
||||
/// by the user, available for `personal_details”, `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport” and
|
||||
/// `address” types. Can be decrypted and verified using the
|
||||
/// by the user, available for `personal_details`, `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport` and
|
||||
/// `address` types. Can be decrypted and verified using the
|
||||
/// accompanying [`EncryptedCredentials`].
|
||||
///
|
||||
/// [`EncryptedCredentials`]:
|
||||
|
@ -230,8 +230,8 @@ pub enum EncryptedPassportElementKind {
|
|||
},
|
||||
UtilityBill {
|
||||
/// Array of encrypted files with documents provided by the user,
|
||||
/// available for `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// available for `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -240,10 +240,10 @@ pub enum EncryptedPassportElementKind {
|
|||
files: Vec<PassportFile>,
|
||||
|
||||
/// Array of encrypted files with translated versions of documents
|
||||
/// provided by the user. Available if requested for `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport”,
|
||||
/// `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// provided by the user. Available if requested for `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport`,
|
||||
/// `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -253,8 +253,8 @@ pub enum EncryptedPassportElementKind {
|
|||
},
|
||||
BankStatement {
|
||||
/// Array of encrypted files with documents provided by the user,
|
||||
/// available for `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// available for `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -263,10 +263,10 @@ pub enum EncryptedPassportElementKind {
|
|||
files: Vec<PassportFile>,
|
||||
|
||||
/// Array of encrypted files with translated versions of documents
|
||||
/// provided by the user. Available if requested for `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport”,
|
||||
/// `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// provided by the user. Available if requested for `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport`,
|
||||
/// `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -276,8 +276,8 @@ pub enum EncryptedPassportElementKind {
|
|||
},
|
||||
RentalAgreement {
|
||||
/// Array of encrypted files with documents provided by the user,
|
||||
/// available for `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// available for `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -286,10 +286,10 @@ pub enum EncryptedPassportElementKind {
|
|||
files: Vec<PassportFile>,
|
||||
|
||||
/// Array of encrypted files with translated versions of documents
|
||||
/// provided by the user. Available if requested for `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport”,
|
||||
/// `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// provided by the user. Available if requested for `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport`,
|
||||
/// `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -299,8 +299,8 @@ pub enum EncryptedPassportElementKind {
|
|||
},
|
||||
PassportRegistration {
|
||||
/// Array of encrypted files with documents provided by the user,
|
||||
/// available for `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// available for `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -309,10 +309,10 @@ pub enum EncryptedPassportElementKind {
|
|||
files: Vec<PassportFile>,
|
||||
|
||||
/// Array of encrypted files with translated versions of documents
|
||||
/// provided by the user. Available if requested for `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport”,
|
||||
/// `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// provided by the user. Available if requested for `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport`,
|
||||
/// `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -322,8 +322,8 @@ pub enum EncryptedPassportElementKind {
|
|||
},
|
||||
TemporaryRegistration {
|
||||
/// Array of encrypted files with documents provided by the user,
|
||||
/// available for `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// available for `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -332,10 +332,10 @@ pub enum EncryptedPassportElementKind {
|
|||
files: Vec<PassportFile>,
|
||||
|
||||
/// Array of encrypted files with translated versions of documents
|
||||
/// provided by the user. Available if requested for `passport”,
|
||||
/// `driver_license”, `identity_card”, `internal_passport”,
|
||||
/// `utility_bill”, `bank_statement”, `rental_agreement”,
|
||||
/// `passport_registration” and `temporary_registration” types. Files
|
||||
/// provided by the user. Available if requested for `passport`,
|
||||
/// `driver_license`, `identity_card`, `internal_passport`,
|
||||
/// `utility_bill`, `bank_statement`, `rental_agreement`,
|
||||
/// `passport_registration` and `temporary_registration` types. Files
|
||||
/// can be decrypted and verified using the accompanying
|
||||
/// [`EncryptedCredentials`].
|
||||
///
|
||||
|
@ -344,12 +344,12 @@ pub enum EncryptedPassportElementKind {
|
|||
translation: Option<Vec<PassportFile>>,
|
||||
},
|
||||
PhoneNumber {
|
||||
/// User's verified phone number, available only for `phone_number”
|
||||
/// User's verified phone number, available only for `phone_number`
|
||||
/// type.
|
||||
phone_number: String,
|
||||
},
|
||||
Email {
|
||||
/// User's verified email address, available only for `email” type.
|
||||
/// User's verified email address, available only for `email` type.
|
||||
email: String,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -31,8 +31,8 @@ pub struct InlineQueryResultDocument {
|
|||
/// A valid URL for the file.
|
||||
pub document_url: String,
|
||||
|
||||
/// Mime type of the content of the file, either `application/pdf” or
|
||||
/// `application/zip”.
|
||||
/// Mime type of the content of the file, either `application/pdf` or
|
||||
/// `application/zip`.
|
||||
pub mime_type: String,
|
||||
|
||||
/// Short description of the result.
|
||||
|
|
Loading…
Add table
Reference in a new issue