Skip to content

Commit

Permalink
no mandar mensaje en perfiles de ig
Browse files Browse the repository at this point in the history
  • Loading branch information
catdevnull committed Oct 5, 2024
1 parent 53882f1 commit c6da1f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ class Bot {
const cobaltResult = await askCobalt(parsedUrl.href);
console.log(JSON.stringify(cobaltResult));
if (cobaltResult.status === "error") {
if (cobaltResult.error.code === "error.api.link.invalid") {
if (
// no soportamos ese servicio
cobaltResult.error.code === "error.api.link.invalid" ||
// no soportamos este tipo de link
cobaltResult.error.code === "error.api.link.unsupported"
) {
continue;
}

Expand Down

0 comments on commit c6da1f2

Please sign in to comment.