Ybrin/chatbot_helper-telegram

View on GitHub
lib/chatbot_helper/telegram/audio.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ChatbotHelper
  module Telegram
    # The audio resource which represents a Telegram bot API audio
    class Audio < ChatbotHelper::Telegram::BaseResource
      class << self
        def required_fields
          %w[file_id duration]
        end

        def optional_fields
          %w[performer title mime_type file_size]
        end
      end
    end
  end
end