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

Add dedicated message.group / message.broadcast / message.direct / message.channels events #830

Open
Leonardo-Gonzaga opened this issue Feb 26, 2025 · 1 comment
Labels
engine:ALL Related to all engines or basic mechanisms enhancement New feature or request

Comments

@Leonardo-Gonzaga
Copy link

I'm always frustrated when group messages appear under the "message" event, which I primarily use for direct or private conversations. It becomes confusing and requires extra filtering logic to distinguish between group chats and individual chats.

I would like the platform to introduce a new event, such as "message.group", dedicated exclusively to group messages. This way, the existing "message" event can remain focused on private or direct messages, simplifying the handling of different conversation types.

I considered manually filtering incoming messages to detect whether they come from a group or an individual. However, this approach adds complexity to the code and can lead to potential errors or overlooked cases.

Implementing a dedicated "message.group" event would help developers better organize their workflows and reduce the need for custom logic to differentiate between group and private messages.

@devlikepro
Copy link
Contributor

However, this approach adds complexity to the code

It's pretty simple, actually

if chat.id doesn't end with "@c.us" - ignore message

We'll see how many patron:PLUS and patron:PRO supporters needs the feature and prioritize it based on that!
Hit +1 in the comments if you need it!

@devlikepro devlikepro changed the title [Feature Request] [Feature Request] - dedicated message.group / message.broadcast / message.direct / message.channels events Feb 28, 2025
@devlikepro devlikepro added enhancement New feature or request engine:ALL Related to all engines or basic mechanisms labels Feb 28, 2025
@devlikepro devlikepro changed the title [Feature Request] - dedicated message.group / message.broadcast / message.direct / message.channels events Add dedicated message.group / message.broadcast / message.direct / message.channels events Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine:ALL Related to all engines or basic mechanisms enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants