Class PassportElementErrorDataField
Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types.TelegramPassport
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class PassportElementErrorDataField : PassportElementError
Properties
| Improve this Doc View SourceDataHash
Base64-encoded data hash
Declaration
[JsonProperty(PropertyName = "data_hash", Required = Required.Always)]
public string DataHash { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FieldName
Name of the data field which has the error
Declaration
[JsonProperty(PropertyName = "field_name", Required = Required.Always)]
public string FieldName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Message
Error message
Declaration
[JsonProperty(PropertyName = "message", Required = Required.Always)]
public override string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceSource
Error source, must be data
Declaration
[JsonProperty(PropertyName = "source", Required = Required.Always)]
public override string Source { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceType
The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”
Declaration
public override EncryptedPassportElementType Type { get; set; }
Property Value
Type | Description |
---|---|
EncryptedPassportElementType |