def send_audio(params)
      extra_params_validation = {
        audio: { required: true, class: [File, String] },
        duration: { required: false, class: [Integer] },
        performer: { required: false, class: [String] },
        title: { required: false, class: [String] }
      }

      send_something(:audio, params, extra_params_validation)
    end
def send_audio(params)
      extra_params_validation = {
        audio: { required: true, class: [File, String] },
        duration: { required: false, class: [Integer] },
        performer: { required: false, class: [String] },
        title: { required: false, class: [String] }
      }

      send_something(:audio, params, extra_params_validation)
    end
Sends audio file to a user or group chat.

 At this moment, Telegram only allows Ogg files encoded with the OPUS codec. If you need to send another file format, you must use #send_document.

 @param [Hash] params hash of paramers to send to the sendAudio API operation.
 @option params [Integer,String] :chat_id Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername).
 @option params [File,String] audio Required. Audio file to send. You can either pass a file_id as String to resend an audio that is already on the Telegram servers, or upload a new audio file using multipart/form-data
 @option params [Integer] duration Optional. Duration of the audio in seconds.
 @option params [String] performer Optional. Performer.
 @option params [String] title Optional. Track name.
 @option params [Integer] :reply_to_message_id Optional. If the message is a reply, ID of the original message
 @option params [Telegrammer::DataTypes::ReplyKeyboardMarkup,Telegrammer::DataTypes::ReplyKeyboardHide,Telegrammer::DataTypes::ForceReply] :reply_markup Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.

 @example
     bot = Telegrammer::Bot.new('[YOUR TELEGRAM TOKEN]')
     audio_file = File.open("foo.ogg")
     bot.send_audio(chat_id: 123456789, audio: audio_file)

 @raise [Telegrammer::Errors::BadRequestError] if something goes wrong in the Telegram API servers with the params received by the operation
 @raise [Telegrammer::Errors::ServiceUnavailableError] if Telegram servers are down

 @see #send_document
 @return [Telegrammer::DataTypes::Message] Message object sent to the user or group chat