Ybrin/chatbot_helper-telegram

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

Summary

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

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