Class: TD::Types::ChatBoost

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

Overview

Describes a boost applied to a chat.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#countInteger

The number of identical boosts applied.

Returns:

  • (Integer)

    the current value of count



9
10
11
# File 'lib/tdlib/types/chat_boost.rb', line 9

def count
  @count
end

#expiration_dateInteger

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

Returns:

  • (Integer)

    the current value of expiration_date



9
10
11
# File 'lib/tdlib/types/chat_boost.rb', line 9

def expiration_date
  @expiration_date
end

#idTD::Types::String

Unique identifier of the boost.

Returns:

  • (TD::Types::String)

    the current value of id



9
10
11
# File 'lib/tdlib/types/chat_boost.rb', line 9

def id
  @id
end

#sourceTD::Types::ChatBoostSource

Source of the boost.

Returns:



9
10
11
# File 'lib/tdlib/types/chat_boost.rb', line 9

def source
  @source
end

#start_dateInteger

Point in time (Unix timestamp) when the chat was boosted.

Returns:

  • (Integer)

    the current value of start_date



9
10
11
# File 'lib/tdlib/types/chat_boost.rb', line 9

def start_date
  @start_date
end