class Telegram::API::PassportData

Overview

Contains information about Telegram Passport data shared with the bot by the user.

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

Instance methods inherited from class Telegram::API::Type

==(other) ==, client client

Constructor methods inherited from class Telegram::API::Type

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(pull : JSON::PullParser) #

Contains information about Telegram Passport data shared with the bot by the user.


[View source]
def self.new(credentials : EncryptedCredentials, data : Array(EncryptedPassportElement) = Array(EncryptedPassportElement).new) #

[View source]

Instance Method Detail

def credentials : EncryptedCredentials #

Encrypted credentials required to decrypt the data


[View source]
def credentials=(credentials : EncryptedCredentials) #

Encrypted credentials required to decrypt the data


[View source]
def data : Array(EncryptedPassportElement) #

Array with information about documents and other Telegram Passport elements that was shared with the bot


[View source]
def data=(data : Array(EncryptedPassportElement)) #

Array with information about documents and other Telegram Passport elements that was shared with the bot


[View source]