Untitled
unknown
plain_text
2 years ago
404 B
6
Indexable
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);
});
Editor is loading...
Leave a Comment