This commit is contained in:
Lukian LEIZOUR 2022-12-13 18:20:00 +01:00
parent a5a86747ad
commit e5cb45290c
4 changed files with 10 additions and 0 deletions

View file

@ -15,8 +15,12 @@ function getJoke(ctx, bot) {
if (error) throw new Error(error);
res = JSON.parse(body)
bot.telegram.sendMessage(ctx.chat.id, res.body[0].setup, {});
setTimeout(() => {
bot.telegram.sendMessage(ctx.chat.id, res.body[0].punchline, {});
}, 500);
});
}