Sha256: c4794a186d338ba406a0add9308f6b2a13cdbfc1386d33c862f33fd68dfcd919

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

module TD::Types
  # An audio message.
  #
  # @attr audio [TD::Types::InputFile] Audio file to be sent.
  # @attr album_cover_thumbnail [TD::Types::InputThumbnail, nil] Thumbnail of the cover for the album, if available.
  # @attr duration [Integer] Duration of the audio, in seconds; may be replaced by the server.
  # @attr title [TD::Types::String] Title of the audio; 0-64 characters; may be replaced by the server.
  # @attr performer [TD::Types::String] Performer of the audio; 0-64 characters, may be replaced by the server.
  # @attr caption [TD::Types::FormattedText] Audio caption; 0-GetOption("message_caption_length_max") characters.
  class InputMessageContent::Audio < InputMessageContent
    attribute :audio, TD::Types::InputFile
    attribute :album_cover_thumbnail, TD::Types::InputThumbnail.optional.default(nil)
    attribute :duration, TD::Types::Coercible::Integer
    attribute :title, TD::Types::String
    attribute :performer, TD::Types::String
    attribute :caption, TD::Types::FormattedText
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.3 lib/tdlib/types/input_message_content/audio.rb
tdlib-schema-1.7.0.2 lib/tdlib/types/input_message_content/audio.rb