a post request. Via query url it works perfectly.
                  
                  
                  
                  
                  
                  That’s my request at the moment which isn’t working:
                  
                  
                  ```const res = axios.post(url + token + '/sendMessage', {
                  
                  
                  data: {
                  
                  
                      chat_id: id,
                  
                  
                      text: "test"
                  
                  
                  }}).catch(function (error) {
                  
                  
                      console.log(error.message);
                  
                  
                    });```
                  
                  
                  
                  
                  
                  I just noticed while writing this, do I have to access the text „object“ inside of message? Then I would know my mistake here.
                  
                  
                
Please format the code you posted, by wrapping it in triple backticks. -> `
Nobody ever tried this? Meh.
Обсуждают сегодня