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

WaitContent functions get updates not from the current chat #621

Closed
ithersta opened this issue Jul 7, 2022 · 3 comments
Closed

WaitContent functions get updates not from the current chat #621

ithersta opened this issue Jul 7, 2022 · 3 comments

Comments

@ithersta
Copy link

ithersta commented Jul 7, 2022

Is it an expected behavior that wait*() functions get all updates even not from the current chat? If so, is it possible to filter them based on chat id?

@github-actions
Copy link

github-actions bot commented Jul 7, 2022

Welcome with your first issue

@InsanusMokrassar
Copy link
Owner

InsanusMokrassar commented Jul 7, 2022

Hello, it is expected behaviour. You may use any operations available for flows. I suggest you to use waitContentMessage with data filtering. For example:

waitContentMessage().filter {
    it.chat.id == someChatId
}.first().content

@InsanusMokrassar
Copy link
Owner

You are always welcome in our telegram chat

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

2 participants