Hello, when using the @RegisterListener annotation, it doesn't detect the listening events when I create a new instance of WhatsApp and register myself.
`
If I use the .addListener(new ClassListener()) method, it works correctly when registering, but not when I use the annotation,
could you lend me a hand, thank you!
Hello, when using the @RegisterListener annotation, it doesn't detect the listening events when I create a new instance of WhatsApp and register myself.
this is my class that implements the listener:
` import it.auties.whatsapp.api.Whatsapp; import it.auties.whatsapp.listener.RegisterListener; import it.auties.whatsapp.listener.Listener;
import it.auties.whatsapp.model.info.MessageInfo; import it.auties.whatsapp.model.message.standard.TextMessage;
@RegisterListener // Automatically registers this listener public class MyListener implements Listener {
} `
class where I create the WhatsApp instance to register:
` public class WhatsAppMain {
` If I use the .addListener(new ClassListener()) method, it works correctly when registering, but not when I use the annotation, could you lend me a hand, thank you!