Class: TD::Types::InputMessageContent::Photo
- Inherits:
-
TD::Types::InputMessageContent
- Object
- Dry::Struct
- Base
- TD::Types::InputMessageContent
- TD::Types::InputMessageContent::Photo
- Defined in:
- lib/tdlib/types/input_message_content/photo.rb
Overview
A photo message.
Instance Attribute Summary collapse
-
#added_sticker_file_ids ⇒ Array<Integer>
File identifiers of the stickers added to the photo, if applicable.
-
#caption ⇒ TD::Types::FormattedText
Photo caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.
-
#has_spoiler ⇒ Boolean
True, if the photo preview must be covered by a spoiler animation; not supported in secret chats.
-
#height ⇒ Integer
Photo height.
-
#photo ⇒ TD::Types::InputFile
Photo to send.
-
#self_destruct_type ⇒ TD::Types::MessageSelfDestructType
Photo self-destruct type; pass null if none; private chats only.
-
#show_caption_above_media ⇒ Boolean
True, if the caption must be shown above the photo; otherwise, the caption must be shown below the photo; not supported in secret chats.
-
#thumbnail ⇒ TD::Types::InputThumbnail
Photo thumbnail to be sent; pass null to skip thumbnail uploading.
-
#width ⇒ Integer
Photo width.
Method Summary
Methods inherited from Base
Instance Attribute Details
#added_sticker_file_ids ⇒ Array<Integer>
File identifiers of the stickers added to the photo, if applicable.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 21 def added_sticker_file_ids @added_sticker_file_ids end |
#caption ⇒ TD::Types::FormattedText
Photo caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 21 def caption @caption end |
#has_spoiler ⇒ Boolean
True, if the photo preview must be covered by a spoiler animation; not supported in secret chats.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 21 def has_spoiler @has_spoiler end |
#height ⇒ Integer
Photo height.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 21 def height @height end |
#photo ⇒ TD::Types::InputFile
Photo to send. The photo must be at most 10 MB in size. The photo’s width and height must not exceed 10000 in total. Width and height ratio must be at most 20.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 21 def photo @photo end |
#self_destruct_type ⇒ TD::Types::MessageSelfDestructType
Photo self-destruct type; pass null if none; private chats only.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 21 def self_destruct_type @self_destruct_type 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; not supported in secret chats.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 21 def show_caption_above_media @show_caption_above_media end |
#thumbnail ⇒ TD::Types::InputThumbnail
Photo thumbnail to be sent; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 21 def thumbnail @thumbnail end |
#width ⇒ Integer
Photo width.
21 22 23 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 21 def width @width end |