2 Dec 2022 |
| paguiar735 joined the room. | 19:59:02 |
ilmais1n | i have understood that the "cloud api" thing is available to pretty much everyone nowadays, and does not require phone? | 20:41:27 |
ilmais1n | could it be utilized | 20:41:48 |
paguiar735 | 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 will reply with "Hello Pedro".
This is what I have so far: | 20:43:56 |
paguiar735 |  Download a.png | 20:44:08 |
paguiar735 |  Download b.png | 20:44:19 |
paguiar735 | * 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 | you can either store it in a global variable or return a function from the function like this | 20:47:10 |
paguiar735 | * 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 |  Download image.png | 20:47:31 |
akshettrj | and then add the handler like this: | 20:48:38 |
akshettrj |  Download image.png | 20:48:40 |
tulir | 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 |
ilmais1n | yes, but it would still be probably good for bots, and would allow to get rid of the phone/emulator requirement | 20:51:18 |
tulir | yeah looks like it would work fine if you just want to make a DM bot and don't expect lots of users | 20:52:32 |
tulir | doesn'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 |
ilmais1n | ah, the lack of group support is pretty much a deal breaker :s | 20:54:34 |
paguiar735 | 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 |
| Wanderer joined the room. | 09:25:15 |
GitHub | [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 | Redacted or Malformed Event | 20:47:30 |
TAMILVIP007 | hey there | 20:47:35 |
TAMILVIP007 | y is there a difference between jid from message event and extended message event | 20:47:57 |
TAMILVIP007 | jids in message event has .0:6 but extended message dont have it | 20:48:34 |
TAMILVIP007 | i want the both to be same any way for it? | 20:48:55 |
tulir | you can call .ToNonAD() on the message sender jid to get the plain version | 20:49:14 |
TAMILVIP007 | oh thanks | 20:49:30 |
TAMILVIP007 | how do i get id from client client.Store.ID gives the ids with .0:6 | 20:50:22 |
TAMILVIP007 | k nvm got | 20:51:13 |
TAMILVIP007 | how can i not listen to deleteed message in events.Message | 22:07:14 |