2 Dec 2022 |
tulir | whatsmeow should log all requests and responses if you provide a logger with log level set to DEBUG | 14:16:40 |
matrix-whatsapp | wait a min | 14:17:11 |
matrix-whatsapp | <iq from="g.us" id="192.198-3" type="result"><group creation="1669990834" creator="my@s.whatsapp.net" id="120363027316922981" s_o="my@s.whatsapp.net" s_t="1669990834" subject="test Group"><member_add_mode>admin_add</member_add_mode><participant jid="my@s.whatsapp.net" type="superadmin"/><participant error="403" jid="privacy@s.whatsapp.net"><add_request code="YIlXDF2N0ssEIRVF+h" expiration="1670250034"/></participant></group></iq> | 14:21:38 |
matrix-whatsapp | any fix? | 14:24:10 |
GitHub | [tulir/whatsmeow] tulir pushed
2 commits
to
main: -
93a9e6b1
Handle group delete events
-
d138a41c
Handle failed participants when creating groups
| 14:28:50 |
matrix-whatsapp | privacy number still comes in parsed response | 14:39:20 |
tulir | yeah you'll have to check the .Error field manually | 14:39:39 |
tulir | you can probably also send that AddRequest code to the user in a private message somehow, not exactly sure how that works | 14:40:03 |
matrix-whatsapp | In reply to @tulir:maunium.net yeah you'll have to check the .Error field manually how i m still learning golang | 14:41:30 |
matrix-whatsapp | ?? | 14:47:40 |
Manjeet Pardeshi | Hey is there any plan to bring the communities features to whatsmeow? | 14:51:06 |
tulir | communities are just groups with a bit of extra metadata so there's not much to bring | 14:51:48 |
matrix-whatsapp | resp, err := client.CreateGroup(whatsmeow.ReqCreateGroup{
Name: "test",
Participants: xxx,
})
| 14:52:11 |
matrix-whatsapp | how do i check for .Error | 14:52:33 |
matrix-whatsapp | * how do i check for .Error | 14:52:52 |
Manjeet Pardeshi | In reply to @tulir:maunium.net communities are just groups with a bit of extra metadata so there's not much to bring Can you share an example? | 14:53:34 |
tulir | In reply to @matrix-whatsapp:matrix.org how i m still learning golang reading field values is too basic go for this room. It'll be in the json too if you serialize the response | 14:53:37 |
matrix-whatsapp | i dont see anything .Error in resp | 14:54:23 |
matrix-whatsapp | thats why i asked | 14:54:28 |
matrix-whatsapp | and err returns nothing | 14:54:39 |
tulir | did you update whatsmeow? 🤔 it should definitely have an Error field next to JID /IsAdmin /IsSuperAdmin | 14:55:27 |
tulir | In reply to @manjit2003:matrix.org Can you share an example? of what? | 14:55:44 |
matrix-whatsapp | there is no Error | 14:56:02 |
matrix-whatsapp | i updated lib already | 14:56:11 |
matrix-whatsapp | In reply to @matrix-whatsapp:matrix.org
resp, err := client.CreateGroup(whatsmeow.ReqCreateGroup{
Name: "test",
Participants: xxx,
})
you can see here i am using updated type | 14:56:27 |
Manjeet Pardeshi | In reply to @tulir:maunium.net of what? Something like creating community, etc.. | 14:56:48 |
tulir | In reply to @manjit2003:matrix.org Something like creating community, etc.. set IsParent to true in the create group request | 14:58:11 |
Manjeet Pardeshi | Oh sure... Thank you | 14:59:43 |
matrix-whatsapp |  Download image.png | 15:01:03 |
tulir | In reply to @matrix-whatsapp:matrix.org sent an image. it's in each participant | 15:02:01 |