Class: Telegram::Bot::Types::Document

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/document.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

#file_idString (readonly)

Returns the value of attribute file_id.

Returns:

  • (String)


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

def file_id
  @file_id
end

#file_nameString? (readonly)

Returns the value of attribute file_name.

Returns:

  • (String, nil)


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

def file_name
  @file_name
end

#file_sizeInteger? (readonly)

Returns the value of attribute file_size.

Returns:

  • (Integer, nil)


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

def file_size
  @file_size
end

#file_unique_idString (readonly)

Returns the value of attribute file_unique_id.

Returns:

  • (String)


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

def file_unique_id
  @file_unique_id
end

#mime_typeString? (readonly)

Returns the value of attribute mime_type.

Returns:

  • (String, nil)


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

def mime_type
  @mime_type
end

#thumbnailPhotoSize? (readonly)

Returns the value of attribute thumbnail.

Returns:



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

def thumbnail
  @thumbnail
end

Class Method Details

.new(file_id:, file_unique_id:, thumbnail:, file_name:, mime_type:, file_size:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(file_id:, file_unique_id:, thumbnail:, file_name:, mime_type:, file_size:) ⇒ instance

    Parameters:

    • file_id: (String)
    • file_unique_id: (String)
    • thumbnail: (PhotoSize)
    • file_name: (String)
    • mime_type: (String)
    • file_size: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (file_id: String, file_unique_id: String, ?thumbnail: PhotoSize, ?file_name: String, ?mime_type: String, ?file_size: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance