!whatsmeow-v9:maunium.net

WhatsMeow

834 Members
Discussion about whatsmeow | https://github.com/tulir/whatsmeow54 Servers

Load older messages


SenderMessageTime
2 Dec 2022
@paguiar735:matrix.orgpaguiar735 joined the room.19:59:02
@iiro:pikaviestin.fiilmais1ni have understood that the "cloud api" thing is available to pretty much everyone nowadays, and does not require phone?20:41:27
@iiro:pikaviestin.fiilmais1ncould it be utilized20:41:48
@paguiar735:matrix.orgpaguiar735Hello! I'm new to the library and I was just wondering how you can pass the client pointer to the event handler. If you send "Pedro" the WhatsApp Account will reply with "Hello Pedro". This is what I have so far:20:43:56
@paguiar735:matrix.orgpaguiar735a.png
Download a.png
20:44:08
@paguiar735:matrix.orgpaguiar735b.png
Download b.png
20:44:19
@paguiar735:matrix.orgpaguiar735* Hello! I'm new to the library and I was just wondering how you can pass the client pointer to the event handler. If you send "Pedro", the WhatsApp Account shall reply with "Hello Pedro". This is what I have so far:20:45:13
@akshettrj:matrix.orgakshettrjyou can either store it in a global variable or return a function from the function like this20:47:10
@paguiar735:matrix.orgpaguiar735* Hello! I'm new to the library and I was just wondering how you can pass the client pointer to the event handler. If you send "Pedro" to the WhatsApp Account, it should send back "Hello Pedro". This is what I have so far:20:47:30
@akshettrj:matrix.orgakshettrjimage.png
Download image.png
20:47:31
@akshettrj:matrix.orgakshettrjand then add the handler like this:20:48:38
@akshettrj:matrix.orgakshettrjimage.png
Download image.png
20:48:40
@tulir:maunium.nettulir
In reply to @iiro:pikaviestin.fi
i have understood that the "cloud api" thing is available to pretty much everyone nowadays, and does not require phone?
the limitations of that haven't gone anywhere
20:50:18
@iiro:pikaviestin.fiilmais1nyes, but it would still be probably good for bots, and would allow to get rid of the phone/emulator requirement20:51:18
@tulir:maunium.nettuliryeah looks like it would work fine if you just want to make a DM bot and don't expect lots of users20:52:32
@tulir:maunium.nettulirdoesn't work for bridging due to no support for groups and the time limits (freeform messages only up to 24 hours after last user-sent message, after that the bot can only send template messages)20:54:01
@iiro:pikaviestin.fiilmais1nah, the lack of group support is pretty much a deal breaker :s20:54:34
@paguiar735:matrix.orgpaguiar735
In reply to @akshettrj:matrix.org
you can either store it in a global variable or return a function from the function like this
Thanks! That worked like a charm.
21:09:08
3 Dec 2022
@zenshibata:matrix.orgWanderer joined the room.09:25:15
@github:maunium.netGitHub [tulir/whatsmeow] qingcelei opened issue #291: How to get Conversations when I login in

When I login in whatsapp ,Now I use events.HistorySync to get the Conversations , Is this right? I see six HistorySyncType , what does every one means?

12:57:16
@tamilvip007:matrix.orgTAMILVIP007Redacted or Malformed Event20:47:30
@tamilvip007:matrix.orgTAMILVIP007hey there20:47:35
@tamilvip007:matrix.orgTAMILVIP007y is there a difference between jid from message event and extended message event20:47:57
@tamilvip007:matrix.orgTAMILVIP007jids in message event has .0:6 but extended message dont have it20:48:34
@tamilvip007:matrix.orgTAMILVIP007i want the both to be same any way for it?20:48:55
@tulir:maunium.nettulir you can call .ToNonAD() on the message sender jid to get the plain version 20:49:14
@tamilvip007:matrix.orgTAMILVIP007oh thanks20:49:30
@tamilvip007:matrix.orgTAMILVIP007how do i get id from client client.Store.ID gives the ids with .0:620:50:22
@tamilvip007:matrix.orgTAMILVIP007k nvm got20:51:13
@tamilvip007:matrix.orgTAMILVIP007how can i not listen to deleteed message in events.Message22:07:14

Show newer messages


Back to Room ListRoom Version: 9