Hello, how can I send message to the specific thread

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!');
}
});

2 ответов

19 просмотров

reply_to

RasmonT | I'll never PM you first- Автор вопроса
Sery
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.

Похожие вопросы

Карта сайта