Class: Telegram::Bot::Types::MessageEntity

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

#custom_emoji_idString? (readonly)

Returns the value of attribute custom_emoji_id.

Returns:

  • (String, nil)


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

def custom_emoji_id
  @custom_emoji_id
end

#date_time_formatString? (readonly)

Returns the value of attribute date_time_format.

Returns:

  • (String, nil)


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

def date_time_format
  @date_time_format
end

#languageString? (readonly)

Returns the value of attribute language.

Returns:

  • (String, nil)


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

def language
  @language
end

#lengthInteger (readonly)

Returns the value of attribute length.

Returns:

  • (Integer)


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

def length
  @length
end

#offsetInteger (readonly)

Returns the value of attribute offset.

Returns:

  • (Integer)


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

def offset
  @offset
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


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

def type
  @type
end

#unix_timeInteger? (readonly)

Returns the value of attribute unix_time.

Returns:

  • (Integer, nil)


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

def unix_time
  @unix_time
end

#urlString? (readonly)

Returns the value of attribute url.

Returns:

  • (String, nil)


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

def url
  @url
end

#userUser? (readonly)

Returns the value of attribute user.

Returns:



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

def user
  @user
end

Class Method Details

.new(type:, offset:, length:, url:, user:, language:, custom_emoji_id:, unix_time:, date_time_format:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(type:, offset:, length:, url:, user:, language:, custom_emoji_id:, unix_time:, date_time_format:) ⇒ instance

    Parameters:

    • type: (String)
    • offset: (Integer)
    • length: (Integer)
    • url: (String)
    • user: (User)
    • language: (String)
    • custom_emoji_id: (String)
    • unix_time: (Integer)
    • date_time_format: (String)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (type: String, offset: Integer, length: Integer, ?url: String, ?user: User, ?language: String, ?custom_emoji_id: String, ?unix_time: Integer, ?date_time_format: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance