Skip to content
New issue

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

Feat: Listen to new message #9

Open
soranoo opened this issue Oct 12, 2024 · 0 comments
Open

Feat: Listen to new message #9

soranoo opened this issue Oct 12, 2024 · 0 comments

Comments

@soranoo
Copy link

soranoo commented Oct 12, 2024

Hi, thank you for creating such an amazing project. Love it~

It would be nice to have a function to listen to new messages.

async listenToNewMessage(onNewMessage: (msg:ElementHandle | Message) => void,isRaw: bool): Promise<void> {
        // Implementation
    }

I know it can be done by subscribing waitElement after every message received, but it comes with a big disadvantage which is unable to handle message concurrency.

Please consider this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant