fix: cat command
This commit is contained in:
parent
c7bd923b54
commit
45e552f0bb
1 changed files with 1 additions and 1 deletions
|
@ -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, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue