From 867a1f8a66b94a8a97a7a8db25d50729523b7069 Mon Sep 17 00:00:00 2001 From: Giovani Finazzi <53719063+GiovaniFZ@users.noreply.github.com> Date: Thu, 17 Apr 2025 22:11:19 -0300 Subject: [PATCH] fix: cat command (#41) --- 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, {