slidge-whatsapp 0.2.5__cp311-cp311-manylinux_2_36_aarch64.whl → 0.3.0b0__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 +13 -3
- slidge_whatsapp/event.go +135 -60
- slidge_whatsapp/gateway.go +16 -68
- slidge_whatsapp/gateway.py +4 -5
- slidge_whatsapp/generated/_whatsapp.cpython-311-aarch64-linux-gnu.h +198 -181
- slidge_whatsapp/generated/_whatsapp.cpython-311-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +166 -152
- slidge_whatsapp/generated/whatsapp.c +1804 -1532
- slidge_whatsapp/generated/whatsapp.go +1150 -1039
- slidge_whatsapp/generated/whatsapp.py +1243 -1118
- slidge_whatsapp/generated/whatsapp_go.h +198 -181
- 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 +105 -81
- 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.0b0.dist-info}/METADATA +2 -2
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/RECORD +456 -263
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.3.0b0.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.0b0.dist-info}/LICENSE +0 -0
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/entry_points.txt +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,69 +2139,119 @@ func handleFromPtr_whatsapp_Session(p interface{}) CGoHandle {
|
|
|
2115
2139
|
|
|
2116
2140
|
// ---- Structs ---
|
|
2117
2141
|
|
|
2118
|
-
// --- wrapping struct: whatsapp.
|
|
2142
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
2119
2143
|
//
|
|
2120
|
-
//export
|
|
2121
|
-
func
|
|
2122
|
-
return CGoHandle(
|
|
2144
|
+
//export whatsapp_GroupParticipant_CTor
|
|
2145
|
+
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
2146
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
2123
2147
|
}
|
|
2124
2148
|
|
|
2125
|
-
//export
|
|
2126
|
-
func
|
|
2127
|
-
op :=
|
|
2128
|
-
return C.CString(op.
|
|
2149
|
+
//export whatsapp_GroupParticipant_JID_Get
|
|
2150
|
+
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
2151
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2152
|
+
return C.CString(op.JID)
|
|
2129
2153
|
}
|
|
2130
2154
|
|
|
2131
|
-
//export
|
|
2132
|
-
func
|
|
2133
|
-
op :=
|
|
2134
|
-
op.
|
|
2155
|
+
//export whatsapp_GroupParticipant_JID_Set
|
|
2156
|
+
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
2157
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2158
|
+
op.JID = C.GoString(val)
|
|
2135
2159
|
}
|
|
2136
2160
|
|
|
2137
|
-
//export
|
|
2138
|
-
func
|
|
2139
|
-
op :=
|
|
2140
|
-
return C.CString(op.
|
|
2161
|
+
//export whatsapp_GroupParticipant_Nickname_Get
|
|
2162
|
+
func whatsapp_GroupParticipant_Nickname_Get(handle CGoHandle) *C.char {
|
|
2163
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2164
|
+
return C.CString(op.Nickname)
|
|
2141
2165
|
}
|
|
2142
2166
|
|
|
2143
|
-
//export
|
|
2144
|
-
func
|
|
2145
|
-
op :=
|
|
2146
|
-
op.
|
|
2167
|
+
//export whatsapp_GroupParticipant_Nickname_Set
|
|
2168
|
+
func whatsapp_GroupParticipant_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
2169
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2170
|
+
op.Nickname = C.GoString(val)
|
|
2147
2171
|
}
|
|
2148
2172
|
|
|
2149
|
-
//export
|
|
2150
|
-
func
|
|
2151
|
-
op :=
|
|
2152
|
-
return C.
|
|
2173
|
+
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
2174
|
+
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
2175
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2176
|
+
return C.longlong(int(op.Affiliation))
|
|
2153
2177
|
}
|
|
2154
2178
|
|
|
2155
|
-
//export
|
|
2156
|
-
func
|
|
2157
|
-
op :=
|
|
2158
|
-
op.
|
|
2179
|
+
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
2180
|
+
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
2181
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2182
|
+
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
2159
2183
|
}
|
|
2160
2184
|
|
|
2161
|
-
//export
|
|
2162
|
-
func
|
|
2163
|
-
op :=
|
|
2164
|
-
return C.
|
|
2185
|
+
//export whatsapp_GroupParticipant_Action_Get
|
|
2186
|
+
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
2187
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2188
|
+
return C.longlong(int(op.Action))
|
|
2165
2189
|
}
|
|
2166
2190
|
|
|
2167
|
-
//export
|
|
2168
|
-
func
|
|
2169
|
-
op :=
|
|
2170
|
-
op.
|
|
2191
|
+
//export whatsapp_GroupParticipant_Action_Set
|
|
2192
|
+
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
2193
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2194
|
+
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
2171
2195
|
}
|
|
2172
2196
|
|
|
2173
|
-
//
|
|
2174
|
-
|
|
2197
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
2198
|
+
//
|
|
2199
|
+
//export whatsapp_GroupSubject_CTor
|
|
2200
|
+
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
2201
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
//export whatsapp_GroupSubject_Subject_Get
|
|
2205
|
+
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
2206
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2207
|
+
return C.CString(op.Subject)
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
//export whatsapp_GroupSubject_Subject_Set
|
|
2211
|
+
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
2212
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2213
|
+
op.Subject = C.GoString(val)
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
//export whatsapp_GroupSubject_SetAt_Get
|
|
2217
|
+
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
2218
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2219
|
+
return C.longlong(op.SetAt)
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
//export whatsapp_GroupSubject_SetAt_Set
|
|
2223
|
+
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
2224
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2225
|
+
op.SetAt = int64(val)
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
//export whatsapp_GroupSubject_SetBy_Get
|
|
2229
|
+
func whatsapp_GroupSubject_SetBy_Get(handle CGoHandle) *C.char {
|
|
2230
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2231
|
+
return C.CString(op.SetBy)
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
//export whatsapp_GroupSubject_SetBy_Set
|
|
2235
|
+
func whatsapp_GroupSubject_SetBy_Set(handle CGoHandle, val *C.char) {
|
|
2236
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2237
|
+
op.SetBy = C.GoString(val)
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
// --- wrapping struct: whatsapp.Session ---
|
|
2241
|
+
//
|
|
2242
|
+
//export whatsapp_Session_CTor
|
|
2243
|
+
func whatsapp_Session_CTor() CGoHandle {
|
|
2244
|
+
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
//export whatsapp_Session_Login
|
|
2248
|
+
func whatsapp_Session_Login(_handle CGoHandle) *C.char {
|
|
2175
2249
|
_saved_thread := C.PyEval_SaveThread()
|
|
2176
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
2250
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2177
2251
|
if __err != nil {
|
|
2178
2252
|
return errorGoToPy(nil)
|
|
2179
2253
|
}
|
|
2180
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
2254
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
2181
2255
|
|
|
2182
2256
|
C.PyEval_RestoreThread(_saved_thread)
|
|
2183
2257
|
if __err != nil {
|
|
@@ -2188,26 +2262,32 @@ func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
|
2188
2262
|
return C.CString("")
|
|
2189
2263
|
}
|
|
2190
2264
|
|
|
2191
|
-
//export
|
|
2192
|
-
func
|
|
2265
|
+
//export whatsapp_Session_Logout
|
|
2266
|
+
func whatsapp_Session_Logout(_handle CGoHandle) *C.char {
|
|
2193
2267
|
_saved_thread := C.PyEval_SaveThread()
|
|
2194
|
-
|
|
2195
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2268
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2196
2269
|
if __err != nil {
|
|
2197
|
-
return
|
|
2270
|
+
return errorGoToPy(nil)
|
|
2198
2271
|
}
|
|
2199
|
-
|
|
2272
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
2200
2273
|
|
|
2274
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2275
|
+
if __err != nil {
|
|
2276
|
+
estr := C.CString(__err.Error())
|
|
2277
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2278
|
+
return estr
|
|
2279
|
+
}
|
|
2280
|
+
return C.CString("")
|
|
2201
2281
|
}
|
|
2202
2282
|
|
|
2203
|
-
//export
|
|
2204
|
-
func
|
|
2283
|
+
//export whatsapp_Session_Disconnect
|
|
2284
|
+
func whatsapp_Session_Disconnect(_handle CGoHandle) *C.char {
|
|
2205
2285
|
_saved_thread := C.PyEval_SaveThread()
|
|
2206
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
2286
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2207
2287
|
if __err != nil {
|
|
2208
2288
|
return errorGoToPy(nil)
|
|
2209
2289
|
}
|
|
2210
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
2290
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
2211
2291
|
|
|
2212
2292
|
C.PyEval_RestoreThread(_saved_thread)
|
|
2213
2293
|
if __err != nil {
|
|
@@ -2218,387 +2298,500 @@ func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.cha
|
|
|
2218
2298
|
return C.CString("")
|
|
2219
2299
|
}
|
|
2220
2300
|
|
|
2221
|
-
//
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
2230
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2231
|
-
return C.longlong(int(op.Kind))
|
|
2232
|
-
}
|
|
2301
|
+
//export whatsapp_Session_PairPhone
|
|
2302
|
+
func whatsapp_Session_PairPhone(_handle CGoHandle, phone *C.char) *C.char {
|
|
2303
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2304
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2305
|
+
if __err != nil {
|
|
2306
|
+
return C.CString("")
|
|
2307
|
+
}
|
|
2308
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
2233
2309
|
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2310
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2311
|
+
if __err != nil {
|
|
2312
|
+
estr := C.CString(__err.Error())
|
|
2313
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2314
|
+
C.free(unsafe.Pointer(estr))
|
|
2315
|
+
return C.CString("")
|
|
2316
|
+
}
|
|
2317
|
+
return C.CString(cret)
|
|
2238
2318
|
}
|
|
2239
2319
|
|
|
2240
|
-
//export
|
|
2241
|
-
func
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2320
|
+
//export whatsapp_Session_SendMessage
|
|
2321
|
+
func whatsapp_Session_SendMessage(_handle CGoHandle, message CGoHandle) *C.char {
|
|
2322
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2323
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2324
|
+
if __err != nil {
|
|
2325
|
+
return errorGoToPy(nil)
|
|
2326
|
+
}
|
|
2327
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
2245
2328
|
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2329
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2330
|
+
if __err != nil {
|
|
2331
|
+
estr := C.CString(__err.Error())
|
|
2332
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2333
|
+
return estr
|
|
2334
|
+
}
|
|
2335
|
+
return C.CString("")
|
|
2250
2336
|
}
|
|
2251
2337
|
|
|
2252
|
-
//export
|
|
2253
|
-
func
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2338
|
+
//export whatsapp_Session_GenerateMessageID
|
|
2339
|
+
func whatsapp_Session_GenerateMessageID(_handle CGoHandle) *C.char {
|
|
2340
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2341
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2342
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2343
|
+
if __err != nil {
|
|
2344
|
+
return C.CString("")
|
|
2345
|
+
}
|
|
2346
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
2257
2347
|
|
|
2258
|
-
//export whatsapp_Message_JID_Set
|
|
2259
|
-
func whatsapp_Message_JID_Set(handle CGoHandle, val *C.char) {
|
|
2260
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2261
|
-
op.JID = C.GoString(val)
|
|
2262
2348
|
}
|
|
2263
2349
|
|
|
2264
|
-
//export
|
|
2265
|
-
func
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2350
|
+
//export whatsapp_Session_SendChatState
|
|
2351
|
+
func whatsapp_Session_SendChatState(_handle CGoHandle, state CGoHandle) *C.char {
|
|
2352
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2353
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2354
|
+
if __err != nil {
|
|
2355
|
+
return errorGoToPy(nil)
|
|
2356
|
+
}
|
|
2357
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
2269
2358
|
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2359
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2360
|
+
if __err != nil {
|
|
2361
|
+
estr := C.CString(__err.Error())
|
|
2362
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2363
|
+
return estr
|
|
2364
|
+
}
|
|
2365
|
+
return C.CString("")
|
|
2274
2366
|
}
|
|
2275
2367
|
|
|
2276
|
-
//export
|
|
2277
|
-
func
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2285
|
-
op.OriginJID = C.GoString(val)
|
|
2286
|
-
}
|
|
2287
|
-
|
|
2288
|
-
//export whatsapp_Message_Body_Get
|
|
2289
|
-
func whatsapp_Message_Body_Get(handle CGoHandle) *C.char {
|
|
2290
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2291
|
-
return C.CString(op.Body)
|
|
2292
|
-
}
|
|
2293
|
-
|
|
2294
|
-
//export whatsapp_Message_Body_Set
|
|
2295
|
-
func whatsapp_Message_Body_Set(handle CGoHandle, val *C.char) {
|
|
2296
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2297
|
-
op.Body = C.GoString(val)
|
|
2298
|
-
}
|
|
2368
|
+
//export whatsapp_Session_SendReceipt
|
|
2369
|
+
func whatsapp_Session_SendReceipt(_handle CGoHandle, receipt CGoHandle) *C.char {
|
|
2370
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2371
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2372
|
+
if __err != nil {
|
|
2373
|
+
return errorGoToPy(nil)
|
|
2374
|
+
}
|
|
2375
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
2299
2376
|
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2377
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2378
|
+
if __err != nil {
|
|
2379
|
+
estr := C.CString(__err.Error())
|
|
2380
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2381
|
+
return estr
|
|
2382
|
+
}
|
|
2383
|
+
return C.CString("")
|
|
2304
2384
|
}
|
|
2305
2385
|
|
|
2306
|
-
//export
|
|
2307
|
-
func
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2386
|
+
//export whatsapp_Session_SendPresence
|
|
2387
|
+
func whatsapp_Session_SendPresence(_handle CGoHandle, presence C.longlong, statusMessage *C.char) *C.char {
|
|
2388
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2389
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2390
|
+
if __err != nil {
|
|
2391
|
+
return errorGoToPy(nil)
|
|
2392
|
+
}
|
|
2393
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
2311
2394
|
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2395
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2396
|
+
if __err != nil {
|
|
2397
|
+
estr := C.CString(__err.Error())
|
|
2398
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2399
|
+
return estr
|
|
2400
|
+
}
|
|
2401
|
+
return C.CString("")
|
|
2316
2402
|
}
|
|
2317
2403
|
|
|
2318
|
-
//export
|
|
2319
|
-
func
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2404
|
+
//export whatsapp_Session_GetContacts
|
|
2405
|
+
func whatsapp_Session_GetContacts(_handle CGoHandle, refresh C.char) CGoHandle {
|
|
2406
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2407
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2408
|
+
if __err != nil {
|
|
2409
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2410
|
+
}
|
|
2411
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
2323
2412
|
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2413
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2414
|
+
if __err != nil {
|
|
2415
|
+
estr := C.CString(__err.Error())
|
|
2416
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2417
|
+
C.free(unsafe.Pointer(estr))
|
|
2418
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2419
|
+
}
|
|
2420
|
+
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
2328
2421
|
}
|
|
2329
2422
|
|
|
2330
|
-
//export
|
|
2331
|
-
func
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2423
|
+
//export whatsapp_Session_GetGroups
|
|
2424
|
+
func whatsapp_Session_GetGroups(_handle CGoHandle) CGoHandle {
|
|
2425
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2426
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2427
|
+
if __err != nil {
|
|
2428
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2429
|
+
}
|
|
2430
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
2335
2431
|
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2432
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2433
|
+
if __err != nil {
|
|
2434
|
+
estr := C.CString(__err.Error())
|
|
2435
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2436
|
+
C.free(unsafe.Pointer(estr))
|
|
2437
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2438
|
+
}
|
|
2439
|
+
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
2340
2440
|
}
|
|
2341
2441
|
|
|
2342
|
-
//export
|
|
2343
|
-
func
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2442
|
+
//export whatsapp_Session_CreateGroup
|
|
2443
|
+
func whatsapp_Session_CreateGroup(_handle CGoHandle, name *C.char, participants CGoHandle) CGoHandle {
|
|
2444
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2445
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2446
|
+
if __err != nil {
|
|
2447
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2448
|
+
}
|
|
2449
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
2347
2450
|
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2451
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2452
|
+
if __err != nil {
|
|
2453
|
+
estr := C.CString(__err.Error())
|
|
2454
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2455
|
+
C.free(unsafe.Pointer(estr))
|
|
2456
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2457
|
+
}
|
|
2458
|
+
return handleFromPtr_whatsapp_Group(&cret)
|
|
2352
2459
|
}
|
|
2353
2460
|
|
|
2354
|
-
//export
|
|
2355
|
-
func
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2461
|
+
//export whatsapp_Session_LeaveGroup
|
|
2462
|
+
func whatsapp_Session_LeaveGroup(_handle CGoHandle, resourceID *C.char) *C.char {
|
|
2463
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2464
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2465
|
+
if __err != nil {
|
|
2466
|
+
return errorGoToPy(nil)
|
|
2467
|
+
}
|
|
2468
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
2359
2469
|
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2470
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2471
|
+
if __err != nil {
|
|
2472
|
+
estr := C.CString(__err.Error())
|
|
2473
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2474
|
+
return estr
|
|
2475
|
+
}
|
|
2476
|
+
return C.CString("")
|
|
2364
2477
|
}
|
|
2365
2478
|
|
|
2366
|
-
//export
|
|
2367
|
-
func
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2479
|
+
//export whatsapp_Session_GetAvatar
|
|
2480
|
+
func whatsapp_Session_GetAvatar(_handle CGoHandle, resourceID *C.char, avatarID *C.char) CGoHandle {
|
|
2481
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2482
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2483
|
+
if __err != nil {
|
|
2484
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2485
|
+
}
|
|
2486
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
2371
2487
|
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2488
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2489
|
+
if __err != nil {
|
|
2490
|
+
estr := C.CString(__err.Error())
|
|
2491
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2492
|
+
C.free(unsafe.Pointer(estr))
|
|
2493
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2494
|
+
}
|
|
2495
|
+
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
2376
2496
|
}
|
|
2377
2497
|
|
|
2378
|
-
//export
|
|
2379
|
-
func
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2498
|
+
//export whatsapp_Session_SetAvatar
|
|
2499
|
+
func whatsapp_Session_SetAvatar(_handle CGoHandle, resourceID *C.char, avatar CGoHandle) *C.char {
|
|
2500
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2501
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2502
|
+
if __err != nil {
|
|
2503
|
+
return C.CString("")
|
|
2504
|
+
}
|
|
2505
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
2383
2506
|
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2507
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2508
|
+
if __err != nil {
|
|
2509
|
+
estr := C.CString(__err.Error())
|
|
2510
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2511
|
+
C.free(unsafe.Pointer(estr))
|
|
2512
|
+
return C.CString("")
|
|
2513
|
+
}
|
|
2514
|
+
return C.CString(cret)
|
|
2388
2515
|
}
|
|
2389
2516
|
|
|
2390
|
-
//export
|
|
2391
|
-
func
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2517
|
+
//export whatsapp_Session_SetGroupName
|
|
2518
|
+
func whatsapp_Session_SetGroupName(_handle CGoHandle, resourceID *C.char, name *C.char) *C.char {
|
|
2519
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2520
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2521
|
+
if __err != nil {
|
|
2522
|
+
return errorGoToPy(nil)
|
|
2523
|
+
}
|
|
2524
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
2395
2525
|
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2526
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2527
|
+
if __err != nil {
|
|
2528
|
+
estr := C.CString(__err.Error())
|
|
2529
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2530
|
+
return estr
|
|
2531
|
+
}
|
|
2532
|
+
return C.CString("")
|
|
2400
2533
|
}
|
|
2401
2534
|
|
|
2402
|
-
//export
|
|
2403
|
-
func
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2535
|
+
//export whatsapp_Session_SetGroupTopic
|
|
2536
|
+
func whatsapp_Session_SetGroupTopic(_handle CGoHandle, resourceID *C.char, topic *C.char) *C.char {
|
|
2537
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2538
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2539
|
+
if __err != nil {
|
|
2540
|
+
return errorGoToPy(nil)
|
|
2541
|
+
}
|
|
2542
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
2407
2543
|
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2544
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2545
|
+
if __err != nil {
|
|
2546
|
+
estr := C.CString(__err.Error())
|
|
2547
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2548
|
+
return estr
|
|
2549
|
+
}
|
|
2550
|
+
return C.CString("")
|
|
2412
2551
|
}
|
|
2413
2552
|
|
|
2414
|
-
//export
|
|
2415
|
-
func
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2553
|
+
//export whatsapp_Session_UpdateGroupParticipants
|
|
2554
|
+
func whatsapp_Session_UpdateGroupParticipants(_handle CGoHandle, resourceID *C.char, participants CGoHandle) CGoHandle {
|
|
2555
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2556
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2557
|
+
if __err != nil {
|
|
2558
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2559
|
+
}
|
|
2560
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
2419
2561
|
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2562
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2563
|
+
if __err != nil {
|
|
2564
|
+
estr := C.CString(__err.Error())
|
|
2565
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2566
|
+
C.free(unsafe.Pointer(estr))
|
|
2567
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2568
|
+
}
|
|
2569
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
2424
2570
|
}
|
|
2425
2571
|
|
|
2426
|
-
//export
|
|
2427
|
-
func
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2572
|
+
//export whatsapp_Session_FindContact
|
|
2573
|
+
func whatsapp_Session_FindContact(_handle CGoHandle, phone *C.char) CGoHandle {
|
|
2574
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2575
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2576
|
+
if __err != nil {
|
|
2577
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2578
|
+
}
|
|
2579
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
2431
2580
|
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2581
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2582
|
+
if __err != nil {
|
|
2583
|
+
estr := C.CString(__err.Error())
|
|
2584
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2585
|
+
C.free(unsafe.Pointer(estr))
|
|
2586
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2587
|
+
}
|
|
2588
|
+
return handleFromPtr_whatsapp_Contact(&cret)
|
|
2436
2589
|
}
|
|
2437
2590
|
|
|
2438
|
-
//export
|
|
2439
|
-
func
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2591
|
+
//export whatsapp_Session_RequestMessageHistory
|
|
2592
|
+
func whatsapp_Session_RequestMessageHistory(_handle CGoHandle, resourceID *C.char, oldestMessage CGoHandle) *C.char {
|
|
2593
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2594
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2595
|
+
if __err != nil {
|
|
2596
|
+
return errorGoToPy(nil)
|
|
2597
|
+
}
|
|
2598
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
2443
2599
|
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2600
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2601
|
+
if __err != nil {
|
|
2602
|
+
estr := C.CString(__err.Error())
|
|
2603
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2604
|
+
return estr
|
|
2605
|
+
}
|
|
2606
|
+
return C.CString("")
|
|
2448
2607
|
}
|
|
2449
2608
|
|
|
2450
|
-
//export
|
|
2451
|
-
func
|
|
2452
|
-
|
|
2453
|
-
|
|
2609
|
+
//export whatsapp_Session_SetEventHandler
|
|
2610
|
+
func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.char) {
|
|
2611
|
+
_fun_arg := h
|
|
2612
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2613
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2614
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2615
|
+
if __err != nil {
|
|
2616
|
+
return
|
|
2617
|
+
}
|
|
2618
|
+
if boolPyToGo(goRun) {
|
|
2619
|
+
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2620
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2621
|
+
return
|
|
2622
|
+
}
|
|
2623
|
+
_gstate := C.PyGILState_Ensure()
|
|
2624
|
+
_fcargs := C.PyTuple_New(2)
|
|
2625
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2626
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2627
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2628
|
+
C.gopy_decref(_fcargs)
|
|
2629
|
+
C.gopy_err_handle()
|
|
2630
|
+
C.PyGILState_Release(_gstate)
|
|
2631
|
+
})
|
|
2632
|
+
} else {
|
|
2633
|
+
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2634
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2635
|
+
return
|
|
2636
|
+
}
|
|
2637
|
+
_gstate := C.PyGILState_Ensure()
|
|
2638
|
+
_fcargs := C.PyTuple_New(2)
|
|
2639
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2640
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2641
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2642
|
+
C.gopy_decref(_fcargs)
|
|
2643
|
+
C.gopy_err_handle()
|
|
2644
|
+
C.PyGILState_Release(_gstate)
|
|
2645
|
+
})
|
|
2646
|
+
}
|
|
2454
2647
|
}
|
|
2455
2648
|
|
|
2456
|
-
// --- wrapping struct: whatsapp.
|
|
2649
|
+
// --- wrapping struct: whatsapp.Attachment ---
|
|
2457
2650
|
//
|
|
2458
|
-
//export
|
|
2459
|
-
func
|
|
2460
|
-
return CGoHandle(
|
|
2461
|
-
}
|
|
2462
|
-
|
|
2463
|
-
//export whatsapp_Poll_Title_Get
|
|
2464
|
-
func whatsapp_Poll_Title_Get(handle CGoHandle) *C.char {
|
|
2465
|
-
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
2466
|
-
return C.CString(op.Title)
|
|
2651
|
+
//export whatsapp_Attachment_CTor
|
|
2652
|
+
func whatsapp_Attachment_CTor() CGoHandle {
|
|
2653
|
+
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
2467
2654
|
}
|
|
2468
2655
|
|
|
2469
|
-
//export
|
|
2470
|
-
func
|
|
2471
|
-
op :=
|
|
2472
|
-
|
|
2656
|
+
//export whatsapp_Attachment_MIME_Get
|
|
2657
|
+
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
2658
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2659
|
+
return C.CString(op.MIME)
|
|
2473
2660
|
}
|
|
2474
2661
|
|
|
2475
|
-
//export
|
|
2476
|
-
func
|
|
2477
|
-
op :=
|
|
2478
|
-
|
|
2662
|
+
//export whatsapp_Attachment_MIME_Set
|
|
2663
|
+
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
2664
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2665
|
+
op.MIME = C.GoString(val)
|
|
2479
2666
|
}
|
|
2480
2667
|
|
|
2481
|
-
//export
|
|
2482
|
-
func
|
|
2483
|
-
op :=
|
|
2484
|
-
op.
|
|
2668
|
+
//export whatsapp_Attachment_Filename_Get
|
|
2669
|
+
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
2670
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2671
|
+
return C.CString(op.Filename)
|
|
2485
2672
|
}
|
|
2486
2673
|
|
|
2487
|
-
//
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
2674
|
+
//export whatsapp_Attachment_Filename_Set
|
|
2675
|
+
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
2676
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2677
|
+
op.Filename = C.GoString(val)
|
|
2492
2678
|
}
|
|
2493
2679
|
|
|
2494
|
-
//export
|
|
2495
|
-
func
|
|
2496
|
-
op :=
|
|
2497
|
-
return C.CString(op.
|
|
2680
|
+
//export whatsapp_Attachment_Caption_Get
|
|
2681
|
+
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
2682
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2683
|
+
return C.CString(op.Caption)
|
|
2498
2684
|
}
|
|
2499
2685
|
|
|
2500
|
-
//export
|
|
2501
|
-
func
|
|
2502
|
-
op :=
|
|
2503
|
-
op.
|
|
2686
|
+
//export whatsapp_Attachment_Caption_Set
|
|
2687
|
+
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
2688
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2689
|
+
op.Caption = C.GoString(val)
|
|
2504
2690
|
}
|
|
2505
2691
|
|
|
2506
|
-
//export
|
|
2507
|
-
func
|
|
2508
|
-
op :=
|
|
2509
|
-
return
|
|
2692
|
+
//export whatsapp_Attachment_Data_Get
|
|
2693
|
+
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
2694
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2695
|
+
return handleFromPtr_Slice_byte(&op.Data)
|
|
2510
2696
|
}
|
|
2511
2697
|
|
|
2512
|
-
//export
|
|
2513
|
-
func
|
|
2514
|
-
op :=
|
|
2515
|
-
op.
|
|
2698
|
+
//export whatsapp_Attachment_Data_Set
|
|
2699
|
+
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
2700
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2701
|
+
op.Data = deptrFromHandle_Slice_byte(val)
|
|
2516
2702
|
}
|
|
2517
2703
|
|
|
2518
|
-
//export
|
|
2519
|
-
func
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2704
|
+
//export whatsapp_Attachment_GetSpec
|
|
2705
|
+
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
2706
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2707
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
2708
|
+
if __err != nil {
|
|
2709
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2710
|
+
}
|
|
2711
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
2523
2712
|
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2713
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2714
|
+
if __err != nil {
|
|
2715
|
+
estr := C.CString(__err.Error())
|
|
2716
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2717
|
+
C.free(unsafe.Pointer(estr))
|
|
2718
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2719
|
+
}
|
|
2720
|
+
return handleFromPtr_Ptr_media_Spec(cret)
|
|
2528
2721
|
}
|
|
2529
2722
|
|
|
2530
|
-
// --- wrapping struct: whatsapp.
|
|
2723
|
+
// --- wrapping struct: whatsapp.Call ---
|
|
2531
2724
|
//
|
|
2532
|
-
//export
|
|
2533
|
-
func
|
|
2534
|
-
return CGoHandle(
|
|
2725
|
+
//export whatsapp_Call_CTor
|
|
2726
|
+
func whatsapp_Call_CTor() CGoHandle {
|
|
2727
|
+
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
2535
2728
|
}
|
|
2536
2729
|
|
|
2537
|
-
//export
|
|
2538
|
-
func
|
|
2539
|
-
op :=
|
|
2540
|
-
return C.longlong(int(op.
|
|
2730
|
+
//export whatsapp_Call_State_Get
|
|
2731
|
+
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
2732
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2733
|
+
return C.longlong(int(op.State))
|
|
2541
2734
|
}
|
|
2542
2735
|
|
|
2543
|
-
//export
|
|
2544
|
-
func
|
|
2545
|
-
op :=
|
|
2546
|
-
op.
|
|
2736
|
+
//export whatsapp_Call_State_Set
|
|
2737
|
+
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
2738
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2739
|
+
op.State = whatsapp.CallState(int(val))
|
|
2547
2740
|
}
|
|
2548
2741
|
|
|
2549
|
-
//export
|
|
2550
|
-
func
|
|
2551
|
-
op :=
|
|
2742
|
+
//export whatsapp_Call_JID_Get
|
|
2743
|
+
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
2744
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2552
2745
|
return C.CString(op.JID)
|
|
2553
2746
|
}
|
|
2554
2747
|
|
|
2555
|
-
//export
|
|
2556
|
-
func
|
|
2557
|
-
op :=
|
|
2748
|
+
//export whatsapp_Call_JID_Set
|
|
2749
|
+
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
2750
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2558
2751
|
op.JID = C.GoString(val)
|
|
2559
2752
|
}
|
|
2560
2753
|
|
|
2561
|
-
//export
|
|
2562
|
-
func
|
|
2563
|
-
op :=
|
|
2564
|
-
return C.
|
|
2754
|
+
//export whatsapp_Call_Timestamp_Get
|
|
2755
|
+
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2756
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2757
|
+
return C.longlong(op.Timestamp)
|
|
2565
2758
|
}
|
|
2566
2759
|
|
|
2567
|
-
//export
|
|
2568
|
-
func
|
|
2569
|
-
op :=
|
|
2570
|
-
op.
|
|
2760
|
+
//export whatsapp_Call_Timestamp_Set
|
|
2761
|
+
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2762
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2763
|
+
op.Timestamp = int64(val)
|
|
2571
2764
|
}
|
|
2572
2765
|
|
|
2573
|
-
// --- wrapping struct: whatsapp.
|
|
2766
|
+
// --- wrapping struct: whatsapp.Avatar ---
|
|
2574
2767
|
//
|
|
2575
|
-
//export
|
|
2576
|
-
func
|
|
2577
|
-
return CGoHandle(
|
|
2768
|
+
//export whatsapp_Avatar_CTor
|
|
2769
|
+
func whatsapp_Avatar_CTor() CGoHandle {
|
|
2770
|
+
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
2578
2771
|
}
|
|
2579
2772
|
|
|
2580
|
-
//export
|
|
2581
|
-
func
|
|
2582
|
-
op :=
|
|
2583
|
-
return C.CString(op.
|
|
2773
|
+
//export whatsapp_Avatar_ID_Get
|
|
2774
|
+
func whatsapp_Avatar_ID_Get(handle CGoHandle) *C.char {
|
|
2775
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2776
|
+
return C.CString(op.ID)
|
|
2584
2777
|
}
|
|
2585
2778
|
|
|
2586
|
-
//export
|
|
2587
|
-
func
|
|
2588
|
-
op :=
|
|
2589
|
-
op.
|
|
2779
|
+
//export whatsapp_Avatar_ID_Set
|
|
2780
|
+
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
2781
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2782
|
+
op.ID = C.GoString(val)
|
|
2590
2783
|
}
|
|
2591
2784
|
|
|
2592
|
-
//export
|
|
2593
|
-
func
|
|
2594
|
-
op :=
|
|
2595
|
-
return C.CString(op.
|
|
2785
|
+
//export whatsapp_Avatar_URL_Get
|
|
2786
|
+
func whatsapp_Avatar_URL_Get(handle CGoHandle) *C.char {
|
|
2787
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2788
|
+
return C.CString(op.URL)
|
|
2596
2789
|
}
|
|
2597
2790
|
|
|
2598
|
-
//export
|
|
2599
|
-
func
|
|
2600
|
-
op :=
|
|
2601
|
-
op.
|
|
2791
|
+
//export whatsapp_Avatar_URL_Set
|
|
2792
|
+
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
2793
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2794
|
+
op.URL = C.GoString(val)
|
|
2602
2795
|
}
|
|
2603
2796
|
|
|
2604
2797
|
// --- wrapping struct: whatsapp.EventPayload ---
|
|
@@ -2641,7 +2834,19 @@ func whatsapp_EventPayload_Connect_Get(handle CGoHandle) CGoHandle {
|
|
|
2641
2834
|
//export whatsapp_EventPayload_Connect_Set
|
|
2642
2835
|
func whatsapp_EventPayload_Connect_Set(handle CGoHandle, val CGoHandle) {
|
|
2643
2836
|
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2644
|
-
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
2837
|
+
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
//export whatsapp_EventPayload_LoggedOut_Get
|
|
2841
|
+
func whatsapp_EventPayload_LoggedOut_Get(handle CGoHandle) CGoHandle {
|
|
2842
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2843
|
+
return handleFromPtr_whatsapp_LoggedOut(&op.LoggedOut)
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
//export whatsapp_EventPayload_LoggedOut_Set
|
|
2847
|
+
func whatsapp_EventPayload_LoggedOut_Set(handle CGoHandle, val CGoHandle) {
|
|
2848
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2849
|
+
op.LoggedOut = *ptrFromHandle_whatsapp_LoggedOut(val)
|
|
2645
2850
|
}
|
|
2646
2851
|
|
|
2647
2852
|
//export whatsapp_EventPayload_Contact_Get
|
|
@@ -2728,116 +2933,6 @@ func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
|
2728
2933
|
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2729
2934
|
}
|
|
2730
2935
|
|
|
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
2936
|
// --- wrapping struct: whatsapp.Location ---
|
|
2842
2937
|
//
|
|
2843
2938
|
//export whatsapp_Location_CTor
|
|
@@ -2929,407 +3024,224 @@ func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
|
2929
3024
|
op.URL = C.GoString(val)
|
|
2930
3025
|
}
|
|
2931
3026
|
|
|
2932
|
-
// --- wrapping struct: whatsapp.
|
|
3027
|
+
// --- wrapping struct: whatsapp.Poll ---
|
|
2933
3028
|
//
|
|
2934
|
-
//export
|
|
2935
|
-
func
|
|
2936
|
-
return CGoHandle(
|
|
3029
|
+
//export whatsapp_Poll_CTor
|
|
3030
|
+
func whatsapp_Poll_CTor() CGoHandle {
|
|
3031
|
+
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
2937
3032
|
}
|
|
2938
3033
|
|
|
2939
|
-
//export
|
|
2940
|
-
func
|
|
2941
|
-
op :=
|
|
3034
|
+
//export whatsapp_Poll_Title_Get
|
|
3035
|
+
func whatsapp_Poll_Title_Get(handle CGoHandle) *C.char {
|
|
3036
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
2942
3037
|
return C.CString(op.Title)
|
|
2943
3038
|
}
|
|
2944
3039
|
|
|
2945
|
-
//export
|
|
2946
|
-
func
|
|
2947
|
-
op :=
|
|
3040
|
+
//export whatsapp_Poll_Title_Set
|
|
3041
|
+
func whatsapp_Poll_Title_Set(handle CGoHandle, val *C.char) {
|
|
3042
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
2948
3043
|
op.Title = C.GoString(val)
|
|
2949
3044
|
}
|
|
2950
3045
|
|
|
2951
|
-
//
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
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)
|
|
3010
|
-
}
|
|
3011
|
-
|
|
3012
|
-
//export whatsapp_Receipt_Timestamp_Set
|
|
3013
|
-
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3014
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3015
|
-
op.Timestamp = int64(val)
|
|
3016
|
-
}
|
|
3017
|
-
|
|
3018
|
-
//export whatsapp_Receipt_IsCarbon_Get
|
|
3019
|
-
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3020
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3021
|
-
return boolGoToPy(op.IsCarbon)
|
|
3022
|
-
}
|
|
3023
|
-
|
|
3024
|
-
//export whatsapp_Receipt_IsCarbon_Set
|
|
3025
|
-
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3026
|
-
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3027
|
-
op.IsCarbon = boolPyToGo(val)
|
|
3028
|
-
}
|
|
3029
|
-
|
|
3030
|
-
// --- wrapping struct: whatsapp.Session ---
|
|
3031
|
-
//
|
|
3032
|
-
//export whatsapp_Session_CTor
|
|
3033
|
-
func whatsapp_Session_CTor() CGoHandle {
|
|
3034
|
-
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
3046
|
+
//export whatsapp_Poll_Options_Get
|
|
3047
|
+
func whatsapp_Poll_Options_Get(handle CGoHandle) CGoHandle {
|
|
3048
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3049
|
+
return handleFromPtr_Slice_whatsapp_PollOption(&op.Options)
|
|
3035
3050
|
}
|
|
3036
3051
|
|
|
3037
|
-
//export
|
|
3038
|
-
func
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
if __err != nil {
|
|
3042
|
-
return errorGoToPy(nil)
|
|
3043
|
-
}
|
|
3044
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
3045
|
-
|
|
3046
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3047
|
-
if __err != nil {
|
|
3048
|
-
estr := C.CString(__err.Error())
|
|
3049
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3050
|
-
return estr
|
|
3051
|
-
}
|
|
3052
|
-
return C.CString("")
|
|
3052
|
+
//export whatsapp_Poll_Options_Set
|
|
3053
|
+
func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
3054
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3055
|
+
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
3053
3056
|
}
|
|
3054
|
-
|
|
3055
|
-
//
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
return errorGoToPy(nil)
|
|
3061
|
-
}
|
|
3062
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
3063
|
-
|
|
3064
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3065
|
-
if __err != nil {
|
|
3066
|
-
estr := C.CString(__err.Error())
|
|
3067
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3068
|
-
return estr
|
|
3069
|
-
}
|
|
3070
|
-
return C.CString("")
|
|
3057
|
+
|
|
3058
|
+
// --- wrapping struct: whatsapp.PollOption ---
|
|
3059
|
+
//
|
|
3060
|
+
//export whatsapp_PollOption_CTor
|
|
3061
|
+
func whatsapp_PollOption_CTor() CGoHandle {
|
|
3062
|
+
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
3071
3063
|
}
|
|
3072
3064
|
|
|
3073
|
-
//export
|
|
3074
|
-
func
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
return errorGoToPy(nil)
|
|
3079
|
-
}
|
|
3080
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
3065
|
+
//export whatsapp_PollOption_Title_Get
|
|
3066
|
+
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
3067
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3068
|
+
return C.CString(op.Title)
|
|
3069
|
+
}
|
|
3081
3070
|
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
return estr
|
|
3087
|
-
}
|
|
3088
|
-
return C.CString("")
|
|
3071
|
+
//export whatsapp_PollOption_Title_Set
|
|
3072
|
+
func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
3073
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3074
|
+
op.Title = C.GoString(val)
|
|
3089
3075
|
}
|
|
3090
3076
|
|
|
3091
|
-
//
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
}
|
|
3098
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
3077
|
+
// --- wrapping struct: whatsapp.Album ---
|
|
3078
|
+
//
|
|
3079
|
+
//export whatsapp_Album_CTor
|
|
3080
|
+
func whatsapp_Album_CTor() CGoHandle {
|
|
3081
|
+
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
3082
|
+
}
|
|
3099
3083
|
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
C.free(unsafe.Pointer(estr))
|
|
3105
|
-
return C.CString("")
|
|
3106
|
-
}
|
|
3107
|
-
return C.CString(cret)
|
|
3084
|
+
//export whatsapp_Album_IsAlbum_Get
|
|
3085
|
+
func whatsapp_Album_IsAlbum_Get(handle CGoHandle) C.char {
|
|
3086
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3087
|
+
return boolGoToPy(op.IsAlbum)
|
|
3108
3088
|
}
|
|
3109
3089
|
|
|
3110
|
-
//export
|
|
3111
|
-
func
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
return errorGoToPy(nil)
|
|
3116
|
-
}
|
|
3117
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
3090
|
+
//export whatsapp_Album_IsAlbum_Set
|
|
3091
|
+
func whatsapp_Album_IsAlbum_Set(handle CGoHandle, val C.char) {
|
|
3092
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3093
|
+
op.IsAlbum = boolPyToGo(val)
|
|
3094
|
+
}
|
|
3118
3095
|
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
return estr
|
|
3124
|
-
}
|
|
3125
|
-
return C.CString("")
|
|
3096
|
+
//export whatsapp_Album_ImageCount_Get
|
|
3097
|
+
func whatsapp_Album_ImageCount_Get(handle CGoHandle) C.longlong {
|
|
3098
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3099
|
+
return C.longlong(op.ImageCount)
|
|
3126
3100
|
}
|
|
3127
3101
|
|
|
3128
|
-
//export
|
|
3129
|
-
func
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
if __err != nil {
|
|
3134
|
-
return C.CString("")
|
|
3135
|
-
}
|
|
3136
|
-
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
3102
|
+
//export whatsapp_Album_ImageCount_Set
|
|
3103
|
+
func whatsapp_Album_ImageCount_Set(handle CGoHandle, val C.longlong) {
|
|
3104
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3105
|
+
op.ImageCount = int(val)
|
|
3106
|
+
}
|
|
3137
3107
|
|
|
3108
|
+
//export whatsapp_Album_VideoCount_Get
|
|
3109
|
+
func whatsapp_Album_VideoCount_Get(handle CGoHandle) C.longlong {
|
|
3110
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3111
|
+
return C.longlong(op.VideoCount)
|
|
3138
3112
|
}
|
|
3139
3113
|
|
|
3140
|
-
//export
|
|
3141
|
-
func
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
return errorGoToPy(nil)
|
|
3146
|
-
}
|
|
3147
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
3114
|
+
//export whatsapp_Album_VideoCount_Set
|
|
3115
|
+
func whatsapp_Album_VideoCount_Set(handle CGoHandle, val C.longlong) {
|
|
3116
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3117
|
+
op.VideoCount = int(val)
|
|
3118
|
+
}
|
|
3148
3119
|
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
}
|
|
3155
|
-
return C.CString("")
|
|
3120
|
+
// --- wrapping struct: whatsapp.Connect ---
|
|
3121
|
+
//
|
|
3122
|
+
//export whatsapp_Connect_CTor
|
|
3123
|
+
func whatsapp_Connect_CTor() CGoHandle {
|
|
3124
|
+
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
3156
3125
|
}
|
|
3157
3126
|
|
|
3158
|
-
//export
|
|
3159
|
-
func
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
return errorGoToPy(nil)
|
|
3164
|
-
}
|
|
3165
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
3127
|
+
//export whatsapp_Connect_JID_Get
|
|
3128
|
+
func whatsapp_Connect_JID_Get(handle CGoHandle) *C.char {
|
|
3129
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3130
|
+
return C.CString(op.JID)
|
|
3131
|
+
}
|
|
3166
3132
|
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
return estr
|
|
3172
|
-
}
|
|
3173
|
-
return C.CString("")
|
|
3133
|
+
//export whatsapp_Connect_JID_Set
|
|
3134
|
+
func whatsapp_Connect_JID_Set(handle CGoHandle, val *C.char) {
|
|
3135
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3136
|
+
op.JID = C.GoString(val)
|
|
3174
3137
|
}
|
|
3175
3138
|
|
|
3176
|
-
//export
|
|
3177
|
-
func
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
return errorGoToPy(nil)
|
|
3182
|
-
}
|
|
3183
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
3139
|
+
//export whatsapp_Connect_Error_Get
|
|
3140
|
+
func whatsapp_Connect_Error_Get(handle CGoHandle) *C.char {
|
|
3141
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3142
|
+
return C.CString(op.Error)
|
|
3143
|
+
}
|
|
3184
3144
|
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
return estr
|
|
3190
|
-
}
|
|
3191
|
-
return C.CString("")
|
|
3145
|
+
//export whatsapp_Connect_Error_Set
|
|
3146
|
+
func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
3147
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3148
|
+
op.Error = C.GoString(val)
|
|
3192
3149
|
}
|
|
3193
3150
|
|
|
3194
|
-
//
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
}
|
|
3201
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
3151
|
+
// --- wrapping struct: whatsapp.Contact ---
|
|
3152
|
+
//
|
|
3153
|
+
//export whatsapp_Contact_CTor
|
|
3154
|
+
func whatsapp_Contact_CTor() CGoHandle {
|
|
3155
|
+
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
3156
|
+
}
|
|
3202
3157
|
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
C.free(unsafe.Pointer(estr))
|
|
3208
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3209
|
-
}
|
|
3210
|
-
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
3158
|
+
//export whatsapp_Contact_JID_Get
|
|
3159
|
+
func whatsapp_Contact_JID_Get(handle CGoHandle) *C.char {
|
|
3160
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3161
|
+
return C.CString(op.JID)
|
|
3211
3162
|
}
|
|
3212
3163
|
|
|
3213
|
-
//export
|
|
3214
|
-
func
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3219
|
-
}
|
|
3220
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
3164
|
+
//export whatsapp_Contact_JID_Set
|
|
3165
|
+
func whatsapp_Contact_JID_Set(handle CGoHandle, val *C.char) {
|
|
3166
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3167
|
+
op.JID = C.GoString(val)
|
|
3168
|
+
}
|
|
3221
3169
|
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
C.free(unsafe.Pointer(estr))
|
|
3227
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3228
|
-
}
|
|
3229
|
-
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
3170
|
+
//export whatsapp_Contact_Name_Get
|
|
3171
|
+
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
3172
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3173
|
+
return C.CString(op.Name)
|
|
3230
3174
|
}
|
|
3231
3175
|
|
|
3232
|
-
//export
|
|
3233
|
-
func
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
3238
|
-
}
|
|
3239
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
3176
|
+
//export whatsapp_Contact_Name_Set
|
|
3177
|
+
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
3178
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3179
|
+
op.Name = C.GoString(val)
|
|
3180
|
+
}
|
|
3240
3181
|
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
3247
|
-
}
|
|
3248
|
-
return handleFromPtr_whatsapp_Group(&cret)
|
|
3182
|
+
// --- wrapping struct: whatsapp.Gateway ---
|
|
3183
|
+
//
|
|
3184
|
+
//export whatsapp_Gateway_CTor
|
|
3185
|
+
func whatsapp_Gateway_CTor() CGoHandle {
|
|
3186
|
+
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
3249
3187
|
}
|
|
3250
3188
|
|
|
3251
|
-
//export
|
|
3252
|
-
func
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
return errorGoToPy(nil)
|
|
3257
|
-
}
|
|
3258
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
3189
|
+
//export whatsapp_Gateway_DBPath_Get
|
|
3190
|
+
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
3191
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3192
|
+
return C.CString(op.DBPath)
|
|
3193
|
+
}
|
|
3259
3194
|
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
return estr
|
|
3265
|
-
}
|
|
3266
|
-
return C.CString("")
|
|
3195
|
+
//export whatsapp_Gateway_DBPath_Set
|
|
3196
|
+
func whatsapp_Gateway_DBPath_Set(handle CGoHandle, val *C.char) {
|
|
3197
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3198
|
+
op.DBPath = C.GoString(val)
|
|
3267
3199
|
}
|
|
3268
3200
|
|
|
3269
|
-
//export
|
|
3270
|
-
func
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3275
|
-
}
|
|
3276
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
3201
|
+
//export whatsapp_Gateway_Name_Get
|
|
3202
|
+
func whatsapp_Gateway_Name_Get(handle CGoHandle) *C.char {
|
|
3203
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3204
|
+
return C.CString(op.Name)
|
|
3205
|
+
}
|
|
3277
3206
|
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
C.free(unsafe.Pointer(estr))
|
|
3283
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3284
|
-
}
|
|
3285
|
-
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
3207
|
+
//export whatsapp_Gateway_Name_Set
|
|
3208
|
+
func whatsapp_Gateway_Name_Set(handle CGoHandle, val *C.char) {
|
|
3209
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3210
|
+
op.Name = C.GoString(val)
|
|
3286
3211
|
}
|
|
3287
3212
|
|
|
3288
|
-
//export
|
|
3289
|
-
func
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
return C.CString("")
|
|
3294
|
-
}
|
|
3295
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
3213
|
+
//export whatsapp_Gateway_LogLevel_Get
|
|
3214
|
+
func whatsapp_Gateway_LogLevel_Get(handle CGoHandle) *C.char {
|
|
3215
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3216
|
+
return C.CString(op.LogLevel)
|
|
3217
|
+
}
|
|
3296
3218
|
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
C.free(unsafe.Pointer(estr))
|
|
3302
|
-
return C.CString("")
|
|
3303
|
-
}
|
|
3304
|
-
return C.CString(cret)
|
|
3219
|
+
//export whatsapp_Gateway_LogLevel_Set
|
|
3220
|
+
func whatsapp_Gateway_LogLevel_Set(handle CGoHandle, val *C.char) {
|
|
3221
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3222
|
+
op.LogLevel = C.GoString(val)
|
|
3305
3223
|
}
|
|
3306
3224
|
|
|
3307
|
-
//export
|
|
3308
|
-
func
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
return errorGoToPy(nil)
|
|
3313
|
-
}
|
|
3314
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
3225
|
+
//export whatsapp_Gateway_TempDir_Get
|
|
3226
|
+
func whatsapp_Gateway_TempDir_Get(handle CGoHandle) *C.char {
|
|
3227
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3228
|
+
return C.CString(op.TempDir)
|
|
3229
|
+
}
|
|
3315
3230
|
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
return estr
|
|
3321
|
-
}
|
|
3322
|
-
return C.CString("")
|
|
3231
|
+
//export whatsapp_Gateway_TempDir_Set
|
|
3232
|
+
func whatsapp_Gateway_TempDir_Set(handle CGoHandle, val *C.char) {
|
|
3233
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3234
|
+
op.TempDir = C.GoString(val)
|
|
3323
3235
|
}
|
|
3324
3236
|
|
|
3325
|
-
//export
|
|
3326
|
-
func
|
|
3237
|
+
//export whatsapp_Gateway_Init
|
|
3238
|
+
func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
3327
3239
|
_saved_thread := C.PyEval_SaveThread()
|
|
3328
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
3240
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3329
3241
|
if __err != nil {
|
|
3330
3242
|
return errorGoToPy(nil)
|
|
3331
3243
|
}
|
|
3332
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
3244
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
3333
3245
|
|
|
3334
3246
|
C.PyEval_RestoreThread(_saved_thread)
|
|
3335
3247
|
if __err != nil {
|
|
@@ -3340,52 +3252,26 @@ func whatsapp_Session_SetGroupTopic(_handle CGoHandle, resourceID *C.char, topic
|
|
|
3340
3252
|
return C.CString("")
|
|
3341
3253
|
}
|
|
3342
3254
|
|
|
3343
|
-
//export
|
|
3344
|
-
func
|
|
3345
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
3346
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3347
|
-
if __err != nil {
|
|
3348
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3349
|
-
}
|
|
3350
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
3351
|
-
|
|
3352
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3353
|
-
if __err != nil {
|
|
3354
|
-
estr := C.CString(__err.Error())
|
|
3355
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3356
|
-
C.free(unsafe.Pointer(estr))
|
|
3357
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3358
|
-
}
|
|
3359
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
3360
|
-
}
|
|
3361
|
-
|
|
3362
|
-
//export whatsapp_Session_FindContact
|
|
3363
|
-
func whatsapp_Session_FindContact(_handle CGoHandle, phone *C.char) CGoHandle {
|
|
3255
|
+
//export whatsapp_Gateway_NewSession
|
|
3256
|
+
func whatsapp_Gateway_NewSession(_handle CGoHandle, device CGoHandle) CGoHandle {
|
|
3364
3257
|
_saved_thread := C.PyEval_SaveThread()
|
|
3365
|
-
|
|
3258
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3259
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3366
3260
|
if __err != nil {
|
|
3367
|
-
return
|
|
3261
|
+
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
3368
3262
|
}
|
|
3369
|
-
|
|
3263
|
+
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
3370
3264
|
|
|
3371
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3372
|
-
if __err != nil {
|
|
3373
|
-
estr := C.CString(__err.Error())
|
|
3374
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3375
|
-
C.free(unsafe.Pointer(estr))
|
|
3376
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
3377
|
-
}
|
|
3378
|
-
return handleFromPtr_whatsapp_Contact(&cret)
|
|
3379
3265
|
}
|
|
3380
3266
|
|
|
3381
|
-
//export
|
|
3382
|
-
func
|
|
3267
|
+
//export whatsapp_Gateway_CleanupSession
|
|
3268
|
+
func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.char {
|
|
3383
3269
|
_saved_thread := C.PyEval_SaveThread()
|
|
3384
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
3270
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3385
3271
|
if __err != nil {
|
|
3386
3272
|
return errorGoToPy(nil)
|
|
3387
3273
|
}
|
|
3388
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
3274
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
3389
3275
|
|
|
3390
3276
|
C.PyEval_RestoreThread(_saved_thread)
|
|
3391
3277
|
if __err != nil {
|
|
@@ -3396,118 +3282,83 @@ func whatsapp_Session_RequestMessageHistory(_handle CGoHandle, resourceID *C.cha
|
|
|
3396
3282
|
return C.CString("")
|
|
3397
3283
|
}
|
|
3398
3284
|
|
|
3399
|
-
//
|
|
3400
|
-
func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.char) {
|
|
3401
|
-
_fun_arg := h
|
|
3402
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
3403
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3404
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3405
|
-
if __err != nil {
|
|
3406
|
-
return
|
|
3407
|
-
}
|
|
3408
|
-
if boolPyToGo(goRun) {
|
|
3409
|
-
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3410
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3411
|
-
return
|
|
3412
|
-
}
|
|
3413
|
-
_gstate := C.PyGILState_Ensure()
|
|
3414
|
-
_fcargs := C.PyTuple_New(2)
|
|
3415
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3416
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3417
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3418
|
-
C.gopy_decref(_fcargs)
|
|
3419
|
-
C.gopy_err_handle()
|
|
3420
|
-
C.PyGILState_Release(_gstate)
|
|
3421
|
-
})
|
|
3422
|
-
} else {
|
|
3423
|
-
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3424
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3425
|
-
return
|
|
3426
|
-
}
|
|
3427
|
-
_gstate := C.PyGILState_Ensure()
|
|
3428
|
-
_fcargs := C.PyTuple_New(2)
|
|
3429
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3430
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3431
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3432
|
-
C.gopy_decref(_fcargs)
|
|
3433
|
-
C.gopy_err_handle()
|
|
3434
|
-
C.PyGILState_Release(_gstate)
|
|
3435
|
-
})
|
|
3436
|
-
}
|
|
3437
|
-
}
|
|
3438
|
-
|
|
3439
|
-
// --- wrapping struct: whatsapp.Album ---
|
|
3285
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
3440
3286
|
//
|
|
3441
|
-
//export
|
|
3442
|
-
func
|
|
3443
|
-
return CGoHandle(
|
|
3287
|
+
//export whatsapp_Group_CTor
|
|
3288
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
3289
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
3444
3290
|
}
|
|
3445
3291
|
|
|
3446
|
-
//export
|
|
3447
|
-
func
|
|
3448
|
-
op :=
|
|
3449
|
-
return
|
|
3292
|
+
//export whatsapp_Group_JID_Get
|
|
3293
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
3294
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3295
|
+
return C.CString(op.JID)
|
|
3450
3296
|
}
|
|
3451
3297
|
|
|
3452
|
-
//export
|
|
3453
|
-
func
|
|
3454
|
-
op :=
|
|
3455
|
-
op.
|
|
3298
|
+
//export whatsapp_Group_JID_Set
|
|
3299
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
3300
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3301
|
+
op.JID = C.GoString(val)
|
|
3456
3302
|
}
|
|
3457
3303
|
|
|
3458
|
-
//export
|
|
3459
|
-
func
|
|
3460
|
-
op :=
|
|
3461
|
-
return C.
|
|
3304
|
+
//export whatsapp_Group_Name_Get
|
|
3305
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
3306
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3307
|
+
return C.CString(op.Name)
|
|
3462
3308
|
}
|
|
3463
3309
|
|
|
3464
|
-
//export
|
|
3465
|
-
func
|
|
3466
|
-
op :=
|
|
3467
|
-
op.
|
|
3310
|
+
//export whatsapp_Group_Name_Set
|
|
3311
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
3312
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3313
|
+
op.Name = C.GoString(val)
|
|
3468
3314
|
}
|
|
3469
3315
|
|
|
3470
|
-
//export
|
|
3471
|
-
func
|
|
3472
|
-
op :=
|
|
3473
|
-
return
|
|
3316
|
+
//export whatsapp_Group_Subject_Get
|
|
3317
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
3318
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3319
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
3474
3320
|
}
|
|
3475
3321
|
|
|
3476
|
-
//export
|
|
3477
|
-
func
|
|
3478
|
-
op :=
|
|
3479
|
-
op.
|
|
3322
|
+
//export whatsapp_Group_Subject_Set
|
|
3323
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
3324
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3325
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
3480
3326
|
}
|
|
3481
3327
|
|
|
3482
|
-
//
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
3328
|
+
//export whatsapp_Group_Nickname_Get
|
|
3329
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
3330
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3331
|
+
return C.CString(op.Nickname)
|
|
3487
3332
|
}
|
|
3488
3333
|
|
|
3489
|
-
//export
|
|
3490
|
-
func
|
|
3491
|
-
op :=
|
|
3492
|
-
|
|
3334
|
+
//export whatsapp_Group_Nickname_Set
|
|
3335
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
3336
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3337
|
+
op.Nickname = C.GoString(val)
|
|
3493
3338
|
}
|
|
3494
3339
|
|
|
3495
|
-
//export
|
|
3496
|
-
func
|
|
3497
|
-
op :=
|
|
3498
|
-
op.
|
|
3340
|
+
//export whatsapp_Group_Participants_Get
|
|
3341
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
3342
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3343
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
3499
3344
|
}
|
|
3500
3345
|
|
|
3501
|
-
//export
|
|
3502
|
-
func
|
|
3503
|
-
op :=
|
|
3504
|
-
|
|
3346
|
+
//export whatsapp_Group_Participants_Set
|
|
3347
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
3348
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3349
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
3505
3350
|
}
|
|
3506
3351
|
|
|
3507
|
-
//export
|
|
3508
|
-
func
|
|
3509
|
-
op :=
|
|
3510
|
-
|
|
3352
|
+
//export whatsapp_Group_InviteCode_Get
|
|
3353
|
+
func whatsapp_Group_InviteCode_Get(handle CGoHandle) *C.char {
|
|
3354
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3355
|
+
return C.CString(op.InviteCode)
|
|
3356
|
+
}
|
|
3357
|
+
|
|
3358
|
+
//export whatsapp_Group_InviteCode_Set
|
|
3359
|
+
func whatsapp_Group_InviteCode_Set(handle CGoHandle, val *C.char) {
|
|
3360
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3361
|
+
op.InviteCode = C.GoString(val)
|
|
3511
3362
|
}
|
|
3512
3363
|
|
|
3513
3364
|
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
@@ -3542,195 +3393,325 @@ func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
|
3542
3393
|
return handleFromPtr_types_JID(&cret)
|
|
3543
3394
|
}
|
|
3544
3395
|
|
|
3545
|
-
// --- wrapping struct: whatsapp.
|
|
3396
|
+
// --- wrapping struct: whatsapp.LoggedOut ---
|
|
3546
3397
|
//
|
|
3547
|
-
//export
|
|
3548
|
-
func
|
|
3549
|
-
return CGoHandle(
|
|
3398
|
+
//export whatsapp_LoggedOut_CTor
|
|
3399
|
+
func whatsapp_LoggedOut_CTor() CGoHandle {
|
|
3400
|
+
return CGoHandle(handleFromPtr_whatsapp_LoggedOut(&whatsapp.LoggedOut{}))
|
|
3550
3401
|
}
|
|
3551
3402
|
|
|
3552
|
-
//export
|
|
3553
|
-
func
|
|
3554
|
-
op :=
|
|
3555
|
-
return C.CString(op.
|
|
3403
|
+
//export whatsapp_LoggedOut_Reason_Get
|
|
3404
|
+
func whatsapp_LoggedOut_Reason_Get(handle CGoHandle) *C.char {
|
|
3405
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
3406
|
+
return C.CString(op.Reason)
|
|
3556
3407
|
}
|
|
3557
3408
|
|
|
3558
|
-
//export
|
|
3559
|
-
func
|
|
3560
|
-
op :=
|
|
3561
|
-
op.
|
|
3409
|
+
//export whatsapp_LoggedOut_Reason_Set
|
|
3410
|
+
func whatsapp_LoggedOut_Reason_Set(handle CGoHandle, val *C.char) {
|
|
3411
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
3412
|
+
op.Reason = C.GoString(val)
|
|
3562
3413
|
}
|
|
3563
3414
|
|
|
3564
|
-
//
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3415
|
+
// --- wrapping struct: whatsapp.Message ---
|
|
3416
|
+
//
|
|
3417
|
+
//export whatsapp_Message_CTor
|
|
3418
|
+
func whatsapp_Message_CTor() CGoHandle {
|
|
3419
|
+
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
3568
3420
|
}
|
|
3569
3421
|
|
|
3570
|
-
//export
|
|
3571
|
-
func
|
|
3572
|
-
op :=
|
|
3573
|
-
|
|
3422
|
+
//export whatsapp_Message_Kind_Get
|
|
3423
|
+
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
3424
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3425
|
+
return C.longlong(int(op.Kind))
|
|
3574
3426
|
}
|
|
3575
3427
|
|
|
3576
|
-
//export
|
|
3577
|
-
func
|
|
3578
|
-
op :=
|
|
3579
|
-
|
|
3428
|
+
//export whatsapp_Message_Kind_Set
|
|
3429
|
+
func whatsapp_Message_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3430
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3431
|
+
op.Kind = whatsapp.MessageKind(int(val))
|
|
3580
3432
|
}
|
|
3581
3433
|
|
|
3582
|
-
//export
|
|
3583
|
-
func
|
|
3584
|
-
op :=
|
|
3585
|
-
|
|
3434
|
+
//export whatsapp_Message_ID_Get
|
|
3435
|
+
func whatsapp_Message_ID_Get(handle CGoHandle) *C.char {
|
|
3436
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3437
|
+
return C.CString(op.ID)
|
|
3586
3438
|
}
|
|
3587
3439
|
|
|
3588
|
-
//export
|
|
3589
|
-
func
|
|
3590
|
-
op :=
|
|
3591
|
-
|
|
3440
|
+
//export whatsapp_Message_ID_Set
|
|
3441
|
+
func whatsapp_Message_ID_Set(handle CGoHandle, val *C.char) {
|
|
3442
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3443
|
+
op.ID = C.GoString(val)
|
|
3592
3444
|
}
|
|
3593
3445
|
|
|
3594
|
-
//export
|
|
3595
|
-
func
|
|
3596
|
-
op :=
|
|
3597
|
-
op.
|
|
3446
|
+
//export whatsapp_Message_JID_Get
|
|
3447
|
+
func whatsapp_Message_JID_Get(handle CGoHandle) *C.char {
|
|
3448
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3449
|
+
return C.CString(op.JID)
|
|
3598
3450
|
}
|
|
3599
3451
|
|
|
3600
|
-
//export
|
|
3601
|
-
func
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3606
|
-
}
|
|
3607
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
3452
|
+
//export whatsapp_Message_JID_Set
|
|
3453
|
+
func whatsapp_Message_JID_Set(handle CGoHandle, val *C.char) {
|
|
3454
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3455
|
+
op.JID = C.GoString(val)
|
|
3456
|
+
}
|
|
3608
3457
|
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
C.free(unsafe.Pointer(estr))
|
|
3614
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3615
|
-
}
|
|
3616
|
-
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3458
|
+
//export whatsapp_Message_GroupJID_Get
|
|
3459
|
+
func whatsapp_Message_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3460
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3461
|
+
return C.CString(op.GroupJID)
|
|
3617
3462
|
}
|
|
3618
3463
|
|
|
3619
|
-
//
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3464
|
+
//export whatsapp_Message_GroupJID_Set
|
|
3465
|
+
func whatsapp_Message_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3466
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3467
|
+
op.GroupJID = C.GoString(val)
|
|
3468
|
+
}
|
|
3469
|
+
|
|
3470
|
+
//export whatsapp_Message_OriginJID_Get
|
|
3471
|
+
func whatsapp_Message_OriginJID_Get(handle CGoHandle) *C.char {
|
|
3472
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3473
|
+
return C.CString(op.OriginJID)
|
|
3474
|
+
}
|
|
3475
|
+
|
|
3476
|
+
//export whatsapp_Message_OriginJID_Set
|
|
3477
|
+
func whatsapp_Message_OriginJID_Set(handle CGoHandle, val *C.char) {
|
|
3478
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3479
|
+
op.OriginJID = C.GoString(val)
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
//export whatsapp_Message_Body_Get
|
|
3483
|
+
func whatsapp_Message_Body_Get(handle CGoHandle) *C.char {
|
|
3484
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3485
|
+
return C.CString(op.Body)
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3488
|
+
//export whatsapp_Message_Body_Set
|
|
3489
|
+
func whatsapp_Message_Body_Set(handle CGoHandle, val *C.char) {
|
|
3490
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3491
|
+
op.Body = C.GoString(val)
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
//export whatsapp_Message_Timestamp_Get
|
|
3495
|
+
func whatsapp_Message_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3496
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3497
|
+
return C.longlong(op.Timestamp)
|
|
3498
|
+
}
|
|
3499
|
+
|
|
3500
|
+
//export whatsapp_Message_Timestamp_Set
|
|
3501
|
+
func whatsapp_Message_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3502
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3503
|
+
op.Timestamp = int64(val)
|
|
3504
|
+
}
|
|
3505
|
+
|
|
3506
|
+
//export whatsapp_Message_IsCarbon_Get
|
|
3507
|
+
func whatsapp_Message_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3508
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3509
|
+
return boolGoToPy(op.IsCarbon)
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
//export whatsapp_Message_IsCarbon_Set
|
|
3513
|
+
func whatsapp_Message_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3514
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3515
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3518
|
+
//export whatsapp_Message_IsForwarded_Get
|
|
3519
|
+
func whatsapp_Message_IsForwarded_Get(handle CGoHandle) C.char {
|
|
3520
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3521
|
+
return boolGoToPy(op.IsForwarded)
|
|
3522
|
+
}
|
|
3523
|
+
|
|
3524
|
+
//export whatsapp_Message_IsForwarded_Set
|
|
3525
|
+
func whatsapp_Message_IsForwarded_Set(handle CGoHandle, val C.char) {
|
|
3526
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3527
|
+
op.IsForwarded = boolPyToGo(val)
|
|
3528
|
+
}
|
|
3529
|
+
|
|
3530
|
+
//export whatsapp_Message_ReplyID_Get
|
|
3531
|
+
func whatsapp_Message_ReplyID_Get(handle CGoHandle) *C.char {
|
|
3532
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3533
|
+
return C.CString(op.ReplyID)
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3536
|
+
//export whatsapp_Message_ReplyID_Set
|
|
3537
|
+
func whatsapp_Message_ReplyID_Set(handle CGoHandle, val *C.char) {
|
|
3538
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3539
|
+
op.ReplyID = C.GoString(val)
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3542
|
+
//export whatsapp_Message_ReplyBody_Get
|
|
3543
|
+
func whatsapp_Message_ReplyBody_Get(handle CGoHandle) *C.char {
|
|
3544
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3545
|
+
return C.CString(op.ReplyBody)
|
|
3546
|
+
}
|
|
3547
|
+
|
|
3548
|
+
//export whatsapp_Message_ReplyBody_Set
|
|
3549
|
+
func whatsapp_Message_ReplyBody_Set(handle CGoHandle, val *C.char) {
|
|
3550
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3551
|
+
op.ReplyBody = C.GoString(val)
|
|
3552
|
+
}
|
|
3553
|
+
|
|
3554
|
+
//export whatsapp_Message_Attachments_Get
|
|
3555
|
+
func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
3556
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3557
|
+
return handleFromPtr_Slice_whatsapp_Attachment(&op.Attachments)
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3560
|
+
//export whatsapp_Message_Attachments_Set
|
|
3561
|
+
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
3562
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3563
|
+
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
3564
|
+
}
|
|
3565
|
+
|
|
3566
|
+
//export whatsapp_Message_Preview_Get
|
|
3567
|
+
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
3568
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3569
|
+
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
//export whatsapp_Message_Preview_Set
|
|
3573
|
+
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
3574
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3575
|
+
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
3576
|
+
}
|
|
3577
|
+
|
|
3578
|
+
//export whatsapp_Message_Location_Get
|
|
3579
|
+
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
3580
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3581
|
+
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3584
|
+
//export whatsapp_Message_Location_Set
|
|
3585
|
+
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
3586
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3587
|
+
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
//export whatsapp_Message_Poll_Get
|
|
3591
|
+
func whatsapp_Message_Poll_Get(handle CGoHandle) CGoHandle {
|
|
3592
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3593
|
+
return handleFromPtr_whatsapp_Poll(&op.Poll)
|
|
3594
|
+
}
|
|
3595
|
+
|
|
3596
|
+
//export whatsapp_Message_Poll_Set
|
|
3597
|
+
func whatsapp_Message_Poll_Set(handle CGoHandle, val CGoHandle) {
|
|
3598
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3599
|
+
op.Poll = *ptrFromHandle_whatsapp_Poll(val)
|
|
3600
|
+
}
|
|
3601
|
+
|
|
3602
|
+
//export whatsapp_Message_Album_Get
|
|
3603
|
+
func whatsapp_Message_Album_Get(handle CGoHandle) CGoHandle {
|
|
3604
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3605
|
+
return handleFromPtr_whatsapp_Album(&op.Album)
|
|
3624
3606
|
}
|
|
3625
3607
|
|
|
3626
|
-
//export
|
|
3627
|
-
func
|
|
3628
|
-
op :=
|
|
3629
|
-
|
|
3608
|
+
//export whatsapp_Message_Album_Set
|
|
3609
|
+
func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
3610
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3611
|
+
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
3630
3612
|
}
|
|
3631
3613
|
|
|
3632
|
-
//export
|
|
3633
|
-
func
|
|
3634
|
-
op :=
|
|
3635
|
-
op.
|
|
3614
|
+
//export whatsapp_Message_GroupInvite_Get
|
|
3615
|
+
func whatsapp_Message_GroupInvite_Get(handle CGoHandle) CGoHandle {
|
|
3616
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3617
|
+
return handleFromPtr_whatsapp_Group(&op.GroupInvite)
|
|
3636
3618
|
}
|
|
3637
3619
|
|
|
3638
|
-
//export
|
|
3639
|
-
func
|
|
3640
|
-
op :=
|
|
3641
|
-
|
|
3620
|
+
//export whatsapp_Message_GroupInvite_Set
|
|
3621
|
+
func whatsapp_Message_GroupInvite_Set(handle CGoHandle, val CGoHandle) {
|
|
3622
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3623
|
+
op.GroupInvite = *ptrFromHandle_whatsapp_Group(val)
|
|
3642
3624
|
}
|
|
3643
3625
|
|
|
3644
|
-
//export
|
|
3645
|
-
func
|
|
3646
|
-
op :=
|
|
3647
|
-
op.
|
|
3626
|
+
//export whatsapp_Message_MentionJIDs_Get
|
|
3627
|
+
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
3628
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3629
|
+
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
3648
3630
|
}
|
|
3649
3631
|
|
|
3650
|
-
//
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
3632
|
+
//export whatsapp_Message_MentionJIDs_Set
|
|
3633
|
+
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3634
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3635
|
+
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
3655
3636
|
}
|
|
3656
3637
|
|
|
3657
|
-
//export
|
|
3658
|
-
func
|
|
3659
|
-
op :=
|
|
3660
|
-
return
|
|
3638
|
+
//export whatsapp_Message_Receipts_Get
|
|
3639
|
+
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
3640
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3641
|
+
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
3661
3642
|
}
|
|
3662
3643
|
|
|
3663
|
-
//export
|
|
3664
|
-
func
|
|
3665
|
-
op :=
|
|
3666
|
-
op.
|
|
3644
|
+
//export whatsapp_Message_Receipts_Set
|
|
3645
|
+
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
3646
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3647
|
+
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
3667
3648
|
}
|
|
3668
3649
|
|
|
3669
|
-
//export
|
|
3670
|
-
func
|
|
3671
|
-
op :=
|
|
3672
|
-
return
|
|
3650
|
+
//export whatsapp_Message_Reactions_Get
|
|
3651
|
+
func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
3652
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3653
|
+
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
3673
3654
|
}
|
|
3674
3655
|
|
|
3675
|
-
//export
|
|
3676
|
-
func
|
|
3677
|
-
op :=
|
|
3678
|
-
op.
|
|
3656
|
+
//export whatsapp_Message_Reactions_Set
|
|
3657
|
+
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
3658
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3659
|
+
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3679
3660
|
}
|
|
3680
3661
|
|
|
3681
|
-
//export
|
|
3682
|
-
func
|
|
3683
|
-
op :=
|
|
3684
|
-
return
|
|
3662
|
+
//export whatsapp_Message_IsHistory_Get
|
|
3663
|
+
func whatsapp_Message_IsHistory_Get(handle CGoHandle) C.char {
|
|
3664
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3665
|
+
return boolGoToPy(op.IsHistory)
|
|
3685
3666
|
}
|
|
3686
3667
|
|
|
3687
|
-
//export
|
|
3688
|
-
func
|
|
3689
|
-
op :=
|
|
3690
|
-
op.
|
|
3668
|
+
//export whatsapp_Message_IsHistory_Set
|
|
3669
|
+
func whatsapp_Message_IsHistory_Set(handle CGoHandle, val C.char) {
|
|
3670
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3671
|
+
op.IsHistory = boolPyToGo(val)
|
|
3691
3672
|
}
|
|
3692
3673
|
|
|
3693
|
-
// --- wrapping struct: whatsapp.
|
|
3674
|
+
// --- wrapping struct: whatsapp.ChatState ---
|
|
3694
3675
|
//
|
|
3695
|
-
//export
|
|
3696
|
-
func
|
|
3697
|
-
return CGoHandle(
|
|
3676
|
+
//export whatsapp_ChatState_CTor
|
|
3677
|
+
func whatsapp_ChatState_CTor() CGoHandle {
|
|
3678
|
+
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
3698
3679
|
}
|
|
3699
3680
|
|
|
3700
|
-
//export
|
|
3701
|
-
func
|
|
3702
|
-
op :=
|
|
3703
|
-
return C.
|
|
3681
|
+
//export whatsapp_ChatState_Kind_Get
|
|
3682
|
+
func whatsapp_ChatState_Kind_Get(handle CGoHandle) C.longlong {
|
|
3683
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3684
|
+
return C.longlong(int(op.Kind))
|
|
3704
3685
|
}
|
|
3705
3686
|
|
|
3706
|
-
//export
|
|
3707
|
-
func
|
|
3708
|
-
op :=
|
|
3709
|
-
op.
|
|
3687
|
+
//export whatsapp_ChatState_Kind_Set
|
|
3688
|
+
func whatsapp_ChatState_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3689
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3690
|
+
op.Kind = whatsapp.ChatStateKind(int(val))
|
|
3710
3691
|
}
|
|
3711
3692
|
|
|
3712
|
-
//export
|
|
3713
|
-
func
|
|
3714
|
-
op :=
|
|
3715
|
-
return C.
|
|
3693
|
+
//export whatsapp_ChatState_JID_Get
|
|
3694
|
+
func whatsapp_ChatState_JID_Get(handle CGoHandle) *C.char {
|
|
3695
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3696
|
+
return C.CString(op.JID)
|
|
3716
3697
|
}
|
|
3717
3698
|
|
|
3718
|
-
//export
|
|
3719
|
-
func
|
|
3720
|
-
op :=
|
|
3721
|
-
op.
|
|
3699
|
+
//export whatsapp_ChatState_JID_Set
|
|
3700
|
+
func whatsapp_ChatState_JID_Set(handle CGoHandle, val *C.char) {
|
|
3701
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3702
|
+
op.JID = C.GoString(val)
|
|
3722
3703
|
}
|
|
3723
3704
|
|
|
3724
|
-
//export
|
|
3725
|
-
func
|
|
3726
|
-
op :=
|
|
3727
|
-
return C.CString(op.
|
|
3705
|
+
//export whatsapp_ChatState_GroupJID_Get
|
|
3706
|
+
func whatsapp_ChatState_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3707
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3708
|
+
return C.CString(op.GroupJID)
|
|
3728
3709
|
}
|
|
3729
3710
|
|
|
3730
|
-
//export
|
|
3731
|
-
func
|
|
3732
|
-
op :=
|
|
3733
|
-
op.
|
|
3711
|
+
//export whatsapp_ChatState_GroupJID_Set
|
|
3712
|
+
func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3713
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3714
|
+
op.GroupJID = C.GoString(val)
|
|
3734
3715
|
}
|
|
3735
3716
|
|
|
3736
3717
|
// --- wrapping struct: whatsapp.Preview ---
|
|
@@ -3800,6 +3781,128 @@ func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
|
3800
3781
|
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
3801
3782
|
}
|
|
3802
3783
|
|
|
3784
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
3785
|
+
//
|
|
3786
|
+
//export whatsapp_Receipt_CTor
|
|
3787
|
+
func whatsapp_Receipt_CTor() CGoHandle {
|
|
3788
|
+
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
3789
|
+
}
|
|
3790
|
+
|
|
3791
|
+
//export whatsapp_Receipt_Kind_Get
|
|
3792
|
+
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3793
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3794
|
+
return C.longlong(int(op.Kind))
|
|
3795
|
+
}
|
|
3796
|
+
|
|
3797
|
+
//export whatsapp_Receipt_Kind_Set
|
|
3798
|
+
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3799
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3800
|
+
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
|
+
//export whatsapp_Receipt_MessageIDs_Get
|
|
3804
|
+
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
3805
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3806
|
+
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3809
|
+
//export whatsapp_Receipt_MessageIDs_Set
|
|
3810
|
+
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3811
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3812
|
+
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
3813
|
+
}
|
|
3814
|
+
|
|
3815
|
+
//export whatsapp_Receipt_JID_Get
|
|
3816
|
+
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
3817
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3818
|
+
return C.CString(op.JID)
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3821
|
+
//export whatsapp_Receipt_JID_Set
|
|
3822
|
+
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
3823
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3824
|
+
op.JID = C.GoString(val)
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3827
|
+
//export whatsapp_Receipt_GroupJID_Get
|
|
3828
|
+
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3829
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3830
|
+
return C.CString(op.GroupJID)
|
|
3831
|
+
}
|
|
3832
|
+
|
|
3833
|
+
//export whatsapp_Receipt_GroupJID_Set
|
|
3834
|
+
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3835
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3836
|
+
op.GroupJID = C.GoString(val)
|
|
3837
|
+
}
|
|
3838
|
+
|
|
3839
|
+
//export whatsapp_Receipt_Timestamp_Get
|
|
3840
|
+
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3841
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3842
|
+
return C.longlong(op.Timestamp)
|
|
3843
|
+
}
|
|
3844
|
+
|
|
3845
|
+
//export whatsapp_Receipt_Timestamp_Set
|
|
3846
|
+
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3847
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3848
|
+
op.Timestamp = int64(val)
|
|
3849
|
+
}
|
|
3850
|
+
|
|
3851
|
+
//export whatsapp_Receipt_IsCarbon_Get
|
|
3852
|
+
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3853
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3854
|
+
return boolGoToPy(op.IsCarbon)
|
|
3855
|
+
}
|
|
3856
|
+
|
|
3857
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
3858
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3859
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3860
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3861
|
+
}
|
|
3862
|
+
|
|
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{}))
|
|
3868
|
+
}
|
|
3869
|
+
|
|
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)
|
|
3874
|
+
}
|
|
3875
|
+
|
|
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)
|
|
3880
|
+
}
|
|
3881
|
+
|
|
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))
|
|
3886
|
+
}
|
|
3887
|
+
|
|
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))
|
|
3892
|
+
}
|
|
3893
|
+
|
|
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)
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3803
3906
|
// ---- Slices ---
|
|
3804
3907
|
|
|
3805
3908
|
// ---- Maps ---
|
|
@@ -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
|
+
}
|