fix: cat command (#41)

This commit is contained in:
Giovani Finazzi 2025-04-17 22:11:19 -03:00 committed by GitHub
parent c7bd923b54
commit 867a1f8a66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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, {