!whatsmeow-v9:maunium.net

WhatsMeow

828 Members
Discussion about whatsmeow | https://github.com/tulir/whatsmeow48 Servers

Load older messages


SenderMessageTime
2 Dec 2022
@tulir:maunium.nettulir whatsmeow should log all requests and responses if you provide a logger with log level set to DEBUG 14:16:40
@matrix-whatsapp:matrix.orgmatrix-whatsappwait a min14:17:11
@matrix-whatsapp:matrix.orgmatrix-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:matrix.orgmatrix-whatsappany fix?14:24:10
@github:maunium.netGitHub [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:matrix.orgmatrix-whatsappprivacy number still comes in parsed response14:39:20
@tulir:maunium.nettulir yeah you'll have to check the .Error field manually 14:39:39
@tulir:maunium.nettuliryou can probably also send that AddRequest code to the user in a private message somehow, not exactly sure how that works14:40:03
@matrix-whatsapp:matrix.orgmatrix-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:matrix.orgmatrix-whatsapp??14:47:40
@manjit2003:matrix.orgManjeet PardeshiHey is there any plan to bring the communities features to whatsmeow?14:51:06
@tulir:maunium.nettulircommunities are just groups with a bit of extra metadata so there's not much to bring14:51:48
@matrix-whatsapp:matrix.orgmatrix-whatsapp
resp, err := client.CreateGroup(whatsmeow.ReqCreateGroup{
			Name:         "test",
			Participants: xxx,
		})
14:52:11
@matrix-whatsapp:matrix.orgmatrix-whatsapp how do i check for .Error 14:52:33
@matrix-whatsapp:matrix.orgmatrix-whatsapp * how do i check for .Error 14:52:52
@manjit2003:matrix.orgManjeet 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:maunium.nettulir
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:matrix.orgmatrix-whatsapp i dont see anything .Error in resp 14:54:23
@matrix-whatsapp:matrix.orgmatrix-whatsappthats why i asked14:54:28
@matrix-whatsapp:matrix.orgmatrix-whatsappand err returns nothing14:54:39
@tulir:maunium.nettulir did you update whatsmeow? 🤔 it should definitely have an Error field next to JID/IsAdmin/IsSuperAdmin 14:55:27
@tulir:maunium.nettulir
In reply to @manjit2003:matrix.org
Can you share an example?
of what?
14:55:44
@matrix-whatsapp:matrix.orgmatrix-whatsappthere is no Error14:56:02
@matrix-whatsapp:matrix.orgmatrix-whatsappi updated lib already14:56:11
@matrix-whatsapp:matrix.orgmatrix-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
@manjit2003:matrix.orgManjeet Pardeshi
In reply to @tulir:maunium.net
of what?
Something like creating community, etc..
14:56:48
@tulir:maunium.nettulir
In reply to @manjit2003:matrix.org
Something like creating community, etc..
set IsParent to true in the create group request
14:58:11
@manjit2003:matrix.orgManjeet PardeshiOh sure... Thank you14:59:43
@matrix-whatsapp:matrix.orgmatrix-whatsappimage.png
Download image.png
15:01:03
@tulir:maunium.nettulir
In reply to @matrix-whatsapp:matrix.org
sent an image.
it's in each participant
15:02:01

Show newer messages


Back to Room ListRoom Version: 9