Sending message in telegram bot with images

前端 未结 4 1746
一整个雨季
一整个雨季 2021-02-20 04:27

I have telegram-bot code on php, and reply messages sending by replyWithMessage method.

All command here:

 $this->replyWithMessage([\'te         


        
4条回答
  •  清酒与你
    2021-02-20 05:14

    You can do it using markdown too:

    var axios = require('axios');
    
    axios.post('https://api.telegram.org/'+telegram_bot_id+'/sendMessage', { chat_id: _target_telegram_channel, parse_mode: 'markdown', text: '[ ‏ ](https://www.amazon.it/gp/product/B07NVCJ3V8?pf_rd_p=ba8c3f2e-eba5-4c79-9599-683af7a49dd1&pf_rd_r=XPRH5A07HN9W62DK1R84)' } )
        .then(response => {
            console.log(response);
        })
        .catch(error => {
            console.log(error);
        })
    

提交回复
热议问题