Skip to content

Commit

Permalink
πŸƒ Increase the waiting time for url input
Browse files Browse the repository at this point in the history
  • Loading branch information
Rnbsov committed Mar 25, 2024
1 parent da84521 commit 2d15c09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/conversations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ export async function forwardPostLabels(

const api = new OmnivoreApi(token)

const urlInput = await conversation.waitFor('message:entities:url', { maxMilliseconds: 500 })
const urlInput = await conversation.waitFor('message:entities:url', { maxMilliseconds: 3750 })
let url = ''
console.log(urlInput)

if (urlInput.entities('text_link').length > 0) {
// handle case when user sends a message with text formatted link
const linkEntity = urlInput.entities('text_link')[0];
Expand Down

0 comments on commit 2d15c09

Please sign in to comment.