fix: cat command #41

Merged
GiovaniFZ merged 1 commit from fix_cats into main 2025-04-18 01:11:20 +00:00

View file

@ -64,7 +64,7 @@ module.exports = (bot) => {
const apiUrl = `${Resources.catApi}?json=true`; const apiUrl = `${Resources.catApi}?json=true`;
const response = await axios.get(apiUrl); const response = await axios.get(apiUrl);
const data = response.data; const data = response.data;
const imageUrl = `${Resources.catApi}/${data._id}`; const imageUrl = `${data.url}`;
try { try {
await ctx.replyWithPhoto(imageUrl, { await ctx.replyWithPhoto(imageUrl, {