Class: Telegram::Bot::Types::EncryptedPassportElement

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/encrypted_passport_element.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#dataString? (readonly)

Returns the value of attribute data.

Returns:

  • (String, nil)


9
10
11
# File 'sig/telegram/bot/types/encrypted_passport_element.rbs', line 9

def data
  @data
end

#emailString? (readonly)

Returns the value of attribute email.

Returns:

  • (String, nil)


11
12
13
# File 'sig/telegram/bot/types/encrypted_passport_element.rbs', line 11

def email
  @email
end

#filesArray[PassportFile]? (readonly)

Returns the value of attribute files.

Returns:



12
13
14
# File 'sig/telegram/bot/types/encrypted_passport_element.rbs', line 12

def files
  @files
end

#front_sidePassportFile? (readonly)

Returns the value of attribute front_side.

Returns:



13
14
15
# File 'sig/telegram/bot/types/encrypted_passport_element.rbs', line 13

def front_side
  @front_side
end

#hashString (readonly)

Returns the value of attribute hash.

Returns:

  • (String)


17
18
19
# File 'sig/telegram/bot/types/encrypted_passport_element.rbs', line 17

def hash
  @hash
end

#phone_numberString? (readonly)

Returns the value of attribute phone_number.

Returns:

  • (String, nil)


10
11
12
# File 'sig/telegram/bot/types/encrypted_passport_element.rbs', line 10

def phone_number
  @phone_number
end

#reverse_sidePassportFile? (readonly)

Returns the value of attribute reverse_side.

Returns:



14
15
16
# File 'sig/telegram/bot/types/encrypted_passport_element.rbs', line 14

def reverse_side
  @reverse_side
end

#selfiePassportFile? (readonly)

Returns the value of attribute selfie.

Returns:



15
16
17
# File 'sig/telegram/bot/types/encrypted_passport_element.rbs', line 15

def selfie
  @selfie
end

#translationArray[PassportFile]? (readonly)

Returns the value of attribute translation.

Returns:



16
17
18
# File 'sig/telegram/bot/types/encrypted_passport_element.rbs', line 16

def translation
  @translation
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/encrypted_passport_element.rbs', line 8

def type
  @type
end

Class Method Details

.new(type:, data:, phone_number:, email:, files:, front_side:, reverse_side:, selfie:, translation:, hash:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(type:, data:, phone_number:, email:, files:, front_side:, reverse_side:, selfie:, translation:, hash:) ⇒ instance

    Parameters:

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/encrypted_passport_element.rbs', line 6

def self.new: (type: String, ?data: String, ?phone_number: String, ?email: String, ?files: Array[PassportFile], ?front_side: PassportFile, ?reverse_side: PassportFile, ?selfie: PassportFile, ?translation: Array[PassportFile], hash: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance