-
-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Code (literally the quickstart + logs):
from neonize.client import NewClient
from neonize.events import MessageEv, ConnectedEv, event
# Initialize client
client = NewClient("your_bot_name")
@client.event
def on_connected(client: NewClient, event: ConnectedEv):
print("🎉 Bot connected successfully!")
@client.event
def on_message(client: NewClient, event: MessageEv):
if event.message.conversation == "hi":
client.reply_message("Hello! 👋", event.message)
# Start the bot
client.connect()
print(1)
event.wait() # Keep running
Terminal output:
22:58:21.263 [whatsmeow.Client INFO] - Successfully paired REDACTED:11@s.whatsapp.net
Login event: success
REDACTED
Press Ctrl+C to exit
22:58:21.715 [whatsmeow.Client INFO] - Got 515 code, reconnecting...
22:58:22.380 [whatsmeow.Client INFO] - Successfully authenticated
22:58:22.673 [whatsmeow.Client INFO] - Uploading 50 new prekeys to server
22:58:23.388 [whatsmeow.Client INFO] - Got prekey count from server: <notification from="s.whatsapp.net" id="REDACTED" t="REDACTED" type="encrypt"><count value="0"/></notification>
22:58:23.811 [whatsmeow.Client INFO] - Updating contact store with 81 push names from history sync
22:58:23.896 [whatsmeow.Client INFO] - Stored 80 message secret keys from history sync
22:58:23.896 [whatsmeow.Client INFO] - Stored 29 privacy tokens from history sync
22:58:24.195 [Whatsmeow.Database WARNING] - Duplicate contact info for REDACTED@s.whatsapp.net in mass insert
22:58:24.460 [whatsmeow.Client.AppState WARNING] - Warnings while updating hash for regular_low: [missing value MAC of previous SET operation for REDACTED]
22:58:26.047 [whatsmeow.Client INFO] - Stored 4110 message secret keys from history sync
22:58:26.047 [whatsmeow.Client INFO] - Stored 24 privacy tokens from history sync
The connection looks fine in whatsapp itself & the on_message never triggers (at all, if I add prints to it too, not just the conditional)
Metadata
Metadata
Assignees
Labels
No labels