Skip to content

Solved Issues

gilpanal edited this page Jun 15, 2020 · 5 revisions
 await axios.post(API_BOT + BOT_TOKEN + '/sendAudio', form, {
        headers: {
          'Content-Type': `multipart/form-data; boundary=${form._boundary}`
        },
        'maxContentLength': Infinity,
        'maxBodyLength': Infinity
      }).then(async (responseTelegram) => {
        uploadResponse = await handleResponseFromTelegram(responseTelegram, req.body.chat_id)      
      }).catch((err) => {  
        const error = err && err.response && err.response.data    
        uploadResponse = error
      })

Clone this wiki locally