users.SetSecureValueErrors

class pyrogram.raw.functions.users.SetSecureValueErrors

Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).

Details:
  • Layer: 227

  • ID: 90C894B5

Parameters:
Returns:

bool

TL Schema

users.setSecureValueErrors#90c894b5
id:InputUser
errors:Vector<SecureValueError>

= Bool

Parameter Tree

SetSecureValueErrors
├── id → InputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ └── InputUserFromMessage
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
└── errors → Vector < SecureValueError >
│ ├── type → SecureValueType
│ │ ├── SecureValueTypePassport
│ │ ├── SecureValueTypeIdentityCard
│ │ ├── SecureValueTypeAddress
│ │ ├── SecureValueTypeUtilityBill
│ │ ├── SecureValueTypePhone
│ │ └── SecureValueTypeEmail
│ ├── data_hash → bytes
│ ├── field → string
│ └── text → string
│ ├── type → SecureValueType
│ │ ├── SecureValueTypePassport
│ │ ├── SecureValueTypeIdentityCard
│ │ ├── SecureValueTypeAddress
│ │ ├── SecureValueTypeUtilityBill
│ │ ├── SecureValueTypePhone
│ │ └── SecureValueTypeEmail
│ ├── file_hash → bytes
│ └── text → string
│ ├── type → SecureValueType
│ │ ├── SecureValueTypePassport
│ │ ├── SecureValueTypeIdentityCard
│ │ ├── SecureValueTypeAddress
│ │ ├── SecureValueTypeUtilityBill
│ │ ├── SecureValueTypePhone
│ │ └── SecureValueTypeEmail
│ ├── file_hash → bytes
│ └── text → string
│ ├── type → SecureValueType
│ │ ├── SecureValueTypePassport
│ │ ├── SecureValueTypeIdentityCard
│ │ ├── SecureValueTypeAddress
│ │ ├── SecureValueTypeUtilityBill
│ │ ├── SecureValueTypePhone
│ │ └── SecureValueTypeEmail
│ ├── file_hash → bytes
│ └── text → string
│ ├── type → SecureValueType
│ │ ├── SecureValueTypePassport
│ │ ├── SecureValueTypeIdentityCard
│ │ ├── SecureValueTypeAddress
│ │ ├── SecureValueTypeUtilityBill
│ │ ├── SecureValueTypePhone
│ │ └── SecureValueTypeEmail
│ ├── file_hash → bytes
│ └── text → string
│ ├── type → SecureValueType
│ │ ├── SecureValueTypePassport
│ │ ├── SecureValueTypeIdentityCard
│ │ ├── SecureValueTypeAddress
│ │ ├── SecureValueTypeUtilityBill
│ │ ├── SecureValueTypePhone
│ │ └── SecureValueTypeEmail
│ ├── file_hash → Vector < bytes >
│ └── text → string
│ ├── type → SecureValueType
│ │ ├── SecureValueTypePassport
│ │ ├── SecureValueTypeIdentityCard
│ │ ├── SecureValueTypeAddress
│ │ ├── SecureValueTypeUtilityBill
│ │ ├── SecureValueTypePhone
│ │ └── SecureValueTypeEmail
│ ├── hash → bytes
│ └── text → string
│ ├── type → SecureValueType
│ │ ├── SecureValueTypePassport
│ │ ├── SecureValueTypeIdentityCard
│ │ ├── SecureValueTypeAddress
│ │ ├── SecureValueTypeUtilityBill
│ │ ├── SecureValueTypePhone
│ │ └── SecureValueTypeEmail
│ ├── file_hash → bytes
│ └── text → string
├── type → SecureValueType
│ ├── SecureValueTypePhone
│ └── SecureValueTypeEmail
├── file_hash → Vector < bytes >
└── text → string

Example

await app.invoke(
    SetSecureValueErrors(
        id=await app.resolve_user(chat_id),
        errors=[
                SecureValueErrorData(
                    type=SecureValueTypePersonalDetails(),
                    data_hash=b"data",
                    field="text",
                    text="Open"
                )
            ],
    )
)