title: Anybody knows how to send a audio/image using NodeJs to a Telegram bot?
body: <p>I'm trying to send an audio file to a Telegram bot using <strong>node</strong> and <strong>Telegram Api</strong> (sendAudio in this case)</p>
  
  <pre><code>const axios = require('axios');
  const FormData = require('form-data');
  
  let payload = new FormData();
  payload.append('chat_id', 'ID');
  payload.append('audio', './audio.mp3');
  // OR  payload.append('photo', fs.createReadStream(`./audio.jpg`));
  
  axios.post(
      'https://api.telegram.org/botMyToken/sendAudio',
      payload,
      {
          headers: {
              'accept': 'application/json',
              'Content-Type': `multipart/form-data;`
          }
      })
      .then(function (response) {
          console.log(response);
      })
      .catch(function (error) {
          console.log(error);
      });
  </code></pre>
  
  <p>console result is a big obj with:</p>
  
  <pre><code>Error: Request failed with status code 400
  at createError (/Users/username/TelegramBot/MyBot/node_modules/axios/lib/core/createError.js:16:15)
  at settle (/Users/username/TelegramBot/MyBot/node_modules/axios/lib/core/settle.js:18:12)
  at IncomingMessage.handleStreamEnd (/Users/username/TelegramBot/MyBot/node_modules/axios/lib/adapters/http.js:201:11)
  at IncomingMessage.emit (events.js:185:15)
  at endReadableNT (_stream_readable.js:1101:12)
  at process._tickCallback (internal/process/next_tick.js:114:19) 
  
  headers:
    { Accept: 'application/json, text/plain, */*',
      'Content-Type': 'multipart/form-data;',
      accept: 'application/json',
      'Accept-Language': 'en-US,en;q=0.8',
      'User-Agent': 'axios/0.18.0' },
    method: 'post',
    url: 'https://api.telegram.org/botMyToken/sendAudio',
    data:
     FormData {
      _overheadLength: 210,
      _valueLength: 89,
      _valuesToMeasure: [],
      writable: false,
      readable: true,
      dataSize: 0,
      maxDataSize: 2097152,
      pauseStreams: true,
      _released: true,
      _streams: [],
      _currentStream: null,
      _boundary: '--------------------------432591578870565694802709',
      _events: {},
      _eventsCount: 0 } },
  </code></pre>
  
  <p>what am I doing wrong?
  I tried send same file using a simple form, and PHP and it worked, I don't get what's wrong in this code.</p>