Class: TD::Types::InputMessageContent::Photo

Inherits:
TD::Types::InputMessageContent show all
Defined in:
lib/tdlib/types/input_message_content/photo.rb

Overview

A photo message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#added_sticker_file_idsArray<Integer>

File identifiers of the stickers added to the photo, if applicable.

Returns:

  • (Array<Integer>)

    the current value of added_sticker_file_ids



13
14
15
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13

def added_sticker_file_ids
  @added_sticker_file_ids
end

#captionTD::Types::FormattedText

Photo caption; 0-GetOption(“message_caption_length_max”) characters.

Returns:



13
14
15
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13

def caption
  @caption
end

#heightInteger

Photo height.

Returns:

  • (Integer)

    the current value of height



13
14
15
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13

def height
  @height
end

#photoTD::Types::InputFile

Photo to send.

Returns:



13
14
15
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13

def photo
  @photo
end

#thumbnailTD::Types::InputThumbnail

Photo thumbnail to be sent, this is sent to the other party in secret chats only.

Returns:



13
14
15
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13

def thumbnail
  @thumbnail
end

#ttlInteger

Photo TTL (Time To Live), in seconds (0-60). A non-zero TTL can be specified only in private chats.

Returns:

  • (Integer)

    the current value of ttl



13
14
15
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13

def ttl
  @ttl
end

#widthInteger

Photo width.

Returns:

  • (Integer)

    the current value of width



13
14
15
# File 'lib/tdlib/types/input_message_content/photo.rb', line 13

def width
  @width
end