Class: TD::Types::MessageSponsor

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

Overview

Information about the sponsor of a message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#infoTD::Types::String

Additional optional information about the sponsor to be shown along with the message.

Returns:

  • (TD::Types::String)

    the current value of info



8
9
10
# File 'lib/tdlib/types/message_sponsor.rb', line 8

def info
  @info
end

#photoTD::Types::Photo?

Photo of the sponsor; may be null if must not be shown.

Returns:



8
9
10
# File 'lib/tdlib/types/message_sponsor.rb', line 8

def photo
  @photo
end

#urlTD::Types::String

URL of the sponsor to be opened when the message is clicked.

Returns:

  • (TD::Types::String)

    the current value of url



8
9
10
# File 'lib/tdlib/types/message_sponsor.rb', line 8

def url
  @url
end