Telegram::EncryptedPassportElement
Inherits JSON::Serializable < Struct < Value < Object
Telegram API type: EncryptedPassportElement Describes documents or other Telegram Passport elements shared with the bot by the user.
Constructors
new(type : String, hash : String, data : String | Nil = nil, phone_number : String | Nil = nil, email : String | Nil = nil, files : Array(PassportFile) | Nil = nil, front_side : PassportFile | Nil = nil, reverse_side : PassportFile | Nil = nil, selfie : PassportFile | Nil = nil, translation : Array(PassportFile) | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
clone
Sourcecopy_with(type _type = @type, hash _hash = @hash, data _data = @data, phone_number _phone_number = @phone_number, email _email = @email, files _files = @files, front_side _front_side = @front_side, reverse_side _reverse_side = @reverse_side, selfie _selfie = @selfie, translation _translation = @translation)
Sourcedata
email
files
front_side
hash
Generates an UInt64 hash value for this object.
This method must have the property that a == b implies a.hash == b.hash.
The hash value is used along with == by the Hash class to determine if two objects
reference the same hash key.
Subclasses must not override this method. Instead, they must define hash(hasher),
though usually the macro def_hash can be used to generate this method.
phone_number
reverse_side
selfie
translation
type