commit
This commit is contained in:
parent
1bbbf05545
commit
ba0ebec07d
10 changed files with 110 additions and 40 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue