Sha256: 4c9b1ff0a101fa0afa2e8ef587cf7126a9d8b2c22ce49b69cd9b301ff1f66377

Contents?: true

Size: 596 Bytes

Versions: 3

Compression:

Stored size: 596 Bytes

Contents

# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class InputMediaAudio < Base
        attribute :type, Types::String.constrained(eql: 'audio').default('audio')
        attribute :media, Types::String
        attribute? :thumbnail, Types::String
        attribute? :caption, Types::String
        attribute? :parse_mode, Types::String
        attribute? :caption_entities, Types::Array.of(MessageEntity)
        attribute? :duration, Types::Integer
        attribute? :performer, Types::String
        attribute? :title, Types::String
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
telegram-bot-ruby-2.2.0 lib/telegram/bot/types/input_media_audio.rb
telegram-bot-ruby-2.1.0 lib/telegram/bot/types/input_media_audio.rb
telegram-bot-ruby-2.0.0 lib/telegram/bot/types/input_media_audio.rb