{
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?
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
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
Обсуждают сегодня