Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发送闪图却没有接受到 #230

Open
zhuaoshuai13 opened this issue Jan 9, 2023 · 4 comments
Open

发送闪图却没有接受到 #230

zhuaoshuai13 opened this issue Jan 9, 2023 · 4 comments

Comments

@zhuaoshuai13
Copy link

截屏2023-01-09 17 16 21
后台显示已经发送,但是QQ没有消息的显示,如果是普通的图片,能够正常显示

@Drincann
Copy link
Owner

如何复现?我这里是正常的。

@zhuaoshuai13
Copy link
Author

截屏2023-01-11 09 52 32

@zhuaoshuai13
Copy link
Author

async function send(r18, tagA, tagB) {
await bot.open({
baseUrl: "http://localhost:8080",
verifyKey: "1234567890",
qq: 3386718968,
});

function format(tag) {
return tag.join(",").replace(/,/g, "|");
}

axios
.get(
https://api.lolicon.app/setu/v2?r18=${r18}?tag=${format( tagA )}&tag=${format(tagB)}
)
.then(function (response) {
// handle success
const url = response.data.data[0].urls.original;
console.log(url);
bot.sendMessage({
group: groupNumber,
message: new Message().addImageUrl(url),
});
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// always executed
});
}

@zhuaoshuai13
Copy link
Author

截屏2023-01-11 09 53 36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants