Class: TD::Types::MessageContent::Photo
- Inherits:
-
TD::Types::MessageContent
- Object
- Dry::Struct
- Base
- TD::Types::MessageContent
- TD::Types::MessageContent::Photo
- Defined in:
- lib/tdlib/types/message_content/photo.rb
Overview
A photo message.
Instance Attribute Summary collapse
-
#caption ⇒ TD::Types::FormattedText
Photo caption.
-
#has_spoiler ⇒ Boolean
True, if the photo preview must be covered by a spoiler animation.
-
#is_secret ⇒ Boolean
True, if the photo must be blurred and must be shown only while tapped.
-
#photo ⇒ TD::Types::Photo
The photo.
-
#show_caption_above_media ⇒ Boolean
True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo.
Method Summary
Methods inherited from Base
Instance Attribute Details
#caption ⇒ TD::Types::FormattedText
Photo caption.
10 11 12 |
# File 'lib/tdlib/types/message_content/photo.rb', line 10 def @caption end |
#has_spoiler ⇒ Boolean
True, if the photo preview must be covered by a spoiler animation.
10 11 12 |
# File 'lib/tdlib/types/message_content/photo.rb', line 10 def has_spoiler @has_spoiler end |
#is_secret ⇒ Boolean
True, if the photo must be blurred and must be shown only while tapped.
10 11 12 |
# File 'lib/tdlib/types/message_content/photo.rb', line 10 def is_secret @is_secret end |
#photo ⇒ TD::Types::Photo
The photo.
10 11 12 |
# File 'lib/tdlib/types/message_content/photo.rb', line 10 def photo @photo end |
#show_caption_above_media ⇒ Boolean
True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo.
10 11 12 |
# File 'lib/tdlib/types/message_content/photo.rb', line 10 def @show_caption_above_media end |