atipugin/telegram-bot-ruby

View on GitHub
lib/telegram/bot/types/input_media_audio.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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