From 45e552f0bb7e19d5f0238d502fcf4ad4d4906d9d Mon Sep 17 00:00:00 2001 From: GiovaniFZ Date: Thu, 17 Apr 2025 22:04:50 -0300 Subject: [PATCH] fix: cat command --- src/commands/animal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/animal.js b/src/commands/animal.js index 204015d..0d3884f 100644 --- a/src/commands/animal.js +++ b/src/commands/animal.js @@ -64,7 +64,7 @@ module.exports = (bot) => { const apiUrl = `${Resources.catApi}?json=true`; const response = await axios.get(apiUrl); const data = response.data; - const imageUrl = `${Resources.catApi}/${data._id}`; + const imageUrl = `${data.url}`; try { await ctx.replyWithPhoto(imageUrl, {