Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
404 B
1
Indexable
Never
const axios = require('axios');
let data = JSON.stringify({
  "chat_id": "",
  "text": "test"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url:
  headers: { 
    'Content-Type': 'application/json'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});
Leave a Comment