Class: TD::Types::SponsoredMessages

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

Overview

Contains a list of sponsored messages.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#messagesArray<TD::Types::SponsoredMessage>

List of sponsored messages.

Returns:



7
8
9
# File 'lib/tdlib/types/sponsored_messages.rb', line 7

def messages
  @messages
end

#messages_betweenInteger

The minimum number of messages between shown sponsored messages, or 0 if only one sponsored message must be shown after all ordinary messages.

Returns:

  • (Integer)

    the current value of messages_between



7
8
9
# File 'lib/tdlib/types/sponsored_messages.rb', line 7

def messages_between
  @messages_between
end