slidge-whatsapp 0.2.2__cp312-cp312-manylinux_2_36_aarch64.whl → 0.2.6__cp312-cp312-manylinux_2_36_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slidge-whatsapp might be problematic. Click here for more details.
- slidge_whatsapp/__init__.py +26 -8
- slidge_whatsapp/__main__.py +3 -0
- slidge_whatsapp/config.py +3 -0
- slidge_whatsapp/contact.py +1 -1
- slidge_whatsapp/event.go +79 -24
- slidge_whatsapp/gateway.go +13 -9
- slidge_whatsapp/gateway.py +2 -2
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.h +188 -151
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +156 -131
- slidge_whatsapp/generated/go.py +1 -1
- slidge_whatsapp/generated/whatsapp.c +1770 -1299
- slidge_whatsapp/generated/whatsapp.go +1275 -1030
- slidge_whatsapp/generated/whatsapp.py +1262 -942
- slidge_whatsapp/generated/whatsapp_go.h +188 -151
- slidge_whatsapp/go.mod +18 -13
- slidge_whatsapp/go.sum +41 -29
- slidge_whatsapp/group.py +7 -2
- slidge_whatsapp/media/__init__.py +0 -0
- slidge_whatsapp/media/media.go +24 -13
- slidge_whatsapp/session.go +77 -71
- slidge_whatsapp/session.py +53 -31
- slidge_whatsapp/vendor/filippo.io/edwards25519/LICENSE +27 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/README.md +14 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/doc.go +20 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/edwards25519.go +427 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/extra.go +349 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe.go +420 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_amd64.go +16 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_amd64.s +379 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_amd64_noasm.go +12 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_arm64.go +16 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_arm64.s +42 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_arm64_noasm.go +12 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_extra.go +50 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_generic.go +266 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/scalar.go +343 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/scalar_fiat.go +1147 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/scalarmult.go +214 -0
- slidge_whatsapp/vendor/filippo.io/edwards25519/tables.go +129 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/.gitignore +1 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/LICENSE +201 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/README.md +97 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/abi_amd64.h +99 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/abi_arm64.h +39 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/cgo.go +19 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlerror.go +17 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn.go +99 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_android.go +34 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_darwin.go +19 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_freebsd.go +14 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_linux.go +16 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_nocgo_freebsd.go +11 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_nocgo_linux.go +19 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_playground.go +24 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_stubs.s +26 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/func.go +436 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/go_runtime.go +13 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/cgo/dlfcn_cgo_unix.go +56 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/cgo/empty.go +6 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/cgo/syscall_cgo_unix.go +55 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/abi_amd64.h +99 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/abi_arm64.h +39 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/asm_amd64.s +39 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/asm_arm64.s +36 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/callbacks.go +93 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/doc.go +32 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/freebsd.go +27 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_darwin_amd64.go +73 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_darwin_arm64.go +88 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_freebsd_amd64.go +95 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_freebsd_arm64.go +98 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_libinit.go +72 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_linux_amd64.go +95 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_linux_arm64.go +98 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_setenv.go +18 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_util.go +37 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/iscgo.go +19 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo.go +39 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_darwin.go +22 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_freebsd.go +16 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_linux.go +16 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/setenv.go +19 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols.go +221 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols_darwin.go +29 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols_freebsd.go +29 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols_linux.go +29 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_amd64.s +104 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_arm64.s +72 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_stubs.s +90 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/strings/strings.go +40 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/is_ios.go +13 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/nocgo.go +25 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/struct_amd64.go +260 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/struct_arm64.go +274 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/struct_other.go +16 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/sys_amd64.s +164 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/sys_arm64.s +92 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/sys_unix_arm64.s +70 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/syscall.go +53 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/syscall_cgo_linux.go +21 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/syscall_sysv.go +223 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/syscall_windows.go +46 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/zcallback_amd64.s +2014 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/zcallback_arm64.s +4014 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/.gitattributes +6 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/AUTHORS +1 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/COPYING +661 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/README.md +71 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz.go +66 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo.go +596 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo_cgo.go +18 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo_extlib.go +11 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo_extlib_pkgconfig.go +9 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_content_types.go +383 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_nocgo.go +1098 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_vendor.go +9 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/archive.h +444 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/band-writer.h +117 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/bidi.h +90 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/bitmap.h +175 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/buffer.h +250 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/color.h +427 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/compress.h +88 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/compressed-buffer.h +185 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/config.h +222 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/context.h +1006 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/crypt.h +270 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/device.h +654 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/display-list.h +142 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/document.h +1108 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/export.h +52 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/filter.h +263 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/font.h +815 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/geometry.h +818 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/getopt.h +128 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/glyph-cache.h +96 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/glyph.h +81 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/hash.h +126 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/heap-imp.h +163 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/heap.h +140 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/image.h +443 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/link.h +130 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/log.h +61 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/outline.h +228 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/output-svg.h +64 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/output.h +415 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/path.h +447 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/pixmap.h +501 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/pool.h +68 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/separation.h +138 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/shade.h +233 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/store.h +456 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/story-writer.h +209 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/story.h +232 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/stream.h +646 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/string-util.h +286 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/structured-text.h +365 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/system.h +459 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/text.h +209 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/track-usage.h +57 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/transition.h +76 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/tree.h +62 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/types.h +41 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/util.h +151 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/vendor.go +3 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/version.h +31 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/write-pixmap.h +499 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/writer.h +266 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/xml.h +397 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz.h +97 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/memento.h +423 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/vendor.go +3 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/libs/libmupdf_linux_arm64.a +0 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/libs/libmupdfthird_linux_arm64.a +0 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/libs/vendor.go +3 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_darwin.go +23 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_linux.go +22 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_windows.go +22 -0
- slidge_whatsapp/vendor/github.com/go-python/gopy/LICENSE +23 -0
- slidge_whatsapp/vendor/github.com/go-python/gopy/gopyh/handle.go +210 -0
- slidge_whatsapp/vendor/github.com/google/uuid/CHANGELOG.md +41 -0
- slidge_whatsapp/vendor/github.com/google/uuid/CONTRIBUTING.md +26 -0
- slidge_whatsapp/vendor/github.com/google/uuid/CONTRIBUTORS +9 -0
- slidge_whatsapp/vendor/github.com/google/uuid/LICENSE +27 -0
- slidge_whatsapp/vendor/github.com/google/uuid/README.md +21 -0
- slidge_whatsapp/vendor/github.com/google/uuid/dce.go +80 -0
- slidge_whatsapp/vendor/github.com/google/uuid/doc.go +12 -0
- slidge_whatsapp/vendor/github.com/google/uuid/hash.go +59 -0
- slidge_whatsapp/vendor/github.com/google/uuid/marshal.go +38 -0
- slidge_whatsapp/vendor/github.com/google/uuid/node.go +90 -0
- slidge_whatsapp/vendor/github.com/google/uuid/node_js.go +12 -0
- slidge_whatsapp/vendor/github.com/google/uuid/node_net.go +33 -0
- slidge_whatsapp/vendor/github.com/google/uuid/null.go +118 -0
- slidge_whatsapp/vendor/github.com/google/uuid/sql.go +59 -0
- slidge_whatsapp/vendor/github.com/google/uuid/time.go +134 -0
- slidge_whatsapp/vendor/github.com/google/uuid/util.go +43 -0
- slidge_whatsapp/vendor/github.com/google/uuid/uuid.go +365 -0
- slidge_whatsapp/vendor/github.com/google/uuid/version1.go +44 -0
- slidge_whatsapp/vendor/github.com/google/uuid/version4.go +76 -0
- slidge_whatsapp/vendor/github.com/google/uuid/version6.go +56 -0
- slidge_whatsapp/vendor/github.com/google/uuid/version7.go +104 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/.gitignore +25 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/AUTHORS +9 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/LICENSE +22 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/README.md +33 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/client.go +434 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/compression.go +148 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/conn.go +1238 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/doc.go +227 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/join.go +42 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/json.go +60 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/mask.go +55 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/mask_safe.go +16 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/prepared.go +102 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/proxy.go +77 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/server.go +365 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/tls_handshake.go +21 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/tls_handshake_116.go +21 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/util.go +298 -0
- slidge_whatsapp/vendor/github.com/gorilla/websocket/x_net_proxy.go +473 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/.editorconfig +12 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/.gitignore +2 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/.travis.yml +16 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/History.md +163 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/LICENSE +24 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/README.md +294 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/filetype.go +102 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/kind.go +91 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/match.go +90 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/application.go +43 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/archive.go +211 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/audio.go +85 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/document.go +197 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/font.go +45 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/image.go +143 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/isobmff/isobmff.go +37 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/matchers.go +51 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/video.go +145 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/types/defaults.go +4 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/types/mime.go +14 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/types/split.go +11 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/types/type.go +16 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/types/types.go +23 -0
- slidge_whatsapp/vendor/github.com/h2non/filetype/version.go +4 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/.gitignore +21 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/CHANGELOG.md +69 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/COPYRIGHT.txt +147 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/README.md +162 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi.go +7 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi_amd64.go +7 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/ffi.go +272 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/fun.go +54 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/init.go +55 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib.go +82 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_unix.go +63 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_windows.go +68 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/tramp_amd64.go +5 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/tramp_arm64.go +5 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/tramp_darwin_arm64.go +5 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/types.go +34 -0
- slidge_whatsapp/vendor/github.com/mattn/go-colorable/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/mattn/go-colorable/README.md +48 -0
- slidge_whatsapp/vendor/github.com/mattn/go-colorable/colorable_others.go +38 -0
- slidge_whatsapp/vendor/github.com/mattn/go-colorable/colorable_windows.go +1047 -0
- slidge_whatsapp/vendor/github.com/mattn/go-colorable/go.test.sh +12 -0
- slidge_whatsapp/vendor/github.com/mattn/go-colorable/noncolorable.go +57 -0
- slidge_whatsapp/vendor/github.com/mattn/go-isatty/LICENSE +9 -0
- slidge_whatsapp/vendor/github.com/mattn/go-isatty/README.md +50 -0
- slidge_whatsapp/vendor/github.com/mattn/go-isatty/doc.go +2 -0
- slidge_whatsapp/vendor/github.com/mattn/go-isatty/go.test.sh +12 -0
- slidge_whatsapp/vendor/github.com/mattn/go-isatty/isatty_bsd.go +20 -0
- slidge_whatsapp/vendor/github.com/mattn/go-isatty/isatty_others.go +17 -0
- slidge_whatsapp/vendor/github.com/mattn/go-isatty/isatty_plan9.go +23 -0
- slidge_whatsapp/vendor/github.com/mattn/go-isatty/isatty_solaris.go +21 -0
- slidge_whatsapp/vendor/github.com/mattn/go-isatty/isatty_tcgets.go +20 -0
- slidge_whatsapp/vendor/github.com/mattn/go-isatty/isatty_windows.go +125 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/.codecov.yml +4 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/.gitignore +14 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +598 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/backup.go +85 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/callback.go +412 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/convert.go +299 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/doc.go +134 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/error.go +150 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +261459 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +13720 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3.go +2315 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_context.go +103 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_func_crypt.go +120 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go +54 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_libsqlite3.go +23 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_load_extension.go +85 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_load_extension_omit.go +25 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_allow_uri_authority.go +16 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_app_armor.go +16 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_column_metadata.go +22 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_foreign_keys.go +16 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_fts5.go +15 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_icu.go +20 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_introspect.go +16 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_math_functions.go +15 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_os_trace.go +15 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate.go +21 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate_hook.go +113 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate_omit.go +22 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_secure_delete.go +16 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_secure_delete_fast.go +16 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_serialize.go +83 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_serialize_omit.go +21 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_stat4.go +16 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.c +89 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.go +97 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_userauth.go +295 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_userauth_omit.go +158 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_vacuum_full.go +16 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_vacuum_incr.go +16 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_vtable.go +721 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_other.go +18 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_solaris.go +15 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_trace.go +288 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_type.go +108 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_usleep_windows.go +42 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_windows.go +18 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3ext.h +728 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/static_mock.go +38 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/.gitignore +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/LICENSE +202 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/README.md +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid.go +35 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_gccgo.go +26 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.3.c +23 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.3.go +22 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.4.go +35 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.4.s +18 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.5.go +28 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.5.s +44 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_slow.go +24 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_gccgo_go1.8.go +17 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.23.go +38 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.5.go +57 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.6.go +43 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.9.go +37 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/.gitignore +25 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/CONTRIBUTING.md +43 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/README.md +813 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/array.go +240 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/console.go +535 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/context.go +480 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/ctx.go +52 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/encoder.go +56 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/encoder_cbor.go +45 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/encoder_json.go +51 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/event.go +830 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/example.jsonl +7 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/fields.go +292 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/globals.go +190 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/go112.go +7 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/hook.go +64 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/README.md +56 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/base.go +19 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/cbor.go +102 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/decode_stream.go +654 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/string.go +117 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/time.go +93 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/types.go +486 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/internal/json/base.go +19 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/internal/json/bytes.go +85 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/internal/json/string.go +149 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/internal/json/time.go +113 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/internal/json/types.go +435 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/log/log.go +131 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/log.go +518 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/not_go112.go +5 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/pretty.png +0 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/sampler.go +137 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/syslog.go +89 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/writer.go +355 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/LICENSE +674 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/cipher/Cbc.go +101 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/cipher/Cipher.go +105 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/Curve.go +109 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/DjbECPublicKey.go +29 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/DkbECPrivateKey.go +29 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/Doc.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/ECKeyPair.go +27 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/ECPrivateKey.go +7 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/ECPublicKey.go +11 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/SignCurve25519.go +97 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupCipher.go +152 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupSessionBuilder.go +94 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/ratchet/Doc.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/ratchet/SenderChainKey.go +68 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/ratchet/SenderMessageKey.go +89 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/record/Doc.go +2 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/record/SenderKeyRecord.go +149 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/record/SenderKeyState.go +186 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/store/Doc.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/store/SenderKeyStore.go +13 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/kdf/HKDF.go +47 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/chain/ChainKey.go +128 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/identity/IdentityKey.go +48 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/identity/IdentityKeyPair.go +39 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/message/MessageKey.go +91 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/prekey/PreKeyBundle.go +86 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/root/RootKey.go +66 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/session/DerivedSecrets.go +29 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/session/Pair.go +43 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/logger/DefaultLogger.go +85 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/logger/Logger.go +89 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/CiphertextMessage.go +19 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/Doc.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/PreKeySignalMessage.go +152 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/SenderKeyDistributionMessage.go +147 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/SenderKeyMessage.go +168 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/SenderKeyName.go +25 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/SignalMessage.go +226 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/SignalProtocolAddress.go +38 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/ratchet/Ratchet.go +197 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/ratchet/ReceiverParameters.go +106 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/ratchet/SenderParameters.go +106 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/ratchet/SymmetricParameters.go +18 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/FingerprintProtocol.pb.go +246 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/FingerprintProtocol.proto +14 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/JSONSerializer.go +303 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/LocalStorageProtocol.pb.go +1501 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/LocalStorageProtocol.proto +114 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/ProtoBufferSerializer.go +262 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/Serializer.go +31 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/WhisperTextProtocol.pb.go +641 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/WhisperTextProtocol.proto +45 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/session/Session.go +299 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/session/SessionCipher.go +409 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/signalerror/errors.go +37 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/ChainState.go +157 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/Doc.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/PendingKeyExchangeState.go +91 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/PendingPreKeyState.go +62 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/PreKeyRecord.go +90 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/SessionRecord.go +197 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/SessionState.go +531 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/SignedPreKeyRecord.go +112 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/UnacknowledgedPreKey.go +69 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/Doc.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/IdentityKeyStore.go +31 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/MessageKeyStore.go +23 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/PreKeyStore.go +23 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SessionStore.go +19 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SignalProtocolStore.go +15 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SignedPreKeyStore.go +26 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/util/bytehelper/ByteHelper.go +97 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/util/errorhelper/ErrorHelper.go +40 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/util/keyhelper/KeyHelper.go +95 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/util/medium/Medium.go +4 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/util/optional/Integer.go +17 -0
- slidge_whatsapp/vendor/go.mau.fi/util/LICENSE +373 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/connlog.go +257 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/database.go +309 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/iter.go +233 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/json.go +47 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/log.go +129 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/massinsert.go +164 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/queryhelper.go +137 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/reflectscan.go +30 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/transaction.go +180 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/upgrades.go +250 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/upgradetable.go +331 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exerrors/dualerror.go +33 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exerrors/must.go +23 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/cors.go +32 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/handleerrors.go +64 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/json.go +41 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/middleware.go +30 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/networkerror.go +37 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +88 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/returnonce.go +25 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/ringbuffer.go +139 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/syncmap.go +94 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/syncset.go +136 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/callermarshal.go +28 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/defaults.go +32 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/generics.go +45 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/writer.go +81 -0
- slidge_whatsapp/vendor/go.mau.fi/util/fallocate/doc.go +9 -0
- slidge_whatsapp/vendor/go.mau.fi/util/fallocate/fallocate_darwin.go +29 -0
- slidge_whatsapp/vendor/go.mau.fi/util/fallocate/fallocate_linux.go +24 -0
- slidge_whatsapp/vendor/go.mau.fi/util/fallocate/fallocate_unknown.go +17 -0
- slidge_whatsapp/vendor/go.mau.fi/util/jsontime/duration.go +155 -0
- slidge_whatsapp/vendor/go.mau.fi/util/jsontime/helpers.go +59 -0
- slidge_whatsapp/vendor/go.mau.fi/util/jsontime/integer.go +170 -0
- slidge_whatsapp/vendor/go.mau.fi/util/jsontime/string.go +95 -0
- slidge_whatsapp/vendor/go.mau.fi/util/ptr/ptr.go +43 -0
- slidge_whatsapp/vendor/go.mau.fi/util/random/bytes.go +21 -0
- slidge_whatsapp/vendor/go.mau.fi/util/random/string.go +87 -0
- slidge_whatsapp/vendor/go.mau.fi/util/retryafter/retryafter.go +53 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.editorconfig +13 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.gitattributes +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.pre-commit-config.yaml +31 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/LICENSE +374 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/README.md +35 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +312 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/encode.go +323 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/errors.go +19 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/hash.go +97 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/keys.go +138 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/lthash/lthash.go +58 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +409 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +100 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/attrs.go +218 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/decoder.go +406 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/encoder.go +308 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/errors.go +12 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/node.go +139 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/token/token.go +94 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/unpack.go +31 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/xml.go +108 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/broadcast.go +143 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +112 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +896 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +212 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download-to-file.go +227 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +394 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +261 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +960 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/handshake.go +165 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +680 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +84 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaconn.go +98 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaretry.go +185 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +842 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +374 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/newsletter.go +376 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +452 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +245 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair.go +272 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/prekeys.go +255 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +139 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/privacysettings.go +170 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/.gitignore +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/armadilloutil/decode.go +32 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/extra.go +36 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.go +515 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.proto +43 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.go +2982 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.proto +258 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.go +1017 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.proto +140 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.go +412 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.proto +34 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.go +138 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.proto +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.go +769 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.proto +67 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/legacy.go +11 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.pb.go +978 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.proto +100 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.go +2817 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.proto +233 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/extra.go +82 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.go +247 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.proto +18 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +26597 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +2550 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/legacy.go +31 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +2368 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +231 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/legacy.go +11 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.go +2130 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.proto +191 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.go +272 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.proto +21 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.go +1156 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.proto +96 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/extra.go +41 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.go +859 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.proto +75 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/extra.go +19 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.go +732 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.proto +57 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.go +857 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.proto +72 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/legacy.go +31 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +5344 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +493 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.go +428 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.proto +33 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.go +852 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.proto +72 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +2325 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +253 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +4441 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +579 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/legacy.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/push.go +110 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/qrchan.go +180 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +248 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/request.go +225 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +450 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +1299 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +657 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/socket/constants.go +43 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/socket/framesocket.go +235 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/socket/noisehandshake.go +124 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/socket/noisesocket.go +108 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +187 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +256 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/signal.go +182 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/container.go +288 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/lidmap.go +186 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +897 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/00-latest-schema.sql +153 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/03-message-secrets.sql +11 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/04-privacy-tokens.sql +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/05-account-jid-format.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/06-facebook-uuid.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/07-account-lid.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/08-lid-mapping.sql +5 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/09-decryption-buffer.sql +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/upgrades.go +22 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +243 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/botmap.go +210 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/call.go +21 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/appstate.go +185 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/call.go +77 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +608 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/group.go +164 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +262 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/message.go +115 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/newsletter.go +201 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/presence.go +78 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/user.go +195 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/update.go +64 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/upload.go +251 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +880 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/util/cbcutil/cbc.go +217 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/util/gcmutil/gcm.go +41 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/util/hkdfutil/hkdf.go +28 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/util/keys/keypair.go +68 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/util/log/log.go +83 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/util/log/zerolog.go +38 -0
- slidge_whatsapp/vendor/golang.org/x/crypto/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/crypto/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/crypto/curve25519/curve25519.go +90 -0
- slidge_whatsapp/vendor/golang.org/x/crypto/hkdf/hkdf.go +95 -0
- slidge_whatsapp/vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go +77 -0
- slidge_whatsapp/vendor/golang.org/x/exp/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/exp/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/exp/constraints/constraints.go +54 -0
- slidge_whatsapp/vendor/golang.org/x/image/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/image/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/image/draw/draw.go +67 -0
- slidge_whatsapp/vendor/golang.org/x/image/draw/impl.go +8426 -0
- slidge_whatsapp/vendor/golang.org/x/image/draw/scale.go +525 -0
- slidge_whatsapp/vendor/golang.org/x/image/math/f64/f64.go +37 -0
- slidge_whatsapp/vendor/golang.org/x/image/riff/riff.go +193 -0
- slidge_whatsapp/vendor/golang.org/x/image/vp8/decode.go +403 -0
- slidge_whatsapp/vendor/golang.org/x/image/vp8/filter.go +273 -0
- slidge_whatsapp/vendor/golang.org/x/image/vp8/idct.go +98 -0
- slidge_whatsapp/vendor/golang.org/x/image/vp8/partition.go +129 -0
- slidge_whatsapp/vendor/golang.org/x/image/vp8/pred.go +201 -0
- slidge_whatsapp/vendor/golang.org/x/image/vp8/predfunc.go +553 -0
- slidge_whatsapp/vendor/golang.org/x/image/vp8/quant.go +98 -0
- slidge_whatsapp/vendor/golang.org/x/image/vp8/reconstruct.go +442 -0
- slidge_whatsapp/vendor/golang.org/x/image/vp8/token.go +381 -0
- slidge_whatsapp/vendor/golang.org/x/image/vp8l/decode.go +603 -0
- slidge_whatsapp/vendor/golang.org/x/image/vp8l/huffman.go +245 -0
- slidge_whatsapp/vendor/golang.org/x/image/vp8l/transform.go +299 -0
- slidge_whatsapp/vendor/golang.org/x/image/webp/decode.go +276 -0
- slidge_whatsapp/vendor/golang.org/x/image/webp/doc.go +9 -0
- slidge_whatsapp/vendor/golang.org/x/net/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/net/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/net/http/httpguts/guts.go +50 -0
- slidge_whatsapp/vendor/golang.org/x/net/http/httpguts/httplex.go +347 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/.gitignore +2 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/ascii.go +53 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/ciphers.go +641 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/client_conn_pool.go +311 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/config.go +122 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_go124.go +61 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_pre_go124.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/databuffer.go +149 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/errors.go +145 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/flow.go +120 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/frame.go +1702 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/gotrack.go +170 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/encode.go +245 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/hpack.go +523 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/huffman.go +226 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/static_table.go +188 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/tables.go +403 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/http2.go +432 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/pipe.go +184 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/server.go +3350 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/timer.go +20 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/transport.go +3287 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/unencrypted.go +32 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/write.go +381 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched.go +251 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_priority.go +451 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_random.go +77 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_roundrobin.go +119 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/go118.go +13 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/idna10.0.0.go +769 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/idna9.0.0.go +717 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/pre_go118.go +11 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/punycode.go +217 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables10.0.0.go +4559 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables11.0.0.go +4653 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables12.0.0.go +4733 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables13.0.0.go +4959 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables15.0.0.go +5144 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables9.0.0.go +4486 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie.go +51 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie12.0.0.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie13.0.0.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trieval.go +119 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/ascii.go +53 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/headermap.go +115 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/request.go +467 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/socks/client.go +168 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/socks/socks.go +317 -0
- slidge_whatsapp/vendor/golang.org/x/net/proxy/dial.go +54 -0
- slidge_whatsapp/vendor/golang.org/x/net/proxy/direct.go +31 -0
- slidge_whatsapp/vendor/golang.org/x/net/proxy/per_host.go +153 -0
- slidge_whatsapp/vendor/golang.org/x/net/proxy/proxy.go +149 -0
- slidge_whatsapp/vendor/golang.org/x/net/proxy/socks5.go +42 -0
- slidge_whatsapp/vendor/golang.org/x/sys/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/sys/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/.gitignore +2 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/README.md +184 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/affinity_linux.go +86 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/aliases.go +13 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s +17 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_bsd_386.s +27 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_bsd_amd64.s +27 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_bsd_arm.s +27 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_bsd_arm64.s +27 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s +29 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s +27 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_386.s +65 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_amd64.s +57 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_arm.s +56 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_arm64.s +50 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_loong64.s +51 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s +54 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s +52 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s +42 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s +47 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_s390x.s +54 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s +29 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s +17 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_zos_s390x.s +382 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/auxv.go +36 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/auxv_unsupported.go +13 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/bluetooth_linux.go +36 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/bpxsvc_zos.go +657 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/bpxsvc_zos.s +192 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/cap_freebsd.go +195 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/constants.go +13 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_aix_ppc.go +26 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go +28 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_darwin.go +24 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_dragonfly.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_freebsd.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_linux.go +42 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_netbsd.go +29 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_openbsd.go +29 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_zos.go +28 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/dirent.go +102 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/endian_big.go +9 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/endian_little.go +9 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/env_unix.go +31 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/fcntl.go +36 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/fcntl_darwin.go +24 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go +13 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/fdset.go +29 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/gccgo.go +59 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/gccgo_c.c +44 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ifreq_linux.go +141 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ioctl_linux.go +334 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ioctl_signed.go +69 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ioctl_unsigned.go +69 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ioctl_zos.go +71 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/mkall.sh +249 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/mkerrors.sh +805 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/mmap_nomremap.go +13 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/mremap.go +57 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/pagesize_unix.go +15 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/pledge_openbsd.go +111 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ptrace_darwin.go +11 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ptrace_ios.go +11 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/race.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/race0.go +25 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/readdirent_getdents.go +12 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go +19 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/sockcmsg_linux.go +85 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/sockcmsg_unix.go +106 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go +46 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/sockcmsg_zos.go +58 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/symaddr_zos_s390x.s +75 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall.go +86 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_aix.go +582 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go +52 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go +83 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_bsd.go +609 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin.go +854 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go +50 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go +50 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go +26 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_dragonfly.go +359 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go +56 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_freebsd.go +455 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go +64 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go +64 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go +60 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go +60 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go +60 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_hurd.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_hurd_386.go +28 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_illumos.go +78 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux.go +2647 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_386.go +314 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go +12 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go +145 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go +12 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_arm.go +216 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go +186 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_gc.go +14 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go +13 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go +218 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go +188 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go +174 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go +204 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go +115 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go +191 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go +296 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go +112 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_netbsd.go +371 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go +37 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go +37 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go +37 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go +37 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd.go +342 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go +41 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go +41 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go +41 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go +41 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go +26 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_mips64.go +39 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go +41 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go +41 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_solaris.go +1191 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go +27 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_unix.go +615 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_unix_gc.go +14 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go +22 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go +3213 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/sysvshm_linux.go +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/sysvshm_unix.go +51 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go +13 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/timestruct.go +76 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/unveil_openbsd.go +51 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/vgetrandom_linux.go +13 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go +11 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/xattr_bsd.go +280 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go +1384 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go +1385 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go +1922 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go +1922 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go +1737 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go +2042 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go +2039 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go +2033 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go +2033 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_freebsd_riscv64.go +2147 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux.go +3752 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +873 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +873 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +878 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +875 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +865 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +879 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +879 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +879 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +879 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +931 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +935 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +935 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +862 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +934 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +977 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go +1779 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go +1769 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go +1758 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go +1769 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go +1905 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go +1905 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go +1905 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go +1905 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go +1905 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go +1904 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go +1903 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go +1556 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go +990 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go +40 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go +17 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go +49 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go +49 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go +79 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsymaddr_zos_s390x.s +364 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go +1461 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go +1420 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go +1188 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go +1069 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +2728 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s +799 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +2728 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s +799 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go +1666 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go +1886 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go +1886 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go +1886 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go +1886 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go +1886 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go +101 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux.go +2240 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go +486 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go +653 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go +601 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go +552 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go +486 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go +653 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go +647 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go +636 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go +653 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go +658 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go +704 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go +704 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go +548 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go +495 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +648 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go +1848 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go +1848 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go +1848 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go +1848 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go +2323 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s +699 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go +2323 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s +699 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go +2323 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s +699 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go +2323 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s +699 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go +2323 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s +699 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go +2323 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s +838 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go +2323 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s +699 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +2217 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go +3458 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go +280 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go +280 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go +280 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go +280 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go +280 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_ppc64.go +280 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_riscv64.go +281 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go +439 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go +437 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go +316 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go +393 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go +393 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go +393 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go +393 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_freebsd_riscv64.go +393 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +465 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +388 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +429 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +332 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +328 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +449 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +379 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +379 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +449 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +456 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +428 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +428 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +333 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +394 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +407 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go +274 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go +274 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go +274 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm64.go +274 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go +219 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go +219 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go +219 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go +218 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go +221 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go +217 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go +218 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go +2852 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go +353 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go +357 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go +878 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go +878 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go +473 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go +651 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go +656 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go +642 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go +636 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go +638 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux.go +6178 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +689 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +703 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +683 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +682 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +683 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +688 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +685 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +685 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +688 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +696 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +691 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +691 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +770 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +705 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +686 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go +585 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go +593 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go +590 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go +593 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go +568 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go +568 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go +575 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go +568 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go +568 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_ppc64.go +570 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_riscv64.go +570 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go +516 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go +552 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/aliases.go +12 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/dll_windows.go +415 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/env_windows.go +57 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/eventlog.go +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/exec_windows.go +248 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/memory_windows.go +48 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/mkerrors.bash +70 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/mkknownfolderids.bash +27 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/mksyscall.go +9 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/race.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/race0.go +25 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/security_windows.go +1497 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/service.go +257 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/setupapi_windows.go +1425 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/str.go +22 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/syscall.go +104 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/syscall_windows.go +1934 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +3842 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows_386.go +35 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows_amd64.go +34 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows_arm.go +35 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows_arm64.go +34 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/zerrors_windows.go +9468 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/zknownfolderids_windows.go +149 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +4695 -0
- slidge_whatsapp/vendor/golang.org/x/text/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/text/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule.go +336 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go +11 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go +14 -0
- slidge_whatsapp/vendor/golang.org/x/text/transform/transform.go +709 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/bidi.go +359 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/bracket.go +335 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/core.go +1071 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/prop.go +206 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables10.0.0.go +1815 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go +1887 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go +1923 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go +1955 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables15.0.0.go +2042 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables9.0.0.go +1781 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/trieval.go +48 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/composition.go +512 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/forminfo.go +279 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/input.go +109 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/iter.go +458 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/normalize.go +610 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/readwriter.go +125 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables10.0.0.go +7657 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go +7693 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go +7710 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go +7760 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables15.0.0.go +7907 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables9.0.0.go +7637 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/transform.go +88 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/trie.go +54 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/LICENSE +27 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/PATENTS +22 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/prototext/decode.go +767 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/prototext/doc.go +7 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/prototext/encode.go +380 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/protowire/wire.go +547 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/descfmt/stringer.go +414 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/descopts/options.go +29 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/detrand/rand.go +69 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/editiondefaults/defaults.go +12 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb +0 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/defval/default.go +213 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/messageset/messageset.go +242 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/tag/tag.go +201 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go +686 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/text/decode_number.go +211 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/text/decode_string.go +161 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/text/decode_token.go +373 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/text/doc.go +29 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/text/encode.go +272 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/errors/errors.go +104 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/build.go +157 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/desc.go +748 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go +560 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go +694 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/desc_list.go +457 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/desc_list_gen.go +367 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +167 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/placeholder.go +110 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filetype/build.go +296 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/flags/flags.go +24 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go +10 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go +10 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/any_gen.go +34 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/api_gen.go +106 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +1286 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/doc.go +11 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/duration_gen.go +34 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/empty_gen.go +19 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/field_mask_gen.go +31 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/go_features_gen.go +70 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/goname.go +20 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/map_entry.go +16 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/name.go +12 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/source_context_gen.go +31 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/struct_gen.go +121 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/timestamp_gen.go +34 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/type_gen.go +228 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/wrappers.go +13 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/wrappers_gen.go +175 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/api_export.go +177 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/api_export_opaque.go +128 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/bitmap.go +34 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/bitmap_race.go +126 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/checkinit.go +174 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_extension.go +228 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_field.go +788 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_field_opaque.go +264 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_gen.go +5724 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_map.go +399 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_message.go +230 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_message_opaque.go +153 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go +145 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_tables.go +557 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go +15 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/convert.go +495 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/convert_list.go +141 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/convert_map.go +121 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/decode.go +333 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/encode.go +315 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/enum.go +21 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/equal.go +224 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/extension.go +156 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/lazy.go +433 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go +219 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/legacy_export.go +92 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go +177 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/legacy_file.go +81 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/legacy_message.go +569 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/merge.go +203 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/merge_gen.go +209 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message.go +283 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_opaque.go +627 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_opaque_gen.go +132 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_reflect.go +462 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_reflect_field.go +423 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_reflect_field_gen.go +273 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go +271 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go +220 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe_opaque.go +42 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/presence.go +142 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/validate.go +570 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/order/order.go +89 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/order/range.go +115 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/pragma/pragma.go +29 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/protolazy/bufferreader.go +364 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/protolazy/lazy.go +359 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/protolazy/pointer_unsafe.go +17 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/set/ints.go +58 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/strings.go +196 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go +71 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +79 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/checkinit.go +71 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/decode.go +307 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/decode_gen.go +603 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/doc.go +86 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/encode.go +355 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/encode_gen.go +97 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/equal.go +66 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/extension.go +166 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/merge.go +145 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/messageset.go +98 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/proto.go +45 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/proto_methods.go +20 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/proto_reflect.go +20 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/reset.go +43 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/size.go +111 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/size_gen.go +55 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/wrapperopaque.go +80 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/wrappers.go +29 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go +88 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/proto.go +513 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source.go +129 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +575 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/type.go +666 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value.go +285 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value_equal.go +168 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go +438 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go +84 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go +882 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go +15 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go +202 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/runtime/protoimpl/impl.go +48 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/runtime/protoimpl/version.go +60 -0
- slidge_whatsapp/vendor/modules.txt +198 -0
- slidge_whatsapp-0.2.6.dist-info/METADATA +63 -0
- slidge_whatsapp-0.2.6.dist-info/RECORD +1253 -0
- {slidge_whatsapp-0.2.2.dist-info → slidge_whatsapp-0.2.6.dist-info}/WHEEL +1 -1
- slidge_whatsapp-0.2.2.dist-info/METADATA +0 -744
- slidge_whatsapp-0.2.2.dist-info/RECORD +0 -31
- {slidge_whatsapp-0.2.2.dist-info → slidge_whatsapp-0.2.6.dist-info}/LICENSE +0 -0
- {slidge_whatsapp-0.2.2.dist-info → slidge_whatsapp-0.2.6.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,880 @@
|
|
|
1
|
+
// Copyright (c) 2021 Tulir Asokan
|
|
2
|
+
//
|
|
3
|
+
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
|
+
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
5
|
+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
6
|
+
|
|
7
|
+
package whatsmeow
|
|
8
|
+
|
|
9
|
+
import (
|
|
10
|
+
"context"
|
|
11
|
+
"errors"
|
|
12
|
+
"fmt"
|
|
13
|
+
"slices"
|
|
14
|
+
"strings"
|
|
15
|
+
|
|
16
|
+
"google.golang.org/protobuf/proto"
|
|
17
|
+
|
|
18
|
+
waBinary "go.mau.fi/whatsmeow/binary"
|
|
19
|
+
"go.mau.fi/whatsmeow/proto/waHistorySync"
|
|
20
|
+
"go.mau.fi/whatsmeow/proto/waVnameCert"
|
|
21
|
+
"go.mau.fi/whatsmeow/types"
|
|
22
|
+
"go.mau.fi/whatsmeow/types/events"
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
const (
|
|
26
|
+
BusinessMessageLinkPrefix = "https://wa.me/message/"
|
|
27
|
+
ContactQRLinkPrefix = "https://wa.me/qr/"
|
|
28
|
+
BusinessMessageLinkDirectPrefix = "https://api.whatsapp.com/message/"
|
|
29
|
+
ContactQRLinkDirectPrefix = "https://api.whatsapp.com/qr/"
|
|
30
|
+
NewsletterLinkPrefix = "https://whatsapp.com/channel/"
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
// ResolveBusinessMessageLink resolves a business message short link and returns the target JID, business name and
|
|
34
|
+
// text to prefill in the input field (if any).
|
|
35
|
+
//
|
|
36
|
+
// The links look like https://wa.me/message/<code> or https://api.whatsapp.com/message/<code>. You can either provide
|
|
37
|
+
// the full link, or just the <code> part.
|
|
38
|
+
func (cli *Client) ResolveBusinessMessageLink(code string) (*types.BusinessMessageLinkTarget, error) {
|
|
39
|
+
code = strings.TrimPrefix(code, BusinessMessageLinkPrefix)
|
|
40
|
+
code = strings.TrimPrefix(code, BusinessMessageLinkDirectPrefix)
|
|
41
|
+
|
|
42
|
+
resp, err := cli.sendIQ(infoQuery{
|
|
43
|
+
Namespace: "w:qr",
|
|
44
|
+
Type: iqGet,
|
|
45
|
+
// WhatsApp android doesn't seem to have a "to" field for this one at all, not sure why but it works
|
|
46
|
+
Content: []waBinary.Node{{
|
|
47
|
+
Tag: "qr",
|
|
48
|
+
Attrs: waBinary.Attrs{
|
|
49
|
+
"code": code,
|
|
50
|
+
},
|
|
51
|
+
}},
|
|
52
|
+
})
|
|
53
|
+
if errors.Is(err, ErrIQNotFound) {
|
|
54
|
+
return nil, wrapIQError(ErrBusinessMessageLinkNotFound, err)
|
|
55
|
+
} else if err != nil {
|
|
56
|
+
return nil, err
|
|
57
|
+
}
|
|
58
|
+
qrChild, ok := resp.GetOptionalChildByTag("qr")
|
|
59
|
+
if !ok {
|
|
60
|
+
return nil, &ElementMissingError{Tag: "qr", In: "response to business message link query"}
|
|
61
|
+
}
|
|
62
|
+
var target types.BusinessMessageLinkTarget
|
|
63
|
+
ag := qrChild.AttrGetter()
|
|
64
|
+
target.JID = ag.JID("jid")
|
|
65
|
+
target.PushName = ag.String("notify")
|
|
66
|
+
messageChild, ok := qrChild.GetOptionalChildByTag("message")
|
|
67
|
+
if ok {
|
|
68
|
+
messageBytes, _ := messageChild.Content.([]byte)
|
|
69
|
+
target.Message = string(messageBytes)
|
|
70
|
+
}
|
|
71
|
+
businessChild, ok := qrChild.GetOptionalChildByTag("business")
|
|
72
|
+
if ok {
|
|
73
|
+
bag := businessChild.AttrGetter()
|
|
74
|
+
target.IsSigned = bag.OptionalBool("is_signed")
|
|
75
|
+
target.VerifiedName = bag.OptionalString("verified_name")
|
|
76
|
+
target.VerifiedLevel = bag.OptionalString("verified_level")
|
|
77
|
+
}
|
|
78
|
+
return &target, ag.Error()
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ResolveContactQRLink resolves a link from a contact share QR code and returns the target JID and push name.
|
|
82
|
+
//
|
|
83
|
+
// The links look like https://wa.me/qr/<code> or https://api.whatsapp.com/qr/<code>. You can either provide
|
|
84
|
+
// the full link, or just the <code> part.
|
|
85
|
+
func (cli *Client) ResolveContactQRLink(code string) (*types.ContactQRLinkTarget, error) {
|
|
86
|
+
code = strings.TrimPrefix(code, ContactQRLinkPrefix)
|
|
87
|
+
code = strings.TrimPrefix(code, ContactQRLinkDirectPrefix)
|
|
88
|
+
|
|
89
|
+
resp, err := cli.sendIQ(infoQuery{
|
|
90
|
+
Namespace: "w:qr",
|
|
91
|
+
Type: iqGet,
|
|
92
|
+
Content: []waBinary.Node{{
|
|
93
|
+
Tag: "qr",
|
|
94
|
+
Attrs: waBinary.Attrs{
|
|
95
|
+
"code": code,
|
|
96
|
+
},
|
|
97
|
+
}},
|
|
98
|
+
})
|
|
99
|
+
if errors.Is(err, ErrIQNotFound) {
|
|
100
|
+
return nil, wrapIQError(ErrContactQRLinkNotFound, err)
|
|
101
|
+
} else if err != nil {
|
|
102
|
+
return nil, err
|
|
103
|
+
}
|
|
104
|
+
qrChild, ok := resp.GetOptionalChildByTag("qr")
|
|
105
|
+
if !ok {
|
|
106
|
+
return nil, &ElementMissingError{Tag: "qr", In: "response to contact link query"}
|
|
107
|
+
}
|
|
108
|
+
var target types.ContactQRLinkTarget
|
|
109
|
+
ag := qrChild.AttrGetter()
|
|
110
|
+
target.JID = ag.JID("jid")
|
|
111
|
+
target.PushName = ag.OptionalString("notify")
|
|
112
|
+
target.Type = ag.String("type")
|
|
113
|
+
return &target, ag.Error()
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// GetContactQRLink gets your own contact share QR link that can be resolved using ResolveContactQRLink
|
|
117
|
+
// (or scanned with the official apps when encoded as a QR code).
|
|
118
|
+
//
|
|
119
|
+
// If the revoke parameter is set to true, it will ask the server to revoke the previous link and generate a new one.
|
|
120
|
+
func (cli *Client) GetContactQRLink(revoke bool) (string, error) {
|
|
121
|
+
action := "get"
|
|
122
|
+
if revoke {
|
|
123
|
+
action = "revoke"
|
|
124
|
+
}
|
|
125
|
+
resp, err := cli.sendIQ(infoQuery{
|
|
126
|
+
Namespace: "w:qr",
|
|
127
|
+
Type: iqSet,
|
|
128
|
+
Content: []waBinary.Node{{
|
|
129
|
+
Tag: "qr",
|
|
130
|
+
Attrs: waBinary.Attrs{
|
|
131
|
+
"type": "contact",
|
|
132
|
+
"action": action,
|
|
133
|
+
},
|
|
134
|
+
}},
|
|
135
|
+
})
|
|
136
|
+
if err != nil {
|
|
137
|
+
return "", err
|
|
138
|
+
}
|
|
139
|
+
qrChild, ok := resp.GetOptionalChildByTag("qr")
|
|
140
|
+
if !ok {
|
|
141
|
+
return "", &ElementMissingError{Tag: "qr", In: "response to own contact link fetch"}
|
|
142
|
+
}
|
|
143
|
+
ag := qrChild.AttrGetter()
|
|
144
|
+
return ag.String("code"), ag.Error()
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// SetStatusMessage updates the current user's status text, which is shown in the "About" section in the user profile.
|
|
148
|
+
//
|
|
149
|
+
// This is different from the ephemeral status broadcast messages. Use SendMessage to types.StatusBroadcastJID to send
|
|
150
|
+
// such messages.
|
|
151
|
+
func (cli *Client) SetStatusMessage(msg string) error {
|
|
152
|
+
_, err := cli.sendIQ(infoQuery{
|
|
153
|
+
Namespace: "status",
|
|
154
|
+
Type: iqSet,
|
|
155
|
+
To: types.ServerJID,
|
|
156
|
+
Content: []waBinary.Node{{
|
|
157
|
+
Tag: "status",
|
|
158
|
+
Content: msg,
|
|
159
|
+
}},
|
|
160
|
+
})
|
|
161
|
+
return err
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// IsOnWhatsApp checks if the given phone numbers are registered on WhatsApp.
|
|
165
|
+
// The phone numbers should be in international format, including the `+` prefix.
|
|
166
|
+
func (cli *Client) IsOnWhatsApp(phones []string) ([]types.IsOnWhatsAppResponse, error) {
|
|
167
|
+
jids := make([]types.JID, len(phones))
|
|
168
|
+
for i := range jids {
|
|
169
|
+
jids[i] = types.NewJID(phones[i], types.LegacyUserServer)
|
|
170
|
+
}
|
|
171
|
+
list, err := cli.usync(context.TODO(), jids, "query", "interactive", []waBinary.Node{
|
|
172
|
+
{Tag: "business", Content: []waBinary.Node{{Tag: "verified_name"}}},
|
|
173
|
+
{Tag: "contact"},
|
|
174
|
+
})
|
|
175
|
+
if err != nil {
|
|
176
|
+
return nil, err
|
|
177
|
+
}
|
|
178
|
+
output := make([]types.IsOnWhatsAppResponse, 0, len(jids))
|
|
179
|
+
querySuffix := "@" + types.LegacyUserServer
|
|
180
|
+
for _, child := range list.GetChildren() {
|
|
181
|
+
jid, jidOK := child.Attrs["jid"].(types.JID)
|
|
182
|
+
if child.Tag != "user" || !jidOK {
|
|
183
|
+
continue
|
|
184
|
+
}
|
|
185
|
+
var info types.IsOnWhatsAppResponse
|
|
186
|
+
info.JID = jid
|
|
187
|
+
info.VerifiedName, err = parseVerifiedName(child.GetChildByTag("business"))
|
|
188
|
+
if err != nil {
|
|
189
|
+
cli.Log.Warnf("Failed to parse %s's verified name details: %v", jid, err)
|
|
190
|
+
}
|
|
191
|
+
contactNode := child.GetChildByTag("contact")
|
|
192
|
+
info.IsIn = contactNode.AttrGetter().String("type") == "in"
|
|
193
|
+
contactQuery, _ := contactNode.Content.([]byte)
|
|
194
|
+
info.Query = strings.TrimSuffix(string(contactQuery), querySuffix)
|
|
195
|
+
output = append(output, info)
|
|
196
|
+
}
|
|
197
|
+
return output, nil
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// GetUserInfo gets basic user info (avatar, status, verified business name, device list).
|
|
201
|
+
func (cli *Client) GetUserInfo(jids []types.JID) (map[types.JID]types.UserInfo, error) {
|
|
202
|
+
list, err := cli.usync(context.TODO(), jids, "full", "background", []waBinary.Node{
|
|
203
|
+
{Tag: "business", Content: []waBinary.Node{{Tag: "verified_name"}}},
|
|
204
|
+
{Tag: "status"},
|
|
205
|
+
{Tag: "picture"},
|
|
206
|
+
{Tag: "devices", Attrs: waBinary.Attrs{"version": "2"}},
|
|
207
|
+
})
|
|
208
|
+
if err != nil {
|
|
209
|
+
return nil, err
|
|
210
|
+
}
|
|
211
|
+
respData := make(map[types.JID]types.UserInfo, len(jids))
|
|
212
|
+
for _, child := range list.GetChildren() {
|
|
213
|
+
jid, jidOK := child.Attrs["jid"].(types.JID)
|
|
214
|
+
if child.Tag != "user" || !jidOK {
|
|
215
|
+
continue
|
|
216
|
+
}
|
|
217
|
+
var info types.UserInfo
|
|
218
|
+
verifiedName, err := parseVerifiedName(child.GetChildByTag("business"))
|
|
219
|
+
if err != nil {
|
|
220
|
+
cli.Log.Warnf("Failed to parse %s's verified name details: %v", jid, err)
|
|
221
|
+
}
|
|
222
|
+
status, _ := child.GetChildByTag("status").Content.([]byte)
|
|
223
|
+
info.Status = string(status)
|
|
224
|
+
info.PictureID, _ = child.GetChildByTag("picture").Attrs["id"].(string)
|
|
225
|
+
info.Devices = parseDeviceList(jid, child.GetChildByTag("devices"))
|
|
226
|
+
if verifiedName != nil {
|
|
227
|
+
cli.updateBusinessName(context.TODO(), jid, nil, verifiedName.Details.GetVerifiedName())
|
|
228
|
+
}
|
|
229
|
+
respData[jid] = info
|
|
230
|
+
}
|
|
231
|
+
return respData, nil
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
func (cli *Client) GetBotListV2() ([]types.BotListInfo, error) {
|
|
235
|
+
resp, err := cli.sendIQ(infoQuery{
|
|
236
|
+
To: types.ServerJID,
|
|
237
|
+
Namespace: "bot",
|
|
238
|
+
Type: iqGet,
|
|
239
|
+
Content: []waBinary.Node{
|
|
240
|
+
{Tag: "bot", Attrs: waBinary.Attrs{"v": "2"}},
|
|
241
|
+
},
|
|
242
|
+
})
|
|
243
|
+
if err != nil {
|
|
244
|
+
return nil, err
|
|
245
|
+
}
|
|
246
|
+
botNode, ok := resp.GetOptionalChildByTag("bot")
|
|
247
|
+
if !ok {
|
|
248
|
+
return nil, &ElementMissingError{Tag: "bot", In: "response to bot list query"}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
var list []types.BotListInfo
|
|
252
|
+
|
|
253
|
+
for _, section := range botNode.GetChildrenByTag("section") {
|
|
254
|
+
if section.AttrGetter().String("type") == "all" {
|
|
255
|
+
for _, bot := range section.GetChildrenByTag("bot") {
|
|
256
|
+
ag := bot.AttrGetter()
|
|
257
|
+
list = append(list, types.BotListInfo{
|
|
258
|
+
PersonaID: ag.String("persona_id"),
|
|
259
|
+
BotJID: ag.JID("jid"),
|
|
260
|
+
})
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
return list, nil
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
func (cli *Client) GetBotProfiles(botInfo []types.BotListInfo) ([]types.BotProfileInfo, error) {
|
|
269
|
+
jids := make([]types.JID, len(botInfo))
|
|
270
|
+
for i, bot := range botInfo {
|
|
271
|
+
jids[i] = bot.BotJID
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
list, err := cli.usync(context.TODO(), jids, "query", "interactive", []waBinary.Node{
|
|
275
|
+
{Tag: "bot", Content: []waBinary.Node{{Tag: "profile", Attrs: waBinary.Attrs{"v": "1"}}}},
|
|
276
|
+
}, UsyncQueryExtras{
|
|
277
|
+
BotListInfo: botInfo,
|
|
278
|
+
})
|
|
279
|
+
|
|
280
|
+
if err != nil {
|
|
281
|
+
return nil, err
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
var profiles []types.BotProfileInfo
|
|
285
|
+
for _, user := range list.GetChildren() {
|
|
286
|
+
jid := user.AttrGetter().JID("jid")
|
|
287
|
+
bot := user.GetChildByTag("bot")
|
|
288
|
+
profile := bot.GetChildByTag("profile")
|
|
289
|
+
name := string(profile.GetChildByTag("name").Content.([]byte))
|
|
290
|
+
attributes := string(profile.GetChildByTag("attributes").Content.([]byte))
|
|
291
|
+
description := string(profile.GetChildByTag("description").Content.([]byte))
|
|
292
|
+
category := string(profile.GetChildByTag("category").Content.([]byte))
|
|
293
|
+
_, isDefault := profile.GetOptionalChildByTag("default")
|
|
294
|
+
personaID := profile.AttrGetter().String("persona_id")
|
|
295
|
+
commandsNode := profile.GetChildByTag("commands")
|
|
296
|
+
commandDescription := string(commandsNode.GetChildByTag("description").Content.([]byte))
|
|
297
|
+
var commands []types.BotProfileCommand
|
|
298
|
+
for _, commandNode := range commandsNode.GetChildrenByTag("command") {
|
|
299
|
+
commands = append(commands, types.BotProfileCommand{
|
|
300
|
+
Name: string(commandNode.GetChildByTag("name").Content.([]byte)),
|
|
301
|
+
Description: string(commandNode.GetChildByTag("description").Content.([]byte)),
|
|
302
|
+
})
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
promptsNode := profile.GetChildByTag("prompts")
|
|
306
|
+
var prompts []string
|
|
307
|
+
for _, promptNode := range promptsNode.GetChildrenByTag("prompt") {
|
|
308
|
+
prompts = append(
|
|
309
|
+
prompts,
|
|
310
|
+
fmt.Sprintf(
|
|
311
|
+
"%s %s",
|
|
312
|
+
string(promptNode.GetChildByTag("emoji").Content.([]byte)),
|
|
313
|
+
string(promptNode.GetChildByTag("text").Content.([]byte)),
|
|
314
|
+
),
|
|
315
|
+
)
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
profiles = append(profiles, types.BotProfileInfo{
|
|
319
|
+
JID: jid,
|
|
320
|
+
Name: name,
|
|
321
|
+
Attributes: attributes,
|
|
322
|
+
Description: description,
|
|
323
|
+
Category: category,
|
|
324
|
+
IsDefault: isDefault,
|
|
325
|
+
Prompts: prompts,
|
|
326
|
+
PersonaID: personaID,
|
|
327
|
+
Commands: commands,
|
|
328
|
+
CommandsDescription: commandDescription,
|
|
329
|
+
})
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
return profiles, nil
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
func (cli *Client) parseBusinessProfile(node *waBinary.Node) (*types.BusinessProfile, error) {
|
|
336
|
+
profileNode := node.GetChildByTag("profile")
|
|
337
|
+
jid, ok := profileNode.AttrGetter().GetJID("jid", true)
|
|
338
|
+
if !ok {
|
|
339
|
+
return nil, errors.New("missing jid in business profile")
|
|
340
|
+
}
|
|
341
|
+
address := string(profileNode.GetChildByTag("address").Content.([]byte))
|
|
342
|
+
email := string(profileNode.GetChildByTag("email").Content.([]byte))
|
|
343
|
+
businessHour := profileNode.GetChildByTag("business_hours")
|
|
344
|
+
businessHourTimezone := businessHour.AttrGetter().String("timezone")
|
|
345
|
+
businessHoursConfigs := businessHour.GetChildren()
|
|
346
|
+
businessHours := make([]types.BusinessHoursConfig, 0)
|
|
347
|
+
for _, config := range businessHoursConfigs {
|
|
348
|
+
if config.Tag != "business_hours_config" {
|
|
349
|
+
continue
|
|
350
|
+
}
|
|
351
|
+
dow := config.AttrGetter().String("dow")
|
|
352
|
+
mode := config.AttrGetter().String("mode")
|
|
353
|
+
openTime := config.AttrGetter().String("open_time")
|
|
354
|
+
closeTime := config.AttrGetter().String("close_time")
|
|
355
|
+
businessHours = append(businessHours, types.BusinessHoursConfig{
|
|
356
|
+
DayOfWeek: dow,
|
|
357
|
+
Mode: mode,
|
|
358
|
+
OpenTime: openTime,
|
|
359
|
+
CloseTime: closeTime,
|
|
360
|
+
})
|
|
361
|
+
}
|
|
362
|
+
categoriesNode := profileNode.GetChildByTag("categories")
|
|
363
|
+
categories := make([]types.Category, 0)
|
|
364
|
+
for _, category := range categoriesNode.GetChildren() {
|
|
365
|
+
if category.Tag != "category" {
|
|
366
|
+
continue
|
|
367
|
+
}
|
|
368
|
+
id := category.AttrGetter().String("id")
|
|
369
|
+
name := string(category.Content.([]byte))
|
|
370
|
+
categories = append(categories, types.Category{
|
|
371
|
+
ID: id,
|
|
372
|
+
Name: name,
|
|
373
|
+
})
|
|
374
|
+
}
|
|
375
|
+
profileOptionsNode := profileNode.GetChildByTag("profile_options")
|
|
376
|
+
profileOptions := make(map[string]string)
|
|
377
|
+
for _, option := range profileOptionsNode.GetChildren() {
|
|
378
|
+
profileOptions[option.Tag] = string(option.Content.([]byte))
|
|
379
|
+
}
|
|
380
|
+
return &types.BusinessProfile{
|
|
381
|
+
JID: jid,
|
|
382
|
+
Email: email,
|
|
383
|
+
Address: address,
|
|
384
|
+
Categories: categories,
|
|
385
|
+
ProfileOptions: profileOptions,
|
|
386
|
+
BusinessHoursTimeZone: businessHourTimezone,
|
|
387
|
+
BusinessHours: businessHours,
|
|
388
|
+
}, nil
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// GetBusinessProfile gets the profile info of a WhatsApp business account
|
|
392
|
+
func (cli *Client) GetBusinessProfile(jid types.JID) (*types.BusinessProfile, error) {
|
|
393
|
+
resp, err := cli.sendIQ(infoQuery{
|
|
394
|
+
Type: iqGet,
|
|
395
|
+
To: types.ServerJID,
|
|
396
|
+
Namespace: "w:biz",
|
|
397
|
+
Content: []waBinary.Node{{
|
|
398
|
+
Tag: "business_profile",
|
|
399
|
+
Attrs: waBinary.Attrs{
|
|
400
|
+
"v": "244",
|
|
401
|
+
},
|
|
402
|
+
Content: []waBinary.Node{{
|
|
403
|
+
Tag: "profile",
|
|
404
|
+
Attrs: waBinary.Attrs{
|
|
405
|
+
"jid": jid,
|
|
406
|
+
},
|
|
407
|
+
}},
|
|
408
|
+
}},
|
|
409
|
+
})
|
|
410
|
+
if err != nil {
|
|
411
|
+
return nil, err
|
|
412
|
+
}
|
|
413
|
+
node, ok := resp.GetOptionalChildByTag("business_profile")
|
|
414
|
+
if !ok {
|
|
415
|
+
return nil, &ElementMissingError{Tag: "business_profile", In: "response to business profile query"}
|
|
416
|
+
}
|
|
417
|
+
return cli.parseBusinessProfile(&node)
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
// GetUserDevices gets the list of devices that the given user has. The input should be a list of
|
|
421
|
+
// regular JIDs, and the output will be a list of AD JIDs. The local device will not be included in
|
|
422
|
+
// the output even if the user's JID is included in the input. All other devices will be included.
|
|
423
|
+
//
|
|
424
|
+
// Deprecated: use GetUserDevicesContext instead.
|
|
425
|
+
func (cli *Client) GetUserDevices(jids []types.JID) ([]types.JID, error) {
|
|
426
|
+
return cli.GetUserDevicesContext(context.Background(), jids)
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
func (cli *Client) GetUserDevicesContext(ctx context.Context, jids []types.JID) ([]types.JID, error) {
|
|
430
|
+
if cli == nil {
|
|
431
|
+
return nil, ErrClientIsNil
|
|
432
|
+
}
|
|
433
|
+
cli.userDevicesCacheLock.Lock()
|
|
434
|
+
defer cli.userDevicesCacheLock.Unlock()
|
|
435
|
+
|
|
436
|
+
var devices, jidsToSync, fbJIDsToSync []types.JID
|
|
437
|
+
for _, jid := range jids {
|
|
438
|
+
cached, ok := cli.userDevicesCache[jid]
|
|
439
|
+
if ok && len(cached.devices) > 0 {
|
|
440
|
+
devices = append(devices, cached.devices...)
|
|
441
|
+
} else if jid.Server == types.MessengerServer {
|
|
442
|
+
fbJIDsToSync = append(fbJIDsToSync, jid)
|
|
443
|
+
} else if jid.IsBot() {
|
|
444
|
+
// Bot JIDs do not have devices, the usync query is empty
|
|
445
|
+
devices = append(devices, jid)
|
|
446
|
+
} else {
|
|
447
|
+
jidsToSync = append(jidsToSync, jid)
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
if len(jidsToSync) > 0 {
|
|
451
|
+
list, err := cli.usync(ctx, jidsToSync, "query", "message", []waBinary.Node{
|
|
452
|
+
{Tag: "devices", Attrs: waBinary.Attrs{"version": "2"}},
|
|
453
|
+
})
|
|
454
|
+
if err != nil {
|
|
455
|
+
return nil, err
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
for _, user := range list.GetChildren() {
|
|
459
|
+
jid, jidOK := user.Attrs["jid"].(types.JID)
|
|
460
|
+
if user.Tag != "user" || !jidOK {
|
|
461
|
+
continue
|
|
462
|
+
}
|
|
463
|
+
userDevices := parseDeviceList(jid, user.GetChildByTag("devices"))
|
|
464
|
+
cli.userDevicesCache[jid] = deviceCache{devices: userDevices, dhash: participantListHashV2(userDevices)}
|
|
465
|
+
devices = append(devices, userDevices...)
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
if len(fbJIDsToSync) > 0 {
|
|
470
|
+
userDevices, err := cli.getFBIDDevices(ctx, fbJIDsToSync)
|
|
471
|
+
if err != nil {
|
|
472
|
+
return nil, err
|
|
473
|
+
}
|
|
474
|
+
devices = append(devices, userDevices...)
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
return devices, nil
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
type GetProfilePictureParams struct {
|
|
481
|
+
Preview bool
|
|
482
|
+
ExistingID string
|
|
483
|
+
IsCommunity bool
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
// GetProfilePictureInfo gets the URL where you can download a WhatsApp user's profile picture or group's photo.
|
|
487
|
+
//
|
|
488
|
+
// Optionally, you can pass the last known profile picture ID.
|
|
489
|
+
// If the profile picture hasn't changed, this will return nil with no error.
|
|
490
|
+
//
|
|
491
|
+
// To get a community photo, you should pass `IsCommunity: true`, as otherwise you may get a 401 error.
|
|
492
|
+
func (cli *Client) GetProfilePictureInfo(jid types.JID, params *GetProfilePictureParams) (*types.ProfilePictureInfo, error) {
|
|
493
|
+
attrs := waBinary.Attrs{
|
|
494
|
+
"query": "url",
|
|
495
|
+
}
|
|
496
|
+
var target, to types.JID
|
|
497
|
+
if params == nil {
|
|
498
|
+
params = &GetProfilePictureParams{}
|
|
499
|
+
}
|
|
500
|
+
if params.Preview {
|
|
501
|
+
attrs["type"] = "preview"
|
|
502
|
+
} else {
|
|
503
|
+
attrs["type"] = "image"
|
|
504
|
+
}
|
|
505
|
+
if params.ExistingID != "" {
|
|
506
|
+
attrs["id"] = params.ExistingID
|
|
507
|
+
}
|
|
508
|
+
var expectWrapped bool
|
|
509
|
+
var content []waBinary.Node
|
|
510
|
+
namespace := "w:profile:picture"
|
|
511
|
+
if params.IsCommunity {
|
|
512
|
+
target = types.EmptyJID
|
|
513
|
+
namespace = "w:g2"
|
|
514
|
+
to = jid
|
|
515
|
+
attrs["parent_group_jid"] = jid
|
|
516
|
+
expectWrapped = true
|
|
517
|
+
content = []waBinary.Node{{
|
|
518
|
+
Tag: "pictures",
|
|
519
|
+
Content: []waBinary.Node{{
|
|
520
|
+
Tag: "picture",
|
|
521
|
+
Attrs: attrs,
|
|
522
|
+
}},
|
|
523
|
+
}}
|
|
524
|
+
} else {
|
|
525
|
+
to = types.ServerJID
|
|
526
|
+
target = jid
|
|
527
|
+
content = []waBinary.Node{{
|
|
528
|
+
Tag: "picture",
|
|
529
|
+
Attrs: attrs,
|
|
530
|
+
}}
|
|
531
|
+
}
|
|
532
|
+
resp, err := cli.sendIQ(infoQuery{
|
|
533
|
+
Namespace: namespace,
|
|
534
|
+
Type: "get",
|
|
535
|
+
To: to,
|
|
536
|
+
Target: target,
|
|
537
|
+
Content: content,
|
|
538
|
+
})
|
|
539
|
+
if errors.Is(err, ErrIQNotAuthorized) {
|
|
540
|
+
return nil, wrapIQError(ErrProfilePictureUnauthorized, err)
|
|
541
|
+
} else if errors.Is(err, ErrIQNotFound) {
|
|
542
|
+
return nil, wrapIQError(ErrProfilePictureNotSet, err)
|
|
543
|
+
} else if err != nil {
|
|
544
|
+
return nil, err
|
|
545
|
+
}
|
|
546
|
+
if expectWrapped {
|
|
547
|
+
pics, ok := resp.GetOptionalChildByTag("pictures")
|
|
548
|
+
if !ok {
|
|
549
|
+
return nil, &ElementMissingError{Tag: "pictures", In: "response to profile picture query"}
|
|
550
|
+
}
|
|
551
|
+
resp = &pics
|
|
552
|
+
}
|
|
553
|
+
picture, ok := resp.GetOptionalChildByTag("picture")
|
|
554
|
+
if !ok {
|
|
555
|
+
if params.ExistingID != "" {
|
|
556
|
+
return nil, nil
|
|
557
|
+
}
|
|
558
|
+
return nil, &ElementMissingError{Tag: "picture", In: "response to profile picture query"}
|
|
559
|
+
}
|
|
560
|
+
var info types.ProfilePictureInfo
|
|
561
|
+
ag := picture.AttrGetter()
|
|
562
|
+
if ag.OptionalInt("status") == 304 {
|
|
563
|
+
return nil, nil
|
|
564
|
+
}
|
|
565
|
+
info.ID = ag.String("id")
|
|
566
|
+
info.URL = ag.String("url")
|
|
567
|
+
info.Type = ag.String("type")
|
|
568
|
+
info.DirectPath = ag.String("direct_path")
|
|
569
|
+
if !ag.OK() {
|
|
570
|
+
return &info, ag.Error()
|
|
571
|
+
}
|
|
572
|
+
return &info, nil
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
func (cli *Client) handleHistoricalPushNames(ctx context.Context, names []*waHistorySync.Pushname) {
|
|
576
|
+
if cli.Store.Contacts == nil {
|
|
577
|
+
return
|
|
578
|
+
}
|
|
579
|
+
cli.Log.Infof("Updating contact store with %d push names from history sync", len(names))
|
|
580
|
+
for _, user := range names {
|
|
581
|
+
if user.GetPushname() == "-" {
|
|
582
|
+
continue
|
|
583
|
+
}
|
|
584
|
+
var changed bool
|
|
585
|
+
if jid, err := types.ParseJID(user.GetID()); err != nil {
|
|
586
|
+
cli.Log.Warnf("Failed to parse user ID '%s' in push name history sync: %v", user.GetID(), err)
|
|
587
|
+
} else if changed, _, err = cli.Store.Contacts.PutPushName(ctx, jid, user.GetPushname()); err != nil {
|
|
588
|
+
cli.Log.Warnf("Failed to store push name of %s from history sync: %v", jid, err)
|
|
589
|
+
} else if changed {
|
|
590
|
+
cli.Log.Debugf("Got push name %s for %s in history sync", user.GetPushname(), jid)
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
func (cli *Client) updatePushName(ctx context.Context, user types.JID, messageInfo *types.MessageInfo, name string) {
|
|
596
|
+
if cli.Store.Contacts == nil {
|
|
597
|
+
return
|
|
598
|
+
}
|
|
599
|
+
user = user.ToNonAD()
|
|
600
|
+
changed, previousName, err := cli.Store.Contacts.PutPushName(ctx, user, name)
|
|
601
|
+
if err != nil {
|
|
602
|
+
cli.Log.Errorf("Failed to save push name of %s in device store: %v", user, err)
|
|
603
|
+
} else if changed {
|
|
604
|
+
cli.Log.Debugf("Push name of %s changed from %s to %s, dispatching event", user, previousName, name)
|
|
605
|
+
cli.dispatchEvent(&events.PushName{
|
|
606
|
+
JID: user,
|
|
607
|
+
Message: messageInfo,
|
|
608
|
+
OldPushName: previousName,
|
|
609
|
+
NewPushName: name,
|
|
610
|
+
})
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
func (cli *Client) updateBusinessName(ctx context.Context, user types.JID, messageInfo *types.MessageInfo, name string) {
|
|
615
|
+
if cli.Store.Contacts == nil {
|
|
616
|
+
return
|
|
617
|
+
}
|
|
618
|
+
changed, previousName, err := cli.Store.Contacts.PutBusinessName(ctx, user, name)
|
|
619
|
+
if err != nil {
|
|
620
|
+
cli.Log.Errorf("Failed to save business name of %s in device store: %v", user, err)
|
|
621
|
+
} else if changed {
|
|
622
|
+
cli.Log.Debugf("Business name of %s changed from %s to %s, dispatching event", user, previousName, name)
|
|
623
|
+
cli.dispatchEvent(&events.BusinessName{
|
|
624
|
+
JID: user,
|
|
625
|
+
Message: messageInfo,
|
|
626
|
+
OldBusinessName: previousName,
|
|
627
|
+
NewBusinessName: name,
|
|
628
|
+
})
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
func parseVerifiedName(businessNode waBinary.Node) (*types.VerifiedName, error) {
|
|
633
|
+
if businessNode.Tag != "business" {
|
|
634
|
+
return nil, nil
|
|
635
|
+
}
|
|
636
|
+
verifiedNameNode, ok := businessNode.GetOptionalChildByTag("verified_name")
|
|
637
|
+
if !ok {
|
|
638
|
+
return nil, nil
|
|
639
|
+
}
|
|
640
|
+
return parseVerifiedNameContent(verifiedNameNode)
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
func parseVerifiedNameContent(verifiedNameNode waBinary.Node) (*types.VerifiedName, error) {
|
|
644
|
+
rawCert, ok := verifiedNameNode.Content.([]byte)
|
|
645
|
+
if !ok {
|
|
646
|
+
return nil, nil
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
var cert waVnameCert.VerifiedNameCertificate
|
|
650
|
+
err := proto.Unmarshal(rawCert, &cert)
|
|
651
|
+
if err != nil {
|
|
652
|
+
return nil, err
|
|
653
|
+
}
|
|
654
|
+
var certDetails waVnameCert.VerifiedNameCertificate_Details
|
|
655
|
+
err = proto.Unmarshal(cert.GetDetails(), &certDetails)
|
|
656
|
+
if err != nil {
|
|
657
|
+
return nil, err
|
|
658
|
+
}
|
|
659
|
+
return &types.VerifiedName{
|
|
660
|
+
Certificate: &cert,
|
|
661
|
+
Details: &certDetails,
|
|
662
|
+
}, nil
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
func parseDeviceList(user types.JID, deviceNode waBinary.Node) []types.JID {
|
|
666
|
+
deviceList := deviceNode.GetChildByTag("device-list")
|
|
667
|
+
if deviceNode.Tag != "devices" || deviceList.Tag != "device-list" {
|
|
668
|
+
return nil
|
|
669
|
+
}
|
|
670
|
+
children := deviceList.GetChildren()
|
|
671
|
+
devices := make([]types.JID, 0, len(children))
|
|
672
|
+
for _, device := range children {
|
|
673
|
+
deviceID, ok := device.AttrGetter().GetInt64("id", true)
|
|
674
|
+
if device.Tag != "device" || !ok {
|
|
675
|
+
continue
|
|
676
|
+
}
|
|
677
|
+
user.Device = uint16(deviceID)
|
|
678
|
+
devices = append(devices, user)
|
|
679
|
+
}
|
|
680
|
+
return devices
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
func parseFBDeviceList(user types.JID, deviceList waBinary.Node) deviceCache {
|
|
684
|
+
children := deviceList.GetChildren()
|
|
685
|
+
devices := make([]types.JID, 0, len(children))
|
|
686
|
+
for _, device := range children {
|
|
687
|
+
deviceID, ok := device.AttrGetter().GetInt64("id", true)
|
|
688
|
+
if device.Tag != "device" || !ok {
|
|
689
|
+
continue
|
|
690
|
+
}
|
|
691
|
+
user.Device = uint16(deviceID)
|
|
692
|
+
devices = append(devices, user)
|
|
693
|
+
// TODO take identities here too?
|
|
694
|
+
}
|
|
695
|
+
// TODO do something with the icdc blob?
|
|
696
|
+
return deviceCache{
|
|
697
|
+
devices: devices,
|
|
698
|
+
dhash: deviceList.AttrGetter().String("dhash"),
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
func (cli *Client) getFBIDDevicesInternal(ctx context.Context, jids []types.JID) (*waBinary.Node, error) {
|
|
703
|
+
users := make([]waBinary.Node, len(jids))
|
|
704
|
+
for i, jid := range jids {
|
|
705
|
+
users[i].Tag = "user"
|
|
706
|
+
users[i].Attrs = waBinary.Attrs{"jid": jid}
|
|
707
|
+
// TODO include dhash for users
|
|
708
|
+
}
|
|
709
|
+
resp, err := cli.sendIQ(infoQuery{
|
|
710
|
+
Context: ctx,
|
|
711
|
+
Namespace: "fbid:devices",
|
|
712
|
+
Type: iqGet,
|
|
713
|
+
To: types.ServerJID,
|
|
714
|
+
Content: []waBinary.Node{{
|
|
715
|
+
Tag: "users",
|
|
716
|
+
Content: users,
|
|
717
|
+
}},
|
|
718
|
+
})
|
|
719
|
+
if err != nil {
|
|
720
|
+
return nil, fmt.Errorf("failed to send usync query: %w", err)
|
|
721
|
+
} else if list, ok := resp.GetOptionalChildByTag("users"); !ok {
|
|
722
|
+
return nil, &ElementMissingError{Tag: "users", In: "response to fbid devices query"}
|
|
723
|
+
} else {
|
|
724
|
+
return &list, err
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
func (cli *Client) getFBIDDevices(ctx context.Context, jids []types.JID) ([]types.JID, error) {
|
|
729
|
+
var devices []types.JID
|
|
730
|
+
for chunk := range slices.Chunk(jids, 15) {
|
|
731
|
+
list, err := cli.getFBIDDevicesInternal(ctx, chunk)
|
|
732
|
+
if err != nil {
|
|
733
|
+
return nil, err
|
|
734
|
+
}
|
|
735
|
+
for _, user := range list.GetChildren() {
|
|
736
|
+
jid, jidOK := user.Attrs["jid"].(types.JID)
|
|
737
|
+
if user.Tag != "user" || !jidOK {
|
|
738
|
+
continue
|
|
739
|
+
}
|
|
740
|
+
userDevices := parseFBDeviceList(jid, user.GetChildByTag("devices"))
|
|
741
|
+
cli.userDevicesCache[jid] = userDevices
|
|
742
|
+
devices = append(devices, userDevices.devices...)
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
return devices, nil
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
type UsyncQueryExtras struct {
|
|
749
|
+
BotListInfo []types.BotListInfo
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
func (cli *Client) usync(ctx context.Context, jids []types.JID, mode, context string, query []waBinary.Node, extra ...UsyncQueryExtras) (*waBinary.Node, error) {
|
|
753
|
+
if cli == nil {
|
|
754
|
+
return nil, ErrClientIsNil
|
|
755
|
+
}
|
|
756
|
+
var extras UsyncQueryExtras
|
|
757
|
+
if len(extra) > 1 {
|
|
758
|
+
return nil, errors.New("only one extra parameter may be provided to usync()")
|
|
759
|
+
} else if len(extra) == 1 {
|
|
760
|
+
extras = extra[0]
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
userList := make([]waBinary.Node, len(jids))
|
|
764
|
+
for i, jid := range jids {
|
|
765
|
+
userList[i].Tag = "user"
|
|
766
|
+
jid = jid.ToNonAD()
|
|
767
|
+
|
|
768
|
+
switch jid.Server {
|
|
769
|
+
case types.LegacyUserServer:
|
|
770
|
+
userList[i].Content = []waBinary.Node{{
|
|
771
|
+
Tag: "contact",
|
|
772
|
+
Content: jid.String(),
|
|
773
|
+
}}
|
|
774
|
+
case types.DefaultUserServer, types.HiddenUserServer:
|
|
775
|
+
userList[i].Attrs = waBinary.Attrs{"jid": jid}
|
|
776
|
+
if jid.IsBot() {
|
|
777
|
+
var personaID string
|
|
778
|
+
for _, bot := range extras.BotListInfo {
|
|
779
|
+
if bot.BotJID.User == jid.User {
|
|
780
|
+
personaID = bot.PersonaID
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
userList[i].Content = []waBinary.Node{{
|
|
784
|
+
Tag: "bot",
|
|
785
|
+
Content: []waBinary.Node{{
|
|
786
|
+
Tag: "profile",
|
|
787
|
+
Attrs: waBinary.Attrs{"persona_id": personaID},
|
|
788
|
+
}},
|
|
789
|
+
}}
|
|
790
|
+
}
|
|
791
|
+
default:
|
|
792
|
+
return nil, fmt.Errorf("unknown user server '%s'", jid.Server)
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
resp, err := cli.sendIQ(infoQuery{
|
|
796
|
+
Context: ctx,
|
|
797
|
+
Namespace: "usync",
|
|
798
|
+
Type: "get",
|
|
799
|
+
To: types.ServerJID,
|
|
800
|
+
Content: []waBinary.Node{{
|
|
801
|
+
Tag: "usync",
|
|
802
|
+
Attrs: waBinary.Attrs{
|
|
803
|
+
"sid": cli.generateRequestID(),
|
|
804
|
+
"mode": mode,
|
|
805
|
+
"last": "true",
|
|
806
|
+
"index": "0",
|
|
807
|
+
"context": context,
|
|
808
|
+
},
|
|
809
|
+
Content: []waBinary.Node{
|
|
810
|
+
{Tag: "query", Content: query},
|
|
811
|
+
{Tag: "list", Content: userList},
|
|
812
|
+
},
|
|
813
|
+
}},
|
|
814
|
+
})
|
|
815
|
+
if err != nil {
|
|
816
|
+
return nil, fmt.Errorf("failed to send usync query: %w", err)
|
|
817
|
+
} else if list, ok := resp.GetOptionalChildByTag("usync", "list"); !ok {
|
|
818
|
+
return nil, &ElementMissingError{Tag: "list", In: "response to usync query"}
|
|
819
|
+
} else {
|
|
820
|
+
return &list, err
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
func (cli *Client) parseBlocklist(node *waBinary.Node) *types.Blocklist {
|
|
825
|
+
output := &types.Blocklist{
|
|
826
|
+
DHash: node.AttrGetter().String("dhash"),
|
|
827
|
+
}
|
|
828
|
+
for _, child := range node.GetChildren() {
|
|
829
|
+
ag := child.AttrGetter()
|
|
830
|
+
blockedJID := ag.JID("jid")
|
|
831
|
+
if !ag.OK() {
|
|
832
|
+
cli.Log.Debugf("Ignoring contact blocked data with unexpected attributes: %v", ag.Error())
|
|
833
|
+
continue
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
output.JIDs = append(output.JIDs, blockedJID)
|
|
837
|
+
}
|
|
838
|
+
return output
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
// GetBlocklist gets the list of users that this user has blocked.
|
|
842
|
+
func (cli *Client) GetBlocklist() (*types.Blocklist, error) {
|
|
843
|
+
resp, err := cli.sendIQ(infoQuery{
|
|
844
|
+
Namespace: "blocklist",
|
|
845
|
+
Type: iqGet,
|
|
846
|
+
To: types.ServerJID,
|
|
847
|
+
})
|
|
848
|
+
if err != nil {
|
|
849
|
+
return nil, err
|
|
850
|
+
}
|
|
851
|
+
list, ok := resp.GetOptionalChildByTag("list")
|
|
852
|
+
if !ok {
|
|
853
|
+
return nil, &ElementMissingError{Tag: "list", In: "response to blocklist query"}
|
|
854
|
+
}
|
|
855
|
+
return cli.parseBlocklist(&list), nil
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
// UpdateBlocklist updates the user's block list and returns the updated list.
|
|
859
|
+
func (cli *Client) UpdateBlocklist(jid types.JID, action events.BlocklistChangeAction) (*types.Blocklist, error) {
|
|
860
|
+
resp, err := cli.sendIQ(infoQuery{
|
|
861
|
+
Namespace: "blocklist",
|
|
862
|
+
Type: iqSet,
|
|
863
|
+
To: types.ServerJID,
|
|
864
|
+
Content: []waBinary.Node{{
|
|
865
|
+
Tag: "item",
|
|
866
|
+
Attrs: waBinary.Attrs{
|
|
867
|
+
"jid": jid,
|
|
868
|
+
"action": string(action),
|
|
869
|
+
},
|
|
870
|
+
}},
|
|
871
|
+
})
|
|
872
|
+
if err != nil {
|
|
873
|
+
return nil, err
|
|
874
|
+
}
|
|
875
|
+
list, ok := resp.GetOptionalChildByTag("list")
|
|
876
|
+
if !ok {
|
|
877
|
+
return nil, &ElementMissingError{Tag: "list", In: "response to blocklist update"}
|
|
878
|
+
}
|
|
879
|
+
return cli.parseBlocklist(&list), err
|
|
880
|
+
}
|