We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Mentioning @contact@
async function typeMessage(message) { let fs = [] let parts = message.split('\n'); for (var i = 0; i < parts.length; i++) { fs.push({type: 'down', command: 'Shift'}) fs.push({type: 'press', command: 'Enter'}) fs.push({type: 'up', command: 'Shift'}) //Mentioning @contact@ if(parts[i].includes('@')) { let parts2 = parts[i].split('@'); for (var j = 0; j < parts2.length; j++) { let contact = parts2[j].slice(0,1) === ' ' ? parts2[j].slice(1,parts2[j].length) : parts2[j] if(contact.length > 3 && parts[i].indexOf('@' + contact) >= 0) { fs.push({type: 'type', command: '@' + contact.slice(0, -1), wait: 1000}) fs.push({type: 'press', command: 'Enter', wait: 500}) } else { fs.push({type: 'type', command: contact}) } } } else { fs.push({type: 'type', command: parts[i]}) } } for(let i = 0; i < fs.length; i++) { await page.keyboard[fs[i].type](fs[i].command) await wait(fs[i].wait ? fs[i].wait : 100) } await page.keyboard.press('Enter'); ...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Mentioning @contact@
The text was updated successfully, but these errors were encountered: