Class: Telegram::Bot::Types::ChatBoost

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

#add_dateInteger (readonly)

Returns the value of attribute add_date.

Returns:

  • (Integer)


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

def add_date
  @add_date
end

#boost_idString (readonly)

Returns the value of attribute boost_id.

Returns:

  • (String)


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

def boost_id
  @boost_id
end

#expiration_dateInteger (readonly)

Returns the value of attribute expiration_date.

Returns:

  • (Integer)


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

def expiration_date
  @expiration_date
end

#sourcechat_boost_source (readonly)

Returns the value of attribute source.

Returns:

  • (chat_boost_source)


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

def source
  @source
end

Class Method Details

.new(boost_id:, add_date:, expiration_date:, source:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(boost_id:, add_date:, expiration_date:, source:) ⇒ instance

    Parameters:

    • boost_id: (String)
    • add_date: (Integer)
    • expiration_date: (Integer)
    • source: (chat_boost_source)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (boost_id: String, add_date: Integer, expiration_date: Integer, source: chat_boost_source) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance