From e0bb125ba284cb202af791d8690e51a91beb2bd8 Mon Sep 17 00:00:00 2001 From: lastforathousandyears <165640975+lastForAThousandYears@users.noreply.github.com> Date: Fri, 27 Mar 2026 23:23:15 +0500 Subject: [PATCH 1/3] fix for new vk api --- client/main.go | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/client/main.go b/client/main.go index e4de0f9..a38fcc6 100644 --- a/client/main.go +++ b/client/main.go @@ -78,7 +78,7 @@ func getVkCreds(link string) (string, string, string, error) { } }() - data := "client_secret=QbYic1K3lEV5kTGiqlq2&client_id=6287487&scopes=audio_anonymous%2Cvideo_anonymous%2Cphotos_anonymous%2Cprofile_anonymous&isApiOauthAnonymEnabled=false&version=1&app_id=6287487" + data := "client_id=6287487&token_type=messages&client_secret=QbYic1K3lEV5kTGiqlq2&version=1&app_id=6287487" url := "https://login.vk.ru/?act=get_anonym_token" resp, err := doRequest(data, url) @@ -88,27 +88,7 @@ func getVkCreds(link string) (string, string, string, error) { token1 := resp["data"].(map[string]interface{})["access_token"].(string) - data = fmt.Sprintf("access_token=%s", token1) - url = "https://api.vk.ru/method/calls.getAnonymousAccessTokenPayload?v=5.264&client_id=6287487" - - resp, err = doRequest(data, url) - if err != nil { - return "", "", "", fmt.Errorf("request error:%s", err) - } - - token2 := resp["response"].(map[string]interface{})["payload"].(string) - - data = fmt.Sprintf("client_id=6287487&token_type=messages&payload=%s&client_secret=QbYic1K3lEV5kTGiqlq2&version=1&app_id=6287487", token2) - url = "https://login.vk.ru/?act=get_anonym_token" - - resp, err = doRequest(data, url) - if err != nil { - return "", "", "", fmt.Errorf("request error:%s", err) - } - - token3 := resp["data"].(map[string]interface{})["access_token"].(string) - - data = fmt.Sprintf("vk_join_link=https://vk.com/call/join/%s&name=123&access_token=%s", link, token3) + data = fmt.Sprintf("vk_join_link=https://vk.com/call/join/%s&name=123&access_token=%s", link, token1) url = "https://api.vk.ru/method/calls.getAnonymousToken?v=5.264" resp, err = doRequest(data, url) @@ -116,7 +96,7 @@ func getVkCreds(link string) (string, string, string, error) { return "", "", "", fmt.Errorf("request error:%s", err) } - token4 := resp["response"].(map[string]interface{})["token"].(string) + token2 := resp["response"].(map[string]interface{})["token"].(string) data = fmt.Sprintf("%s%s%s", "session_data=%7B%22version%22%3A2%2C%22device_id%22%3A%22", uuid.New(), "%22%2C%22client_version%22%3A1.1%2C%22client_type%22%3A%22SDK_JS%22%7D&method=auth.anonymLogin&format=JSON&application_key=CGMMEJLGDIHBABABA") url = "https://calls.okcdn.ru/fb.do" @@ -126,9 +106,9 @@ func getVkCreds(link string) (string, string, string, error) { return "", "", "", fmt.Errorf("request error:%s", err) } - token5 := resp["session_key"].(string) + token3 := resp["session_key"].(string) - data = fmt.Sprintf("joinLink=%s&isVideo=false&protocolVersion=5&anonymToken=%s&method=vchat.joinConversationByLink&format=JSON&application_key=CGMMEJLGDIHBABABA&session_key=%s", link, token4, token5) + data = fmt.Sprintf("joinLink=%s&isVideo=false&protocolVersion=5&anonymToken=%s&method=vchat.joinConversationByLink&format=JSON&application_key=CGMMEJLGDIHBABABA&session_key=%s", link, token2, token3) url = "https://calls.okcdn.ru/fb.do" resp, err = doRequest(data, url) From 3560f0a4f2b3072867106aa6d54de0973562a7e6 Mon Sep 17 00:00:00 2001 From: lastforathousandyears <165640975+lastForAThousandYears@users.noreply.github.com> Date: Sat, 28 Mar 2026 00:59:02 +0500 Subject: [PATCH 2/3] also build for armv7a --- .github/workflows/ci.yml | 4 ++++ .github/workflows/release.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e4d7de..ecd517f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,6 +69,10 @@ jobs: goarch: arm64 cgo: 1 api: 21 + - goos: android + goarch: arm + cgo: 1 + api: 21 # you can add more (android/arm, windows, etc.) later steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4247cd..3569ef1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,6 +43,10 @@ jobs: goarch: arm64 cgo: 1 api: 21 + - goos: android + goarch: arm + cgo: 1 + api: 21 - goos: freebsd goarch: amd64 cgo: 0 From 9be32863d5db3a8acd5c4938f1c3d044bac877a4 Mon Sep 17 00:00:00 2001 From: lastforathousandyears <165640975+lastForAThousandYears@users.noreply.github.com> Date: Sat, 28 Mar 2026 01:03:16 +0500 Subject: [PATCH 3/3] whoops :3 --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3569ef1..de687d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -91,6 +91,8 @@ jobs: if [ "$GOARCH" = "arm64" ]; then export CC="$TOOLCHAIN_BIN/aarch64-linux-android${ANDROID_API}-clang" + elif [ "$GOARCH" = "arm" ]; then + export CC="$TOOLCHAIN_BIN/armv7a-linux-androideabi${ANDROID_API}-clang" else echo "Unsupported ANDROID GOARCH=$GOARCH" exit 1