Class PassportElementError
This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of: PassportElementErrorDataField, PassportElementErrorFrontSide, PassportElementErrorReverseSide, PassportElementErrorSelfie, PassportElementErrorFile, PassportElementErrorFiles, PassportElementErrorTranslationFile, PassportElementErrorTranslationFiles, PassportElementErrorUnspecified
Inheritance
System.Object
PassportElementError
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
public abstract class PassportElementError
Properties
| Improve this Doc View SourceMessage
Error message
Declaration
public abstract string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Source
Error source
Declaration
public abstract string Source { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
The section of the user's Telegram Passport which has the error
Declaration
public abstract EncryptedPassportElementType Type { get; set; }
Property Value
Type | Description |
---|---|
EncryptedPassportElementType |