slidge-whatsapp 0.2.5__cp311-cp311-manylinux_2_36_aarch64.whl → 0.3.0__cp311-cp311-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/config.py +3 -0
- slidge_whatsapp/contact.py +15 -3
- slidge_whatsapp/event.go +171 -70
- slidge_whatsapp/gateway.go +16 -68
- slidge_whatsapp/gateway.py +4 -5
- slidge_whatsapp/generated/_whatsapp.cpython-311-aarch64-linux-gnu.h +168 -151
- slidge_whatsapp/generated/_whatsapp.cpython-311-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +142 -128
- slidge_whatsapp/generated/whatsapp.c +1689 -1417
- slidge_whatsapp/generated/whatsapp.go +1011 -900
- slidge_whatsapp/generated/whatsapp.py +1175 -1050
- slidge_whatsapp/generated/whatsapp_go.h +168 -151
- slidge_whatsapp/go.mod +21 -15
- slidge_whatsapp/go.sum +49 -31
- slidge_whatsapp/group.py +34 -30
- slidge_whatsapp/media/media.go +22 -12
- slidge_whatsapp/session.go +106 -82
- slidge_whatsapp/session.py +46 -14
- slidge_whatsapp/vendor/github.com/beeper/argo-go/LICENSE +9 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockreader.go +329 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockwriter.go +417 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/decoder.go +652 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/encoder.go +985 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/header/header.go +135 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/internal/util/util.go +133 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/label/label.go +384 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/label/wiremarkers.go +37 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/bitset/bitset.go +197 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/buf/buf.go +420 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/varint/varint.go +246 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/wire/wire.go +614 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/wirecodec/decode.go +341 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn.go +4 -4
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_darwin.go +0 -5
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_libinit.go +3 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols.go +40 -20
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/list.go +95 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/orderedmap.go +187 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz.go +1 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo.go +3 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_nocgo.go +4 -5
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_darwin.go +11 -1
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_linux.go +10 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_windows.go +12 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/.gitignore +0 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/CHANGELOG.md +44 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/COPYRIGHT.txt +6 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/README.md +14 -17
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi2.go +7 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_amd64/libffi.8.dylib +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_arm64/libffi.8.dylib +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/windows_amd64/libffi-8.dll +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif.go +15 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif_arm64.go +16 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed.go +49 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_amd64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_arm64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_windows_amd64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/ffi.go +53 -15
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/fun.go +10 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/init.go +22 -9
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_unix.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_windows.go +1 -1
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +4 -7
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/callback.go +2 -1
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +11545 -6680
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +527 -273
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3.go +57 -23
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.c +4 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.go +4 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_userauth.go +13 -140
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3ext.h +4 -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.25.go +37 -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/CONTRIBUTING.md +43 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/README.md +31 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/console.go +20 -5
- slidge_whatsapp/vendor/github.com/rs/zerolog/log/log.go +131 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/log.go +1 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/sampler.go +4 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/writer.go +9 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/LICENSE +19 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/argmap.go +37 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/collections.go +148 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/comment.go +31 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/decode.go +216 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/definition.go +110 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/directive.go +43 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/document.go +89 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/dumper.go +159 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/fragment.go +41 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/operation.go +32 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/path.go +72 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/selection.go +41 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/source.go +19 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/type.go +68 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/value.go +122 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupCipher.go +17 -6
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupSessionBuilder.go +17 -7
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/store/SenderKeyStore.go +4 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/chain/ChainKey.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/identity/IdentityKey.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/logger/DefaultLogger.go +2 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/FingerprintProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/LocalStorageProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/WhisperTextProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/session/Session.go +41 -17
- slidge_whatsapp/vendor/go.mau.fi/libsignal/session/SessionCipher.go +64 -30
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/IdentityKeyStore.go +5 -3
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/MessageKeyStore.go +6 -4
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/PreKeyStore.go +6 -4
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SessionStore.go +8 -6
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SignedPreKeyStore.go +7 -5
- 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 +98 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/json.go +36 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/middleware.go +30 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/networkerror.go +38 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exstrings/stringutil.go +104 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +104 -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/ptr/ptr.go +43 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.pre-commit-config.yaml +3 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +27 -26
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/encode.go +4 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/hash.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/keys.go +5 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +32 -26
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo-wire-type-store.argo +63 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo.go +62 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/name-to-queryids.json +306 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +42 -8
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/encoder.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/broadcast.go +5 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +134 -55
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +34 -11
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download-to-file.go +63 -30
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +78 -34
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +157 -55
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +202 -154
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaconn.go +5 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaretry.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +448 -138
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +106 -31
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/newsletter.go +83 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +83 -43
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +9 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair.go +42 -18
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/prekeys.go +9 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +17 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/privacysettings.go +10 -11
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/extra.go +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.pb.go +983 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.proto +85 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.pb.go +197 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.proto +13 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.pb.go +279 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.proto +21 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.pb.go +137 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.proto +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.pb.go +313 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.proto +27 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.pb.go +1299 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.proto +112 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.pb.go +514 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.proto +47 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.pb.go +123 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.proto +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.pb.go +720 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.proto +59 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.pb.go +365 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.proto +33 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.pb.go +1238 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.proto +105 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.go +39 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.go +354 -175
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.proto +5 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.go +170 -15
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.proto +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.pb.go +5156 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.proto +516 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.go +29 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.go +13 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.go +344 -31
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.proto +26 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/{WAWebProtobufsCompanionReg.pb.go → WACompanionReg.pb.go} +211 -89
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/{WAWebProtobufsCompanionReg.proto → WACompanionReg.proto} +5 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.go +173 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.go +78 -16
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.proto +5 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +7463 -5180
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +366 -343
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +485 -135
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +17 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.pb.go +198 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.proto +14 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.go +162 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.go +32 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.go +192 -52
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.proto +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.go +60 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/extra.go +7 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.go +39 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.go +61 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.pb.go +952 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.proto +88 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +1802 -453
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +92 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.go +27 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.go +59 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +435 -109
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +11 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +563 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +32 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingfields.json +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingtoken.go +176 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +39 -21
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +267 -79
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +28 -16
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +3 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +87 -44
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/signal.go +75 -88
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/container.go +86 -65
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/lidmap.go +186 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +314 -170
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/00-latest-schema.sql +155 -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/10-chat-db-lid-migration-ts.sql +2 -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 +109 -56
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/botmap.go +210 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/call.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +21 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/group.go +15 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +9 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/message.go +18 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/user.go +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/update.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/upload.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +59 -37
- slidge_whatsapp/vendor/golang.org/x/crypto/curve25519/curve25519.go +1 -1
- 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/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 +164 -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 +181 -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 +410 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/pipe.go +184 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/server.go +3332 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/transport.go +3233 -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/sys/unix/affinity_linux.go +1 -3
- slidge_whatsapp/vendor/golang.org/x/sys/unix/mkerrors.sh +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin.go +93 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux.go +16 -26
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_solaris.go +1 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux.go +47 -16
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +84 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +84 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +4 -4
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux.go +168 -12
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +18 -2
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +18 -2
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/security_windows.go +44 -5
- slidge_whatsapp/vendor/golang.org/x/sys/windows/syscall_windows.go +4 -2
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +245 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +491 -482
- 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/encoding/protowire/wire.go +25 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb +0 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +13 -5
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/presence.go +33 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/api_gen.go +6 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +81 -19
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_message_opaque.go +2 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_opaque.go +8 -37
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/presence.go +0 -3
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/{strings_unsafe_go121.go → strings_unsafe.go} +0 -2
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +1 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/merge.go +6 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +10 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/{value_unsafe_go121.go → value_unsafe.go} +0 -2
- slidge_whatsapp/vendor/modules.txt +80 -21
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.3.0.dist-info}/METADATA +5 -4
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.3.0.dist-info}/RECORD +456 -263
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.3.0.dist-info}/WHEEL +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi_amd64.go +0 -7
- slidge_whatsapp/vendor/github.com/rs/zerolog/CNAME +0 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/_config.yml +0 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.raw +0 -23
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.raw +0 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrade.go +0 -296
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go +0 -94
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go +0 -98
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.3.0.dist-info}/entry_points.txt +0 -0
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.3.0.dist-info/licenses}/LICENSE +0 -0
|
@@ -8,8 +8,8 @@ package main
|
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
|
|
11
|
-
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.11.
|
|
12
|
-
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.11.
|
|
11
|
+
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.11.13-linux-aarch64-gnu/include/python3.11" -Wno-error -Wno-implicit-function-declaration -Wno-int-conversion
|
|
12
|
+
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.11.13-linux-aarch64-gnu/lib" "-lpython3.11" -lpthread -ldl -lutil -lm
|
|
13
13
|
|
|
14
14
|
// #define Py_LIMITED_API // need full API for PyRun*
|
|
15
15
|
#include <Python.h>
|
|
@@ -1381,6 +1381,18 @@ func handleFromPtr_Ptr_whatsapp_Location(p interface{}) CGoHandle {
|
|
|
1381
1381
|
return CGoHandle(gopyh.Register("*whatsapp.Location", p))
|
|
1382
1382
|
}
|
|
1383
1383
|
|
|
1384
|
+
// Converters for pointer handles for type: *whatsapp.LoggedOut
|
|
1385
|
+
func ptrFromHandle_Ptr_whatsapp_LoggedOut(h CGoHandle) *whatsapp.LoggedOut {
|
|
1386
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.LoggedOut")
|
|
1387
|
+
if p == nil {
|
|
1388
|
+
return nil
|
|
1389
|
+
}
|
|
1390
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.LoggedOut{})).(*whatsapp.LoggedOut)
|
|
1391
|
+
}
|
|
1392
|
+
func handleFromPtr_Ptr_whatsapp_LoggedOut(p interface{}) CGoHandle {
|
|
1393
|
+
return CGoHandle(gopyh.Register("*whatsapp.LoggedOut", p))
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1384
1396
|
// Converters for pointer handles for type: *whatsapp.Message
|
|
1385
1397
|
func ptrFromHandle_Ptr_whatsapp_Message(h CGoHandle) *whatsapp.Message {
|
|
1386
1398
|
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Message")
|
|
@@ -2025,6 +2037,18 @@ func handleFromPtr_whatsapp_Location(p interface{}) CGoHandle {
|
|
|
2025
2037
|
return CGoHandle(gopyh.Register("whatsapp.Location", p))
|
|
2026
2038
|
}
|
|
2027
2039
|
|
|
2040
|
+
// Converters for non-pointer handles for type: whatsapp.LoggedOut
|
|
2041
|
+
func ptrFromHandle_whatsapp_LoggedOut(h CGoHandle) *whatsapp.LoggedOut {
|
|
2042
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.LoggedOut")
|
|
2043
|
+
if p == nil {
|
|
2044
|
+
return nil
|
|
2045
|
+
}
|
|
2046
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.LoggedOut{})).(*whatsapp.LoggedOut)
|
|
2047
|
+
}
|
|
2048
|
+
func handleFromPtr_whatsapp_LoggedOut(p interface{}) CGoHandle {
|
|
2049
|
+
return CGoHandle(gopyh.Register("whatsapp.LoggedOut", p))
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2028
2052
|
// Converters for non-pointer handles for type: whatsapp.Message
|
|
2029
2053
|
func ptrFromHandle_whatsapp_Message(h CGoHandle) *whatsapp.Message {
|
|
2030
2054
|
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Message")
|
|
@@ -2115,342 +2139,394 @@ func handleFromPtr_whatsapp_Session(p interface{}) CGoHandle {
|
|
|
2115
2139
|
|
|
2116
2140
|
// ---- Structs ---
|
|
2117
2141
|
|
|
2118
|
-
// --- wrapping struct: whatsapp.
|
|
2142
|
+
// --- wrapping struct: whatsapp.ChatState ---
|
|
2119
2143
|
//
|
|
2120
|
-
//export
|
|
2121
|
-
func
|
|
2122
|
-
return CGoHandle(
|
|
2144
|
+
//export whatsapp_ChatState_CTor
|
|
2145
|
+
func whatsapp_ChatState_CTor() CGoHandle {
|
|
2146
|
+
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
2123
2147
|
}
|
|
2124
2148
|
|
|
2125
|
-
//export
|
|
2126
|
-
func
|
|
2127
|
-
op :=
|
|
2128
|
-
return C.
|
|
2149
|
+
//export whatsapp_ChatState_Kind_Get
|
|
2150
|
+
func whatsapp_ChatState_Kind_Get(handle CGoHandle) C.longlong {
|
|
2151
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2152
|
+
return C.longlong(int(op.Kind))
|
|
2129
2153
|
}
|
|
2130
2154
|
|
|
2131
|
-
//export
|
|
2132
|
-
func
|
|
2133
|
-
op :=
|
|
2134
|
-
op.
|
|
2155
|
+
//export whatsapp_ChatState_Kind_Set
|
|
2156
|
+
func whatsapp_ChatState_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2157
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2158
|
+
op.Kind = whatsapp.ChatStateKind(int(val))
|
|
2135
2159
|
}
|
|
2136
2160
|
|
|
2137
|
-
//export
|
|
2138
|
-
func
|
|
2139
|
-
op :=
|
|
2140
|
-
return C.CString(op.
|
|
2161
|
+
//export whatsapp_ChatState_JID_Get
|
|
2162
|
+
func whatsapp_ChatState_JID_Get(handle CGoHandle) *C.char {
|
|
2163
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2164
|
+
return C.CString(op.JID)
|
|
2141
2165
|
}
|
|
2142
2166
|
|
|
2143
|
-
//export
|
|
2144
|
-
func
|
|
2145
|
-
op :=
|
|
2146
|
-
op.
|
|
2167
|
+
//export whatsapp_ChatState_JID_Set
|
|
2168
|
+
func whatsapp_ChatState_JID_Set(handle CGoHandle, val *C.char) {
|
|
2169
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2170
|
+
op.JID = C.GoString(val)
|
|
2147
2171
|
}
|
|
2148
2172
|
|
|
2149
|
-
//export
|
|
2150
|
-
func
|
|
2151
|
-
op :=
|
|
2152
|
-
return C.CString(op.
|
|
2173
|
+
//export whatsapp_ChatState_GroupJID_Get
|
|
2174
|
+
func whatsapp_ChatState_GroupJID_Get(handle CGoHandle) *C.char {
|
|
2175
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2176
|
+
return C.CString(op.GroupJID)
|
|
2153
2177
|
}
|
|
2154
2178
|
|
|
2155
|
-
//export
|
|
2156
|
-
func
|
|
2157
|
-
op :=
|
|
2158
|
-
op.
|
|
2179
|
+
//export whatsapp_ChatState_GroupJID_Set
|
|
2180
|
+
func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
2181
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2182
|
+
op.GroupJID = C.GoString(val)
|
|
2159
2183
|
}
|
|
2160
2184
|
|
|
2161
|
-
//
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2185
|
+
// --- wrapping struct: whatsapp.Contact ---
|
|
2186
|
+
//
|
|
2187
|
+
//export whatsapp_Contact_CTor
|
|
2188
|
+
func whatsapp_Contact_CTor() CGoHandle {
|
|
2189
|
+
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
2165
2190
|
}
|
|
2166
2191
|
|
|
2167
|
-
//export
|
|
2168
|
-
func
|
|
2169
|
-
op :=
|
|
2170
|
-
|
|
2192
|
+
//export whatsapp_Contact_JID_Get
|
|
2193
|
+
func whatsapp_Contact_JID_Get(handle CGoHandle) *C.char {
|
|
2194
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2195
|
+
return C.CString(op.JID)
|
|
2171
2196
|
}
|
|
2172
2197
|
|
|
2173
|
-
//export
|
|
2174
|
-
func
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
if __err != nil {
|
|
2178
|
-
return errorGoToPy(nil)
|
|
2179
|
-
}
|
|
2180
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
2181
|
-
|
|
2182
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2183
|
-
if __err != nil {
|
|
2184
|
-
estr := C.CString(__err.Error())
|
|
2185
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2186
|
-
return estr
|
|
2187
|
-
}
|
|
2188
|
-
return C.CString("")
|
|
2198
|
+
//export whatsapp_Contact_JID_Set
|
|
2199
|
+
func whatsapp_Contact_JID_Set(handle CGoHandle, val *C.char) {
|
|
2200
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2201
|
+
op.JID = C.GoString(val)
|
|
2189
2202
|
}
|
|
2190
2203
|
|
|
2191
|
-
//export
|
|
2192
|
-
func
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2196
|
-
if __err != nil {
|
|
2197
|
-
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
2198
|
-
}
|
|
2199
|
-
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
2200
|
-
|
|
2204
|
+
//export whatsapp_Contact_Name_Get
|
|
2205
|
+
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
2206
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2207
|
+
return C.CString(op.Name)
|
|
2201
2208
|
}
|
|
2202
2209
|
|
|
2203
|
-
//export
|
|
2204
|
-
func
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
if __err != nil {
|
|
2208
|
-
return errorGoToPy(nil)
|
|
2209
|
-
}
|
|
2210
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
2211
|
-
|
|
2212
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2213
|
-
if __err != nil {
|
|
2214
|
-
estr := C.CString(__err.Error())
|
|
2215
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2216
|
-
return estr
|
|
2217
|
-
}
|
|
2218
|
-
return C.CString("")
|
|
2210
|
+
//export whatsapp_Contact_Name_Set
|
|
2211
|
+
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
2212
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2213
|
+
op.Name = C.GoString(val)
|
|
2219
2214
|
}
|
|
2220
2215
|
|
|
2221
|
-
// --- wrapping struct: whatsapp.
|
|
2216
|
+
// --- wrapping struct: whatsapp.EventPayload ---
|
|
2222
2217
|
//
|
|
2223
|
-
//export
|
|
2224
|
-
func
|
|
2225
|
-
return CGoHandle(
|
|
2218
|
+
//export whatsapp_EventPayload_CTor
|
|
2219
|
+
func whatsapp_EventPayload_CTor() CGoHandle {
|
|
2220
|
+
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
2226
2221
|
}
|
|
2227
2222
|
|
|
2228
|
-
//export
|
|
2229
|
-
func
|
|
2230
|
-
op :=
|
|
2231
|
-
return C.
|
|
2223
|
+
//export whatsapp_EventPayload_QRCode_Get
|
|
2224
|
+
func whatsapp_EventPayload_QRCode_Get(handle CGoHandle) *C.char {
|
|
2225
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2226
|
+
return C.CString(op.QRCode)
|
|
2232
2227
|
}
|
|
2233
2228
|
|
|
2234
|
-
//export
|
|
2235
|
-
func
|
|
2236
|
-
op :=
|
|
2237
|
-
op.
|
|
2229
|
+
//export whatsapp_EventPayload_QRCode_Set
|
|
2230
|
+
func whatsapp_EventPayload_QRCode_Set(handle CGoHandle, val *C.char) {
|
|
2231
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2232
|
+
op.QRCode = C.GoString(val)
|
|
2238
2233
|
}
|
|
2239
2234
|
|
|
2240
|
-
//export
|
|
2241
|
-
func
|
|
2242
|
-
op :=
|
|
2243
|
-
return C.CString(op.
|
|
2235
|
+
//export whatsapp_EventPayload_PairDeviceID_Get
|
|
2236
|
+
func whatsapp_EventPayload_PairDeviceID_Get(handle CGoHandle) *C.char {
|
|
2237
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2238
|
+
return C.CString(op.PairDeviceID)
|
|
2244
2239
|
}
|
|
2245
2240
|
|
|
2246
|
-
//export
|
|
2247
|
-
func
|
|
2248
|
-
op :=
|
|
2249
|
-
op.
|
|
2241
|
+
//export whatsapp_EventPayload_PairDeviceID_Set
|
|
2242
|
+
func whatsapp_EventPayload_PairDeviceID_Set(handle CGoHandle, val *C.char) {
|
|
2243
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2244
|
+
op.PairDeviceID = C.GoString(val)
|
|
2250
2245
|
}
|
|
2251
2246
|
|
|
2252
|
-
//export
|
|
2253
|
-
func
|
|
2254
|
-
op :=
|
|
2255
|
-
return
|
|
2247
|
+
//export whatsapp_EventPayload_Connect_Get
|
|
2248
|
+
func whatsapp_EventPayload_Connect_Get(handle CGoHandle) CGoHandle {
|
|
2249
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2250
|
+
return handleFromPtr_whatsapp_Connect(&op.Connect)
|
|
2256
2251
|
}
|
|
2257
2252
|
|
|
2258
|
-
//export
|
|
2259
|
-
func
|
|
2260
|
-
op :=
|
|
2261
|
-
op.
|
|
2253
|
+
//export whatsapp_EventPayload_Connect_Set
|
|
2254
|
+
func whatsapp_EventPayload_Connect_Set(handle CGoHandle, val CGoHandle) {
|
|
2255
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2256
|
+
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
2262
2257
|
}
|
|
2263
2258
|
|
|
2264
|
-
//export
|
|
2265
|
-
func
|
|
2266
|
-
op :=
|
|
2267
|
-
return
|
|
2259
|
+
//export whatsapp_EventPayload_LoggedOut_Get
|
|
2260
|
+
func whatsapp_EventPayload_LoggedOut_Get(handle CGoHandle) CGoHandle {
|
|
2261
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2262
|
+
return handleFromPtr_whatsapp_LoggedOut(&op.LoggedOut)
|
|
2268
2263
|
}
|
|
2269
2264
|
|
|
2270
|
-
//export
|
|
2271
|
-
func
|
|
2272
|
-
op :=
|
|
2273
|
-
op.
|
|
2265
|
+
//export whatsapp_EventPayload_LoggedOut_Set
|
|
2266
|
+
func whatsapp_EventPayload_LoggedOut_Set(handle CGoHandle, val CGoHandle) {
|
|
2267
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2268
|
+
op.LoggedOut = *ptrFromHandle_whatsapp_LoggedOut(val)
|
|
2274
2269
|
}
|
|
2275
2270
|
|
|
2276
|
-
//export
|
|
2277
|
-
func
|
|
2278
|
-
op :=
|
|
2279
|
-
return
|
|
2271
|
+
//export whatsapp_EventPayload_Contact_Get
|
|
2272
|
+
func whatsapp_EventPayload_Contact_Get(handle CGoHandle) CGoHandle {
|
|
2273
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2274
|
+
return handleFromPtr_whatsapp_Contact(&op.Contact)
|
|
2280
2275
|
}
|
|
2281
2276
|
|
|
2282
|
-
//export
|
|
2283
|
-
func
|
|
2284
|
-
op :=
|
|
2285
|
-
op.
|
|
2277
|
+
//export whatsapp_EventPayload_Contact_Set
|
|
2278
|
+
func whatsapp_EventPayload_Contact_Set(handle CGoHandle, val CGoHandle) {
|
|
2279
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2280
|
+
op.Contact = *ptrFromHandle_whatsapp_Contact(val)
|
|
2286
2281
|
}
|
|
2287
2282
|
|
|
2288
|
-
//export
|
|
2289
|
-
func
|
|
2290
|
-
op :=
|
|
2291
|
-
return
|
|
2283
|
+
//export whatsapp_EventPayload_Presence_Get
|
|
2284
|
+
func whatsapp_EventPayload_Presence_Get(handle CGoHandle) CGoHandle {
|
|
2285
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2286
|
+
return handleFromPtr_whatsapp_Presence(&op.Presence)
|
|
2292
2287
|
}
|
|
2293
2288
|
|
|
2294
|
-
//export
|
|
2295
|
-
func
|
|
2296
|
-
op :=
|
|
2297
|
-
op.
|
|
2289
|
+
//export whatsapp_EventPayload_Presence_Set
|
|
2290
|
+
func whatsapp_EventPayload_Presence_Set(handle CGoHandle, val CGoHandle) {
|
|
2291
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2292
|
+
op.Presence = *ptrFromHandle_whatsapp_Presence(val)
|
|
2298
2293
|
}
|
|
2299
2294
|
|
|
2300
|
-
//export
|
|
2301
|
-
func
|
|
2302
|
-
op :=
|
|
2303
|
-
return
|
|
2295
|
+
//export whatsapp_EventPayload_Message_Get
|
|
2296
|
+
func whatsapp_EventPayload_Message_Get(handle CGoHandle) CGoHandle {
|
|
2297
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2298
|
+
return handleFromPtr_whatsapp_Message(&op.Message)
|
|
2304
2299
|
}
|
|
2305
2300
|
|
|
2306
|
-
//export
|
|
2307
|
-
func
|
|
2308
|
-
op :=
|
|
2309
|
-
op.
|
|
2301
|
+
//export whatsapp_EventPayload_Message_Set
|
|
2302
|
+
func whatsapp_EventPayload_Message_Set(handle CGoHandle, val CGoHandle) {
|
|
2303
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2304
|
+
op.Message = *ptrFromHandle_whatsapp_Message(val)
|
|
2310
2305
|
}
|
|
2311
2306
|
|
|
2312
|
-
//export
|
|
2313
|
-
func
|
|
2314
|
-
op :=
|
|
2315
|
-
return
|
|
2307
|
+
//export whatsapp_EventPayload_ChatState_Get
|
|
2308
|
+
func whatsapp_EventPayload_ChatState_Get(handle CGoHandle) CGoHandle {
|
|
2309
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2310
|
+
return handleFromPtr_whatsapp_ChatState(&op.ChatState)
|
|
2316
2311
|
}
|
|
2317
2312
|
|
|
2318
|
-
//export
|
|
2319
|
-
func
|
|
2320
|
-
op :=
|
|
2321
|
-
op.
|
|
2313
|
+
//export whatsapp_EventPayload_ChatState_Set
|
|
2314
|
+
func whatsapp_EventPayload_ChatState_Set(handle CGoHandle, val CGoHandle) {
|
|
2315
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2316
|
+
op.ChatState = *ptrFromHandle_whatsapp_ChatState(val)
|
|
2322
2317
|
}
|
|
2323
2318
|
|
|
2324
|
-
//export
|
|
2325
|
-
func
|
|
2326
|
-
op :=
|
|
2327
|
-
return
|
|
2319
|
+
//export whatsapp_EventPayload_Receipt_Get
|
|
2320
|
+
func whatsapp_EventPayload_Receipt_Get(handle CGoHandle) CGoHandle {
|
|
2321
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2322
|
+
return handleFromPtr_whatsapp_Receipt(&op.Receipt)
|
|
2328
2323
|
}
|
|
2329
2324
|
|
|
2330
|
-
//export
|
|
2331
|
-
func
|
|
2332
|
-
op :=
|
|
2333
|
-
op.
|
|
2325
|
+
//export whatsapp_EventPayload_Receipt_Set
|
|
2326
|
+
func whatsapp_EventPayload_Receipt_Set(handle CGoHandle, val CGoHandle) {
|
|
2327
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2328
|
+
op.Receipt = *ptrFromHandle_whatsapp_Receipt(val)
|
|
2334
2329
|
}
|
|
2335
2330
|
|
|
2336
|
-
//export
|
|
2337
|
-
func
|
|
2338
|
-
op :=
|
|
2339
|
-
return
|
|
2331
|
+
//export whatsapp_EventPayload_Group_Get
|
|
2332
|
+
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
2333
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2334
|
+
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
2340
2335
|
}
|
|
2341
2336
|
|
|
2342
|
-
//export
|
|
2343
|
-
func
|
|
2344
|
-
op :=
|
|
2345
|
-
op.
|
|
2337
|
+
//export whatsapp_EventPayload_Group_Set
|
|
2338
|
+
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
2339
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2340
|
+
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
2346
2341
|
}
|
|
2347
2342
|
|
|
2348
|
-
//export
|
|
2349
|
-
func
|
|
2350
|
-
op :=
|
|
2351
|
-
return
|
|
2343
|
+
//export whatsapp_EventPayload_Call_Get
|
|
2344
|
+
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
2345
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2346
|
+
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
2352
2347
|
}
|
|
2353
2348
|
|
|
2354
|
-
//export
|
|
2355
|
-
func
|
|
2356
|
-
op :=
|
|
2357
|
-
op.
|
|
2349
|
+
//export whatsapp_EventPayload_Call_Set
|
|
2350
|
+
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
2351
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2352
|
+
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2358
2353
|
}
|
|
2359
2354
|
|
|
2360
|
-
//
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2355
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
2356
|
+
//
|
|
2357
|
+
//export whatsapp_Group_CTor
|
|
2358
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
2359
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
2364
2360
|
}
|
|
2365
2361
|
|
|
2366
|
-
//export
|
|
2367
|
-
func
|
|
2368
|
-
op :=
|
|
2369
|
-
op.
|
|
2362
|
+
//export whatsapp_Group_JID_Get
|
|
2363
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
2364
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2365
|
+
return C.CString(op.JID)
|
|
2370
2366
|
}
|
|
2371
2367
|
|
|
2372
|
-
//export
|
|
2373
|
-
func
|
|
2374
|
-
op :=
|
|
2375
|
-
|
|
2368
|
+
//export whatsapp_Group_JID_Set
|
|
2369
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
2370
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2371
|
+
op.JID = C.GoString(val)
|
|
2376
2372
|
}
|
|
2377
2373
|
|
|
2378
|
-
//export
|
|
2379
|
-
func
|
|
2380
|
-
op :=
|
|
2381
|
-
op.
|
|
2374
|
+
//export whatsapp_Group_Name_Get
|
|
2375
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
2376
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2377
|
+
return C.CString(op.Name)
|
|
2382
2378
|
}
|
|
2383
2379
|
|
|
2384
|
-
//export
|
|
2385
|
-
func
|
|
2386
|
-
op :=
|
|
2387
|
-
|
|
2380
|
+
//export whatsapp_Group_Name_Set
|
|
2381
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
2382
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2383
|
+
op.Name = C.GoString(val)
|
|
2388
2384
|
}
|
|
2389
2385
|
|
|
2390
|
-
//export
|
|
2391
|
-
func
|
|
2392
|
-
op :=
|
|
2393
|
-
op.
|
|
2386
|
+
//export whatsapp_Group_Subject_Get
|
|
2387
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
2388
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2389
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
2394
2390
|
}
|
|
2395
2391
|
|
|
2396
|
-
//export
|
|
2397
|
-
func
|
|
2398
|
-
op :=
|
|
2399
|
-
|
|
2392
|
+
//export whatsapp_Group_Subject_Set
|
|
2393
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
2394
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2395
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
2400
2396
|
}
|
|
2401
2397
|
|
|
2402
|
-
//export
|
|
2403
|
-
func
|
|
2404
|
-
op :=
|
|
2405
|
-
op.
|
|
2398
|
+
//export whatsapp_Group_Nickname_Get
|
|
2399
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
2400
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2401
|
+
return C.CString(op.Nickname)
|
|
2406
2402
|
}
|
|
2407
2403
|
|
|
2408
|
-
//export
|
|
2409
|
-
func
|
|
2410
|
-
op :=
|
|
2411
|
-
|
|
2404
|
+
//export whatsapp_Group_Nickname_Set
|
|
2405
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
2406
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2407
|
+
op.Nickname = C.GoString(val)
|
|
2412
2408
|
}
|
|
2413
2409
|
|
|
2414
|
-
//export
|
|
2415
|
-
func
|
|
2416
|
-
op :=
|
|
2417
|
-
op.
|
|
2410
|
+
//export whatsapp_Group_Participants_Get
|
|
2411
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
2412
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2413
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
2418
2414
|
}
|
|
2419
2415
|
|
|
2420
|
-
//export
|
|
2421
|
-
func
|
|
2422
|
-
op :=
|
|
2423
|
-
|
|
2416
|
+
//export whatsapp_Group_Participants_Set
|
|
2417
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
2418
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2419
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
2424
2420
|
}
|
|
2425
2421
|
|
|
2426
|
-
//export
|
|
2427
|
-
func
|
|
2428
|
-
op :=
|
|
2429
|
-
op.
|
|
2422
|
+
//export whatsapp_Group_InviteCode_Get
|
|
2423
|
+
func whatsapp_Group_InviteCode_Get(handle CGoHandle) *C.char {
|
|
2424
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2425
|
+
return C.CString(op.InviteCode)
|
|
2430
2426
|
}
|
|
2431
2427
|
|
|
2432
|
-
//export
|
|
2433
|
-
func
|
|
2434
|
-
op :=
|
|
2435
|
-
|
|
2428
|
+
//export whatsapp_Group_InviteCode_Set
|
|
2429
|
+
func whatsapp_Group_InviteCode_Set(handle CGoHandle, val *C.char) {
|
|
2430
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2431
|
+
op.InviteCode = C.GoString(val)
|
|
2436
2432
|
}
|
|
2437
2433
|
|
|
2438
|
-
//
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2434
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
2435
|
+
//
|
|
2436
|
+
//export whatsapp_GroupParticipant_CTor
|
|
2437
|
+
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
2438
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
2442
2439
|
}
|
|
2443
2440
|
|
|
2444
|
-
//export
|
|
2445
|
-
func
|
|
2446
|
-
op :=
|
|
2447
|
-
return
|
|
2441
|
+
//export whatsapp_GroupParticipant_JID_Get
|
|
2442
|
+
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
2443
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2444
|
+
return C.CString(op.JID)
|
|
2448
2445
|
}
|
|
2449
2446
|
|
|
2450
|
-
//export
|
|
2451
|
-
func
|
|
2452
|
-
op :=
|
|
2453
|
-
op.
|
|
2447
|
+
//export whatsapp_GroupParticipant_JID_Set
|
|
2448
|
+
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
2449
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2450
|
+
op.JID = C.GoString(val)
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
//export whatsapp_GroupParticipant_Nickname_Get
|
|
2454
|
+
func whatsapp_GroupParticipant_Nickname_Get(handle CGoHandle) *C.char {
|
|
2455
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2456
|
+
return C.CString(op.Nickname)
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
//export whatsapp_GroupParticipant_Nickname_Set
|
|
2460
|
+
func whatsapp_GroupParticipant_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
2461
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2462
|
+
op.Nickname = C.GoString(val)
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
2466
|
+
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
2467
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2468
|
+
return C.longlong(int(op.Affiliation))
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
2472
|
+
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
2473
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2474
|
+
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
//export whatsapp_GroupParticipant_Action_Get
|
|
2478
|
+
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
2479
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2480
|
+
return C.longlong(int(op.Action))
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
//export whatsapp_GroupParticipant_Action_Set
|
|
2484
|
+
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
2485
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2486
|
+
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
2490
|
+
//
|
|
2491
|
+
//export whatsapp_GroupSubject_CTor
|
|
2492
|
+
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
2493
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
//export whatsapp_GroupSubject_Subject_Get
|
|
2497
|
+
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
2498
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2499
|
+
return C.CString(op.Subject)
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
//export whatsapp_GroupSubject_Subject_Set
|
|
2503
|
+
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
2504
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2505
|
+
op.Subject = C.GoString(val)
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
//export whatsapp_GroupSubject_SetAt_Get
|
|
2509
|
+
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
2510
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2511
|
+
return C.longlong(op.SetAt)
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
//export whatsapp_GroupSubject_SetAt_Set
|
|
2515
|
+
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
2516
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2517
|
+
op.SetAt = int64(val)
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
//export whatsapp_GroupSubject_SetBy_Get
|
|
2521
|
+
func whatsapp_GroupSubject_SetBy_Get(handle CGoHandle) *C.char {
|
|
2522
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2523
|
+
return C.CString(op.SetBy)
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
//export whatsapp_GroupSubject_SetBy_Set
|
|
2527
|
+
func whatsapp_GroupSubject_SetBy_Set(handle CGoHandle, val *C.char) {
|
|
2528
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2529
|
+
op.SetBy = C.GoString(val)
|
|
2454
2530
|
}
|
|
2455
2531
|
|
|
2456
2532
|
// --- wrapping struct: whatsapp.Poll ---
|
|
@@ -2484,547 +2560,255 @@ func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
|
2484
2560
|
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
2485
2561
|
}
|
|
2486
2562
|
|
|
2487
|
-
// --- wrapping struct: whatsapp.
|
|
2563
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
2488
2564
|
//
|
|
2489
|
-
//export
|
|
2490
|
-
func
|
|
2491
|
-
return CGoHandle(
|
|
2492
|
-
}
|
|
2493
|
-
|
|
2494
|
-
//export whatsapp_Presence_JID_Get
|
|
2495
|
-
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
2496
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2497
|
-
return C.CString(op.JID)
|
|
2498
|
-
}
|
|
2499
|
-
|
|
2500
|
-
//export whatsapp_Presence_JID_Set
|
|
2501
|
-
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
2502
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2503
|
-
op.JID = C.GoString(val)
|
|
2565
|
+
//export whatsapp_Receipt_CTor
|
|
2566
|
+
func whatsapp_Receipt_CTor() CGoHandle {
|
|
2567
|
+
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
2504
2568
|
}
|
|
2505
2569
|
|
|
2506
|
-
//export
|
|
2507
|
-
func
|
|
2508
|
-
op :=
|
|
2570
|
+
//export whatsapp_Receipt_Kind_Get
|
|
2571
|
+
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
2572
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2509
2573
|
return C.longlong(int(op.Kind))
|
|
2510
2574
|
}
|
|
2511
2575
|
|
|
2512
|
-
//export
|
|
2513
|
-
func
|
|
2514
|
-
op :=
|
|
2515
|
-
op.Kind = whatsapp.
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
|
-
//export whatsapp_Presence_LastSeen_Get
|
|
2519
|
-
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
2520
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2521
|
-
return C.longlong(op.LastSeen)
|
|
2522
|
-
}
|
|
2523
|
-
|
|
2524
|
-
//export whatsapp_Presence_LastSeen_Set
|
|
2525
|
-
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
2526
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2527
|
-
op.LastSeen = int64(val)
|
|
2528
|
-
}
|
|
2529
|
-
|
|
2530
|
-
// --- wrapping struct: whatsapp.ChatState ---
|
|
2531
|
-
//
|
|
2532
|
-
//export whatsapp_ChatState_CTor
|
|
2533
|
-
func whatsapp_ChatState_CTor() CGoHandle {
|
|
2534
|
-
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
2576
|
+
//export whatsapp_Receipt_Kind_Set
|
|
2577
|
+
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2578
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2579
|
+
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
2535
2580
|
}
|
|
2536
2581
|
|
|
2537
|
-
//export
|
|
2538
|
-
func
|
|
2539
|
-
op :=
|
|
2540
|
-
return
|
|
2582
|
+
//export whatsapp_Receipt_MessageIDs_Get
|
|
2583
|
+
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
2584
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2585
|
+
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
2541
2586
|
}
|
|
2542
2587
|
|
|
2543
|
-
//export
|
|
2544
|
-
func
|
|
2545
|
-
op :=
|
|
2546
|
-
op.
|
|
2588
|
+
//export whatsapp_Receipt_MessageIDs_Set
|
|
2589
|
+
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
2590
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2591
|
+
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
2547
2592
|
}
|
|
2548
2593
|
|
|
2549
|
-
//export
|
|
2550
|
-
func
|
|
2551
|
-
op :=
|
|
2594
|
+
//export whatsapp_Receipt_JID_Get
|
|
2595
|
+
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
2596
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2552
2597
|
return C.CString(op.JID)
|
|
2553
2598
|
}
|
|
2554
2599
|
|
|
2555
|
-
//export
|
|
2556
|
-
func
|
|
2557
|
-
op :=
|
|
2600
|
+
//export whatsapp_Receipt_JID_Set
|
|
2601
|
+
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
2602
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2558
2603
|
op.JID = C.GoString(val)
|
|
2559
2604
|
}
|
|
2560
2605
|
|
|
2561
|
-
//export
|
|
2562
|
-
func
|
|
2563
|
-
op :=
|
|
2606
|
+
//export whatsapp_Receipt_GroupJID_Get
|
|
2607
|
+
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
2608
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2564
2609
|
return C.CString(op.GroupJID)
|
|
2565
2610
|
}
|
|
2566
2611
|
|
|
2567
|
-
//export
|
|
2568
|
-
func
|
|
2569
|
-
op :=
|
|
2612
|
+
//export whatsapp_Receipt_GroupJID_Set
|
|
2613
|
+
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
2614
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2570
2615
|
op.GroupJID = C.GoString(val)
|
|
2571
2616
|
}
|
|
2572
2617
|
|
|
2573
|
-
//
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
2578
|
-
}
|
|
2579
|
-
|
|
2580
|
-
//export whatsapp_Connect_JID_Get
|
|
2581
|
-
func whatsapp_Connect_JID_Get(handle CGoHandle) *C.char {
|
|
2582
|
-
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
2583
|
-
return C.CString(op.JID)
|
|
2618
|
+
//export whatsapp_Receipt_Timestamp_Get
|
|
2619
|
+
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2620
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2621
|
+
return C.longlong(op.Timestamp)
|
|
2584
2622
|
}
|
|
2585
2623
|
|
|
2586
|
-
//export
|
|
2587
|
-
func
|
|
2588
|
-
op :=
|
|
2589
|
-
op.
|
|
2624
|
+
//export whatsapp_Receipt_Timestamp_Set
|
|
2625
|
+
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2626
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2627
|
+
op.Timestamp = int64(val)
|
|
2590
2628
|
}
|
|
2591
2629
|
|
|
2592
|
-
//export
|
|
2593
|
-
func
|
|
2594
|
-
op :=
|
|
2595
|
-
return
|
|
2630
|
+
//export whatsapp_Receipt_IsCarbon_Get
|
|
2631
|
+
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
2632
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2633
|
+
return boolGoToPy(op.IsCarbon)
|
|
2596
2634
|
}
|
|
2597
2635
|
|
|
2598
|
-
//export
|
|
2599
|
-
func
|
|
2600
|
-
op :=
|
|
2601
|
-
op.
|
|
2636
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
2637
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
2638
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2639
|
+
op.IsCarbon = boolPyToGo(val)
|
|
2602
2640
|
}
|
|
2603
2641
|
|
|
2604
|
-
// --- wrapping struct: whatsapp.
|
|
2642
|
+
// --- wrapping struct: whatsapp.Album ---
|
|
2605
2643
|
//
|
|
2606
|
-
//export
|
|
2607
|
-
func
|
|
2608
|
-
return CGoHandle(
|
|
2644
|
+
//export whatsapp_Album_CTor
|
|
2645
|
+
func whatsapp_Album_CTor() CGoHandle {
|
|
2646
|
+
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
2609
2647
|
}
|
|
2610
2648
|
|
|
2611
|
-
//export
|
|
2612
|
-
func
|
|
2613
|
-
op :=
|
|
2614
|
-
return
|
|
2649
|
+
//export whatsapp_Album_IsAlbum_Get
|
|
2650
|
+
func whatsapp_Album_IsAlbum_Get(handle CGoHandle) C.char {
|
|
2651
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2652
|
+
return boolGoToPy(op.IsAlbum)
|
|
2615
2653
|
}
|
|
2616
2654
|
|
|
2617
|
-
//export
|
|
2618
|
-
func
|
|
2619
|
-
op :=
|
|
2620
|
-
op.
|
|
2655
|
+
//export whatsapp_Album_IsAlbum_Set
|
|
2656
|
+
func whatsapp_Album_IsAlbum_Set(handle CGoHandle, val C.char) {
|
|
2657
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2658
|
+
op.IsAlbum = boolPyToGo(val)
|
|
2621
2659
|
}
|
|
2622
2660
|
|
|
2623
|
-
//export
|
|
2624
|
-
func
|
|
2625
|
-
op :=
|
|
2626
|
-
return C.
|
|
2661
|
+
//export whatsapp_Album_ImageCount_Get
|
|
2662
|
+
func whatsapp_Album_ImageCount_Get(handle CGoHandle) C.longlong {
|
|
2663
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2664
|
+
return C.longlong(op.ImageCount)
|
|
2627
2665
|
}
|
|
2628
2666
|
|
|
2629
|
-
//export
|
|
2630
|
-
func
|
|
2631
|
-
op :=
|
|
2632
|
-
op.
|
|
2667
|
+
//export whatsapp_Album_ImageCount_Set
|
|
2668
|
+
func whatsapp_Album_ImageCount_Set(handle CGoHandle, val C.longlong) {
|
|
2669
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2670
|
+
op.ImageCount = int(val)
|
|
2633
2671
|
}
|
|
2634
2672
|
|
|
2635
|
-
//export
|
|
2636
|
-
func
|
|
2637
|
-
op :=
|
|
2638
|
-
return
|
|
2673
|
+
//export whatsapp_Album_VideoCount_Get
|
|
2674
|
+
func whatsapp_Album_VideoCount_Get(handle CGoHandle) C.longlong {
|
|
2675
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2676
|
+
return C.longlong(op.VideoCount)
|
|
2639
2677
|
}
|
|
2640
2678
|
|
|
2641
|
-
//export
|
|
2642
|
-
func
|
|
2643
|
-
op :=
|
|
2644
|
-
op.
|
|
2679
|
+
//export whatsapp_Album_VideoCount_Set
|
|
2680
|
+
func whatsapp_Album_VideoCount_Set(handle CGoHandle, val C.longlong) {
|
|
2681
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2682
|
+
op.VideoCount = int(val)
|
|
2645
2683
|
}
|
|
2646
2684
|
|
|
2647
|
-
//
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2685
|
+
// --- wrapping struct: whatsapp.Call ---
|
|
2686
|
+
//
|
|
2687
|
+
//export whatsapp_Call_CTor
|
|
2688
|
+
func whatsapp_Call_CTor() CGoHandle {
|
|
2689
|
+
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
2651
2690
|
}
|
|
2652
2691
|
|
|
2653
|
-
//export
|
|
2654
|
-
func
|
|
2655
|
-
op :=
|
|
2656
|
-
op.
|
|
2692
|
+
//export whatsapp_Call_State_Get
|
|
2693
|
+
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
2694
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2695
|
+
return C.longlong(int(op.State))
|
|
2657
2696
|
}
|
|
2658
2697
|
|
|
2659
|
-
//export
|
|
2660
|
-
func
|
|
2661
|
-
op :=
|
|
2662
|
-
|
|
2698
|
+
//export whatsapp_Call_State_Set
|
|
2699
|
+
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
2700
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2701
|
+
op.State = whatsapp.CallState(int(val))
|
|
2663
2702
|
}
|
|
2664
2703
|
|
|
2665
|
-
//export
|
|
2666
|
-
func
|
|
2667
|
-
op :=
|
|
2668
|
-
op.
|
|
2704
|
+
//export whatsapp_Call_JID_Get
|
|
2705
|
+
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
2706
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2707
|
+
return C.CString(op.JID)
|
|
2669
2708
|
}
|
|
2670
2709
|
|
|
2671
|
-
//export
|
|
2672
|
-
func
|
|
2673
|
-
op :=
|
|
2674
|
-
|
|
2710
|
+
//export whatsapp_Call_JID_Set
|
|
2711
|
+
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
2712
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2713
|
+
op.JID = C.GoString(val)
|
|
2675
2714
|
}
|
|
2676
2715
|
|
|
2677
|
-
//export
|
|
2678
|
-
func
|
|
2679
|
-
op :=
|
|
2680
|
-
op.
|
|
2716
|
+
//export whatsapp_Call_Timestamp_Get
|
|
2717
|
+
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2718
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2719
|
+
return C.longlong(op.Timestamp)
|
|
2681
2720
|
}
|
|
2682
2721
|
|
|
2683
|
-
//export
|
|
2684
|
-
func
|
|
2685
|
-
op :=
|
|
2686
|
-
|
|
2722
|
+
//export whatsapp_Call_Timestamp_Set
|
|
2723
|
+
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2724
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2725
|
+
op.Timestamp = int64(val)
|
|
2687
2726
|
}
|
|
2688
2727
|
|
|
2689
|
-
//
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2728
|
+
// --- wrapping struct: whatsapp.LoggedOut ---
|
|
2729
|
+
//
|
|
2730
|
+
//export whatsapp_LoggedOut_CTor
|
|
2731
|
+
func whatsapp_LoggedOut_CTor() CGoHandle {
|
|
2732
|
+
return CGoHandle(handleFromPtr_whatsapp_LoggedOut(&whatsapp.LoggedOut{}))
|
|
2693
2733
|
}
|
|
2694
2734
|
|
|
2695
|
-
//export
|
|
2696
|
-
func
|
|
2697
|
-
op :=
|
|
2698
|
-
return
|
|
2735
|
+
//export whatsapp_LoggedOut_Reason_Get
|
|
2736
|
+
func whatsapp_LoggedOut_Reason_Get(handle CGoHandle) *C.char {
|
|
2737
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
2738
|
+
return C.CString(op.Reason)
|
|
2699
2739
|
}
|
|
2700
2740
|
|
|
2701
|
-
//export
|
|
2702
|
-
func
|
|
2703
|
-
op :=
|
|
2704
|
-
op.
|
|
2741
|
+
//export whatsapp_LoggedOut_Reason_Set
|
|
2742
|
+
func whatsapp_LoggedOut_Reason_Set(handle CGoHandle, val *C.char) {
|
|
2743
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
2744
|
+
op.Reason = C.GoString(val)
|
|
2705
2745
|
}
|
|
2706
2746
|
|
|
2707
|
-
//
|
|
2708
|
-
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
2709
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2710
|
-
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
2711
|
-
}
|
|
2712
|
-
|
|
2713
|
-
//export whatsapp_EventPayload_Group_Set
|
|
2714
|
-
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
2715
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2716
|
-
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
2717
|
-
}
|
|
2718
|
-
|
|
2719
|
-
//export whatsapp_EventPayload_Call_Get
|
|
2720
|
-
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
2721
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2722
|
-
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
2723
|
-
}
|
|
2724
|
-
|
|
2725
|
-
//export whatsapp_EventPayload_Call_Set
|
|
2726
|
-
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
2727
|
-
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2728
|
-
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2729
|
-
}
|
|
2730
|
-
|
|
2731
|
-
// --- wrapping struct: whatsapp.Group ---
|
|
2732
|
-
//
|
|
2733
|
-
//export whatsapp_Group_CTor
|
|
2734
|
-
func whatsapp_Group_CTor() CGoHandle {
|
|
2735
|
-
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
2736
|
-
}
|
|
2737
|
-
|
|
2738
|
-
//export whatsapp_Group_JID_Get
|
|
2739
|
-
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
2740
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2741
|
-
return C.CString(op.JID)
|
|
2742
|
-
}
|
|
2743
|
-
|
|
2744
|
-
//export whatsapp_Group_JID_Set
|
|
2745
|
-
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
2746
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2747
|
-
op.JID = C.GoString(val)
|
|
2748
|
-
}
|
|
2749
|
-
|
|
2750
|
-
//export whatsapp_Group_Name_Get
|
|
2751
|
-
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
2752
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2753
|
-
return C.CString(op.Name)
|
|
2754
|
-
}
|
|
2755
|
-
|
|
2756
|
-
//export whatsapp_Group_Name_Set
|
|
2757
|
-
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
2758
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2759
|
-
op.Name = C.GoString(val)
|
|
2760
|
-
}
|
|
2761
|
-
|
|
2762
|
-
//export whatsapp_Group_Subject_Get
|
|
2763
|
-
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
2764
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2765
|
-
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
2766
|
-
}
|
|
2767
|
-
|
|
2768
|
-
//export whatsapp_Group_Subject_Set
|
|
2769
|
-
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
2770
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2771
|
-
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2774
|
-
//export whatsapp_Group_Nickname_Get
|
|
2775
|
-
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
2776
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2777
|
-
return C.CString(op.Nickname)
|
|
2778
|
-
}
|
|
2779
|
-
|
|
2780
|
-
//export whatsapp_Group_Nickname_Set
|
|
2781
|
-
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
2782
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2783
|
-
op.Nickname = C.GoString(val)
|
|
2784
|
-
}
|
|
2785
|
-
|
|
2786
|
-
//export whatsapp_Group_Participants_Get
|
|
2787
|
-
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
2788
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2789
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
2790
|
-
}
|
|
2791
|
-
|
|
2792
|
-
//export whatsapp_Group_Participants_Set
|
|
2793
|
-
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
2794
|
-
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2795
|
-
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
2796
|
-
}
|
|
2797
|
-
|
|
2798
|
-
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
2799
|
-
//
|
|
2800
|
-
//export whatsapp_GroupParticipant_CTor
|
|
2801
|
-
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
2802
|
-
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
2803
|
-
}
|
|
2804
|
-
|
|
2805
|
-
//export whatsapp_GroupParticipant_JID_Get
|
|
2806
|
-
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
2807
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2808
|
-
return C.CString(op.JID)
|
|
2809
|
-
}
|
|
2810
|
-
|
|
2811
|
-
//export whatsapp_GroupParticipant_JID_Set
|
|
2812
|
-
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
2813
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2814
|
-
op.JID = C.GoString(val)
|
|
2815
|
-
}
|
|
2816
|
-
|
|
2817
|
-
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
2818
|
-
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
2819
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2820
|
-
return C.longlong(int(op.Affiliation))
|
|
2821
|
-
}
|
|
2822
|
-
|
|
2823
|
-
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
2824
|
-
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
2825
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2826
|
-
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
2827
|
-
}
|
|
2828
|
-
|
|
2829
|
-
//export whatsapp_GroupParticipant_Action_Get
|
|
2830
|
-
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
2831
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2832
|
-
return C.longlong(int(op.Action))
|
|
2833
|
-
}
|
|
2834
|
-
|
|
2835
|
-
//export whatsapp_GroupParticipant_Action_Set
|
|
2836
|
-
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
2837
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2838
|
-
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
2839
|
-
}
|
|
2840
|
-
|
|
2841
|
-
// --- wrapping struct: whatsapp.Location ---
|
|
2747
|
+
// --- wrapping struct: whatsapp.Preview ---
|
|
2842
2748
|
//
|
|
2843
|
-
//export
|
|
2844
|
-
func
|
|
2845
|
-
return CGoHandle(
|
|
2846
|
-
}
|
|
2847
|
-
|
|
2848
|
-
//export whatsapp_Location_Latitude_Get
|
|
2849
|
-
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
2850
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2851
|
-
return C.double(op.Latitude)
|
|
2852
|
-
}
|
|
2853
|
-
|
|
2854
|
-
//export whatsapp_Location_Latitude_Set
|
|
2855
|
-
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
2856
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2857
|
-
op.Latitude = float64(val)
|
|
2858
|
-
}
|
|
2859
|
-
|
|
2860
|
-
//export whatsapp_Location_Longitude_Get
|
|
2861
|
-
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
2862
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2863
|
-
return C.double(op.Longitude)
|
|
2864
|
-
}
|
|
2865
|
-
|
|
2866
|
-
//export whatsapp_Location_Longitude_Set
|
|
2867
|
-
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
2868
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2869
|
-
op.Longitude = float64(val)
|
|
2870
|
-
}
|
|
2871
|
-
|
|
2872
|
-
//export whatsapp_Location_Accuracy_Get
|
|
2873
|
-
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
2874
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2875
|
-
return C.longlong(op.Accuracy)
|
|
2876
|
-
}
|
|
2877
|
-
|
|
2878
|
-
//export whatsapp_Location_Accuracy_Set
|
|
2879
|
-
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
2880
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2881
|
-
op.Accuracy = int(val)
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
//export whatsapp_Location_IsLive_Get
|
|
2885
|
-
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
2886
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2887
|
-
return boolGoToPy(op.IsLive)
|
|
2888
|
-
}
|
|
2889
|
-
|
|
2890
|
-
//export whatsapp_Location_IsLive_Set
|
|
2891
|
-
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
2892
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2893
|
-
op.IsLive = boolPyToGo(val)
|
|
2894
|
-
}
|
|
2895
|
-
|
|
2896
|
-
//export whatsapp_Location_Name_Get
|
|
2897
|
-
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
2898
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2899
|
-
return C.CString(op.Name)
|
|
2900
|
-
}
|
|
2901
|
-
|
|
2902
|
-
//export whatsapp_Location_Name_Set
|
|
2903
|
-
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
2904
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2905
|
-
op.Name = C.GoString(val)
|
|
2749
|
+
//export whatsapp_Preview_CTor
|
|
2750
|
+
func whatsapp_Preview_CTor() CGoHandle {
|
|
2751
|
+
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
2906
2752
|
}
|
|
2907
2753
|
|
|
2908
|
-
//export
|
|
2909
|
-
func
|
|
2910
|
-
op :=
|
|
2911
|
-
return C.
|
|
2754
|
+
//export whatsapp_Preview_Kind_Get
|
|
2755
|
+
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
2756
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2757
|
+
return C.longlong(int(op.Kind))
|
|
2912
2758
|
}
|
|
2913
2759
|
|
|
2914
|
-
//export
|
|
2915
|
-
func
|
|
2916
|
-
op :=
|
|
2917
|
-
op.
|
|
2760
|
+
//export whatsapp_Preview_Kind_Set
|
|
2761
|
+
func whatsapp_Preview_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2762
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2763
|
+
op.Kind = whatsapp.PreviewKind(int(val))
|
|
2918
2764
|
}
|
|
2919
2765
|
|
|
2920
|
-
//export
|
|
2921
|
-
func
|
|
2922
|
-
op :=
|
|
2766
|
+
//export whatsapp_Preview_URL_Get
|
|
2767
|
+
func whatsapp_Preview_URL_Get(handle CGoHandle) *C.char {
|
|
2768
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2923
2769
|
return C.CString(op.URL)
|
|
2924
2770
|
}
|
|
2925
2771
|
|
|
2926
|
-
//export
|
|
2927
|
-
func
|
|
2928
|
-
op :=
|
|
2772
|
+
//export whatsapp_Preview_URL_Set
|
|
2773
|
+
func whatsapp_Preview_URL_Set(handle CGoHandle, val *C.char) {
|
|
2774
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2929
2775
|
op.URL = C.GoString(val)
|
|
2930
2776
|
}
|
|
2931
2777
|
|
|
2932
|
-
//
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
func whatsapp_PollOption_CTor() CGoHandle {
|
|
2936
|
-
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
2937
|
-
}
|
|
2938
|
-
|
|
2939
|
-
//export whatsapp_PollOption_Title_Get
|
|
2940
|
-
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
2941
|
-
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
2778
|
+
//export whatsapp_Preview_Title_Get
|
|
2779
|
+
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
2780
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2942
2781
|
return C.CString(op.Title)
|
|
2943
2782
|
}
|
|
2944
2783
|
|
|
2945
|
-
//export
|
|
2946
|
-
func
|
|
2947
|
-
op :=
|
|
2948
|
-
op.Title = C.GoString(val)
|
|
2949
|
-
}
|
|
2950
|
-
|
|
2951
|
-
// --- wrapping struct: whatsapp.Receipt ---
|
|
2952
|
-
//
|
|
2953
|
-
//export whatsapp_Receipt_CTor
|
|
2954
|
-
func whatsapp_Receipt_CTor() CGoHandle {
|
|
2955
|
-
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
2956
|
-
}
|
|
2957
|
-
|
|
2958
|
-
//export whatsapp_Receipt_Kind_Get
|
|
2959
|
-
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
2960
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2961
|
-
return C.longlong(int(op.Kind))
|
|
2962
|
-
}
|
|
2963
|
-
|
|
2964
|
-
//export whatsapp_Receipt_Kind_Set
|
|
2965
|
-
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2966
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2967
|
-
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
2968
|
-
}
|
|
2969
|
-
|
|
2970
|
-
//export whatsapp_Receipt_MessageIDs_Get
|
|
2971
|
-
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
2972
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2973
|
-
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
2974
|
-
}
|
|
2975
|
-
|
|
2976
|
-
//export whatsapp_Receipt_MessageIDs_Set
|
|
2977
|
-
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
2978
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2979
|
-
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
2980
|
-
}
|
|
2981
|
-
|
|
2982
|
-
//export whatsapp_Receipt_JID_Get
|
|
2983
|
-
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
2984
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2985
|
-
return C.CString(op.JID)
|
|
2986
|
-
}
|
|
2987
|
-
|
|
2988
|
-
//export whatsapp_Receipt_JID_Set
|
|
2989
|
-
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
2990
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2991
|
-
op.JID = C.GoString(val)
|
|
2992
|
-
}
|
|
2993
|
-
|
|
2994
|
-
//export whatsapp_Receipt_GroupJID_Get
|
|
2995
|
-
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
2996
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
2997
|
-
return C.CString(op.GroupJID)
|
|
2998
|
-
}
|
|
2999
|
-
|
|
3000
|
-
//export whatsapp_Receipt_GroupJID_Set
|
|
3001
|
-
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3002
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3003
|
-
op.GroupJID = C.GoString(val)
|
|
3004
|
-
}
|
|
3005
|
-
|
|
3006
|
-
//export whatsapp_Receipt_Timestamp_Get
|
|
3007
|
-
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3008
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3009
|
-
return C.longlong(op.Timestamp)
|
|
2784
|
+
//export whatsapp_Preview_Title_Set
|
|
2785
|
+
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
2786
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2787
|
+
op.Title = C.GoString(val)
|
|
3010
2788
|
}
|
|
3011
2789
|
|
|
3012
|
-
//export
|
|
3013
|
-
func
|
|
3014
|
-
op :=
|
|
3015
|
-
op.
|
|
2790
|
+
//export whatsapp_Preview_Description_Get
|
|
2791
|
+
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
2792
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2793
|
+
return C.CString(op.Description)
|
|
3016
2794
|
}
|
|
3017
2795
|
|
|
3018
|
-
//export
|
|
3019
|
-
func
|
|
3020
|
-
op :=
|
|
3021
|
-
|
|
2796
|
+
//export whatsapp_Preview_Description_Set
|
|
2797
|
+
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
2798
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2799
|
+
op.Description = C.GoString(val)
|
|
3022
2800
|
}
|
|
3023
2801
|
|
|
3024
|
-
//export
|
|
3025
|
-
func
|
|
3026
|
-
op :=
|
|
3027
|
-
op.
|
|
2802
|
+
//export whatsapp_Preview_Thumbnail_Get
|
|
2803
|
+
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
2804
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2805
|
+
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
//export whatsapp_Preview_Thumbnail_Set
|
|
2809
|
+
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
2810
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2811
|
+
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
3028
2812
|
}
|
|
3029
2813
|
|
|
3030
2814
|
// --- wrapping struct: whatsapp.Session ---
|
|
@@ -3436,110 +3220,345 @@ func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.
|
|
|
3436
3220
|
}
|
|
3437
3221
|
}
|
|
3438
3222
|
|
|
3439
|
-
// --- wrapping struct: whatsapp.
|
|
3440
|
-
//
|
|
3441
|
-
//export
|
|
3442
|
-
func
|
|
3443
|
-
return CGoHandle(
|
|
3223
|
+
// --- wrapping struct: whatsapp.Avatar ---
|
|
3224
|
+
//
|
|
3225
|
+
//export whatsapp_Avatar_CTor
|
|
3226
|
+
func whatsapp_Avatar_CTor() CGoHandle {
|
|
3227
|
+
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
//export whatsapp_Avatar_ID_Get
|
|
3231
|
+
func whatsapp_Avatar_ID_Get(handle CGoHandle) *C.char {
|
|
3232
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3233
|
+
return C.CString(op.ID)
|
|
3234
|
+
}
|
|
3235
|
+
|
|
3236
|
+
//export whatsapp_Avatar_ID_Set
|
|
3237
|
+
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
3238
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3239
|
+
op.ID = C.GoString(val)
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3242
|
+
//export whatsapp_Avatar_URL_Get
|
|
3243
|
+
func whatsapp_Avatar_URL_Get(handle CGoHandle) *C.char {
|
|
3244
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3245
|
+
return C.CString(op.URL)
|
|
3246
|
+
}
|
|
3247
|
+
|
|
3248
|
+
//export whatsapp_Avatar_URL_Set
|
|
3249
|
+
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
3250
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3251
|
+
op.URL = C.GoString(val)
|
|
3252
|
+
}
|
|
3253
|
+
|
|
3254
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
3255
|
+
//
|
|
3256
|
+
//export whatsapp_LinkedDevice_CTor
|
|
3257
|
+
func whatsapp_LinkedDevice_CTor() CGoHandle {
|
|
3258
|
+
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
//export whatsapp_LinkedDevice_ID_Get
|
|
3262
|
+
func whatsapp_LinkedDevice_ID_Get(handle CGoHandle) *C.char {
|
|
3263
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3264
|
+
return C.CString(op.ID)
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
//export whatsapp_LinkedDevice_ID_Set
|
|
3268
|
+
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
3269
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3270
|
+
op.ID = C.GoString(val)
|
|
3271
|
+
}
|
|
3272
|
+
|
|
3273
|
+
//export whatsapp_LinkedDevice_JID
|
|
3274
|
+
func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
3275
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3276
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3277
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
3278
|
+
if __err != nil {
|
|
3279
|
+
return handleFromPtr_types_JID(nil)
|
|
3280
|
+
}
|
|
3281
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3282
|
+
|
|
3283
|
+
return handleFromPtr_types_JID(&cret)
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
// --- wrapping struct: whatsapp.Message ---
|
|
3287
|
+
//
|
|
3288
|
+
//export whatsapp_Message_CTor
|
|
3289
|
+
func whatsapp_Message_CTor() CGoHandle {
|
|
3290
|
+
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
//export whatsapp_Message_Kind_Get
|
|
3294
|
+
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
3295
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3296
|
+
return C.longlong(int(op.Kind))
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3299
|
+
//export whatsapp_Message_Kind_Set
|
|
3300
|
+
func whatsapp_Message_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3301
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3302
|
+
op.Kind = whatsapp.MessageKind(int(val))
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3305
|
+
//export whatsapp_Message_ID_Get
|
|
3306
|
+
func whatsapp_Message_ID_Get(handle CGoHandle) *C.char {
|
|
3307
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3308
|
+
return C.CString(op.ID)
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
//export whatsapp_Message_ID_Set
|
|
3312
|
+
func whatsapp_Message_ID_Set(handle CGoHandle, val *C.char) {
|
|
3313
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3314
|
+
op.ID = C.GoString(val)
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
//export whatsapp_Message_JID_Get
|
|
3318
|
+
func whatsapp_Message_JID_Get(handle CGoHandle) *C.char {
|
|
3319
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3320
|
+
return C.CString(op.JID)
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3323
|
+
//export whatsapp_Message_JID_Set
|
|
3324
|
+
func whatsapp_Message_JID_Set(handle CGoHandle, val *C.char) {
|
|
3325
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3326
|
+
op.JID = C.GoString(val)
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3329
|
+
//export whatsapp_Message_GroupJID_Get
|
|
3330
|
+
func whatsapp_Message_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3331
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3332
|
+
return C.CString(op.GroupJID)
|
|
3333
|
+
}
|
|
3334
|
+
|
|
3335
|
+
//export whatsapp_Message_GroupJID_Set
|
|
3336
|
+
func whatsapp_Message_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3337
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3338
|
+
op.GroupJID = C.GoString(val)
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3341
|
+
//export whatsapp_Message_OriginJID_Get
|
|
3342
|
+
func whatsapp_Message_OriginJID_Get(handle CGoHandle) *C.char {
|
|
3343
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3344
|
+
return C.CString(op.OriginJID)
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
//export whatsapp_Message_OriginJID_Set
|
|
3348
|
+
func whatsapp_Message_OriginJID_Set(handle CGoHandle, val *C.char) {
|
|
3349
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3350
|
+
op.OriginJID = C.GoString(val)
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
//export whatsapp_Message_Body_Get
|
|
3354
|
+
func whatsapp_Message_Body_Get(handle CGoHandle) *C.char {
|
|
3355
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3356
|
+
return C.CString(op.Body)
|
|
3357
|
+
}
|
|
3358
|
+
|
|
3359
|
+
//export whatsapp_Message_Body_Set
|
|
3360
|
+
func whatsapp_Message_Body_Set(handle CGoHandle, val *C.char) {
|
|
3361
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3362
|
+
op.Body = C.GoString(val)
|
|
3363
|
+
}
|
|
3364
|
+
|
|
3365
|
+
//export whatsapp_Message_Timestamp_Get
|
|
3366
|
+
func whatsapp_Message_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3367
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3368
|
+
return C.longlong(op.Timestamp)
|
|
3369
|
+
}
|
|
3370
|
+
|
|
3371
|
+
//export whatsapp_Message_Timestamp_Set
|
|
3372
|
+
func whatsapp_Message_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3373
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3374
|
+
op.Timestamp = int64(val)
|
|
3375
|
+
}
|
|
3376
|
+
|
|
3377
|
+
//export whatsapp_Message_IsCarbon_Get
|
|
3378
|
+
func whatsapp_Message_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3379
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3380
|
+
return boolGoToPy(op.IsCarbon)
|
|
3381
|
+
}
|
|
3382
|
+
|
|
3383
|
+
//export whatsapp_Message_IsCarbon_Set
|
|
3384
|
+
func whatsapp_Message_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3385
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3386
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3389
|
+
//export whatsapp_Message_IsForwarded_Get
|
|
3390
|
+
func whatsapp_Message_IsForwarded_Get(handle CGoHandle) C.char {
|
|
3391
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3392
|
+
return boolGoToPy(op.IsForwarded)
|
|
3393
|
+
}
|
|
3394
|
+
|
|
3395
|
+
//export whatsapp_Message_IsForwarded_Set
|
|
3396
|
+
func whatsapp_Message_IsForwarded_Set(handle CGoHandle, val C.char) {
|
|
3397
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3398
|
+
op.IsForwarded = boolPyToGo(val)
|
|
3399
|
+
}
|
|
3400
|
+
|
|
3401
|
+
//export whatsapp_Message_ReplyID_Get
|
|
3402
|
+
func whatsapp_Message_ReplyID_Get(handle CGoHandle) *C.char {
|
|
3403
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3404
|
+
return C.CString(op.ReplyID)
|
|
3405
|
+
}
|
|
3406
|
+
|
|
3407
|
+
//export whatsapp_Message_ReplyID_Set
|
|
3408
|
+
func whatsapp_Message_ReplyID_Set(handle CGoHandle, val *C.char) {
|
|
3409
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3410
|
+
op.ReplyID = C.GoString(val)
|
|
3411
|
+
}
|
|
3412
|
+
|
|
3413
|
+
//export whatsapp_Message_ReplyBody_Get
|
|
3414
|
+
func whatsapp_Message_ReplyBody_Get(handle CGoHandle) *C.char {
|
|
3415
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3416
|
+
return C.CString(op.ReplyBody)
|
|
3417
|
+
}
|
|
3418
|
+
|
|
3419
|
+
//export whatsapp_Message_ReplyBody_Set
|
|
3420
|
+
func whatsapp_Message_ReplyBody_Set(handle CGoHandle, val *C.char) {
|
|
3421
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3422
|
+
op.ReplyBody = C.GoString(val)
|
|
3423
|
+
}
|
|
3424
|
+
|
|
3425
|
+
//export whatsapp_Message_Attachments_Get
|
|
3426
|
+
func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
3427
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3428
|
+
return handleFromPtr_Slice_whatsapp_Attachment(&op.Attachments)
|
|
3429
|
+
}
|
|
3430
|
+
|
|
3431
|
+
//export whatsapp_Message_Attachments_Set
|
|
3432
|
+
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
3433
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3434
|
+
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
//export whatsapp_Message_Preview_Get
|
|
3438
|
+
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
3439
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3440
|
+
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
3441
|
+
}
|
|
3442
|
+
|
|
3443
|
+
//export whatsapp_Message_Preview_Set
|
|
3444
|
+
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
3445
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3446
|
+
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
3444
3447
|
}
|
|
3445
3448
|
|
|
3446
|
-
//export
|
|
3447
|
-
func
|
|
3448
|
-
op :=
|
|
3449
|
-
return
|
|
3449
|
+
//export whatsapp_Message_Location_Get
|
|
3450
|
+
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
3451
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3452
|
+
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
3450
3453
|
}
|
|
3451
3454
|
|
|
3452
|
-
//export
|
|
3453
|
-
func
|
|
3454
|
-
op :=
|
|
3455
|
-
op.
|
|
3455
|
+
//export whatsapp_Message_Location_Set
|
|
3456
|
+
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
3457
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3458
|
+
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
3456
3459
|
}
|
|
3457
3460
|
|
|
3458
|
-
//export
|
|
3459
|
-
func
|
|
3460
|
-
op :=
|
|
3461
|
-
return
|
|
3461
|
+
//export whatsapp_Message_Poll_Get
|
|
3462
|
+
func whatsapp_Message_Poll_Get(handle CGoHandle) CGoHandle {
|
|
3463
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3464
|
+
return handleFromPtr_whatsapp_Poll(&op.Poll)
|
|
3462
3465
|
}
|
|
3463
3466
|
|
|
3464
|
-
//export
|
|
3465
|
-
func
|
|
3466
|
-
op :=
|
|
3467
|
-
op.
|
|
3467
|
+
//export whatsapp_Message_Poll_Set
|
|
3468
|
+
func whatsapp_Message_Poll_Set(handle CGoHandle, val CGoHandle) {
|
|
3469
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3470
|
+
op.Poll = *ptrFromHandle_whatsapp_Poll(val)
|
|
3468
3471
|
}
|
|
3469
3472
|
|
|
3470
|
-
//export
|
|
3471
|
-
func
|
|
3472
|
-
op :=
|
|
3473
|
-
return
|
|
3473
|
+
//export whatsapp_Message_Album_Get
|
|
3474
|
+
func whatsapp_Message_Album_Get(handle CGoHandle) CGoHandle {
|
|
3475
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3476
|
+
return handleFromPtr_whatsapp_Album(&op.Album)
|
|
3474
3477
|
}
|
|
3475
3478
|
|
|
3476
|
-
//export
|
|
3477
|
-
func
|
|
3478
|
-
op :=
|
|
3479
|
-
op.
|
|
3479
|
+
//export whatsapp_Message_Album_Set
|
|
3480
|
+
func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
3481
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3482
|
+
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
3480
3483
|
}
|
|
3481
3484
|
|
|
3482
|
-
//
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
3485
|
+
//export whatsapp_Message_GroupInvite_Get
|
|
3486
|
+
func whatsapp_Message_GroupInvite_Get(handle CGoHandle) CGoHandle {
|
|
3487
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3488
|
+
return handleFromPtr_whatsapp_Group(&op.GroupInvite)
|
|
3487
3489
|
}
|
|
3488
3490
|
|
|
3489
|
-
//export
|
|
3490
|
-
func
|
|
3491
|
-
op :=
|
|
3492
|
-
|
|
3491
|
+
//export whatsapp_Message_GroupInvite_Set
|
|
3492
|
+
func whatsapp_Message_GroupInvite_Set(handle CGoHandle, val CGoHandle) {
|
|
3493
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3494
|
+
op.GroupInvite = *ptrFromHandle_whatsapp_Group(val)
|
|
3493
3495
|
}
|
|
3494
3496
|
|
|
3495
|
-
//export
|
|
3496
|
-
func
|
|
3497
|
-
op :=
|
|
3498
|
-
op.
|
|
3497
|
+
//export whatsapp_Message_MentionJIDs_Get
|
|
3498
|
+
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
3499
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3500
|
+
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
3499
3501
|
}
|
|
3500
3502
|
|
|
3501
|
-
//export
|
|
3502
|
-
func
|
|
3503
|
-
op :=
|
|
3504
|
-
|
|
3503
|
+
//export whatsapp_Message_MentionJIDs_Set
|
|
3504
|
+
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3505
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3506
|
+
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
3505
3507
|
}
|
|
3506
3508
|
|
|
3507
|
-
//export
|
|
3508
|
-
func
|
|
3509
|
-
op :=
|
|
3510
|
-
op.
|
|
3509
|
+
//export whatsapp_Message_Receipts_Get
|
|
3510
|
+
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
3511
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3512
|
+
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
3511
3513
|
}
|
|
3512
3514
|
|
|
3513
|
-
//
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
3515
|
+
//export whatsapp_Message_Receipts_Set
|
|
3516
|
+
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
3517
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3518
|
+
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
3518
3519
|
}
|
|
3519
3520
|
|
|
3520
|
-
//export
|
|
3521
|
-
func
|
|
3522
|
-
op :=
|
|
3523
|
-
return
|
|
3521
|
+
//export whatsapp_Message_Reactions_Get
|
|
3522
|
+
func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
3523
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3524
|
+
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
3524
3525
|
}
|
|
3525
3526
|
|
|
3526
|
-
//export
|
|
3527
|
-
func
|
|
3528
|
-
op :=
|
|
3529
|
-
op.
|
|
3527
|
+
//export whatsapp_Message_Reactions_Set
|
|
3528
|
+
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
3529
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3530
|
+
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3530
3531
|
}
|
|
3531
3532
|
|
|
3532
|
-
//export
|
|
3533
|
-
func
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
if __err != nil {
|
|
3538
|
-
return handleFromPtr_types_JID(nil)
|
|
3539
|
-
}
|
|
3540
|
-
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3533
|
+
//export whatsapp_Message_IsHistory_Get
|
|
3534
|
+
func whatsapp_Message_IsHistory_Get(handle CGoHandle) C.char {
|
|
3535
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3536
|
+
return boolGoToPy(op.IsHistory)
|
|
3537
|
+
}
|
|
3541
3538
|
|
|
3542
|
-
|
|
3539
|
+
//export whatsapp_Message_IsHistory_Set
|
|
3540
|
+
func whatsapp_Message_IsHistory_Set(handle CGoHandle, val C.char) {
|
|
3541
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3542
|
+
op.IsHistory = boolPyToGo(val)
|
|
3543
|
+
}
|
|
3544
|
+
|
|
3545
|
+
// --- wrapping struct: whatsapp.PollOption ---
|
|
3546
|
+
//
|
|
3547
|
+
//export whatsapp_PollOption_CTor
|
|
3548
|
+
func whatsapp_PollOption_CTor() CGoHandle {
|
|
3549
|
+
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
//export whatsapp_PollOption_Title_Get
|
|
3553
|
+
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
3554
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3555
|
+
return C.CString(op.Title)
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3558
|
+
//export whatsapp_PollOption_Title_Set
|
|
3559
|
+
func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
3560
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3561
|
+
op.Title = C.GoString(val)
|
|
3543
3562
|
}
|
|
3544
3563
|
|
|
3545
3564
|
// --- wrapping struct: whatsapp.Attachment ---
|
|
@@ -3600,204 +3619,288 @@ func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
|
3600
3619
|
//export whatsapp_Attachment_GetSpec
|
|
3601
3620
|
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
3602
3621
|
_saved_thread := C.PyEval_SaveThread()
|
|
3603
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
3622
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
3623
|
+
if __err != nil {
|
|
3624
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3625
|
+
}
|
|
3626
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
3627
|
+
|
|
3628
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3629
|
+
if __err != nil {
|
|
3630
|
+
estr := C.CString(__err.Error())
|
|
3631
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3632
|
+
C.free(unsafe.Pointer(estr))
|
|
3633
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3634
|
+
}
|
|
3635
|
+
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
// --- wrapping struct: whatsapp.Connect ---
|
|
3639
|
+
//
|
|
3640
|
+
//export whatsapp_Connect_CTor
|
|
3641
|
+
func whatsapp_Connect_CTor() CGoHandle {
|
|
3642
|
+
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
//export whatsapp_Connect_JID_Get
|
|
3646
|
+
func whatsapp_Connect_JID_Get(handle CGoHandle) *C.char {
|
|
3647
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3648
|
+
return C.CString(op.JID)
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
//export whatsapp_Connect_JID_Set
|
|
3652
|
+
func whatsapp_Connect_JID_Set(handle CGoHandle, val *C.char) {
|
|
3653
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3654
|
+
op.JID = C.GoString(val)
|
|
3655
|
+
}
|
|
3656
|
+
|
|
3657
|
+
//export whatsapp_Connect_Error_Get
|
|
3658
|
+
func whatsapp_Connect_Error_Get(handle CGoHandle) *C.char {
|
|
3659
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3660
|
+
return C.CString(op.Error)
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
//export whatsapp_Connect_Error_Set
|
|
3664
|
+
func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
3665
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3666
|
+
op.Error = C.GoString(val)
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
// --- wrapping struct: whatsapp.Gateway ---
|
|
3670
|
+
//
|
|
3671
|
+
//export whatsapp_Gateway_CTor
|
|
3672
|
+
func whatsapp_Gateway_CTor() CGoHandle {
|
|
3673
|
+
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3676
|
+
//export whatsapp_Gateway_DBPath_Get
|
|
3677
|
+
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
3678
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3679
|
+
return C.CString(op.DBPath)
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
//export whatsapp_Gateway_DBPath_Set
|
|
3683
|
+
func whatsapp_Gateway_DBPath_Set(handle CGoHandle, val *C.char) {
|
|
3684
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3685
|
+
op.DBPath = C.GoString(val)
|
|
3686
|
+
}
|
|
3687
|
+
|
|
3688
|
+
//export whatsapp_Gateway_Name_Get
|
|
3689
|
+
func whatsapp_Gateway_Name_Get(handle CGoHandle) *C.char {
|
|
3690
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3691
|
+
return C.CString(op.Name)
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
//export whatsapp_Gateway_Name_Set
|
|
3695
|
+
func whatsapp_Gateway_Name_Set(handle CGoHandle, val *C.char) {
|
|
3696
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3697
|
+
op.Name = C.GoString(val)
|
|
3698
|
+
}
|
|
3699
|
+
|
|
3700
|
+
//export whatsapp_Gateway_LogLevel_Get
|
|
3701
|
+
func whatsapp_Gateway_LogLevel_Get(handle CGoHandle) *C.char {
|
|
3702
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3703
|
+
return C.CString(op.LogLevel)
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
//export whatsapp_Gateway_LogLevel_Set
|
|
3707
|
+
func whatsapp_Gateway_LogLevel_Set(handle CGoHandle, val *C.char) {
|
|
3708
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3709
|
+
op.LogLevel = C.GoString(val)
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
//export whatsapp_Gateway_TempDir_Get
|
|
3713
|
+
func whatsapp_Gateway_TempDir_Get(handle CGoHandle) *C.char {
|
|
3714
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3715
|
+
return C.CString(op.TempDir)
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3718
|
+
//export whatsapp_Gateway_TempDir_Set
|
|
3719
|
+
func whatsapp_Gateway_TempDir_Set(handle CGoHandle, val *C.char) {
|
|
3720
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3721
|
+
op.TempDir = C.GoString(val)
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3724
|
+
//export whatsapp_Gateway_Init
|
|
3725
|
+
func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
3726
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3727
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3604
3728
|
if __err != nil {
|
|
3605
|
-
return
|
|
3729
|
+
return errorGoToPy(nil)
|
|
3606
3730
|
}
|
|
3607
|
-
|
|
3731
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
3608
3732
|
|
|
3609
3733
|
C.PyEval_RestoreThread(_saved_thread)
|
|
3610
3734
|
if __err != nil {
|
|
3611
3735
|
estr := C.CString(__err.Error())
|
|
3612
3736
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3613
|
-
|
|
3614
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3737
|
+
return estr
|
|
3615
3738
|
}
|
|
3616
|
-
return
|
|
3617
|
-
}
|
|
3618
|
-
|
|
3619
|
-
// --- wrapping struct: whatsapp.Avatar ---
|
|
3620
|
-
//
|
|
3621
|
-
//export whatsapp_Avatar_CTor
|
|
3622
|
-
func whatsapp_Avatar_CTor() CGoHandle {
|
|
3623
|
-
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
3739
|
+
return C.CString("")
|
|
3624
3740
|
}
|
|
3625
3741
|
|
|
3626
|
-
//export
|
|
3627
|
-
func
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3742
|
+
//export whatsapp_Gateway_NewSession
|
|
3743
|
+
func whatsapp_Gateway_NewSession(_handle CGoHandle, device CGoHandle) CGoHandle {
|
|
3744
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3745
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3746
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3747
|
+
if __err != nil {
|
|
3748
|
+
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
3749
|
+
}
|
|
3750
|
+
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
3631
3751
|
|
|
3632
|
-
//export whatsapp_Avatar_ID_Set
|
|
3633
|
-
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
3634
|
-
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3635
|
-
op.ID = C.GoString(val)
|
|
3636
3752
|
}
|
|
3637
3753
|
|
|
3638
|
-
//export
|
|
3639
|
-
func
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3754
|
+
//export whatsapp_Gateway_CleanupSession
|
|
3755
|
+
func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.char {
|
|
3756
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3757
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3758
|
+
if __err != nil {
|
|
3759
|
+
return errorGoToPy(nil)
|
|
3760
|
+
}
|
|
3761
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
3643
3762
|
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3763
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3764
|
+
if __err != nil {
|
|
3765
|
+
estr := C.CString(__err.Error())
|
|
3766
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3767
|
+
return estr
|
|
3768
|
+
}
|
|
3769
|
+
return C.CString("")
|
|
3648
3770
|
}
|
|
3649
3771
|
|
|
3650
|
-
// --- wrapping struct: whatsapp.
|
|
3772
|
+
// --- wrapping struct: whatsapp.Location ---
|
|
3651
3773
|
//
|
|
3652
|
-
//export
|
|
3653
|
-
func
|
|
3654
|
-
return CGoHandle(
|
|
3655
|
-
}
|
|
3656
|
-
|
|
3657
|
-
//export whatsapp_Call_State_Get
|
|
3658
|
-
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
3659
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3660
|
-
return C.longlong(int(op.State))
|
|
3661
|
-
}
|
|
3662
|
-
|
|
3663
|
-
//export whatsapp_Call_State_Set
|
|
3664
|
-
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
3665
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3666
|
-
op.State = whatsapp.CallState(int(val))
|
|
3667
|
-
}
|
|
3668
|
-
|
|
3669
|
-
//export whatsapp_Call_JID_Get
|
|
3670
|
-
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
3671
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3672
|
-
return C.CString(op.JID)
|
|
3673
|
-
}
|
|
3674
|
-
|
|
3675
|
-
//export whatsapp_Call_JID_Set
|
|
3676
|
-
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
3677
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3678
|
-
op.JID = C.GoString(val)
|
|
3774
|
+
//export whatsapp_Location_CTor
|
|
3775
|
+
func whatsapp_Location_CTor() CGoHandle {
|
|
3776
|
+
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
3679
3777
|
}
|
|
3680
3778
|
|
|
3681
|
-
//export
|
|
3682
|
-
func
|
|
3683
|
-
op :=
|
|
3684
|
-
return C.
|
|
3779
|
+
//export whatsapp_Location_Latitude_Get
|
|
3780
|
+
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
3781
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3782
|
+
return C.double(op.Latitude)
|
|
3685
3783
|
}
|
|
3686
3784
|
|
|
3687
|
-
//export
|
|
3688
|
-
func
|
|
3689
|
-
op :=
|
|
3690
|
-
op.
|
|
3785
|
+
//export whatsapp_Location_Latitude_Set
|
|
3786
|
+
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
3787
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3788
|
+
op.Latitude = float64(val)
|
|
3691
3789
|
}
|
|
3692
3790
|
|
|
3693
|
-
//
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
3791
|
+
//export whatsapp_Location_Longitude_Get
|
|
3792
|
+
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
3793
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3794
|
+
return C.double(op.Longitude)
|
|
3698
3795
|
}
|
|
3699
3796
|
|
|
3700
|
-
//export
|
|
3701
|
-
func
|
|
3702
|
-
op :=
|
|
3703
|
-
|
|
3797
|
+
//export whatsapp_Location_Longitude_Set
|
|
3798
|
+
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
3799
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3800
|
+
op.Longitude = float64(val)
|
|
3704
3801
|
}
|
|
3705
3802
|
|
|
3706
|
-
//export
|
|
3707
|
-
func
|
|
3708
|
-
op :=
|
|
3709
|
-
|
|
3803
|
+
//export whatsapp_Location_Accuracy_Get
|
|
3804
|
+
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
3805
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3806
|
+
return C.longlong(op.Accuracy)
|
|
3710
3807
|
}
|
|
3711
3808
|
|
|
3712
|
-
//export
|
|
3713
|
-
func
|
|
3714
|
-
op :=
|
|
3715
|
-
|
|
3809
|
+
//export whatsapp_Location_Accuracy_Set
|
|
3810
|
+
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
3811
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3812
|
+
op.Accuracy = int(val)
|
|
3716
3813
|
}
|
|
3717
3814
|
|
|
3718
|
-
//export
|
|
3719
|
-
func
|
|
3720
|
-
op :=
|
|
3721
|
-
op.
|
|
3815
|
+
//export whatsapp_Location_IsLive_Get
|
|
3816
|
+
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
3817
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3818
|
+
return boolGoToPy(op.IsLive)
|
|
3722
3819
|
}
|
|
3723
3820
|
|
|
3724
|
-
//export
|
|
3725
|
-
func
|
|
3726
|
-
op :=
|
|
3727
|
-
|
|
3821
|
+
//export whatsapp_Location_IsLive_Set
|
|
3822
|
+
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
3823
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3824
|
+
op.IsLive = boolPyToGo(val)
|
|
3728
3825
|
}
|
|
3729
3826
|
|
|
3730
|
-
//export
|
|
3731
|
-
func
|
|
3732
|
-
op :=
|
|
3733
|
-
|
|
3827
|
+
//export whatsapp_Location_Name_Get
|
|
3828
|
+
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
3829
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3830
|
+
return C.CString(op.Name)
|
|
3734
3831
|
}
|
|
3735
3832
|
|
|
3736
|
-
//
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
3833
|
+
//export whatsapp_Location_Name_Set
|
|
3834
|
+
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
3835
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3836
|
+
op.Name = C.GoString(val)
|
|
3741
3837
|
}
|
|
3742
3838
|
|
|
3743
|
-
//export
|
|
3744
|
-
func
|
|
3745
|
-
op :=
|
|
3746
|
-
return C.
|
|
3839
|
+
//export whatsapp_Location_Address_Get
|
|
3840
|
+
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
3841
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3842
|
+
return C.CString(op.Address)
|
|
3747
3843
|
}
|
|
3748
3844
|
|
|
3749
|
-
//export
|
|
3750
|
-
func
|
|
3751
|
-
op :=
|
|
3752
|
-
op.
|
|
3845
|
+
//export whatsapp_Location_Address_Set
|
|
3846
|
+
func whatsapp_Location_Address_Set(handle CGoHandle, val *C.char) {
|
|
3847
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3848
|
+
op.Address = C.GoString(val)
|
|
3753
3849
|
}
|
|
3754
3850
|
|
|
3755
|
-
//export
|
|
3756
|
-
func
|
|
3757
|
-
op :=
|
|
3851
|
+
//export whatsapp_Location_URL_Get
|
|
3852
|
+
func whatsapp_Location_URL_Get(handle CGoHandle) *C.char {
|
|
3853
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3758
3854
|
return C.CString(op.URL)
|
|
3759
3855
|
}
|
|
3760
3856
|
|
|
3761
|
-
//export
|
|
3762
|
-
func
|
|
3763
|
-
op :=
|
|
3857
|
+
//export whatsapp_Location_URL_Set
|
|
3858
|
+
func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
3859
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3764
3860
|
op.URL = C.GoString(val)
|
|
3765
3861
|
}
|
|
3766
3862
|
|
|
3767
|
-
//
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3863
|
+
// --- wrapping struct: whatsapp.Presence ---
|
|
3864
|
+
//
|
|
3865
|
+
//export whatsapp_Presence_CTor
|
|
3866
|
+
func whatsapp_Presence_CTor() CGoHandle {
|
|
3867
|
+
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
3771
3868
|
}
|
|
3772
3869
|
|
|
3773
|
-
//export
|
|
3774
|
-
func
|
|
3775
|
-
op :=
|
|
3776
|
-
|
|
3870
|
+
//export whatsapp_Presence_JID_Get
|
|
3871
|
+
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
3872
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3873
|
+
return C.CString(op.JID)
|
|
3777
3874
|
}
|
|
3778
3875
|
|
|
3779
|
-
//export
|
|
3780
|
-
func
|
|
3781
|
-
op :=
|
|
3782
|
-
|
|
3876
|
+
//export whatsapp_Presence_JID_Set
|
|
3877
|
+
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
3878
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3879
|
+
op.JID = C.GoString(val)
|
|
3783
3880
|
}
|
|
3784
3881
|
|
|
3785
|
-
//export
|
|
3786
|
-
func
|
|
3787
|
-
op :=
|
|
3788
|
-
|
|
3882
|
+
//export whatsapp_Presence_Kind_Get
|
|
3883
|
+
func whatsapp_Presence_Kind_Get(handle CGoHandle) C.longlong {
|
|
3884
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3885
|
+
return C.longlong(int(op.Kind))
|
|
3789
3886
|
}
|
|
3790
3887
|
|
|
3791
|
-
//export
|
|
3792
|
-
func
|
|
3793
|
-
op :=
|
|
3794
|
-
|
|
3888
|
+
//export whatsapp_Presence_Kind_Set
|
|
3889
|
+
func whatsapp_Presence_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3890
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3891
|
+
op.Kind = whatsapp.PresenceKind(int(val))
|
|
3795
3892
|
}
|
|
3796
3893
|
|
|
3797
|
-
//export
|
|
3798
|
-
func
|
|
3799
|
-
op :=
|
|
3800
|
-
op.
|
|
3894
|
+
//export whatsapp_Presence_LastSeen_Get
|
|
3895
|
+
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
3896
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3897
|
+
return C.longlong(op.LastSeen)
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
//export whatsapp_Presence_LastSeen_Set
|
|
3901
|
+
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
3902
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3903
|
+
op.LastSeen = int64(val)
|
|
3801
3904
|
}
|
|
3802
3905
|
|
|
3803
3906
|
// ---- Slices ---
|
|
@@ -3815,3 +3918,11 @@ func whatsapp_NewGateway() CGoHandle {
|
|
|
3815
3918
|
}
|
|
3816
3919
|
|
|
3817
3920
|
// ---- Functions ---
|
|
3921
|
+
|
|
3922
|
+
//export whatsapp_IsAnonymousJID
|
|
3923
|
+
func whatsapp_IsAnonymousJID(id *C.char) C.char {
|
|
3924
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3925
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3926
|
+
return boolGoToPy(whatsapp.IsAnonymousJID(C.GoString(id)))
|
|
3927
|
+
|
|
3928
|
+
}
|