App.Post(`/${BotSecret}`, (req, res) => { try

{
bot.handleUpdate(req.body, res)
res.json({ message: req.body });

} catch (error) {
res.status(400).json({ error: error.message });
}

});


####Hi, so i was able to setup webhook, how do i test to find the updates that are going to my bot?

3 ответов

27 просмотров

u should ensure that your bot have permission to recieve message and u can send message to your bot and check that the message recieved or not

send any message to your bot and you'll get the update

mrdgw- Автор вопроса
tokai
send any message to your bot and you'll get the up...

any message to the bot will be a POST to my express route? im not getting updates. seems like my heroku setwebhook is mot working

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

Карта сайта