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; 0-GetOption(“message_caption_length_max”) characters.
-
#height ⇒ Integer
Photo height.
-
#photo ⇒ TD::Types::InputFile
Photo to send.
-
#thumbnail ⇒ TD::Types::InputThumbnail
Photo thumbnail to be sent, this is sent to the other party in secret chats only.
-
#ttl ⇒ Integer
Photo TTL (Time To Live), in seconds (0-60).
-
#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.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13 def added_sticker_file_ids @added_sticker_file_ids end |
#caption ⇒ TD::Types::FormattedText
Photo caption; 0-GetOption(“message_caption_length_max”) characters.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13 def @caption end |
#height ⇒ Integer
Photo height.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13 def height @height end |
#photo ⇒ TD::Types::InputFile
Photo to send.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13 def photo @photo end |
#thumbnail ⇒ TD::Types::InputThumbnail
Photo thumbnail to be sent, this is sent to the other party in secret chats only.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13 def thumbnail @thumbnail end |
#ttl ⇒ Integer
Photo TTL (Time To Live), in seconds (0-60). A non-zero TTL can be specified only in private chats.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13 def ttl @ttl end |
#width ⇒ Integer
Photo width.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13 def width @width end |