def get_file(params)
      params_validation = {
        file_id: { required: true, class: [String] }
      }

      response = api_request("getFile", params, params_validation)
      file_object = Telegrammer::DataTypes::File.new(response.result)

      "#{API_ENDPOINT}/file/bot#{@api_token}/#{file_object.file_path}"
    end
def get_file(params)
      params_validation = {
        file_id: { required: true, class: [String] }
      }

      response = api_request("getFile", params, params_validation)
      file_object = Telegrammer::DataTypes::File.new(response.result)

      "#{API_ENDPOINT}/file/bot#{@api_token}/#{file_object.file_path}"
    end
Get basic info about a file and prepare it for downloading.

 @param [Hash] params hash of paramers to send to the getFile API operation.
 @option params [String] :file_id Required. File identifier to get info about.

 @example
     bot = Telegrammer::Bot.new('[YOUR TELEGRAM TOKEN]')
     bot.get_file(file_id: 123456789)

 @raise [Telegrammer::Errors::BadRequestError]
 @raise [Telegrammer::Errors::ServiceUnavailableError] if Telegram servers are down

 @return [String] URL of the file (valid for one hour) or BadRequestError if the file_id is wrong