Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

[Docs]: Outdated code in Dispatcher > Errors #4

Closed
LWJerri opened this issue Feb 8, 2024 · 0 comments
Closed

[Docs]: Outdated code in Dispatcher > Errors #4

LWJerri opened this issue Feb 8, 2024 · 0 comments

Comments

@LWJerri
Copy link

LWJerri commented Feb 8, 2024

dp.onError(async (error, update, state) => {
  if (update.type === "new_message") {  // <-- TS error
    await update.data.replyText(`Error: ${error.message}`);  // <-- TS error

    return true;
  }

  return false;
});

image
image

teidesu added a commit that referenced this issue Feb 19, 2024
@teidesu teidesu closed this as completed Feb 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants