Class: TD::Types::SponsoredMessage
- Defined in:
- lib/tdlib/types/sponsored_message.rb
Overview
Describes a sponsored message.
Instance Attribute Summary collapse
-
#accent_color_id ⇒ Integer
Identifier of the accent color for title, button text and message background.
-
#additional_info ⇒ TD::Types::String
If non-empty, additional information about the sponsored message to be shown along with the message.
-
#background_custom_emoji_id ⇒ Integer
Identifier of a custom emoji to be shown on the message background; 0 if none.
-
#button_text ⇒ TD::Types::String
Text for the message action button.
-
#can_be_reported ⇒ Boolean
True, if the message can be reported to Telegram moderators through reportChatSponsoredMessage.
-
#content ⇒ TD::Types::MessageContent
Content of the message.
-
#is_recommended ⇒ Boolean
True, if the message needs to be labeled as “recommended” instead of “sponsored”.
-
#message_id ⇒ Integer
Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages.
-
#sponsor ⇒ TD::Types::MessageSponsor
Information about the sponsor of the message.
-
#title ⇒ TD::Types::String
Title of the sponsored message.
Method Summary
Methods inherited from Base
Instance Attribute Details
#accent_color_id ⇒ Integer
Identifier of the accent color for title, button text and message background.
19 20 21 |
# File 'lib/tdlib/types/sponsored_message.rb', line 19 def accent_color_id @accent_color_id end |
#additional_info ⇒ TD::Types::String
If non-empty, additional information about the sponsored message to be shown along with the message.
19 20 21 |
# File 'lib/tdlib/types/sponsored_message.rb', line 19 def additional_info @additional_info end |
#background_custom_emoji_id ⇒ Integer
Identifier of a custom emoji to be shown on the message background; 0 if none.
19 20 21 |
# File 'lib/tdlib/types/sponsored_message.rb', line 19 def background_custom_emoji_id @background_custom_emoji_id end |
#button_text ⇒ TD::Types::String
Text for the message action button.
19 20 21 |
# File 'lib/tdlib/types/sponsored_message.rb', line 19 def @button_text end |
#can_be_reported ⇒ Boolean
True, if the message can be reported to Telegram moderators through reportChatSponsoredMessage.
19 20 21 |
# File 'lib/tdlib/types/sponsored_message.rb', line 19 def can_be_reported @can_be_reported end |
#content ⇒ TD::Types::MessageContent
Content of the message. Currently, can be only of the types messageText, messageAnimation, messagePhoto, or messageVideo.
19 20 21 |
# File 'lib/tdlib/types/sponsored_message.rb', line 19 def content @content end |
#is_recommended ⇒ Boolean
True, if the message needs to be labeled as “recommended” instead of “sponsored”.
19 20 21 |
# File 'lib/tdlib/types/sponsored_message.rb', line 19 def is_recommended @is_recommended end |
#message_id ⇒ Integer
Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages.
19 20 21 |
# File 'lib/tdlib/types/sponsored_message.rb', line 19 def @message_id end |
#sponsor ⇒ TD::Types::MessageSponsor
Information about the sponsor of the message.
19 20 21 |
# File 'lib/tdlib/types/sponsored_message.rb', line 19 def sponsor @sponsor end |
#title ⇒ TD::Types::String
Title of the sponsored message.
19 20 21 |
# File 'lib/tdlib/types/sponsored_message.rb', line 19 def title @title end |