inside the group? I found that that thread has id 7, but I didn't find a way to send message to that specific thread..
bot.on('message', (message) => {
if (message.text == '/start') {
console.log(message);
bot.sendMessage(MyChatId, 7, 'Succes!');
}
});
reply_to
bot.on('message', (message) => { if (message.text == '/start') { console.log(message); bot.sendMessage(MyChatId, 'Succes!', {message_thread_id: '7'}); } }); This works, needed to add it to the option.
Обсуждают сегодня