Skip to content

Commit

Permalink
🦊 Stop waiting for url after 500ms
Browse files Browse the repository at this point in the history
  • Loading branch information
Rnbsov committed Mar 20, 2024
1 parent 6a39f4c commit da84521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conversations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export async function forwardPostLabels(

const api = new OmnivoreApi(token)

const urlInput = await conversation.waitFor('message:entities:url')
const urlInput = await conversation.waitFor('message:entities:url', { maxMilliseconds: 500 })
let url = ''
console.log(urlInput)
if (urlInput.entities('text_link').length > 0) {
Expand Down

0 comments on commit da84521

Please sign in to comment.