This commit is contained in:
Lukian LEIZOUR 2022-11-28 20:19:22 +01:00
parent 1bbbf05545
commit ba0ebec07d
10 changed files with 110 additions and 40 deletions

View file

@ -13,10 +13,14 @@ function generateImage(query, ctx, bot) {
n: 1,
size: "1024x1024",
response_format : 'url'
})
}).catch((err) => {
console.log(err);
addToLogs("--> error : " + err);
bot.telegram.sendMessage(ctx.chat.id, "Something went wrong", {});
});
console.log("--> generating image for the querry" + query);
addToLogs("--> generating image for the querry" + query)
console.log("--> generating image for the querry " + query);
addToLogs("--> generating image for the querry " + query)
bot.telegram.sendMessage(ctx.chat.id, "Generating the image.", {});
image.then((res) => {