Class: TD::Types::ChatBoostSlot

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/chat_boost_slot.rb

Overview

Describes a slot for chat boost.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#cooldown_until_dateInteger

Point in time (Unix timestamp) after which the boost can be used for another chat.

Returns:

  • (Integer)

    the current value of cooldown_until_date



10
11
12
# File 'lib/tdlib/types/chat_boost_slot.rb', line 10

def cooldown_until_date
  @cooldown_until_date
end

#currently_boosted_chat_idInteger

Identifier of the currently boosted chat; 0 if none.

Returns:

  • (Integer)

    the current value of currently_boosted_chat_id



10
11
12
# File 'lib/tdlib/types/chat_boost_slot.rb', line 10

def currently_boosted_chat_id
  @currently_boosted_chat_id
end

#expiration_dateInteger

Point in time (Unix timestamp) when the boost will expire.

Returns:

  • (Integer)

    the current value of expiration_date



10
11
12
# File 'lib/tdlib/types/chat_boost_slot.rb', line 10

def expiration_date
  @expiration_date
end

#slot_idInteger

Unique identifier of the slot.

Returns:

  • (Integer)

    the current value of slot_id



10
11
12
# File 'lib/tdlib/types/chat_boost_slot.rb', line 10

def slot_id
  @slot_id
end

#start_dateInteger

Point in time (Unix timestamp) when the chat was boosted; 0 if none.

Returns:

  • (Integer)

    the current value of start_date



10
11
12
# File 'lib/tdlib/types/chat_boost_slot.rb', line 10

def start_date
  @start_date
end