Sha256: 4c412ba5ef37106289d6fdf11f99bef4cbe7a26271f556ea828897250d071618

Contents?: true

Size: 727 Bytes

Versions: 4

Compression:

Stored size: 727 Bytes

Contents

module TD::Types
  # Describes a voice note.
  # The voice note must be encoded with the Opus codec, and stored inside an OGG container.
  # Voice notes can have only a single audio channel.
  #
  # @attr duration [Integer] Duration of the voice note, in seconds; as defined by the sender.
  # @attr waveform [String] A waveform representation of the voice note in 5-bit format.
  # @attr mime_type [String] MIME type of the file; as defined by the sender.
  # @attr voice [TD::Types::File] File containing the voice note.
  class VoiceNote < Base
    attribute :duration, TD::Types::Integer
    attribute :waveform, TD::Types::String
    attribute :mime_type, TD::Types::String
    attribute :voice, TD::Types::File
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
tdlib-schema-1.7.0.1 lib/tdlib/types/voice_note.rb
tdlib-ruby-2.2.0 lib/tdlib/types/voice_note.rb
tdlib-ruby-2.1.0 lib/tdlib/types/voice_note.rb
tdlib-ruby-2.0.0 lib/tdlib/types/voice_note.rb