File tree 6 files changed +11
-8
lines changed
6 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ require (
15
15
github.com/zyedidia/clipboard v1.0.4
16
16
go.mau.fi/libsignal v0.1.1
17
17
go.mau.fi/util v0.8.2
18
- go.mau.fi/whatsmeow v0.0.0-20241116141054-92458da42ba3
18
+ go.mau.fi/whatsmeow v0.0.0-20241121132808-ae900cb6bee4
19
19
golang.org/x/crypto v0.29.0
20
20
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f
21
21
golang.org/x/image v0.22.0
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ go.mau.fi/libsignal v0.1.1 h1:m/0PGBh4QKP/I1MQ44ti4C0fMbLMuHb95cmDw01FIpI=
62
62
go.mau.fi/libsignal v0.1.1 /go.mod h1:QLs89F/OA3ThdSL2Wz2p+o+fi8uuQUz0e1BRa6ExdBw =
63
63
go.mau.fi/util v0.8.2 h1:zWbVHwdRKwI6U9AusmZ8bwgcLosikwbb4GGqLrNr1YE =
64
64
go.mau.fi/util v0.8.2 /go.mod h1:BHHC9R2WLMJd1bwTZfTcFxUgRFmUgUmiWcT4RbzUgiA =
65
- go.mau.fi/whatsmeow v0.0.0-20241116141054-92458da42ba3 h1:5BTCMPMvWcEJ+BIvci8S2+yqe09XIRqRYPt4SgB9y5o =
66
- go.mau.fi/whatsmeow v0.0.0-20241116141054-92458da42ba3 /go.mod h1:iB+F/NVNOnyumU2p/TKTSSdBhH05GHFG36diYuFp9VQ =
65
+ go.mau.fi/whatsmeow v0.0.0-20241121132808-ae900cb6bee4 h1:fb3X+Us6dDmXWZJt7H9o9P+pSiEq9Fut1jLqurVPpVc =
66
+ go.mau.fi/whatsmeow v0.0.0-20241121132808-ae900cb6bee4 /go.mod h1:iB+F/NVNOnyumU2p/TKTSSdBhH05GHFG36diYuFp9VQ =
67
67
go.mau.fi/zeroconfig v0.1.3 h1:As9wYDKmktjmNZW5i1vn8zvJlmGKHeVxHVIBMXsm4kM =
68
68
go.mau.fi/zeroconfig v0.1.3 /go.mod h1:NcSJkf180JT+1IId76PcMuLTNa1CzsFFZ0nBygIQM70 =
69
69
golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ =
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ func makeFacebookEndpoints(host string) map[string]string {
23
23
"media_upload" : baseURL + "/ajax/mercury/upload.php?" ,
24
24
"web_push" : baseURL + "/push/register/service_worker/" ,
25
25
26
+ "e2ee_ws_url" : "wss://web-chat-e2ee.facebook.com/ws/chat" ,
26
27
"icdc_fetch" : "https://reg-e2ee.facebook.com/v2/fb_icdc_fetch" ,
27
28
"icdc_register" : "https://reg-e2ee.facebook.com/v2/fb_register_v2" ,
28
29
}
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ var InstagramEndpoints = map[string]string{
17
17
"cookie_consent" : "https://graphql.instagram.com/graphql/" ,
18
18
"default_graphql" : "https://graphql.instagram.com/graphql/" ,
19
19
20
+ "e2ee_ws_url" : "wss://web-chat-e2ee.instagram.com/ws/chat" ,
20
21
"icdc_fetch" : "https://reg-e2ee.instagram.com/v2/fb_icdc_fetch" ,
21
22
"icdc_register" : "https://reg-e2ee.instagram.com/v2/fb_register_v2" ,
22
23
Original file line number Diff line number Diff line change @@ -38,8 +38,9 @@ func (c *Client) PrepareE2EEClient() *whatsmeow.Client {
38
38
e2eeClient := whatsmeow .NewClient (c .device , waLog .Zerolog (c .Logger .With ().Str ("component" , "whatsmeow" ).Logger ()))
39
39
e2eeClient .GetClientPayload = c .getClientPayload
40
40
e2eeClient .MessengerConfig = & whatsmeow.MessengerConfig {
41
- UserAgent : UserAgent ,
42
- BaseURL : c .getEndpoint ("base_url" ),
41
+ UserAgent : UserAgent ,
42
+ BaseURL : c .getEndpoint ("base_url" ),
43
+ WebsocketURL : c .getEndpoint ("e2ee_ws_url" ),
43
44
}
44
45
e2eeClient .RefreshCAT = c .refreshCAT
45
46
return e2eeClient
Original file line number Diff line number Diff line change @@ -426,9 +426,9 @@ func (s *Socket) getConnHeaders() http.Header {
426
426
h .Set ("cookie" , s .client .cookies .String ())
427
427
h .Set ("user-agent" , UserAgent )
428
428
h .Set ("origin" , s .client .getEndpoint ("base_url" ))
429
- h .Set ("Sec-Fetch-Dest" , "empty" )
430
- h .Set ("Sec-Fetch-Mode" , "websocket" )
431
- h .Set ("Sec-Fetch-Site" , "same-site" )
429
+ // h.Set("Sec-Fetch-Dest", "empty")
430
+ // h.Set("Sec-Fetch-Mode", "websocket")
431
+ // h.Set("Sec-Fetch-Site", "same-site")
432
432
433
433
return h
434
434
}
You can’t perform that action at this time.
0 commit comments