Class: TD::Types::InputPaidMedia

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/input_paid_media.rb

Overview

Describes a paid media to be sent.

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 media, if applicable.

Returns:

  • (Array<Integer>)

    the current value of added_sticker_file_ids



10
11
12
# File 'lib/tdlib/types/input_paid_media.rb', line 10

def added_sticker_file_ids
  @added_sticker_file_ids
end

#heightInteger

Media height.

Returns:

  • (Integer)

    the current value of height



10
11
12
# File 'lib/tdlib/types/input_paid_media.rb', line 10

def height
  @height
end

#mediaTD::Types::InputFile

Photo or video to be sent.

Returns:



10
11
12
# File 'lib/tdlib/types/input_paid_media.rb', line 10

def media
  @media
end

#thumbnailTD::Types::InputThumbnail

Media thumbnail; pass null to skip thumbnail uploading.

Returns:



10
11
12
# File 'lib/tdlib/types/input_paid_media.rb', line 10

def thumbnail
  @thumbnail
end

#typeTD::Types::InputPaidMediaType

Type of the media.

Returns:



10
11
12
# File 'lib/tdlib/types/input_paid_media.rb', line 10

def type
  @type
end

#widthInteger

Media width.

Returns:

  • (Integer)

    the current value of width



10
11
12
# File 'lib/tdlib/types/input_paid_media.rb', line 10

def width
  @width
end