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
|
@@ -1013,9 +1013,9 @@ DefaultUserServer = "s.whatsapp.net"
|
|
|
1013
1013
|
|
|
1014
1014
|
# ---- Structs ---
|
|
1015
1015
|
|
|
1016
|
-
# Python type for struct whatsapp.
|
|
1017
|
-
class
|
|
1018
|
-
"""A
|
|
1016
|
+
# Python type for struct whatsapp.GroupParticipant
|
|
1017
|
+
class GroupParticipant(go.GoClass):
|
|
1018
|
+
"""A GroupParticipant represents a contact who is currently joined in a given group. Participants in\nWhatsApp can generally be derived back to their individual [Contact]; there are no anonymous groups\nin WhatsApp.\n"""
|
|
1019
1019
|
def __init__(self, *args, **kwargs):
|
|
1020
1020
|
"""
|
|
1021
1021
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1029,29 +1029,29 @@ class Gateway(go.GoClass):
|
|
|
1029
1029
|
self.handle = args[0].handle
|
|
1030
1030
|
_whatsapp.IncRef(self.handle)
|
|
1031
1031
|
else:
|
|
1032
|
-
self.handle = _whatsapp.
|
|
1032
|
+
self.handle = _whatsapp.whatsapp_GroupParticipant_CTor()
|
|
1033
1033
|
_whatsapp.IncRef(self.handle)
|
|
1034
1034
|
if 0 < len(args):
|
|
1035
|
-
self.
|
|
1036
|
-
if "
|
|
1037
|
-
self.
|
|
1035
|
+
self.JID = args[0]
|
|
1036
|
+
if "JID" in kwargs:
|
|
1037
|
+
self.JID = kwargs["JID"]
|
|
1038
1038
|
if 1 < len(args):
|
|
1039
|
-
self.
|
|
1040
|
-
if "
|
|
1041
|
-
self.
|
|
1039
|
+
self.Nickname = args[1]
|
|
1040
|
+
if "Nickname" in kwargs:
|
|
1041
|
+
self.Nickname = kwargs["Nickname"]
|
|
1042
1042
|
if 2 < len(args):
|
|
1043
|
-
self.
|
|
1044
|
-
if "
|
|
1045
|
-
self.
|
|
1043
|
+
self.Affiliation = args[2]
|
|
1044
|
+
if "Affiliation" in kwargs:
|
|
1045
|
+
self.Affiliation = kwargs["Affiliation"]
|
|
1046
1046
|
if 3 < len(args):
|
|
1047
|
-
self.
|
|
1048
|
-
if "
|
|
1049
|
-
self.
|
|
1047
|
+
self.Action = args[3]
|
|
1048
|
+
if "Action" in kwargs:
|
|
1049
|
+
self.Action = kwargs["Action"]
|
|
1050
1050
|
def __del__(self):
|
|
1051
1051
|
_whatsapp.DecRef(self.handle)
|
|
1052
1052
|
def __str__(self):
|
|
1053
1053
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1054
|
-
sv = 'whatsapp.
|
|
1054
|
+
sv = 'whatsapp.GroupParticipant{'
|
|
1055
1055
|
first = True
|
|
1056
1056
|
for v in pr:
|
|
1057
1057
|
if callable(v[1]):
|
|
@@ -1064,72 +1064,51 @@ class Gateway(go.GoClass):
|
|
|
1064
1064
|
return sv + '}'
|
|
1065
1065
|
def __repr__(self):
|
|
1066
1066
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1067
|
-
sv = 'whatsapp.
|
|
1067
|
+
sv = 'whatsapp.GroupParticipant ( '
|
|
1068
1068
|
for v in pr:
|
|
1069
1069
|
if not callable(v[1]):
|
|
1070
1070
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1071
1071
|
return sv + ')'
|
|
1072
1072
|
@property
|
|
1073
|
-
def
|
|
1074
|
-
return _whatsapp.
|
|
1075
|
-
@
|
|
1076
|
-
def
|
|
1073
|
+
def JID(self):
|
|
1074
|
+
return _whatsapp.whatsapp_GroupParticipant_JID_Get(self.handle)
|
|
1075
|
+
@JID.setter
|
|
1076
|
+
def JID(self, value):
|
|
1077
1077
|
if isinstance(value, go.GoClass):
|
|
1078
|
-
_whatsapp.
|
|
1078
|
+
_whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value.handle)
|
|
1079
1079
|
else:
|
|
1080
|
-
_whatsapp.
|
|
1080
|
+
_whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value)
|
|
1081
1081
|
@property
|
|
1082
|
-
def
|
|
1083
|
-
return _whatsapp.
|
|
1084
|
-
@
|
|
1085
|
-
def
|
|
1082
|
+
def Nickname(self):
|
|
1083
|
+
return _whatsapp.whatsapp_GroupParticipant_Nickname_Get(self.handle)
|
|
1084
|
+
@Nickname.setter
|
|
1085
|
+
def Nickname(self, value):
|
|
1086
1086
|
if isinstance(value, go.GoClass):
|
|
1087
|
-
_whatsapp.
|
|
1087
|
+
_whatsapp.whatsapp_GroupParticipant_Nickname_Set(self.handle, value.handle)
|
|
1088
1088
|
else:
|
|
1089
|
-
_whatsapp.
|
|
1089
|
+
_whatsapp.whatsapp_GroupParticipant_Nickname_Set(self.handle, value)
|
|
1090
1090
|
@property
|
|
1091
|
-
def
|
|
1092
|
-
return _whatsapp.
|
|
1093
|
-
@
|
|
1094
|
-
def
|
|
1091
|
+
def Affiliation(self):
|
|
1092
|
+
return _whatsapp.whatsapp_GroupParticipant_Affiliation_Get(self.handle)
|
|
1093
|
+
@Affiliation.setter
|
|
1094
|
+
def Affiliation(self, value):
|
|
1095
1095
|
if isinstance(value, go.GoClass):
|
|
1096
|
-
_whatsapp.
|
|
1096
|
+
_whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value.handle)
|
|
1097
1097
|
else:
|
|
1098
|
-
_whatsapp.
|
|
1098
|
+
_whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value)
|
|
1099
1099
|
@property
|
|
1100
|
-
def
|
|
1101
|
-
return _whatsapp.
|
|
1102
|
-
@
|
|
1103
|
-
def
|
|
1100
|
+
def Action(self):
|
|
1101
|
+
return _whatsapp.whatsapp_GroupParticipant_Action_Get(self.handle)
|
|
1102
|
+
@Action.setter
|
|
1103
|
+
def Action(self, value):
|
|
1104
1104
|
if isinstance(value, go.GoClass):
|
|
1105
|
-
_whatsapp.
|
|
1105
|
+
_whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value.handle)
|
|
1106
1106
|
else:
|
|
1107
|
-
_whatsapp.
|
|
1108
|
-
def Init(self):
|
|
1109
|
-
"""Init() str
|
|
1110
|
-
|
|
1111
|
-
Init performs initialization procedures for the Gateway, and is expected to be run before any
|
|
1112
|
-
calls to [Gateway.Session].
|
|
1113
|
-
"""
|
|
1114
|
-
return _whatsapp.whatsapp_Gateway_Init(self.handle)
|
|
1115
|
-
def NewSession(self, device):
|
|
1116
|
-
"""NewSession(object device) object
|
|
1117
|
-
|
|
1118
|
-
NewSession returns a new [Session] for the LinkedDevice given. If the linked device does not have
|
|
1119
|
-
a valid ID, a pair operation will be required, as described in [Session.Login].
|
|
1120
|
-
"""
|
|
1121
|
-
return Session(handle=_whatsapp.whatsapp_Gateway_NewSession(self.handle, device.handle))
|
|
1122
|
-
def CleanupSession(self, device):
|
|
1123
|
-
"""CleanupSession(object device) str
|
|
1124
|
-
|
|
1125
|
-
CleanupSession will remove all invalid and obsolete references to the given device, and should be
|
|
1126
|
-
used when pairing a new device or unregistering from the Gateway.
|
|
1127
|
-
"""
|
|
1128
|
-
return _whatsapp.whatsapp_Gateway_CleanupSession(self.handle, device.handle)
|
|
1107
|
+
_whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value)
|
|
1129
1108
|
|
|
1130
|
-
# Python type for struct whatsapp.
|
|
1131
|
-
class
|
|
1132
|
-
"""A
|
|
1109
|
+
# Python type for struct whatsapp.GroupSubject
|
|
1110
|
+
class GroupSubject(go.GoClass):
|
|
1111
|
+
"""A GroupSubject represents the user-defined group description and attached metadata thereof, for a\ngiven [Group].\n"""
|
|
1133
1112
|
def __init__(self, *args, **kwargs):
|
|
1134
1113
|
"""
|
|
1135
1114
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1143,89 +1122,25 @@ class Message(go.GoClass):
|
|
|
1143
1122
|
self.handle = args[0].handle
|
|
1144
1123
|
_whatsapp.IncRef(self.handle)
|
|
1145
1124
|
else:
|
|
1146
|
-
self.handle = _whatsapp.
|
|
1125
|
+
self.handle = _whatsapp.whatsapp_GroupSubject_CTor()
|
|
1147
1126
|
_whatsapp.IncRef(self.handle)
|
|
1148
1127
|
if 0 < len(args):
|
|
1149
|
-
self.
|
|
1150
|
-
if "
|
|
1151
|
-
self.
|
|
1128
|
+
self.Subject = args[0]
|
|
1129
|
+
if "Subject" in kwargs:
|
|
1130
|
+
self.Subject = kwargs["Subject"]
|
|
1152
1131
|
if 1 < len(args):
|
|
1153
|
-
self.
|
|
1154
|
-
if "
|
|
1155
|
-
self.
|
|
1132
|
+
self.SetAt = args[1]
|
|
1133
|
+
if "SetAt" in kwargs:
|
|
1134
|
+
self.SetAt = kwargs["SetAt"]
|
|
1156
1135
|
if 2 < len(args):
|
|
1157
|
-
self.
|
|
1158
|
-
if "
|
|
1159
|
-
self.
|
|
1160
|
-
if 3 < len(args):
|
|
1161
|
-
self.GroupJID = args[3]
|
|
1162
|
-
if "GroupJID" in kwargs:
|
|
1163
|
-
self.GroupJID = kwargs["GroupJID"]
|
|
1164
|
-
if 4 < len(args):
|
|
1165
|
-
self.OriginJID = args[4]
|
|
1166
|
-
if "OriginJID" in kwargs:
|
|
1167
|
-
self.OriginJID = kwargs["OriginJID"]
|
|
1168
|
-
if 5 < len(args):
|
|
1169
|
-
self.Body = args[5]
|
|
1170
|
-
if "Body" in kwargs:
|
|
1171
|
-
self.Body = kwargs["Body"]
|
|
1172
|
-
if 6 < len(args):
|
|
1173
|
-
self.Timestamp = args[6]
|
|
1174
|
-
if "Timestamp" in kwargs:
|
|
1175
|
-
self.Timestamp = kwargs["Timestamp"]
|
|
1176
|
-
if 7 < len(args):
|
|
1177
|
-
self.IsCarbon = args[7]
|
|
1178
|
-
if "IsCarbon" in kwargs:
|
|
1179
|
-
self.IsCarbon = kwargs["IsCarbon"]
|
|
1180
|
-
if 8 < len(args):
|
|
1181
|
-
self.IsForwarded = args[8]
|
|
1182
|
-
if "IsForwarded" in kwargs:
|
|
1183
|
-
self.IsForwarded = kwargs["IsForwarded"]
|
|
1184
|
-
if 9 < len(args):
|
|
1185
|
-
self.ReplyID = args[9]
|
|
1186
|
-
if "ReplyID" in kwargs:
|
|
1187
|
-
self.ReplyID = kwargs["ReplyID"]
|
|
1188
|
-
if 10 < len(args):
|
|
1189
|
-
self.ReplyBody = args[10]
|
|
1190
|
-
if "ReplyBody" in kwargs:
|
|
1191
|
-
self.ReplyBody = kwargs["ReplyBody"]
|
|
1192
|
-
if 11 < len(args):
|
|
1193
|
-
self.Attachments = args[11]
|
|
1194
|
-
if "Attachments" in kwargs:
|
|
1195
|
-
self.Attachments = kwargs["Attachments"]
|
|
1196
|
-
if 12 < len(args):
|
|
1197
|
-
self.Preview = args[12]
|
|
1198
|
-
if "Preview" in kwargs:
|
|
1199
|
-
self.Preview = kwargs["Preview"]
|
|
1200
|
-
if 13 < len(args):
|
|
1201
|
-
self.Location = args[13]
|
|
1202
|
-
if "Location" in kwargs:
|
|
1203
|
-
self.Location = kwargs["Location"]
|
|
1204
|
-
if 14 < len(args):
|
|
1205
|
-
self.Poll = args[14]
|
|
1206
|
-
if "Poll" in kwargs:
|
|
1207
|
-
self.Poll = kwargs["Poll"]
|
|
1208
|
-
if 15 < len(args):
|
|
1209
|
-
self.Album = args[15]
|
|
1210
|
-
if "Album" in kwargs:
|
|
1211
|
-
self.Album = kwargs["Album"]
|
|
1212
|
-
if 16 < len(args):
|
|
1213
|
-
self.MentionJIDs = args[16]
|
|
1214
|
-
if "MentionJIDs" in kwargs:
|
|
1215
|
-
self.MentionJIDs = kwargs["MentionJIDs"]
|
|
1216
|
-
if 17 < len(args):
|
|
1217
|
-
self.Receipts = args[17]
|
|
1218
|
-
if "Receipts" in kwargs:
|
|
1219
|
-
self.Receipts = kwargs["Receipts"]
|
|
1220
|
-
if 18 < len(args):
|
|
1221
|
-
self.Reactions = args[18]
|
|
1222
|
-
if "Reactions" in kwargs:
|
|
1223
|
-
self.Reactions = kwargs["Reactions"]
|
|
1136
|
+
self.SetBy = args[2]
|
|
1137
|
+
if "SetBy" in kwargs:
|
|
1138
|
+
self.SetBy = kwargs["SetBy"]
|
|
1224
1139
|
def __del__(self):
|
|
1225
1140
|
_whatsapp.DecRef(self.handle)
|
|
1226
1141
|
def __str__(self):
|
|
1227
1142
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1228
|
-
sv = 'whatsapp.
|
|
1143
|
+
sv = 'whatsapp.GroupSubject{'
|
|
1229
1144
|
first = True
|
|
1230
1145
|
for v in pr:
|
|
1231
1146
|
if callable(v[1]):
|
|
@@ -1238,214 +1153,62 @@ class Message(go.GoClass):
|
|
|
1238
1153
|
return sv + '}'
|
|
1239
1154
|
def __repr__(self):
|
|
1240
1155
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1241
|
-
sv = 'whatsapp.
|
|
1156
|
+
sv = 'whatsapp.GroupSubject ( '
|
|
1242
1157
|
for v in pr:
|
|
1243
1158
|
if not callable(v[1]):
|
|
1244
1159
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1245
1160
|
return sv + ')'
|
|
1246
1161
|
@property
|
|
1247
|
-
def
|
|
1248
|
-
return _whatsapp.
|
|
1249
|
-
@
|
|
1250
|
-
def
|
|
1251
|
-
if isinstance(value, go.GoClass):
|
|
1252
|
-
_whatsapp.whatsapp_Message_Kind_Set(self.handle, value.handle)
|
|
1253
|
-
else:
|
|
1254
|
-
_whatsapp.whatsapp_Message_Kind_Set(self.handle, value)
|
|
1255
|
-
@property
|
|
1256
|
-
def ID(self):
|
|
1257
|
-
return _whatsapp.whatsapp_Message_ID_Get(self.handle)
|
|
1258
|
-
@ID.setter
|
|
1259
|
-
def ID(self, value):
|
|
1162
|
+
def Subject(self):
|
|
1163
|
+
return _whatsapp.whatsapp_GroupSubject_Subject_Get(self.handle)
|
|
1164
|
+
@Subject.setter
|
|
1165
|
+
def Subject(self, value):
|
|
1260
1166
|
if isinstance(value, go.GoClass):
|
|
1261
|
-
_whatsapp.
|
|
1167
|
+
_whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value.handle)
|
|
1262
1168
|
else:
|
|
1263
|
-
_whatsapp.
|
|
1169
|
+
_whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value)
|
|
1264
1170
|
@property
|
|
1265
|
-
def
|
|
1266
|
-
return _whatsapp.
|
|
1267
|
-
@
|
|
1268
|
-
def
|
|
1171
|
+
def SetAt(self):
|
|
1172
|
+
return _whatsapp.whatsapp_GroupSubject_SetAt_Get(self.handle)
|
|
1173
|
+
@SetAt.setter
|
|
1174
|
+
def SetAt(self, value):
|
|
1269
1175
|
if isinstance(value, go.GoClass):
|
|
1270
|
-
_whatsapp.
|
|
1176
|
+
_whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value.handle)
|
|
1271
1177
|
else:
|
|
1272
|
-
_whatsapp.
|
|
1178
|
+
_whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value)
|
|
1273
1179
|
@property
|
|
1274
|
-
def
|
|
1275
|
-
return _whatsapp.
|
|
1276
|
-
@
|
|
1277
|
-
def
|
|
1180
|
+
def SetBy(self):
|
|
1181
|
+
return _whatsapp.whatsapp_GroupSubject_SetBy_Get(self.handle)
|
|
1182
|
+
@SetBy.setter
|
|
1183
|
+
def SetBy(self, value):
|
|
1278
1184
|
if isinstance(value, go.GoClass):
|
|
1279
|
-
_whatsapp.
|
|
1185
|
+
_whatsapp.whatsapp_GroupSubject_SetBy_Set(self.handle, value.handle)
|
|
1280
1186
|
else:
|
|
1281
|
-
_whatsapp.
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
def
|
|
1287
|
-
|
|
1288
|
-
|
|
1187
|
+
_whatsapp.whatsapp_GroupSubject_SetBy_Set(self.handle, value)
|
|
1188
|
+
|
|
1189
|
+
# Python type for struct whatsapp.Session
|
|
1190
|
+
class Session(go.GoClass):
|
|
1191
|
+
"""A Session represents a connection (active or not) between a linked device and WhatsApp. Active\nsessions need to be established by logging in, after which incoming events will be forwarded to\nthe adapter event handler, and outgoing events will be forwarded to WhatsApp.\n"""
|
|
1192
|
+
def __init__(self, *args, **kwargs):
|
|
1193
|
+
"""
|
|
1194
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1195
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
1196
|
+
in which case a new Go object is constructed first
|
|
1197
|
+
"""
|
|
1198
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1199
|
+
self.handle = kwargs['handle']
|
|
1200
|
+
_whatsapp.IncRef(self.handle)
|
|
1201
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1202
|
+
self.handle = args[0].handle
|
|
1203
|
+
_whatsapp.IncRef(self.handle)
|
|
1289
1204
|
else:
|
|
1290
|
-
|
|
1291
|
-
@property
|
|
1292
|
-
def Body(self):
|
|
1293
|
-
return _whatsapp.whatsapp_Message_Body_Get(self.handle)
|
|
1294
|
-
@Body.setter
|
|
1295
|
-
def Body(self, value):
|
|
1296
|
-
if isinstance(value, go.GoClass):
|
|
1297
|
-
_whatsapp.whatsapp_Message_Body_Set(self.handle, value.handle)
|
|
1298
|
-
else:
|
|
1299
|
-
_whatsapp.whatsapp_Message_Body_Set(self.handle, value)
|
|
1300
|
-
@property
|
|
1301
|
-
def Timestamp(self):
|
|
1302
|
-
return _whatsapp.whatsapp_Message_Timestamp_Get(self.handle)
|
|
1303
|
-
@Timestamp.setter
|
|
1304
|
-
def Timestamp(self, value):
|
|
1305
|
-
if isinstance(value, go.GoClass):
|
|
1306
|
-
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value.handle)
|
|
1307
|
-
else:
|
|
1308
|
-
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value)
|
|
1309
|
-
@property
|
|
1310
|
-
def IsCarbon(self):
|
|
1311
|
-
return _whatsapp.whatsapp_Message_IsCarbon_Get(self.handle)
|
|
1312
|
-
@IsCarbon.setter
|
|
1313
|
-
def IsCarbon(self, value):
|
|
1314
|
-
if isinstance(value, go.GoClass):
|
|
1315
|
-
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value.handle)
|
|
1316
|
-
else:
|
|
1317
|
-
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value)
|
|
1318
|
-
@property
|
|
1319
|
-
def IsForwarded(self):
|
|
1320
|
-
return _whatsapp.whatsapp_Message_IsForwarded_Get(self.handle)
|
|
1321
|
-
@IsForwarded.setter
|
|
1322
|
-
def IsForwarded(self, value):
|
|
1323
|
-
if isinstance(value, go.GoClass):
|
|
1324
|
-
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value.handle)
|
|
1325
|
-
else:
|
|
1326
|
-
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value)
|
|
1327
|
-
@property
|
|
1328
|
-
def ReplyID(self):
|
|
1329
|
-
return _whatsapp.whatsapp_Message_ReplyID_Get(self.handle)
|
|
1330
|
-
@ReplyID.setter
|
|
1331
|
-
def ReplyID(self, value):
|
|
1332
|
-
if isinstance(value, go.GoClass):
|
|
1333
|
-
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value.handle)
|
|
1334
|
-
else:
|
|
1335
|
-
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value)
|
|
1336
|
-
@property
|
|
1337
|
-
def ReplyBody(self):
|
|
1338
|
-
return _whatsapp.whatsapp_Message_ReplyBody_Get(self.handle)
|
|
1339
|
-
@ReplyBody.setter
|
|
1340
|
-
def ReplyBody(self, value):
|
|
1341
|
-
if isinstance(value, go.GoClass):
|
|
1342
|
-
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value.handle)
|
|
1343
|
-
else:
|
|
1344
|
-
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value)
|
|
1345
|
-
@property
|
|
1346
|
-
def Attachments(self):
|
|
1347
|
-
return Slice_whatsapp_Attachment(handle=_whatsapp.whatsapp_Message_Attachments_Get(self.handle))
|
|
1348
|
-
@Attachments.setter
|
|
1349
|
-
def Attachments(self, value):
|
|
1350
|
-
if isinstance(value, go.GoClass):
|
|
1351
|
-
_whatsapp.whatsapp_Message_Attachments_Set(self.handle, value.handle)
|
|
1352
|
-
else:
|
|
1353
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1354
|
-
@property
|
|
1355
|
-
def Preview(self):
|
|
1356
|
-
return Preview(handle=_whatsapp.whatsapp_Message_Preview_Get(self.handle))
|
|
1357
|
-
@Preview.setter
|
|
1358
|
-
def Preview(self, value):
|
|
1359
|
-
if isinstance(value, go.GoClass):
|
|
1360
|
-
_whatsapp.whatsapp_Message_Preview_Set(self.handle, value.handle)
|
|
1361
|
-
else:
|
|
1362
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1363
|
-
@property
|
|
1364
|
-
def Location(self):
|
|
1365
|
-
return Location(handle=_whatsapp.whatsapp_Message_Location_Get(self.handle))
|
|
1366
|
-
@Location.setter
|
|
1367
|
-
def Location(self, value):
|
|
1368
|
-
if isinstance(value, go.GoClass):
|
|
1369
|
-
_whatsapp.whatsapp_Message_Location_Set(self.handle, value.handle)
|
|
1370
|
-
else:
|
|
1371
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1372
|
-
@property
|
|
1373
|
-
def Poll(self):
|
|
1374
|
-
return Poll(handle=_whatsapp.whatsapp_Message_Poll_Get(self.handle))
|
|
1375
|
-
@Poll.setter
|
|
1376
|
-
def Poll(self, value):
|
|
1377
|
-
if isinstance(value, go.GoClass):
|
|
1378
|
-
_whatsapp.whatsapp_Message_Poll_Set(self.handle, value.handle)
|
|
1379
|
-
else:
|
|
1380
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1381
|
-
@property
|
|
1382
|
-
def Album(self):
|
|
1383
|
-
return Album(handle=_whatsapp.whatsapp_Message_Album_Get(self.handle))
|
|
1384
|
-
@Album.setter
|
|
1385
|
-
def Album(self, value):
|
|
1386
|
-
if isinstance(value, go.GoClass):
|
|
1387
|
-
_whatsapp.whatsapp_Message_Album_Set(self.handle, value.handle)
|
|
1388
|
-
else:
|
|
1389
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1390
|
-
@property
|
|
1391
|
-
def MentionJIDs(self):
|
|
1392
|
-
return go.Slice_string(handle=_whatsapp.whatsapp_Message_MentionJIDs_Get(self.handle))
|
|
1393
|
-
@MentionJIDs.setter
|
|
1394
|
-
def MentionJIDs(self, value):
|
|
1395
|
-
if isinstance(value, go.GoClass):
|
|
1396
|
-
_whatsapp.whatsapp_Message_MentionJIDs_Set(self.handle, value.handle)
|
|
1397
|
-
else:
|
|
1398
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1399
|
-
@property
|
|
1400
|
-
def Receipts(self):
|
|
1401
|
-
return Slice_whatsapp_Receipt(handle=_whatsapp.whatsapp_Message_Receipts_Get(self.handle))
|
|
1402
|
-
@Receipts.setter
|
|
1403
|
-
def Receipts(self, value):
|
|
1404
|
-
if isinstance(value, go.GoClass):
|
|
1405
|
-
_whatsapp.whatsapp_Message_Receipts_Set(self.handle, value.handle)
|
|
1406
|
-
else:
|
|
1407
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1408
|
-
@property
|
|
1409
|
-
def Reactions(self):
|
|
1410
|
-
return Slice_whatsapp_Message(handle=_whatsapp.whatsapp_Message_Reactions_Get(self.handle))
|
|
1411
|
-
@Reactions.setter
|
|
1412
|
-
def Reactions(self, value):
|
|
1413
|
-
if isinstance(value, go.GoClass):
|
|
1414
|
-
_whatsapp.whatsapp_Message_Reactions_Set(self.handle, value.handle)
|
|
1415
|
-
else:
|
|
1416
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1417
|
-
|
|
1418
|
-
# Python type for struct whatsapp.Poll
|
|
1419
|
-
class Poll(go.GoClass):
|
|
1420
|
-
"""A Poll represents a multiple-choice question, on which each choice might be voted for one or more\ntimes.\n"""
|
|
1421
|
-
def __init__(self, *args, **kwargs):
|
|
1422
|
-
"""
|
|
1423
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1424
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
1425
|
-
in which case a new Go object is constructed first
|
|
1426
|
-
"""
|
|
1427
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1428
|
-
self.handle = kwargs['handle']
|
|
1429
|
-
_whatsapp.IncRef(self.handle)
|
|
1430
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1431
|
-
self.handle = args[0].handle
|
|
1432
|
-
_whatsapp.IncRef(self.handle)
|
|
1433
|
-
else:
|
|
1434
|
-
self.handle = _whatsapp.whatsapp_Poll_CTor()
|
|
1205
|
+
self.handle = _whatsapp.whatsapp_Session_CTor()
|
|
1435
1206
|
_whatsapp.IncRef(self.handle)
|
|
1436
|
-
if 0 < len(args):
|
|
1437
|
-
self.Title = args[0]
|
|
1438
|
-
if "Title" in kwargs:
|
|
1439
|
-
self.Title = kwargs["Title"]
|
|
1440
|
-
if 1 < len(args):
|
|
1441
|
-
self.Options = args[1]
|
|
1442
|
-
if "Options" in kwargs:
|
|
1443
|
-
self.Options = kwargs["Options"]
|
|
1444
1207
|
def __del__(self):
|
|
1445
1208
|
_whatsapp.DecRef(self.handle)
|
|
1446
1209
|
def __str__(self):
|
|
1447
1210
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1448
|
-
sv = 'whatsapp.
|
|
1211
|
+
sv = 'whatsapp.Session{'
|
|
1449
1212
|
first = True
|
|
1450
1213
|
for v in pr:
|
|
1451
1214
|
if callable(v[1]):
|
|
@@ -1458,33 +1221,167 @@ class Poll(go.GoClass):
|
|
|
1458
1221
|
return sv + '}'
|
|
1459
1222
|
def __repr__(self):
|
|
1460
1223
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1461
|
-
sv = 'whatsapp.
|
|
1224
|
+
sv = 'whatsapp.Session ( '
|
|
1462
1225
|
for v in pr:
|
|
1463
1226
|
if not callable(v[1]):
|
|
1464
1227
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1465
1228
|
return sv + ')'
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1229
|
+
def Login(self):
|
|
1230
|
+
"""Login() str
|
|
1231
|
+
|
|
1232
|
+
Login attempts to authenticate the given [Session], either by re-using the [LinkedDevice] attached
|
|
1233
|
+
or by initiating a pairing session for a new linked device. Callers are expected to have set an
|
|
1234
|
+
event handler in order to receive any incoming events from the underlying WhatsApp session.
|
|
1235
|
+
"""
|
|
1236
|
+
return _whatsapp.whatsapp_Session_Login(self.handle)
|
|
1237
|
+
def Logout(self):
|
|
1238
|
+
"""Logout() str
|
|
1239
|
+
|
|
1240
|
+
Logout disconnects and removes the current linked device locally and initiates a logout remotely.
|
|
1241
|
+
"""
|
|
1242
|
+
return _whatsapp.whatsapp_Session_Logout(self.handle)
|
|
1243
|
+
def Disconnect(self):
|
|
1244
|
+
"""Disconnect() str
|
|
1245
|
+
|
|
1246
|
+
Disconnects detaches the current connection to WhatsApp without removing any linked device state.
|
|
1247
|
+
"""
|
|
1248
|
+
return _whatsapp.whatsapp_Session_Disconnect(self.handle)
|
|
1249
|
+
def PairPhone(self, phone):
|
|
1250
|
+
"""PairPhone(str phone) str, str
|
|
1251
|
+
|
|
1252
|
+
PairPhone returns a one-time code from WhatsApp, used for pairing this [Session] against the
|
|
1253
|
+
user's primary device, as identified by the given phone number. This will return an error if the
|
|
1254
|
+
[Session] is already paired, or if the phone number given is empty or invalid.
|
|
1255
|
+
"""
|
|
1256
|
+
return _whatsapp.whatsapp_Session_PairPhone(self.handle, phone)
|
|
1257
|
+
def SendMessage(self, message):
|
|
1258
|
+
"""SendMessage(object message) str
|
|
1259
|
+
|
|
1260
|
+
SendMessage processes the given Message and sends a WhatsApp message for the kind and contact JID
|
|
1261
|
+
specified within. In general, different message kinds require different fields to be set; see the
|
|
1262
|
+
documentation for the [Message] type for more information.
|
|
1263
|
+
"""
|
|
1264
|
+
return _whatsapp.whatsapp_Session_SendMessage(self.handle, message.handle)
|
|
1265
|
+
def GenerateMessageID(self):
|
|
1266
|
+
"""GenerateMessageID() str
|
|
1267
|
+
|
|
1268
|
+
GenerateMessageID returns a valid, pseudo-random message ID for use in outgoing messages.
|
|
1269
|
+
"""
|
|
1270
|
+
return _whatsapp.whatsapp_Session_GenerateMessageID(self.handle)
|
|
1271
|
+
def SendChatState(self, state):
|
|
1272
|
+
"""SendChatState(object state) str
|
|
1273
|
+
|
|
1274
|
+
SendChatState sends the given chat state notification (e.g. composing message) to WhatsApp for the
|
|
1275
|
+
contact specified within.
|
|
1276
|
+
"""
|
|
1277
|
+
return _whatsapp.whatsapp_Session_SendChatState(self.handle, state.handle)
|
|
1278
|
+
def SendReceipt(self, receipt):
|
|
1279
|
+
"""SendReceipt(object receipt) str
|
|
1280
|
+
|
|
1281
|
+
SendReceipt sends a read receipt to WhatsApp for the message IDs specified within.
|
|
1282
|
+
"""
|
|
1283
|
+
return _whatsapp.whatsapp_Session_SendReceipt(self.handle, receipt.handle)
|
|
1284
|
+
def SendPresence(self, presence, statusMessage):
|
|
1285
|
+
"""SendPresence(int presence, str statusMessage) str
|
|
1286
|
+
|
|
1287
|
+
SendPresence sets the activity state and (optional) status message for the current session and
|
|
1288
|
+
user. An error is returned if setting availability fails for any reason.
|
|
1289
|
+
"""
|
|
1290
|
+
return _whatsapp.whatsapp_Session_SendPresence(self.handle, presence, statusMessage)
|
|
1291
|
+
def GetContacts(self, refresh):
|
|
1292
|
+
"""GetContacts(bool refresh) []object, str
|
|
1293
|
+
|
|
1294
|
+
GetContacts subscribes to the WhatsApp roster currently stored in the Session's internal state.
|
|
1295
|
+
If `refresh` is `true`, FetchRoster will pull application state from the remote service and
|
|
1296
|
+
synchronize any contacts found with the adapter.
|
|
1297
|
+
"""
|
|
1298
|
+
return Slice_whatsapp_Contact(handle=_whatsapp.whatsapp_Session_GetContacts(self.handle, refresh))
|
|
1299
|
+
def GetGroups(self):
|
|
1300
|
+
"""GetGroups() []object, str
|
|
1301
|
+
|
|
1302
|
+
GetGroups returns a list of all group-chats currently joined in WhatsApp, along with additional
|
|
1303
|
+
information on present participants.
|
|
1304
|
+
"""
|
|
1305
|
+
return Slice_whatsapp_Group(handle=_whatsapp.whatsapp_Session_GetGroups(self.handle))
|
|
1306
|
+
def CreateGroup(self, name, participants):
|
|
1307
|
+
"""CreateGroup(str name, []str participants) object, str
|
|
1308
|
+
|
|
1309
|
+
CreateGroup attempts to create a new WhatsApp group for the given human-readable name and
|
|
1310
|
+
participant JIDs given.
|
|
1311
|
+
"""
|
|
1312
|
+
return Group(handle=_whatsapp.whatsapp_Session_CreateGroup(self.handle, name, participants.handle))
|
|
1313
|
+
def LeaveGroup(self, resourceID):
|
|
1314
|
+
"""LeaveGroup(str resourceID) str
|
|
1315
|
+
|
|
1316
|
+
LeaveGroup attempts to remove our own user from the given WhatsApp group, for the JID given.
|
|
1317
|
+
"""
|
|
1318
|
+
return _whatsapp.whatsapp_Session_LeaveGroup(self.handle, resourceID)
|
|
1319
|
+
def GetAvatar(self, resourceID, avatarID):
|
|
1320
|
+
"""GetAvatar(str resourceID, str avatarID) object, str
|
|
1321
|
+
|
|
1322
|
+
GetAvatar fetches a profile picture for the Contact or Group JID given. If a non-empty `avatarID`
|
|
1323
|
+
is also given, GetAvatar will return an empty [Avatar] instance with no error if the remote state
|
|
1324
|
+
for the given ID has not changed.
|
|
1325
|
+
"""
|
|
1326
|
+
return Avatar(handle=_whatsapp.whatsapp_Session_GetAvatar(self.handle, resourceID, avatarID))
|
|
1327
|
+
def SetAvatar(self, resourceID, avatar):
|
|
1328
|
+
"""SetAvatar(str resourceID, []int avatar) str, str
|
|
1329
|
+
|
|
1330
|
+
SetAvatar updates the profile picture for the Contact or Group JID given; it can also update the
|
|
1331
|
+
profile picture for our own user by providing an empty JID. The unique picture ID is returned,
|
|
1332
|
+
typically used as a cache reference or in providing to future calls for [Session.GetAvatar].
|
|
1333
|
+
"""
|
|
1334
|
+
return _whatsapp.whatsapp_Session_SetAvatar(self.handle, resourceID, avatar.handle)
|
|
1335
|
+
def SetGroupName(self, resourceID, name):
|
|
1336
|
+
"""SetGroupName(str resourceID, str name) str
|
|
1337
|
+
|
|
1338
|
+
SetGroupName updates the name of a WhatsApp group for the Group JID given.
|
|
1339
|
+
"""
|
|
1340
|
+
return _whatsapp.whatsapp_Session_SetGroupName(self.handle, resourceID, name)
|
|
1341
|
+
def SetGroupTopic(self, resourceID, topic):
|
|
1342
|
+
"""SetGroupTopic(str resourceID, str topic) str
|
|
1343
|
+
|
|
1344
|
+
SetGroupName updates the topic of a WhatsApp group for the Group JID given.
|
|
1345
|
+
"""
|
|
1346
|
+
return _whatsapp.whatsapp_Session_SetGroupTopic(self.handle, resourceID, topic)
|
|
1347
|
+
def UpdateGroupParticipants(self, resourceID, participants):
|
|
1348
|
+
"""UpdateGroupParticipants(str resourceID, []object participants) []object, str
|
|
1349
|
+
|
|
1350
|
+
UpdateGroupParticipants processes changes to the given group's participants, including additions,
|
|
1351
|
+
removals, and changes to privileges. Participant JIDs given must be part of the authenticated
|
|
1352
|
+
session's roster at least, and must also be active group participants for other types of changes.
|
|
1353
|
+
"""
|
|
1354
|
+
return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Session_UpdateGroupParticipants(self.handle, resourceID, participants.handle))
|
|
1355
|
+
def FindContact(self, phone):
|
|
1356
|
+
"""FindContact(str phone) object, str
|
|
1357
|
+
|
|
1358
|
+
FindContact attempts to check for a registered contact on WhatsApp corresponding to the given
|
|
1359
|
+
phone number, returning a concrete instance if found; typically, only the contact JID is set. No
|
|
1360
|
+
error is returned if no contact was found, but any unexpected errors will otherwise be returned
|
|
1361
|
+
directly.
|
|
1362
|
+
"""
|
|
1363
|
+
return Contact(handle=_whatsapp.whatsapp_Session_FindContact(self.handle, phone))
|
|
1364
|
+
def RequestMessageHistory(self, resourceID, oldestMessage):
|
|
1365
|
+
"""RequestMessageHistory(str resourceID, object oldestMessage) str
|
|
1366
|
+
|
|
1367
|
+
RequestMessageHistory sends and asynchronous request for message history related to the given
|
|
1368
|
+
resource (e.g. Contact or Group JID), ending at the oldest message given. Messages returned from
|
|
1369
|
+
history should then be handled as a `HistorySync` event of type `ON_DEMAND`, in the session-wide
|
|
1370
|
+
event handler. An error will be returned if requesting history fails for any reason.
|
|
1371
|
+
"""
|
|
1372
|
+
return _whatsapp.whatsapp_Session_RequestMessageHistory(self.handle, resourceID, oldestMessage.handle)
|
|
1373
|
+
def SetEventHandler(self, h, goRun=False):
|
|
1374
|
+
"""SetEventHandler(callable h)
|
|
1375
|
+
|
|
1376
|
+
SetEventHandler assigns the given handler function for propagating internal events into the Python
|
|
1377
|
+
gateway. Note that the event handler function is not entirely safe to use directly, and all calls
|
|
1378
|
+
should instead be sent to the [Gateway] via its internal call channel.
|
|
1379
|
+
"""
|
|
1380
|
+
_whatsapp.whatsapp_Session_SetEventHandler(self.handle, h, goRun)
|
|
1484
1381
|
|
|
1485
|
-
# Python type for struct whatsapp.
|
|
1486
|
-
class
|
|
1487
|
-
"""
|
|
1382
|
+
# Python type for struct whatsapp.Attachment
|
|
1383
|
+
class Attachment(go.GoClass):
|
|
1384
|
+
"""A Attachment represents additional binary data (e.g. images, videos, documents) provided alongside\na message, for display or storage on the recepient client.\n"""
|
|
1488
1385
|
def __init__(self, *args, **kwargs):
|
|
1489
1386
|
"""
|
|
1490
1387
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1498,25 +1395,29 @@ class Presence(go.GoClass):
|
|
|
1498
1395
|
self.handle = args[0].handle
|
|
1499
1396
|
_whatsapp.IncRef(self.handle)
|
|
1500
1397
|
else:
|
|
1501
|
-
self.handle = _whatsapp.
|
|
1398
|
+
self.handle = _whatsapp.whatsapp_Attachment_CTor()
|
|
1502
1399
|
_whatsapp.IncRef(self.handle)
|
|
1503
1400
|
if 0 < len(args):
|
|
1504
|
-
self.
|
|
1505
|
-
if "
|
|
1506
|
-
self.
|
|
1401
|
+
self.MIME = args[0]
|
|
1402
|
+
if "MIME" in kwargs:
|
|
1403
|
+
self.MIME = kwargs["MIME"]
|
|
1507
1404
|
if 1 < len(args):
|
|
1508
|
-
self.
|
|
1509
|
-
if "
|
|
1510
|
-
self.
|
|
1405
|
+
self.Filename = args[1]
|
|
1406
|
+
if "Filename" in kwargs:
|
|
1407
|
+
self.Filename = kwargs["Filename"]
|
|
1511
1408
|
if 2 < len(args):
|
|
1512
|
-
self.
|
|
1513
|
-
if "
|
|
1514
|
-
self.
|
|
1409
|
+
self.Caption = args[2]
|
|
1410
|
+
if "Caption" in kwargs:
|
|
1411
|
+
self.Caption = kwargs["Caption"]
|
|
1412
|
+
if 3 < len(args):
|
|
1413
|
+
self.Data = args[3]
|
|
1414
|
+
if "Data" in kwargs:
|
|
1415
|
+
self.Data = kwargs["Data"]
|
|
1515
1416
|
def __del__(self):
|
|
1516
1417
|
_whatsapp.DecRef(self.handle)
|
|
1517
1418
|
def __str__(self):
|
|
1518
1419
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1519
|
-
sv = 'whatsapp.
|
|
1420
|
+
sv = 'whatsapp.Attachment{'
|
|
1520
1421
|
first = True
|
|
1521
1422
|
for v in pr:
|
|
1522
1423
|
if callable(v[1]):
|
|
@@ -1529,42 +1430,57 @@ class Presence(go.GoClass):
|
|
|
1529
1430
|
return sv + '}'
|
|
1530
1431
|
def __repr__(self):
|
|
1531
1432
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1532
|
-
sv = 'whatsapp.
|
|
1433
|
+
sv = 'whatsapp.Attachment ( '
|
|
1533
1434
|
for v in pr:
|
|
1534
1435
|
if not callable(v[1]):
|
|
1535
1436
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1536
1437
|
return sv + ')'
|
|
1537
1438
|
@property
|
|
1538
|
-
def
|
|
1539
|
-
return _whatsapp.
|
|
1540
|
-
@
|
|
1541
|
-
def
|
|
1439
|
+
def MIME(self):
|
|
1440
|
+
return _whatsapp.whatsapp_Attachment_MIME_Get(self.handle)
|
|
1441
|
+
@MIME.setter
|
|
1442
|
+
def MIME(self, value):
|
|
1542
1443
|
if isinstance(value, go.GoClass):
|
|
1543
|
-
_whatsapp.
|
|
1444
|
+
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value.handle)
|
|
1544
1445
|
else:
|
|
1545
|
-
_whatsapp.
|
|
1446
|
+
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value)
|
|
1546
1447
|
@property
|
|
1547
|
-
def
|
|
1548
|
-
return _whatsapp.
|
|
1549
|
-
@
|
|
1550
|
-
def
|
|
1448
|
+
def Filename(self):
|
|
1449
|
+
return _whatsapp.whatsapp_Attachment_Filename_Get(self.handle)
|
|
1450
|
+
@Filename.setter
|
|
1451
|
+
def Filename(self, value):
|
|
1551
1452
|
if isinstance(value, go.GoClass):
|
|
1552
|
-
_whatsapp.
|
|
1453
|
+
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value.handle)
|
|
1553
1454
|
else:
|
|
1554
|
-
_whatsapp.
|
|
1455
|
+
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value)
|
|
1555
1456
|
@property
|
|
1556
|
-
def
|
|
1557
|
-
return _whatsapp.
|
|
1558
|
-
@
|
|
1559
|
-
def
|
|
1457
|
+
def Caption(self):
|
|
1458
|
+
return _whatsapp.whatsapp_Attachment_Caption_Get(self.handle)
|
|
1459
|
+
@Caption.setter
|
|
1460
|
+
def Caption(self, value):
|
|
1560
1461
|
if isinstance(value, go.GoClass):
|
|
1561
|
-
_whatsapp.
|
|
1462
|
+
_whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value.handle)
|
|
1562
1463
|
else:
|
|
1563
|
-
_whatsapp.
|
|
1464
|
+
_whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value)
|
|
1465
|
+
@property
|
|
1466
|
+
def Data(self):
|
|
1467
|
+
return go.Slice_byte(handle=_whatsapp.whatsapp_Attachment_Data_Get(self.handle))
|
|
1468
|
+
@Data.setter
|
|
1469
|
+
def Data(self, value):
|
|
1470
|
+
if isinstance(value, go.GoClass):
|
|
1471
|
+
_whatsapp.whatsapp_Attachment_Data_Set(self.handle, value.handle)
|
|
1472
|
+
else:
|
|
1473
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1474
|
+
def GetSpec(self, ctx):
|
|
1475
|
+
"""GetSpec(object ctx) object, str
|
|
1476
|
+
|
|
1477
|
+
GetSpec returns metadata for this attachment, as derived from the underlying attachment data.
|
|
1478
|
+
"""
|
|
1479
|
+
return go.Ptr_media_Spec(handle=_whatsapp.whatsapp_Attachment_GetSpec(self.handle, ctx.handle))
|
|
1564
1480
|
|
|
1565
|
-
# Python type for struct whatsapp.
|
|
1566
|
-
class
|
|
1567
|
-
"""A
|
|
1481
|
+
# Python type for struct whatsapp.Call
|
|
1482
|
+
class Call(go.GoClass):
|
|
1483
|
+
"""A Call represents an incoming or outgoing voice/video call made over WhatsApp. Full support for\ncalls is currently not implemented, and this structure contains the bare minimum data required\nfor notifying on missed calls.\n"""
|
|
1568
1484
|
def __init__(self, *args, **kwargs):
|
|
1569
1485
|
"""
|
|
1570
1486
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1578,25 +1494,25 @@ class ChatState(go.GoClass):
|
|
|
1578
1494
|
self.handle = args[0].handle
|
|
1579
1495
|
_whatsapp.IncRef(self.handle)
|
|
1580
1496
|
else:
|
|
1581
|
-
self.handle = _whatsapp.
|
|
1497
|
+
self.handle = _whatsapp.whatsapp_Call_CTor()
|
|
1582
1498
|
_whatsapp.IncRef(self.handle)
|
|
1583
1499
|
if 0 < len(args):
|
|
1584
|
-
self.
|
|
1585
|
-
if "
|
|
1586
|
-
self.
|
|
1500
|
+
self.State = args[0]
|
|
1501
|
+
if "State" in kwargs:
|
|
1502
|
+
self.State = kwargs["State"]
|
|
1587
1503
|
if 1 < len(args):
|
|
1588
1504
|
self.JID = args[1]
|
|
1589
1505
|
if "JID" in kwargs:
|
|
1590
1506
|
self.JID = kwargs["JID"]
|
|
1591
1507
|
if 2 < len(args):
|
|
1592
|
-
self.
|
|
1593
|
-
if "
|
|
1594
|
-
self.
|
|
1508
|
+
self.Timestamp = args[2]
|
|
1509
|
+
if "Timestamp" in kwargs:
|
|
1510
|
+
self.Timestamp = kwargs["Timestamp"]
|
|
1595
1511
|
def __del__(self):
|
|
1596
1512
|
_whatsapp.DecRef(self.handle)
|
|
1597
1513
|
def __str__(self):
|
|
1598
1514
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1599
|
-
sv = 'whatsapp.
|
|
1515
|
+
sv = 'whatsapp.Call{'
|
|
1600
1516
|
first = True
|
|
1601
1517
|
for v in pr:
|
|
1602
1518
|
if callable(v[1]):
|
|
@@ -1609,42 +1525,42 @@ class ChatState(go.GoClass):
|
|
|
1609
1525
|
return sv + '}'
|
|
1610
1526
|
def __repr__(self):
|
|
1611
1527
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1612
|
-
sv = 'whatsapp.
|
|
1528
|
+
sv = 'whatsapp.Call ( '
|
|
1613
1529
|
for v in pr:
|
|
1614
1530
|
if not callable(v[1]):
|
|
1615
1531
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1616
1532
|
return sv + ')'
|
|
1617
1533
|
@property
|
|
1618
|
-
def
|
|
1619
|
-
return _whatsapp.
|
|
1620
|
-
@
|
|
1621
|
-
def
|
|
1534
|
+
def State(self):
|
|
1535
|
+
return _whatsapp.whatsapp_Call_State_Get(self.handle)
|
|
1536
|
+
@State.setter
|
|
1537
|
+
def State(self, value):
|
|
1622
1538
|
if isinstance(value, go.GoClass):
|
|
1623
|
-
_whatsapp.
|
|
1539
|
+
_whatsapp.whatsapp_Call_State_Set(self.handle, value.handle)
|
|
1624
1540
|
else:
|
|
1625
|
-
_whatsapp.
|
|
1541
|
+
_whatsapp.whatsapp_Call_State_Set(self.handle, value)
|
|
1626
1542
|
@property
|
|
1627
1543
|
def JID(self):
|
|
1628
|
-
return _whatsapp.
|
|
1544
|
+
return _whatsapp.whatsapp_Call_JID_Get(self.handle)
|
|
1629
1545
|
@JID.setter
|
|
1630
1546
|
def JID(self, value):
|
|
1631
1547
|
if isinstance(value, go.GoClass):
|
|
1632
|
-
_whatsapp.
|
|
1548
|
+
_whatsapp.whatsapp_Call_JID_Set(self.handle, value.handle)
|
|
1633
1549
|
else:
|
|
1634
|
-
_whatsapp.
|
|
1550
|
+
_whatsapp.whatsapp_Call_JID_Set(self.handle, value)
|
|
1635
1551
|
@property
|
|
1636
|
-
def
|
|
1637
|
-
return _whatsapp.
|
|
1638
|
-
@
|
|
1639
|
-
def
|
|
1552
|
+
def Timestamp(self):
|
|
1553
|
+
return _whatsapp.whatsapp_Call_Timestamp_Get(self.handle)
|
|
1554
|
+
@Timestamp.setter
|
|
1555
|
+
def Timestamp(self, value):
|
|
1640
1556
|
if isinstance(value, go.GoClass):
|
|
1641
|
-
_whatsapp.
|
|
1557
|
+
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value.handle)
|
|
1642
1558
|
else:
|
|
1643
|
-
_whatsapp.
|
|
1559
|
+
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value)
|
|
1644
1560
|
|
|
1645
|
-
# Python type for struct whatsapp.
|
|
1646
|
-
class
|
|
1647
|
-
"""
|
|
1561
|
+
# Python type for struct whatsapp.Avatar
|
|
1562
|
+
class Avatar(go.GoClass):
|
|
1563
|
+
"""A Avatar represents a small image set for a Contact or Group.\n"""
|
|
1648
1564
|
def __init__(self, *args, **kwargs):
|
|
1649
1565
|
"""
|
|
1650
1566
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1658,21 +1574,21 @@ class Connect(go.GoClass):
|
|
|
1658
1574
|
self.handle = args[0].handle
|
|
1659
1575
|
_whatsapp.IncRef(self.handle)
|
|
1660
1576
|
else:
|
|
1661
|
-
self.handle = _whatsapp.
|
|
1577
|
+
self.handle = _whatsapp.whatsapp_Avatar_CTor()
|
|
1662
1578
|
_whatsapp.IncRef(self.handle)
|
|
1663
1579
|
if 0 < len(args):
|
|
1664
|
-
self.
|
|
1665
|
-
if "
|
|
1666
|
-
self.
|
|
1580
|
+
self.ID = args[0]
|
|
1581
|
+
if "ID" in kwargs:
|
|
1582
|
+
self.ID = kwargs["ID"]
|
|
1667
1583
|
if 1 < len(args):
|
|
1668
|
-
self.
|
|
1669
|
-
if "
|
|
1670
|
-
self.
|
|
1584
|
+
self.URL = args[1]
|
|
1585
|
+
if "URL" in kwargs:
|
|
1586
|
+
self.URL = kwargs["URL"]
|
|
1671
1587
|
def __del__(self):
|
|
1672
1588
|
_whatsapp.DecRef(self.handle)
|
|
1673
1589
|
def __str__(self):
|
|
1674
1590
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1675
|
-
sv = 'whatsapp.
|
|
1591
|
+
sv = 'whatsapp.Avatar{'
|
|
1676
1592
|
first = True
|
|
1677
1593
|
for v in pr:
|
|
1678
1594
|
if callable(v[1]):
|
|
@@ -1685,29 +1601,29 @@ class Connect(go.GoClass):
|
|
|
1685
1601
|
return sv + '}'
|
|
1686
1602
|
def __repr__(self):
|
|
1687
1603
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1688
|
-
sv = 'whatsapp.
|
|
1604
|
+
sv = 'whatsapp.Avatar ( '
|
|
1689
1605
|
for v in pr:
|
|
1690
1606
|
if not callable(v[1]):
|
|
1691
1607
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1692
1608
|
return sv + ')'
|
|
1693
1609
|
@property
|
|
1694
|
-
def
|
|
1695
|
-
return _whatsapp.
|
|
1696
|
-
@
|
|
1697
|
-
def
|
|
1610
|
+
def ID(self):
|
|
1611
|
+
return _whatsapp.whatsapp_Avatar_ID_Get(self.handle)
|
|
1612
|
+
@ID.setter
|
|
1613
|
+
def ID(self, value):
|
|
1698
1614
|
if isinstance(value, go.GoClass):
|
|
1699
|
-
_whatsapp.
|
|
1615
|
+
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value.handle)
|
|
1700
1616
|
else:
|
|
1701
|
-
_whatsapp.
|
|
1617
|
+
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value)
|
|
1702
1618
|
@property
|
|
1703
|
-
def
|
|
1704
|
-
return _whatsapp.
|
|
1705
|
-
@
|
|
1706
|
-
def
|
|
1619
|
+
def URL(self):
|
|
1620
|
+
return _whatsapp.whatsapp_Avatar_URL_Get(self.handle)
|
|
1621
|
+
@URL.setter
|
|
1622
|
+
def URL(self, value):
|
|
1707
1623
|
if isinstance(value, go.GoClass):
|
|
1708
|
-
_whatsapp.
|
|
1624
|
+
_whatsapp.whatsapp_Avatar_URL_Set(self.handle, value.handle)
|
|
1709
1625
|
else:
|
|
1710
|
-
_whatsapp.
|
|
1626
|
+
_whatsapp.whatsapp_Avatar_URL_Set(self.handle, value)
|
|
1711
1627
|
|
|
1712
1628
|
# Python type for struct whatsapp.EventPayload
|
|
1713
1629
|
class EventPayload(go.GoClass):
|
|
@@ -1740,31 +1656,35 @@ class EventPayload(go.GoClass):
|
|
|
1740
1656
|
if "Connect" in kwargs:
|
|
1741
1657
|
self.Connect = kwargs["Connect"]
|
|
1742
1658
|
if 3 < len(args):
|
|
1743
|
-
self.
|
|
1659
|
+
self.LoggedOut = args[3]
|
|
1660
|
+
if "LoggedOut" in kwargs:
|
|
1661
|
+
self.LoggedOut = kwargs["LoggedOut"]
|
|
1662
|
+
if 4 < len(args):
|
|
1663
|
+
self.Contact = args[4]
|
|
1744
1664
|
if "Contact" in kwargs:
|
|
1745
1665
|
self.Contact = kwargs["Contact"]
|
|
1746
|
-
if
|
|
1747
|
-
self.Presence = args[
|
|
1666
|
+
if 5 < len(args):
|
|
1667
|
+
self.Presence = args[5]
|
|
1748
1668
|
if "Presence" in kwargs:
|
|
1749
1669
|
self.Presence = kwargs["Presence"]
|
|
1750
|
-
if
|
|
1751
|
-
self.Message = args[
|
|
1670
|
+
if 6 < len(args):
|
|
1671
|
+
self.Message = args[6]
|
|
1752
1672
|
if "Message" in kwargs:
|
|
1753
1673
|
self.Message = kwargs["Message"]
|
|
1754
|
-
if
|
|
1755
|
-
self.ChatState = args[
|
|
1674
|
+
if 7 < len(args):
|
|
1675
|
+
self.ChatState = args[7]
|
|
1756
1676
|
if "ChatState" in kwargs:
|
|
1757
1677
|
self.ChatState = kwargs["ChatState"]
|
|
1758
|
-
if
|
|
1759
|
-
self.Receipt = args[
|
|
1678
|
+
if 8 < len(args):
|
|
1679
|
+
self.Receipt = args[8]
|
|
1760
1680
|
if "Receipt" in kwargs:
|
|
1761
1681
|
self.Receipt = kwargs["Receipt"]
|
|
1762
|
-
if
|
|
1763
|
-
self.Group = args[
|
|
1682
|
+
if 9 < len(args):
|
|
1683
|
+
self.Group = args[9]
|
|
1764
1684
|
if "Group" in kwargs:
|
|
1765
1685
|
self.Group = kwargs["Group"]
|
|
1766
|
-
if
|
|
1767
|
-
self.Call = args[
|
|
1686
|
+
if 10 < len(args):
|
|
1687
|
+
self.Call = args[10]
|
|
1768
1688
|
if "Call" in kwargs:
|
|
1769
1689
|
self.Call = kwargs["Call"]
|
|
1770
1690
|
def __del__(self):
|
|
@@ -1817,6 +1737,15 @@ class EventPayload(go.GoClass):
|
|
|
1817
1737
|
else:
|
|
1818
1738
|
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1819
1739
|
@property
|
|
1740
|
+
def LoggedOut(self):
|
|
1741
|
+
return LoggedOut(handle=_whatsapp.whatsapp_EventPayload_LoggedOut_Get(self.handle))
|
|
1742
|
+
@LoggedOut.setter
|
|
1743
|
+
def LoggedOut(self, value):
|
|
1744
|
+
if isinstance(value, go.GoClass):
|
|
1745
|
+
_whatsapp.whatsapp_EventPayload_LoggedOut_Set(self.handle, value.handle)
|
|
1746
|
+
else:
|
|
1747
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1748
|
+
@property
|
|
1820
1749
|
def Contact(self):
|
|
1821
1750
|
return Contact(handle=_whatsapp.whatsapp_EventPayload_Contact_Get(self.handle))
|
|
1822
1751
|
@Contact.setter
|
|
@@ -1837,234 +1766,48 @@ class EventPayload(go.GoClass):
|
|
|
1837
1766
|
@property
|
|
1838
1767
|
def Message(self):
|
|
1839
1768
|
return Message(handle=_whatsapp.whatsapp_EventPayload_Message_Get(self.handle))
|
|
1840
|
-
@Message.setter
|
|
1841
|
-
def Message(self, value):
|
|
1842
|
-
if isinstance(value, go.GoClass):
|
|
1843
|
-
_whatsapp.whatsapp_EventPayload_Message_Set(self.handle, value.handle)
|
|
1844
|
-
else:
|
|
1845
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1846
|
-
@property
|
|
1847
|
-
def ChatState(self):
|
|
1848
|
-
return ChatState(handle=_whatsapp.whatsapp_EventPayload_ChatState_Get(self.handle))
|
|
1849
|
-
@ChatState.setter
|
|
1850
|
-
def ChatState(self, value):
|
|
1851
|
-
if isinstance(value, go.GoClass):
|
|
1852
|
-
_whatsapp.whatsapp_EventPayload_ChatState_Set(self.handle, value.handle)
|
|
1853
|
-
else:
|
|
1854
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1855
|
-
@property
|
|
1856
|
-
def Receipt(self):
|
|
1857
|
-
return Receipt(handle=_whatsapp.whatsapp_EventPayload_Receipt_Get(self.handle))
|
|
1858
|
-
@Receipt.setter
|
|
1859
|
-
def Receipt(self, value):
|
|
1860
|
-
if isinstance(value, go.GoClass):
|
|
1861
|
-
_whatsapp.whatsapp_EventPayload_Receipt_Set(self.handle, value.handle)
|
|
1862
|
-
else:
|
|
1863
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1864
|
-
@property
|
|
1865
|
-
def Group(self):
|
|
1866
|
-
return Group(handle=_whatsapp.whatsapp_EventPayload_Group_Get(self.handle))
|
|
1867
|
-
@Group.setter
|
|
1868
|
-
def Group(self, value):
|
|
1869
|
-
if isinstance(value, go.GoClass):
|
|
1870
|
-
_whatsapp.whatsapp_EventPayload_Group_Set(self.handle, value.handle)
|
|
1871
|
-
else:
|
|
1872
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1873
|
-
@property
|
|
1874
|
-
def Call(self):
|
|
1875
|
-
return Call(handle=_whatsapp.whatsapp_EventPayload_Call_Get(self.handle))
|
|
1876
|
-
@Call.setter
|
|
1877
|
-
def Call(self, value):
|
|
1878
|
-
if isinstance(value, go.GoClass):
|
|
1879
|
-
_whatsapp.whatsapp_EventPayload_Call_Set(self.handle, value.handle)
|
|
1880
|
-
else:
|
|
1881
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1882
|
-
|
|
1883
|
-
# Python type for struct whatsapp.Group
|
|
1884
|
-
class Group(go.GoClass):
|
|
1885
|
-
"""A Group represents a named, many-to-many chat space which may be joined or left at will. All\nfields apart from the group JID are considered to be optional, and may not be set in cases where\ngroup information is being updated against previous assumed state. Groups in WhatsApp are\ngenerally invited to out-of-band with respect to overarching adaptor; see the documentation for\n[Session.GetGroups] for more information.\n"""
|
|
1886
|
-
def __init__(self, *args, **kwargs):
|
|
1887
|
-
"""
|
|
1888
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1889
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
1890
|
-
in which case a new Go object is constructed first
|
|
1891
|
-
"""
|
|
1892
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1893
|
-
self.handle = kwargs['handle']
|
|
1894
|
-
_whatsapp.IncRef(self.handle)
|
|
1895
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1896
|
-
self.handle = args[0].handle
|
|
1897
|
-
_whatsapp.IncRef(self.handle)
|
|
1898
|
-
else:
|
|
1899
|
-
self.handle = _whatsapp.whatsapp_Group_CTor()
|
|
1900
|
-
_whatsapp.IncRef(self.handle)
|
|
1901
|
-
if 0 < len(args):
|
|
1902
|
-
self.JID = args[0]
|
|
1903
|
-
if "JID" in kwargs:
|
|
1904
|
-
self.JID = kwargs["JID"]
|
|
1905
|
-
if 1 < len(args):
|
|
1906
|
-
self.Name = args[1]
|
|
1907
|
-
if "Name" in kwargs:
|
|
1908
|
-
self.Name = kwargs["Name"]
|
|
1909
|
-
if 2 < len(args):
|
|
1910
|
-
self.Subject = args[2]
|
|
1911
|
-
if "Subject" in kwargs:
|
|
1912
|
-
self.Subject = kwargs["Subject"]
|
|
1913
|
-
if 3 < len(args):
|
|
1914
|
-
self.Nickname = args[3]
|
|
1915
|
-
if "Nickname" in kwargs:
|
|
1916
|
-
self.Nickname = kwargs["Nickname"]
|
|
1917
|
-
if 4 < len(args):
|
|
1918
|
-
self.Participants = args[4]
|
|
1919
|
-
if "Participants" in kwargs:
|
|
1920
|
-
self.Participants = kwargs["Participants"]
|
|
1921
|
-
def __del__(self):
|
|
1922
|
-
_whatsapp.DecRef(self.handle)
|
|
1923
|
-
def __str__(self):
|
|
1924
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1925
|
-
sv = 'whatsapp.Group{'
|
|
1926
|
-
first = True
|
|
1927
|
-
for v in pr:
|
|
1928
|
-
if callable(v[1]):
|
|
1929
|
-
continue
|
|
1930
|
-
if first:
|
|
1931
|
-
first = False
|
|
1932
|
-
else:
|
|
1933
|
-
sv += ', '
|
|
1934
|
-
sv += v[0] + '=' + str(v[1])
|
|
1935
|
-
return sv + '}'
|
|
1936
|
-
def __repr__(self):
|
|
1937
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1938
|
-
sv = 'whatsapp.Group ( '
|
|
1939
|
-
for v in pr:
|
|
1940
|
-
if not callable(v[1]):
|
|
1941
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1942
|
-
return sv + ')'
|
|
1943
|
-
@property
|
|
1944
|
-
def JID(self):
|
|
1945
|
-
return _whatsapp.whatsapp_Group_JID_Get(self.handle)
|
|
1946
|
-
@JID.setter
|
|
1947
|
-
def JID(self, value):
|
|
1948
|
-
if isinstance(value, go.GoClass):
|
|
1949
|
-
_whatsapp.whatsapp_Group_JID_Set(self.handle, value.handle)
|
|
1950
|
-
else:
|
|
1951
|
-
_whatsapp.whatsapp_Group_JID_Set(self.handle, value)
|
|
1952
|
-
@property
|
|
1953
|
-
def Name(self):
|
|
1954
|
-
return _whatsapp.whatsapp_Group_Name_Get(self.handle)
|
|
1955
|
-
@Name.setter
|
|
1956
|
-
def Name(self, value):
|
|
1957
|
-
if isinstance(value, go.GoClass):
|
|
1958
|
-
_whatsapp.whatsapp_Group_Name_Set(self.handle, value.handle)
|
|
1959
|
-
else:
|
|
1960
|
-
_whatsapp.whatsapp_Group_Name_Set(self.handle, value)
|
|
1961
|
-
@property
|
|
1962
|
-
def Subject(self):
|
|
1963
|
-
return GroupSubject(handle=_whatsapp.whatsapp_Group_Subject_Get(self.handle))
|
|
1964
|
-
@Subject.setter
|
|
1965
|
-
def Subject(self, value):
|
|
1966
|
-
if isinstance(value, go.GoClass):
|
|
1967
|
-
_whatsapp.whatsapp_Group_Subject_Set(self.handle, value.handle)
|
|
1968
|
-
else:
|
|
1969
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1970
|
-
@property
|
|
1971
|
-
def Nickname(self):
|
|
1972
|
-
return _whatsapp.whatsapp_Group_Nickname_Get(self.handle)
|
|
1973
|
-
@Nickname.setter
|
|
1974
|
-
def Nickname(self, value):
|
|
1975
|
-
if isinstance(value, go.GoClass):
|
|
1976
|
-
_whatsapp.whatsapp_Group_Nickname_Set(self.handle, value.handle)
|
|
1977
|
-
else:
|
|
1978
|
-
_whatsapp.whatsapp_Group_Nickname_Set(self.handle, value)
|
|
1979
|
-
@property
|
|
1980
|
-
def Participants(self):
|
|
1981
|
-
return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Group_Participants_Get(self.handle))
|
|
1982
|
-
@Participants.setter
|
|
1983
|
-
def Participants(self, value):
|
|
1984
|
-
if isinstance(value, go.GoClass):
|
|
1985
|
-
_whatsapp.whatsapp_Group_Participants_Set(self.handle, value.handle)
|
|
1986
|
-
else:
|
|
1987
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1988
|
-
|
|
1989
|
-
# Python type for struct whatsapp.GroupParticipant
|
|
1990
|
-
class GroupParticipant(go.GoClass):
|
|
1991
|
-
"""A GroupParticipant represents a contact who is currently joined in a given group. Participants in\nWhatsApp can always be derived back to their individual [Contact]; there are no anonymous groups\nin WhatsApp.\n"""
|
|
1992
|
-
def __init__(self, *args, **kwargs):
|
|
1993
|
-
"""
|
|
1994
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1995
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
1996
|
-
in which case a new Go object is constructed first
|
|
1997
|
-
"""
|
|
1998
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1999
|
-
self.handle = kwargs['handle']
|
|
2000
|
-
_whatsapp.IncRef(self.handle)
|
|
2001
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2002
|
-
self.handle = args[0].handle
|
|
2003
|
-
_whatsapp.IncRef(self.handle)
|
|
2004
|
-
else:
|
|
2005
|
-
self.handle = _whatsapp.whatsapp_GroupParticipant_CTor()
|
|
2006
|
-
_whatsapp.IncRef(self.handle)
|
|
2007
|
-
if 0 < len(args):
|
|
2008
|
-
self.JID = args[0]
|
|
2009
|
-
if "JID" in kwargs:
|
|
2010
|
-
self.JID = kwargs["JID"]
|
|
2011
|
-
if 1 < len(args):
|
|
2012
|
-
self.Affiliation = args[1]
|
|
2013
|
-
if "Affiliation" in kwargs:
|
|
2014
|
-
self.Affiliation = kwargs["Affiliation"]
|
|
2015
|
-
if 2 < len(args):
|
|
2016
|
-
self.Action = args[2]
|
|
2017
|
-
if "Action" in kwargs:
|
|
2018
|
-
self.Action = kwargs["Action"]
|
|
2019
|
-
def __del__(self):
|
|
2020
|
-
_whatsapp.DecRef(self.handle)
|
|
2021
|
-
def __str__(self):
|
|
2022
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2023
|
-
sv = 'whatsapp.GroupParticipant{'
|
|
2024
|
-
first = True
|
|
2025
|
-
for v in pr:
|
|
2026
|
-
if callable(v[1]):
|
|
2027
|
-
continue
|
|
2028
|
-
if first:
|
|
2029
|
-
first = False
|
|
2030
|
-
else:
|
|
2031
|
-
sv += ', '
|
|
2032
|
-
sv += v[0] + '=' + str(v[1])
|
|
2033
|
-
return sv + '}'
|
|
2034
|
-
def __repr__(self):
|
|
2035
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2036
|
-
sv = 'whatsapp.GroupParticipant ( '
|
|
2037
|
-
for v in pr:
|
|
2038
|
-
if not callable(v[1]):
|
|
2039
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2040
|
-
return sv + ')'
|
|
1769
|
+
@Message.setter
|
|
1770
|
+
def Message(self, value):
|
|
1771
|
+
if isinstance(value, go.GoClass):
|
|
1772
|
+
_whatsapp.whatsapp_EventPayload_Message_Set(self.handle, value.handle)
|
|
1773
|
+
else:
|
|
1774
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2041
1775
|
@property
|
|
2042
|
-
def
|
|
2043
|
-
return _whatsapp.
|
|
2044
|
-
@
|
|
2045
|
-
def
|
|
1776
|
+
def ChatState(self):
|
|
1777
|
+
return ChatState(handle=_whatsapp.whatsapp_EventPayload_ChatState_Get(self.handle))
|
|
1778
|
+
@ChatState.setter
|
|
1779
|
+
def ChatState(self, value):
|
|
2046
1780
|
if isinstance(value, go.GoClass):
|
|
2047
|
-
_whatsapp.
|
|
1781
|
+
_whatsapp.whatsapp_EventPayload_ChatState_Set(self.handle, value.handle)
|
|
2048
1782
|
else:
|
|
2049
|
-
|
|
1783
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2050
1784
|
@property
|
|
2051
|
-
def
|
|
2052
|
-
return _whatsapp.
|
|
2053
|
-
@
|
|
2054
|
-
def
|
|
1785
|
+
def Receipt(self):
|
|
1786
|
+
return Receipt(handle=_whatsapp.whatsapp_EventPayload_Receipt_Get(self.handle))
|
|
1787
|
+
@Receipt.setter
|
|
1788
|
+
def Receipt(self, value):
|
|
2055
1789
|
if isinstance(value, go.GoClass):
|
|
2056
|
-
_whatsapp.
|
|
1790
|
+
_whatsapp.whatsapp_EventPayload_Receipt_Set(self.handle, value.handle)
|
|
2057
1791
|
else:
|
|
2058
|
-
|
|
1792
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2059
1793
|
@property
|
|
2060
|
-
def
|
|
2061
|
-
return _whatsapp.
|
|
2062
|
-
@
|
|
2063
|
-
def
|
|
1794
|
+
def Group(self):
|
|
1795
|
+
return Group(handle=_whatsapp.whatsapp_EventPayload_Group_Get(self.handle))
|
|
1796
|
+
@Group.setter
|
|
1797
|
+
def Group(self, value):
|
|
2064
1798
|
if isinstance(value, go.GoClass):
|
|
2065
|
-
_whatsapp.
|
|
1799
|
+
_whatsapp.whatsapp_EventPayload_Group_Set(self.handle, value.handle)
|
|
2066
1800
|
else:
|
|
2067
|
-
|
|
1801
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1802
|
+
@property
|
|
1803
|
+
def Call(self):
|
|
1804
|
+
return Call(handle=_whatsapp.whatsapp_EventPayload_Call_Get(self.handle))
|
|
1805
|
+
@Call.setter
|
|
1806
|
+
def Call(self, value):
|
|
1807
|
+
if isinstance(value, go.GoClass):
|
|
1808
|
+
_whatsapp.whatsapp_EventPayload_Call_Set(self.handle, value.handle)
|
|
1809
|
+
else:
|
|
1810
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2068
1811
|
|
|
2069
1812
|
# Python type for struct whatsapp.Location
|
|
2070
1813
|
class Location(go.GoClass):
|
|
@@ -2200,6 +1943,73 @@ class Location(go.GoClass):
|
|
|
2200
1943
|
else:
|
|
2201
1944
|
_whatsapp.whatsapp_Location_URL_Set(self.handle, value)
|
|
2202
1945
|
|
|
1946
|
+
# Python type for struct whatsapp.Poll
|
|
1947
|
+
class Poll(go.GoClass):
|
|
1948
|
+
"""A Poll represents a multiple-choice question, on which each choice might be voted for one or more\ntimes.\n"""
|
|
1949
|
+
def __init__(self, *args, **kwargs):
|
|
1950
|
+
"""
|
|
1951
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1952
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
1953
|
+
in which case a new Go object is constructed first
|
|
1954
|
+
"""
|
|
1955
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1956
|
+
self.handle = kwargs['handle']
|
|
1957
|
+
_whatsapp.IncRef(self.handle)
|
|
1958
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1959
|
+
self.handle = args[0].handle
|
|
1960
|
+
_whatsapp.IncRef(self.handle)
|
|
1961
|
+
else:
|
|
1962
|
+
self.handle = _whatsapp.whatsapp_Poll_CTor()
|
|
1963
|
+
_whatsapp.IncRef(self.handle)
|
|
1964
|
+
if 0 < len(args):
|
|
1965
|
+
self.Title = args[0]
|
|
1966
|
+
if "Title" in kwargs:
|
|
1967
|
+
self.Title = kwargs["Title"]
|
|
1968
|
+
if 1 < len(args):
|
|
1969
|
+
self.Options = args[1]
|
|
1970
|
+
if "Options" in kwargs:
|
|
1971
|
+
self.Options = kwargs["Options"]
|
|
1972
|
+
def __del__(self):
|
|
1973
|
+
_whatsapp.DecRef(self.handle)
|
|
1974
|
+
def __str__(self):
|
|
1975
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1976
|
+
sv = 'whatsapp.Poll{'
|
|
1977
|
+
first = True
|
|
1978
|
+
for v in pr:
|
|
1979
|
+
if callable(v[1]):
|
|
1980
|
+
continue
|
|
1981
|
+
if first:
|
|
1982
|
+
first = False
|
|
1983
|
+
else:
|
|
1984
|
+
sv += ', '
|
|
1985
|
+
sv += v[0] + '=' + str(v[1])
|
|
1986
|
+
return sv + '}'
|
|
1987
|
+
def __repr__(self):
|
|
1988
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1989
|
+
sv = 'whatsapp.Poll ( '
|
|
1990
|
+
for v in pr:
|
|
1991
|
+
if not callable(v[1]):
|
|
1992
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1993
|
+
return sv + ')'
|
|
1994
|
+
@property
|
|
1995
|
+
def Title(self):
|
|
1996
|
+
return _whatsapp.whatsapp_Poll_Title_Get(self.handle)
|
|
1997
|
+
@Title.setter
|
|
1998
|
+
def Title(self, value):
|
|
1999
|
+
if isinstance(value, go.GoClass):
|
|
2000
|
+
_whatsapp.whatsapp_Poll_Title_Set(self.handle, value.handle)
|
|
2001
|
+
else:
|
|
2002
|
+
_whatsapp.whatsapp_Poll_Title_Set(self.handle, value)
|
|
2003
|
+
@property
|
|
2004
|
+
def Options(self):
|
|
2005
|
+
return Slice_whatsapp_PollOption(handle=_whatsapp.whatsapp_Poll_Options_Get(self.handle))
|
|
2006
|
+
@Options.setter
|
|
2007
|
+
def Options(self, value):
|
|
2008
|
+
if isinstance(value, go.GoClass):
|
|
2009
|
+
_whatsapp.whatsapp_Poll_Options_Set(self.handle, value.handle)
|
|
2010
|
+
else:
|
|
2011
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2012
|
+
|
|
2203
2013
|
# Python type for struct whatsapp.PollOption
|
|
2204
2014
|
class PollOption(go.GoClass):
|
|
2205
2015
|
"""A PollOption represents an individual choice within a broader poll.\n"""
|
|
@@ -2254,9 +2064,9 @@ class PollOption(go.GoClass):
|
|
|
2254
2064
|
else:
|
|
2255
2065
|
_whatsapp.whatsapp_PollOption_Title_Set(self.handle, value)
|
|
2256
2066
|
|
|
2257
|
-
# Python type for struct whatsapp.
|
|
2258
|
-
class
|
|
2259
|
-
"""A
|
|
2067
|
+
# Python type for struct whatsapp.Album
|
|
2068
|
+
class Album(go.GoClass):
|
|
2069
|
+
"""A Album message represents a collection of media files, typically images and videos.\n"""
|
|
2260
2070
|
def __init__(self, *args, **kwargs):
|
|
2261
2071
|
"""
|
|
2262
2072
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2270,37 +2080,25 @@ class Receipt(go.GoClass):
|
|
|
2270
2080
|
self.handle = args[0].handle
|
|
2271
2081
|
_whatsapp.IncRef(self.handle)
|
|
2272
2082
|
else:
|
|
2273
|
-
self.handle = _whatsapp.
|
|
2083
|
+
self.handle = _whatsapp.whatsapp_Album_CTor()
|
|
2274
2084
|
_whatsapp.IncRef(self.handle)
|
|
2275
2085
|
if 0 < len(args):
|
|
2276
|
-
self.
|
|
2277
|
-
if "
|
|
2278
|
-
self.
|
|
2086
|
+
self.IsAlbum = args[0]
|
|
2087
|
+
if "IsAlbum" in kwargs:
|
|
2088
|
+
self.IsAlbum = kwargs["IsAlbum"]
|
|
2279
2089
|
if 1 < len(args):
|
|
2280
|
-
self.
|
|
2281
|
-
if "
|
|
2282
|
-
self.
|
|
2090
|
+
self.ImageCount = args[1]
|
|
2091
|
+
if "ImageCount" in kwargs:
|
|
2092
|
+
self.ImageCount = kwargs["ImageCount"]
|
|
2283
2093
|
if 2 < len(args):
|
|
2284
|
-
self.
|
|
2285
|
-
if "
|
|
2286
|
-
self.
|
|
2287
|
-
if 3 < len(args):
|
|
2288
|
-
self.GroupJID = args[3]
|
|
2289
|
-
if "GroupJID" in kwargs:
|
|
2290
|
-
self.GroupJID = kwargs["GroupJID"]
|
|
2291
|
-
if 4 < len(args):
|
|
2292
|
-
self.Timestamp = args[4]
|
|
2293
|
-
if "Timestamp" in kwargs:
|
|
2294
|
-
self.Timestamp = kwargs["Timestamp"]
|
|
2295
|
-
if 5 < len(args):
|
|
2296
|
-
self.IsCarbon = args[5]
|
|
2297
|
-
if "IsCarbon" in kwargs:
|
|
2298
|
-
self.IsCarbon = kwargs["IsCarbon"]
|
|
2094
|
+
self.VideoCount = args[2]
|
|
2095
|
+
if "VideoCount" in kwargs:
|
|
2096
|
+
self.VideoCount = kwargs["VideoCount"]
|
|
2299
2097
|
def __del__(self):
|
|
2300
2098
|
_whatsapp.DecRef(self.handle)
|
|
2301
2099
|
def __str__(self):
|
|
2302
2100
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2303
|
-
sv = 'whatsapp.
|
|
2101
|
+
sv = 'whatsapp.Album{'
|
|
2304
2102
|
first = True
|
|
2305
2103
|
for v in pr:
|
|
2306
2104
|
if callable(v[1]):
|
|
@@ -2313,69 +2111,109 @@ class Receipt(go.GoClass):
|
|
|
2313
2111
|
return sv + '}'
|
|
2314
2112
|
def __repr__(self):
|
|
2315
2113
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2316
|
-
sv = 'whatsapp.
|
|
2114
|
+
sv = 'whatsapp.Album ( '
|
|
2317
2115
|
for v in pr:
|
|
2318
2116
|
if not callable(v[1]):
|
|
2319
2117
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2320
2118
|
return sv + ')'
|
|
2321
2119
|
@property
|
|
2322
|
-
def
|
|
2323
|
-
return _whatsapp.
|
|
2324
|
-
@
|
|
2325
|
-
def
|
|
2120
|
+
def IsAlbum(self):
|
|
2121
|
+
return _whatsapp.whatsapp_Album_IsAlbum_Get(self.handle)
|
|
2122
|
+
@IsAlbum.setter
|
|
2123
|
+
def IsAlbum(self, value):
|
|
2326
2124
|
if isinstance(value, go.GoClass):
|
|
2327
|
-
_whatsapp.
|
|
2125
|
+
_whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value.handle)
|
|
2328
2126
|
else:
|
|
2329
|
-
_whatsapp.
|
|
2127
|
+
_whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value)
|
|
2330
2128
|
@property
|
|
2331
|
-
def
|
|
2332
|
-
return
|
|
2333
|
-
@
|
|
2334
|
-
def
|
|
2129
|
+
def ImageCount(self):
|
|
2130
|
+
return _whatsapp.whatsapp_Album_ImageCount_Get(self.handle)
|
|
2131
|
+
@ImageCount.setter
|
|
2132
|
+
def ImageCount(self, value):
|
|
2335
2133
|
if isinstance(value, go.GoClass):
|
|
2336
|
-
_whatsapp.
|
|
2134
|
+
_whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value.handle)
|
|
2337
2135
|
else:
|
|
2338
|
-
|
|
2136
|
+
_whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value)
|
|
2339
2137
|
@property
|
|
2340
|
-
def
|
|
2341
|
-
return _whatsapp.
|
|
2342
|
-
@
|
|
2343
|
-
def
|
|
2138
|
+
def VideoCount(self):
|
|
2139
|
+
return _whatsapp.whatsapp_Album_VideoCount_Get(self.handle)
|
|
2140
|
+
@VideoCount.setter
|
|
2141
|
+
def VideoCount(self, value):
|
|
2344
2142
|
if isinstance(value, go.GoClass):
|
|
2345
|
-
_whatsapp.
|
|
2143
|
+
_whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value.handle)
|
|
2346
2144
|
else:
|
|
2347
|
-
_whatsapp.
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
def
|
|
2353
|
-
|
|
2354
|
-
|
|
2145
|
+
_whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value)
|
|
2146
|
+
|
|
2147
|
+
# Python type for struct whatsapp.Connect
|
|
2148
|
+
class Connect(go.GoClass):
|
|
2149
|
+
"""Connect represents event data related to a connection to WhatsApp being established, or failing\nto do so (based on the [Connect.Error] result).\n"""
|
|
2150
|
+
def __init__(self, *args, **kwargs):
|
|
2151
|
+
"""
|
|
2152
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2153
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
2154
|
+
in which case a new Go object is constructed first
|
|
2155
|
+
"""
|
|
2156
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2157
|
+
self.handle = kwargs['handle']
|
|
2158
|
+
_whatsapp.IncRef(self.handle)
|
|
2159
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2160
|
+
self.handle = args[0].handle
|
|
2161
|
+
_whatsapp.IncRef(self.handle)
|
|
2355
2162
|
else:
|
|
2356
|
-
|
|
2163
|
+
self.handle = _whatsapp.whatsapp_Connect_CTor()
|
|
2164
|
+
_whatsapp.IncRef(self.handle)
|
|
2165
|
+
if 0 < len(args):
|
|
2166
|
+
self.JID = args[0]
|
|
2167
|
+
if "JID" in kwargs:
|
|
2168
|
+
self.JID = kwargs["JID"]
|
|
2169
|
+
if 1 < len(args):
|
|
2170
|
+
self.Error = args[1]
|
|
2171
|
+
if "Error" in kwargs:
|
|
2172
|
+
self.Error = kwargs["Error"]
|
|
2173
|
+
def __del__(self):
|
|
2174
|
+
_whatsapp.DecRef(self.handle)
|
|
2175
|
+
def __str__(self):
|
|
2176
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2177
|
+
sv = 'whatsapp.Connect{'
|
|
2178
|
+
first = True
|
|
2179
|
+
for v in pr:
|
|
2180
|
+
if callable(v[1]):
|
|
2181
|
+
continue
|
|
2182
|
+
if first:
|
|
2183
|
+
first = False
|
|
2184
|
+
else:
|
|
2185
|
+
sv += ', '
|
|
2186
|
+
sv += v[0] + '=' + str(v[1])
|
|
2187
|
+
return sv + '}'
|
|
2188
|
+
def __repr__(self):
|
|
2189
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2190
|
+
sv = 'whatsapp.Connect ( '
|
|
2191
|
+
for v in pr:
|
|
2192
|
+
if not callable(v[1]):
|
|
2193
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2194
|
+
return sv + ')'
|
|
2357
2195
|
@property
|
|
2358
|
-
def
|
|
2359
|
-
return _whatsapp.
|
|
2360
|
-
@
|
|
2361
|
-
def
|
|
2196
|
+
def JID(self):
|
|
2197
|
+
return _whatsapp.whatsapp_Connect_JID_Get(self.handle)
|
|
2198
|
+
@JID.setter
|
|
2199
|
+
def JID(self, value):
|
|
2362
2200
|
if isinstance(value, go.GoClass):
|
|
2363
|
-
_whatsapp.
|
|
2201
|
+
_whatsapp.whatsapp_Connect_JID_Set(self.handle, value.handle)
|
|
2364
2202
|
else:
|
|
2365
|
-
_whatsapp.
|
|
2203
|
+
_whatsapp.whatsapp_Connect_JID_Set(self.handle, value)
|
|
2366
2204
|
@property
|
|
2367
|
-
def
|
|
2368
|
-
return _whatsapp.
|
|
2369
|
-
@
|
|
2370
|
-
def
|
|
2205
|
+
def Error(self):
|
|
2206
|
+
return _whatsapp.whatsapp_Connect_Error_Get(self.handle)
|
|
2207
|
+
@Error.setter
|
|
2208
|
+
def Error(self, value):
|
|
2371
2209
|
if isinstance(value, go.GoClass):
|
|
2372
|
-
_whatsapp.
|
|
2210
|
+
_whatsapp.whatsapp_Connect_Error_Set(self.handle, value.handle)
|
|
2373
2211
|
else:
|
|
2374
|
-
_whatsapp.
|
|
2212
|
+
_whatsapp.whatsapp_Connect_Error_Set(self.handle, value)
|
|
2375
2213
|
|
|
2376
|
-
# Python type for struct whatsapp.
|
|
2377
|
-
class
|
|
2378
|
-
"""A
|
|
2214
|
+
# Python type for struct whatsapp.Contact
|
|
2215
|
+
class Contact(go.GoClass):
|
|
2216
|
+
"""A Contact represents any entity that be communicated with directly in WhatsApp. This typically\nrepresents people, but may represent a business or bot as well, but not a group-chat.\n"""
|
|
2379
2217
|
def __init__(self, *args, **kwargs):
|
|
2380
2218
|
"""
|
|
2381
2219
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2389,13 +2227,21 @@ class Session(go.GoClass):
|
|
|
2389
2227
|
self.handle = args[0].handle
|
|
2390
2228
|
_whatsapp.IncRef(self.handle)
|
|
2391
2229
|
else:
|
|
2392
|
-
self.handle = _whatsapp.
|
|
2230
|
+
self.handle = _whatsapp.whatsapp_Contact_CTor()
|
|
2393
2231
|
_whatsapp.IncRef(self.handle)
|
|
2232
|
+
if 0 < len(args):
|
|
2233
|
+
self.JID = args[0]
|
|
2234
|
+
if "JID" in kwargs:
|
|
2235
|
+
self.JID = kwargs["JID"]
|
|
2236
|
+
if 1 < len(args):
|
|
2237
|
+
self.Name = args[1]
|
|
2238
|
+
if "Name" in kwargs:
|
|
2239
|
+
self.Name = kwargs["Name"]
|
|
2394
2240
|
def __del__(self):
|
|
2395
2241
|
_whatsapp.DecRef(self.handle)
|
|
2396
2242
|
def __str__(self):
|
|
2397
2243
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2398
|
-
sv = 'whatsapp.
|
|
2244
|
+
sv = 'whatsapp.Contact{'
|
|
2399
2245
|
first = True
|
|
2400
2246
|
for v in pr:
|
|
2401
2247
|
if callable(v[1]):
|
|
@@ -2408,167 +2254,33 @@ class Session(go.GoClass):
|
|
|
2408
2254
|
return sv + '}'
|
|
2409
2255
|
def __repr__(self):
|
|
2410
2256
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2411
|
-
sv = 'whatsapp.
|
|
2257
|
+
sv = 'whatsapp.Contact ( '
|
|
2412
2258
|
for v in pr:
|
|
2413
2259
|
if not callable(v[1]):
|
|
2414
2260
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2415
2261
|
return sv + ')'
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
"""
|
|
2435
|
-
return _whatsapp.whatsapp_Session_Disconnect(self.handle)
|
|
2436
|
-
def PairPhone(self, phone):
|
|
2437
|
-
"""PairPhone(str phone) str, str
|
|
2438
|
-
|
|
2439
|
-
PairPhone returns a one-time code from WhatsApp, used for pairing this [Session] against the
|
|
2440
|
-
user's primary device, as identified by the given phone number. This will return an error if the
|
|
2441
|
-
[Session] is already paired, or if the phone number given is empty or invalid.
|
|
2442
|
-
"""
|
|
2443
|
-
return _whatsapp.whatsapp_Session_PairPhone(self.handle, phone)
|
|
2444
|
-
def SendMessage(self, message):
|
|
2445
|
-
"""SendMessage(object message) str
|
|
2446
|
-
|
|
2447
|
-
SendMessage processes the given Message and sends a WhatsApp message for the kind and contact JID
|
|
2448
|
-
specified within. In general, different message kinds require different fields to be set; see the
|
|
2449
|
-
documentation for the [Message] type for more information.
|
|
2450
|
-
"""
|
|
2451
|
-
return _whatsapp.whatsapp_Session_SendMessage(self.handle, message.handle)
|
|
2452
|
-
def GenerateMessageID(self):
|
|
2453
|
-
"""GenerateMessageID() str
|
|
2454
|
-
|
|
2455
|
-
GenerateMessageID returns a valid, pseudo-random message ID for use in outgoing messages.
|
|
2456
|
-
"""
|
|
2457
|
-
return _whatsapp.whatsapp_Session_GenerateMessageID(self.handle)
|
|
2458
|
-
def SendChatState(self, state):
|
|
2459
|
-
"""SendChatState(object state) str
|
|
2460
|
-
|
|
2461
|
-
SendChatState sends the given chat state notification (e.g. composing message) to WhatsApp for the
|
|
2462
|
-
contact specified within.
|
|
2463
|
-
"""
|
|
2464
|
-
return _whatsapp.whatsapp_Session_SendChatState(self.handle, state.handle)
|
|
2465
|
-
def SendReceipt(self, receipt):
|
|
2466
|
-
"""SendReceipt(object receipt) str
|
|
2467
|
-
|
|
2468
|
-
SendReceipt sends a read receipt to WhatsApp for the message IDs specified within.
|
|
2469
|
-
"""
|
|
2470
|
-
return _whatsapp.whatsapp_Session_SendReceipt(self.handle, receipt.handle)
|
|
2471
|
-
def SendPresence(self, presence, statusMessage):
|
|
2472
|
-
"""SendPresence(int presence, str statusMessage) str
|
|
2473
|
-
|
|
2474
|
-
SendPresence sets the activity state and (optional) status message for the current session and
|
|
2475
|
-
user. An error is returned if setting availability fails for any reason.
|
|
2476
|
-
"""
|
|
2477
|
-
return _whatsapp.whatsapp_Session_SendPresence(self.handle, presence, statusMessage)
|
|
2478
|
-
def GetContacts(self, refresh):
|
|
2479
|
-
"""GetContacts(bool refresh) []object, str
|
|
2480
|
-
|
|
2481
|
-
GetContacts subscribes to the WhatsApp roster currently stored in the Session's internal state.
|
|
2482
|
-
If `refresh` is `true`, FetchRoster will pull application state from the remote service and
|
|
2483
|
-
synchronize any contacts found with the adapter.
|
|
2484
|
-
"""
|
|
2485
|
-
return Slice_whatsapp_Contact(handle=_whatsapp.whatsapp_Session_GetContacts(self.handle, refresh))
|
|
2486
|
-
def GetGroups(self):
|
|
2487
|
-
"""GetGroups() []object, str
|
|
2488
|
-
|
|
2489
|
-
GetGroups returns a list of all group-chats currently joined in WhatsApp, along with additional
|
|
2490
|
-
information on present participants.
|
|
2491
|
-
"""
|
|
2492
|
-
return Slice_whatsapp_Group(handle=_whatsapp.whatsapp_Session_GetGroups(self.handle))
|
|
2493
|
-
def CreateGroup(self, name, participants):
|
|
2494
|
-
"""CreateGroup(str name, []str participants) object, str
|
|
2495
|
-
|
|
2496
|
-
CreateGroup attempts to create a new WhatsApp group for the given human-readable name and
|
|
2497
|
-
participant JIDs given.
|
|
2498
|
-
"""
|
|
2499
|
-
return Group(handle=_whatsapp.whatsapp_Session_CreateGroup(self.handle, name, participants.handle))
|
|
2500
|
-
def LeaveGroup(self, resourceID):
|
|
2501
|
-
"""LeaveGroup(str resourceID) str
|
|
2502
|
-
|
|
2503
|
-
LeaveGroup attempts to remove our own user from the given WhatsApp group, for the JID given.
|
|
2504
|
-
"""
|
|
2505
|
-
return _whatsapp.whatsapp_Session_LeaveGroup(self.handle, resourceID)
|
|
2506
|
-
def GetAvatar(self, resourceID, avatarID):
|
|
2507
|
-
"""GetAvatar(str resourceID, str avatarID) object, str
|
|
2508
|
-
|
|
2509
|
-
GetAvatar fetches a profile picture for the Contact or Group JID given. If a non-empty `avatarID`
|
|
2510
|
-
is also given, GetAvatar will return an empty [Avatar] instance with no error if the remote state
|
|
2511
|
-
for the given ID has not changed.
|
|
2512
|
-
"""
|
|
2513
|
-
return Avatar(handle=_whatsapp.whatsapp_Session_GetAvatar(self.handle, resourceID, avatarID))
|
|
2514
|
-
def SetAvatar(self, resourceID, avatar):
|
|
2515
|
-
"""SetAvatar(str resourceID, []int avatar) str, str
|
|
2516
|
-
|
|
2517
|
-
SetAvatar updates the profile picture for the Contact or Group JID given; it can also update the
|
|
2518
|
-
profile picture for our own user by providing an empty JID. The unique picture ID is returned,
|
|
2519
|
-
typically used as a cache reference or in providing to future calls for [Session.GetAvatar].
|
|
2520
|
-
"""
|
|
2521
|
-
return _whatsapp.whatsapp_Session_SetAvatar(self.handle, resourceID, avatar.handle)
|
|
2522
|
-
def SetGroupName(self, resourceID, name):
|
|
2523
|
-
"""SetGroupName(str resourceID, str name) str
|
|
2524
|
-
|
|
2525
|
-
SetGroupName updates the name of a WhatsApp group for the Group JID given.
|
|
2526
|
-
"""
|
|
2527
|
-
return _whatsapp.whatsapp_Session_SetGroupName(self.handle, resourceID, name)
|
|
2528
|
-
def SetGroupTopic(self, resourceID, topic):
|
|
2529
|
-
"""SetGroupTopic(str resourceID, str topic) str
|
|
2530
|
-
|
|
2531
|
-
SetGroupName updates the topic of a WhatsApp group for the Group JID given.
|
|
2532
|
-
"""
|
|
2533
|
-
return _whatsapp.whatsapp_Session_SetGroupTopic(self.handle, resourceID, topic)
|
|
2534
|
-
def UpdateGroupParticipants(self, resourceID, participants):
|
|
2535
|
-
"""UpdateGroupParticipants(str resourceID, []object participants) []object, str
|
|
2536
|
-
|
|
2537
|
-
UpdateGroupParticipants processes changes to the given group's participants, including additions,
|
|
2538
|
-
removals, and changes to privileges. Participant JIDs given must be part of the authenticated
|
|
2539
|
-
session's roster at least, and must also be active group participants for other types of changes.
|
|
2540
|
-
"""
|
|
2541
|
-
return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Session_UpdateGroupParticipants(self.handle, resourceID, participants.handle))
|
|
2542
|
-
def FindContact(self, phone):
|
|
2543
|
-
"""FindContact(str phone) object, str
|
|
2544
|
-
|
|
2545
|
-
FindContact attempts to check for a registered contact on WhatsApp corresponding to the given
|
|
2546
|
-
phone number, returning a concrete instance if found; typically, only the contact JID is set. No
|
|
2547
|
-
error is returned if no contact was found, but any unexpected errors will otherwise be returned
|
|
2548
|
-
directly.
|
|
2549
|
-
"""
|
|
2550
|
-
return Contact(handle=_whatsapp.whatsapp_Session_FindContact(self.handle, phone))
|
|
2551
|
-
def RequestMessageHistory(self, resourceID, oldestMessage):
|
|
2552
|
-
"""RequestMessageHistory(str resourceID, object oldestMessage) str
|
|
2553
|
-
|
|
2554
|
-
RequestMessageHistory sends and asynchronous request for message history related to the given
|
|
2555
|
-
resource (e.g. Contact or Group JID), ending at the oldest message given. Messages returned from
|
|
2556
|
-
history should then be handled as a `HistorySync` event of type `ON_DEMAND`, in the session-wide
|
|
2557
|
-
event handler. An error will be returned if requesting history fails for any reason.
|
|
2558
|
-
"""
|
|
2559
|
-
return _whatsapp.whatsapp_Session_RequestMessageHistory(self.handle, resourceID, oldestMessage.handle)
|
|
2560
|
-
def SetEventHandler(self, h, goRun=False):
|
|
2561
|
-
"""SetEventHandler(callable h)
|
|
2562
|
-
|
|
2563
|
-
SetEventHandler assigns the given handler function for propagating internal events into the Python
|
|
2564
|
-
gateway. Note that the event handler function is not entirely safe to use directly, and all calls
|
|
2565
|
-
should instead be sent to the [Gateway] via its internal call channel.
|
|
2566
|
-
"""
|
|
2567
|
-
_whatsapp.whatsapp_Session_SetEventHandler(self.handle, h, goRun)
|
|
2262
|
+
@property
|
|
2263
|
+
def JID(self):
|
|
2264
|
+
return _whatsapp.whatsapp_Contact_JID_Get(self.handle)
|
|
2265
|
+
@JID.setter
|
|
2266
|
+
def JID(self, value):
|
|
2267
|
+
if isinstance(value, go.GoClass):
|
|
2268
|
+
_whatsapp.whatsapp_Contact_JID_Set(self.handle, value.handle)
|
|
2269
|
+
else:
|
|
2270
|
+
_whatsapp.whatsapp_Contact_JID_Set(self.handle, value)
|
|
2271
|
+
@property
|
|
2272
|
+
def Name(self):
|
|
2273
|
+
return _whatsapp.whatsapp_Contact_Name_Get(self.handle)
|
|
2274
|
+
@Name.setter
|
|
2275
|
+
def Name(self, value):
|
|
2276
|
+
if isinstance(value, go.GoClass):
|
|
2277
|
+
_whatsapp.whatsapp_Contact_Name_Set(self.handle, value.handle)
|
|
2278
|
+
else:
|
|
2279
|
+
_whatsapp.whatsapp_Contact_Name_Set(self.handle, value)
|
|
2568
2280
|
|
|
2569
|
-
# Python type for struct whatsapp.
|
|
2570
|
-
class
|
|
2571
|
-
"""A
|
|
2281
|
+
# Python type for struct whatsapp.Gateway
|
|
2282
|
+
class Gateway(go.GoClass):
|
|
2283
|
+
"""A Gateway represents a persistent process for establishing individual sessions between linked\ndevices and WhatsApp.\n"""
|
|
2572
2284
|
def __init__(self, *args, **kwargs):
|
|
2573
2285
|
"""
|
|
2574
2286
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2582,25 +2294,29 @@ class Album(go.GoClass):
|
|
|
2582
2294
|
self.handle = args[0].handle
|
|
2583
2295
|
_whatsapp.IncRef(self.handle)
|
|
2584
2296
|
else:
|
|
2585
|
-
self.handle = _whatsapp.
|
|
2297
|
+
self.handle = _whatsapp.whatsapp_Gateway_CTor()
|
|
2586
2298
|
_whatsapp.IncRef(self.handle)
|
|
2587
2299
|
if 0 < len(args):
|
|
2588
|
-
self.
|
|
2589
|
-
if "
|
|
2590
|
-
self.
|
|
2300
|
+
self.DBPath = args[0]
|
|
2301
|
+
if "DBPath" in kwargs:
|
|
2302
|
+
self.DBPath = kwargs["DBPath"]
|
|
2591
2303
|
if 1 < len(args):
|
|
2592
|
-
self.
|
|
2593
|
-
if "
|
|
2594
|
-
self.
|
|
2304
|
+
self.Name = args[1]
|
|
2305
|
+
if "Name" in kwargs:
|
|
2306
|
+
self.Name = kwargs["Name"]
|
|
2595
2307
|
if 2 < len(args):
|
|
2596
|
-
self.
|
|
2597
|
-
if "
|
|
2598
|
-
self.
|
|
2308
|
+
self.LogLevel = args[2]
|
|
2309
|
+
if "LogLevel" in kwargs:
|
|
2310
|
+
self.LogLevel = kwargs["LogLevel"]
|
|
2311
|
+
if 3 < len(args):
|
|
2312
|
+
self.TempDir = args[3]
|
|
2313
|
+
if "TempDir" in kwargs:
|
|
2314
|
+
self.TempDir = kwargs["TempDir"]
|
|
2599
2315
|
def __del__(self):
|
|
2600
2316
|
_whatsapp.DecRef(self.handle)
|
|
2601
2317
|
def __str__(self):
|
|
2602
2318
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2603
|
-
sv = 'whatsapp.
|
|
2319
|
+
sv = 'whatsapp.Gateway{'
|
|
2604
2320
|
first = True
|
|
2605
2321
|
for v in pr:
|
|
2606
2322
|
if callable(v[1]):
|
|
@@ -2613,42 +2329,72 @@ class Album(go.GoClass):
|
|
|
2613
2329
|
return sv + '}'
|
|
2614
2330
|
def __repr__(self):
|
|
2615
2331
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2616
|
-
sv = 'whatsapp.
|
|
2332
|
+
sv = 'whatsapp.Gateway ( '
|
|
2617
2333
|
for v in pr:
|
|
2618
2334
|
if not callable(v[1]):
|
|
2619
2335
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2620
2336
|
return sv + ')'
|
|
2621
2337
|
@property
|
|
2622
|
-
def
|
|
2623
|
-
return _whatsapp.
|
|
2624
|
-
@
|
|
2625
|
-
def
|
|
2338
|
+
def DBPath(self):
|
|
2339
|
+
return _whatsapp.whatsapp_Gateway_DBPath_Get(self.handle)
|
|
2340
|
+
@DBPath.setter
|
|
2341
|
+
def DBPath(self, value):
|
|
2342
|
+
if isinstance(value, go.GoClass):
|
|
2343
|
+
_whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value.handle)
|
|
2344
|
+
else:
|
|
2345
|
+
_whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value)
|
|
2346
|
+
@property
|
|
2347
|
+
def Name(self):
|
|
2348
|
+
return _whatsapp.whatsapp_Gateway_Name_Get(self.handle)
|
|
2349
|
+
@Name.setter
|
|
2350
|
+
def Name(self, value):
|
|
2626
2351
|
if isinstance(value, go.GoClass):
|
|
2627
|
-
_whatsapp.
|
|
2352
|
+
_whatsapp.whatsapp_Gateway_Name_Set(self.handle, value.handle)
|
|
2628
2353
|
else:
|
|
2629
|
-
_whatsapp.
|
|
2354
|
+
_whatsapp.whatsapp_Gateway_Name_Set(self.handle, value)
|
|
2630
2355
|
@property
|
|
2631
|
-
def
|
|
2632
|
-
return _whatsapp.
|
|
2633
|
-
@
|
|
2634
|
-
def
|
|
2356
|
+
def LogLevel(self):
|
|
2357
|
+
return _whatsapp.whatsapp_Gateway_LogLevel_Get(self.handle)
|
|
2358
|
+
@LogLevel.setter
|
|
2359
|
+
def LogLevel(self, value):
|
|
2635
2360
|
if isinstance(value, go.GoClass):
|
|
2636
|
-
_whatsapp.
|
|
2361
|
+
_whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value.handle)
|
|
2637
2362
|
else:
|
|
2638
|
-
_whatsapp.
|
|
2363
|
+
_whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value)
|
|
2639
2364
|
@property
|
|
2640
|
-
def
|
|
2641
|
-
return _whatsapp.
|
|
2642
|
-
@
|
|
2643
|
-
def
|
|
2365
|
+
def TempDir(self):
|
|
2366
|
+
return _whatsapp.whatsapp_Gateway_TempDir_Get(self.handle)
|
|
2367
|
+
@TempDir.setter
|
|
2368
|
+
def TempDir(self, value):
|
|
2644
2369
|
if isinstance(value, go.GoClass):
|
|
2645
|
-
_whatsapp.
|
|
2370
|
+
_whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value.handle)
|
|
2646
2371
|
else:
|
|
2647
|
-
_whatsapp.
|
|
2372
|
+
_whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value)
|
|
2373
|
+
def Init(self):
|
|
2374
|
+
"""Init() str
|
|
2375
|
+
|
|
2376
|
+
Init performs initialization procedures for the Gateway, and is expected to be run before any
|
|
2377
|
+
calls to [Gateway.Session].
|
|
2378
|
+
"""
|
|
2379
|
+
return _whatsapp.whatsapp_Gateway_Init(self.handle)
|
|
2380
|
+
def NewSession(self, device):
|
|
2381
|
+
"""NewSession(object device) object
|
|
2382
|
+
|
|
2383
|
+
NewSession returns a new [Session] for the LinkedDevice given. If the linked device does not have
|
|
2384
|
+
a valid ID, a pair operation will be required, as described in [Session.Login].
|
|
2385
|
+
"""
|
|
2386
|
+
return Session(handle=_whatsapp.whatsapp_Gateway_NewSession(self.handle, device.handle))
|
|
2387
|
+
def CleanupSession(self, device):
|
|
2388
|
+
"""CleanupSession(object device) str
|
|
2389
|
+
|
|
2390
|
+
CleanupSession will remove all invalid and obsolete references to the given device, and should be
|
|
2391
|
+
used when pairing a new device or unregistering from the Gateway.
|
|
2392
|
+
"""
|
|
2393
|
+
return _whatsapp.whatsapp_Gateway_CleanupSession(self.handle, device.handle)
|
|
2648
2394
|
|
|
2649
|
-
# Python type for struct whatsapp.
|
|
2650
|
-
class
|
|
2651
|
-
"""A
|
|
2395
|
+
# Python type for struct whatsapp.Group
|
|
2396
|
+
class Group(go.GoClass):
|
|
2397
|
+
"""A Group represents a named, many-to-many chat space which may be joined or left at will. All\nfields apart from the group JID are considered to be optional, and may not be set in cases where\ngroup information is being updated against previous assumed state. Groups in WhatsApp are\ngenerally invited to out-of-band with respect to overarching adaptor; see the documentation for\n[Session.GetGroups] for more information.\n"""
|
|
2652
2398
|
def __init__(self, *args, **kwargs):
|
|
2653
2399
|
"""
|
|
2654
2400
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2662,7 +2408,7 @@ class Contact(go.GoClass):
|
|
|
2662
2408
|
self.handle = args[0].handle
|
|
2663
2409
|
_whatsapp.IncRef(self.handle)
|
|
2664
2410
|
else:
|
|
2665
|
-
self.handle = _whatsapp.
|
|
2411
|
+
self.handle = _whatsapp.whatsapp_Group_CTor()
|
|
2666
2412
|
_whatsapp.IncRef(self.handle)
|
|
2667
2413
|
if 0 < len(args):
|
|
2668
2414
|
self.JID = args[0]
|
|
@@ -2672,11 +2418,27 @@ class Contact(go.GoClass):
|
|
|
2672
2418
|
self.Name = args[1]
|
|
2673
2419
|
if "Name" in kwargs:
|
|
2674
2420
|
self.Name = kwargs["Name"]
|
|
2421
|
+
if 2 < len(args):
|
|
2422
|
+
self.Subject = args[2]
|
|
2423
|
+
if "Subject" in kwargs:
|
|
2424
|
+
self.Subject = kwargs["Subject"]
|
|
2425
|
+
if 3 < len(args):
|
|
2426
|
+
self.Nickname = args[3]
|
|
2427
|
+
if "Nickname" in kwargs:
|
|
2428
|
+
self.Nickname = kwargs["Nickname"]
|
|
2429
|
+
if 4 < len(args):
|
|
2430
|
+
self.Participants = args[4]
|
|
2431
|
+
if "Participants" in kwargs:
|
|
2432
|
+
self.Participants = kwargs["Participants"]
|
|
2433
|
+
if 5 < len(args):
|
|
2434
|
+
self.InviteCode = args[5]
|
|
2435
|
+
if "InviteCode" in kwargs:
|
|
2436
|
+
self.InviteCode = kwargs["InviteCode"]
|
|
2675
2437
|
def __del__(self):
|
|
2676
2438
|
_whatsapp.DecRef(self.handle)
|
|
2677
2439
|
def __str__(self):
|
|
2678
2440
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2679
|
-
sv = 'whatsapp.
|
|
2441
|
+
sv = 'whatsapp.Group{'
|
|
2680
2442
|
first = True
|
|
2681
2443
|
for v in pr:
|
|
2682
2444
|
if callable(v[1]):
|
|
@@ -2689,29 +2451,65 @@ class Contact(go.GoClass):
|
|
|
2689
2451
|
return sv + '}'
|
|
2690
2452
|
def __repr__(self):
|
|
2691
2453
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2692
|
-
sv = 'whatsapp.
|
|
2454
|
+
sv = 'whatsapp.Group ( '
|
|
2693
2455
|
for v in pr:
|
|
2694
2456
|
if not callable(v[1]):
|
|
2695
2457
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2696
2458
|
return sv + ')'
|
|
2697
2459
|
@property
|
|
2698
2460
|
def JID(self):
|
|
2699
|
-
return _whatsapp.
|
|
2461
|
+
return _whatsapp.whatsapp_Group_JID_Get(self.handle)
|
|
2700
2462
|
@JID.setter
|
|
2701
2463
|
def JID(self, value):
|
|
2702
2464
|
if isinstance(value, go.GoClass):
|
|
2703
|
-
_whatsapp.
|
|
2465
|
+
_whatsapp.whatsapp_Group_JID_Set(self.handle, value.handle)
|
|
2704
2466
|
else:
|
|
2705
|
-
_whatsapp.
|
|
2467
|
+
_whatsapp.whatsapp_Group_JID_Set(self.handle, value)
|
|
2706
2468
|
@property
|
|
2707
2469
|
def Name(self):
|
|
2708
|
-
return _whatsapp.
|
|
2470
|
+
return _whatsapp.whatsapp_Group_Name_Get(self.handle)
|
|
2709
2471
|
@Name.setter
|
|
2710
2472
|
def Name(self, value):
|
|
2711
2473
|
if isinstance(value, go.GoClass):
|
|
2712
|
-
_whatsapp.
|
|
2474
|
+
_whatsapp.whatsapp_Group_Name_Set(self.handle, value.handle)
|
|
2713
2475
|
else:
|
|
2714
|
-
_whatsapp.
|
|
2476
|
+
_whatsapp.whatsapp_Group_Name_Set(self.handle, value)
|
|
2477
|
+
@property
|
|
2478
|
+
def Subject(self):
|
|
2479
|
+
return GroupSubject(handle=_whatsapp.whatsapp_Group_Subject_Get(self.handle))
|
|
2480
|
+
@Subject.setter
|
|
2481
|
+
def Subject(self, value):
|
|
2482
|
+
if isinstance(value, go.GoClass):
|
|
2483
|
+
_whatsapp.whatsapp_Group_Subject_Set(self.handle, value.handle)
|
|
2484
|
+
else:
|
|
2485
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2486
|
+
@property
|
|
2487
|
+
def Nickname(self):
|
|
2488
|
+
return _whatsapp.whatsapp_Group_Nickname_Get(self.handle)
|
|
2489
|
+
@Nickname.setter
|
|
2490
|
+
def Nickname(self, value):
|
|
2491
|
+
if isinstance(value, go.GoClass):
|
|
2492
|
+
_whatsapp.whatsapp_Group_Nickname_Set(self.handle, value.handle)
|
|
2493
|
+
else:
|
|
2494
|
+
_whatsapp.whatsapp_Group_Nickname_Set(self.handle, value)
|
|
2495
|
+
@property
|
|
2496
|
+
def Participants(self):
|
|
2497
|
+
return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Group_Participants_Get(self.handle))
|
|
2498
|
+
@Participants.setter
|
|
2499
|
+
def Participants(self, value):
|
|
2500
|
+
if isinstance(value, go.GoClass):
|
|
2501
|
+
_whatsapp.whatsapp_Group_Participants_Set(self.handle, value.handle)
|
|
2502
|
+
else:
|
|
2503
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2504
|
+
@property
|
|
2505
|
+
def InviteCode(self):
|
|
2506
|
+
return _whatsapp.whatsapp_Group_InviteCode_Get(self.handle)
|
|
2507
|
+
@InviteCode.setter
|
|
2508
|
+
def InviteCode(self, value):
|
|
2509
|
+
if isinstance(value, go.GoClass):
|
|
2510
|
+
_whatsapp.whatsapp_Group_InviteCode_Set(self.handle, value.handle)
|
|
2511
|
+
else:
|
|
2512
|
+
_whatsapp.whatsapp_Group_InviteCode_Set(self.handle, value)
|
|
2715
2513
|
|
|
2716
2514
|
# Python type for struct whatsapp.LinkedDevice
|
|
2717
2515
|
class LinkedDevice(go.GoClass):
|
|
@@ -2777,108 +2575,9 @@ class LinkedDevice(go.GoClass):
|
|
|
2777
2575
|
"""
|
|
2778
2576
|
return go.types_JID(handle=_whatsapp.whatsapp_LinkedDevice_JID(self.handle))
|
|
2779
2577
|
|
|
2780
|
-
# Python type for struct whatsapp.
|
|
2781
|
-
class
|
|
2782
|
-
"""
|
|
2783
|
-
def __init__(self, *args, **kwargs):
|
|
2784
|
-
"""
|
|
2785
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2786
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
2787
|
-
in which case a new Go object is constructed first
|
|
2788
|
-
"""
|
|
2789
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2790
|
-
self.handle = kwargs['handle']
|
|
2791
|
-
_whatsapp.IncRef(self.handle)
|
|
2792
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2793
|
-
self.handle = args[0].handle
|
|
2794
|
-
_whatsapp.IncRef(self.handle)
|
|
2795
|
-
else:
|
|
2796
|
-
self.handle = _whatsapp.whatsapp_Attachment_CTor()
|
|
2797
|
-
_whatsapp.IncRef(self.handle)
|
|
2798
|
-
if 0 < len(args):
|
|
2799
|
-
self.MIME = args[0]
|
|
2800
|
-
if "MIME" in kwargs:
|
|
2801
|
-
self.MIME = kwargs["MIME"]
|
|
2802
|
-
if 1 < len(args):
|
|
2803
|
-
self.Filename = args[1]
|
|
2804
|
-
if "Filename" in kwargs:
|
|
2805
|
-
self.Filename = kwargs["Filename"]
|
|
2806
|
-
if 2 < len(args):
|
|
2807
|
-
self.Caption = args[2]
|
|
2808
|
-
if "Caption" in kwargs:
|
|
2809
|
-
self.Caption = kwargs["Caption"]
|
|
2810
|
-
if 3 < len(args):
|
|
2811
|
-
self.Data = args[3]
|
|
2812
|
-
if "Data" in kwargs:
|
|
2813
|
-
self.Data = kwargs["Data"]
|
|
2814
|
-
def __del__(self):
|
|
2815
|
-
_whatsapp.DecRef(self.handle)
|
|
2816
|
-
def __str__(self):
|
|
2817
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2818
|
-
sv = 'whatsapp.Attachment{'
|
|
2819
|
-
first = True
|
|
2820
|
-
for v in pr:
|
|
2821
|
-
if callable(v[1]):
|
|
2822
|
-
continue
|
|
2823
|
-
if first:
|
|
2824
|
-
first = False
|
|
2825
|
-
else:
|
|
2826
|
-
sv += ', '
|
|
2827
|
-
sv += v[0] + '=' + str(v[1])
|
|
2828
|
-
return sv + '}'
|
|
2829
|
-
def __repr__(self):
|
|
2830
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2831
|
-
sv = 'whatsapp.Attachment ( '
|
|
2832
|
-
for v in pr:
|
|
2833
|
-
if not callable(v[1]):
|
|
2834
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2835
|
-
return sv + ')'
|
|
2836
|
-
@property
|
|
2837
|
-
def MIME(self):
|
|
2838
|
-
return _whatsapp.whatsapp_Attachment_MIME_Get(self.handle)
|
|
2839
|
-
@MIME.setter
|
|
2840
|
-
def MIME(self, value):
|
|
2841
|
-
if isinstance(value, go.GoClass):
|
|
2842
|
-
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value.handle)
|
|
2843
|
-
else:
|
|
2844
|
-
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value)
|
|
2845
|
-
@property
|
|
2846
|
-
def Filename(self):
|
|
2847
|
-
return _whatsapp.whatsapp_Attachment_Filename_Get(self.handle)
|
|
2848
|
-
@Filename.setter
|
|
2849
|
-
def Filename(self, value):
|
|
2850
|
-
if isinstance(value, go.GoClass):
|
|
2851
|
-
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value.handle)
|
|
2852
|
-
else:
|
|
2853
|
-
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value)
|
|
2854
|
-
@property
|
|
2855
|
-
def Caption(self):
|
|
2856
|
-
return _whatsapp.whatsapp_Attachment_Caption_Get(self.handle)
|
|
2857
|
-
@Caption.setter
|
|
2858
|
-
def Caption(self, value):
|
|
2859
|
-
if isinstance(value, go.GoClass):
|
|
2860
|
-
_whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value.handle)
|
|
2861
|
-
else:
|
|
2862
|
-
_whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value)
|
|
2863
|
-
@property
|
|
2864
|
-
def Data(self):
|
|
2865
|
-
return go.Slice_byte(handle=_whatsapp.whatsapp_Attachment_Data_Get(self.handle))
|
|
2866
|
-
@Data.setter
|
|
2867
|
-
def Data(self, value):
|
|
2868
|
-
if isinstance(value, go.GoClass):
|
|
2869
|
-
_whatsapp.whatsapp_Attachment_Data_Set(self.handle, value.handle)
|
|
2870
|
-
else:
|
|
2871
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2872
|
-
def GetSpec(self, ctx):
|
|
2873
|
-
"""GetSpec(object ctx) object, str
|
|
2874
|
-
|
|
2875
|
-
GetSpec returns metadata for this attachment, as derived from the underlying attachment data.
|
|
2876
|
-
"""
|
|
2877
|
-
return go.Ptr_media_Spec(handle=_whatsapp.whatsapp_Attachment_GetSpec(self.handle, ctx.handle))
|
|
2878
|
-
|
|
2879
|
-
# Python type for struct whatsapp.Avatar
|
|
2880
|
-
class Avatar(go.GoClass):
|
|
2881
|
-
"""A Avatar represents a small image set for a Contact or Group.\n"""
|
|
2578
|
+
# Python type for struct whatsapp.LoggedOut
|
|
2579
|
+
class LoggedOut(go.GoClass):
|
|
2580
|
+
"""LoggedOut repreents event data related to an explicit or implicit log-out event.\n"""
|
|
2882
2581
|
def __init__(self, *args, **kwargs):
|
|
2883
2582
|
"""
|
|
2884
2583
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2892,21 +2591,17 @@ class Avatar(go.GoClass):
|
|
|
2892
2591
|
self.handle = args[0].handle
|
|
2893
2592
|
_whatsapp.IncRef(self.handle)
|
|
2894
2593
|
else:
|
|
2895
|
-
self.handle = _whatsapp.
|
|
2594
|
+
self.handle = _whatsapp.whatsapp_LoggedOut_CTor()
|
|
2896
2595
|
_whatsapp.IncRef(self.handle)
|
|
2897
2596
|
if 0 < len(args):
|
|
2898
|
-
self.
|
|
2899
|
-
if "
|
|
2900
|
-
self.
|
|
2901
|
-
if 1 < len(args):
|
|
2902
|
-
self.URL = args[1]
|
|
2903
|
-
if "URL" in kwargs:
|
|
2904
|
-
self.URL = kwargs["URL"]
|
|
2597
|
+
self.Reason = args[0]
|
|
2598
|
+
if "Reason" in kwargs:
|
|
2599
|
+
self.Reason = kwargs["Reason"]
|
|
2905
2600
|
def __del__(self):
|
|
2906
2601
|
_whatsapp.DecRef(self.handle)
|
|
2907
2602
|
def __str__(self):
|
|
2908
2603
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2909
|
-
sv = 'whatsapp.
|
|
2604
|
+
sv = 'whatsapp.LoggedOut{'
|
|
2910
2605
|
first = True
|
|
2911
2606
|
for v in pr:
|
|
2912
2607
|
if callable(v[1]):
|
|
@@ -2919,33 +2614,24 @@ class Avatar(go.GoClass):
|
|
|
2919
2614
|
return sv + '}'
|
|
2920
2615
|
def __repr__(self):
|
|
2921
2616
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2922
|
-
sv = 'whatsapp.
|
|
2617
|
+
sv = 'whatsapp.LoggedOut ( '
|
|
2923
2618
|
for v in pr:
|
|
2924
2619
|
if not callable(v[1]):
|
|
2925
2620
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2926
2621
|
return sv + ')'
|
|
2927
2622
|
@property
|
|
2928
|
-
def
|
|
2929
|
-
return _whatsapp.
|
|
2930
|
-
@
|
|
2931
|
-
def
|
|
2932
|
-
if isinstance(value, go.GoClass):
|
|
2933
|
-
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value.handle)
|
|
2934
|
-
else:
|
|
2935
|
-
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value)
|
|
2936
|
-
@property
|
|
2937
|
-
def URL(self):
|
|
2938
|
-
return _whatsapp.whatsapp_Avatar_URL_Get(self.handle)
|
|
2939
|
-
@URL.setter
|
|
2940
|
-
def URL(self, value):
|
|
2623
|
+
def Reason(self):
|
|
2624
|
+
return _whatsapp.whatsapp_LoggedOut_Reason_Get(self.handle)
|
|
2625
|
+
@Reason.setter
|
|
2626
|
+
def Reason(self, value):
|
|
2941
2627
|
if isinstance(value, go.GoClass):
|
|
2942
|
-
_whatsapp.
|
|
2628
|
+
_whatsapp.whatsapp_LoggedOut_Reason_Set(self.handle, value.handle)
|
|
2943
2629
|
else:
|
|
2944
|
-
_whatsapp.
|
|
2630
|
+
_whatsapp.whatsapp_LoggedOut_Reason_Set(self.handle, value)
|
|
2945
2631
|
|
|
2946
|
-
# Python type for struct whatsapp.
|
|
2947
|
-
class
|
|
2948
|
-
"""A
|
|
2632
|
+
# Python type for struct whatsapp.Message
|
|
2633
|
+
class Message(go.GoClass):
|
|
2634
|
+
"""A Message represents one of many kinds of bidirectional communication payloads, for example, a\ntext message, a file (image, video) attachment, an emoji reaction, etc. Messages of different\nkinds are denoted as such, and re-use fields where the semantics overlap.\n"""
|
|
2949
2635
|
def __init__(self, *args, **kwargs):
|
|
2950
2636
|
"""
|
|
2951
2637
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2959,25 +2645,97 @@ class Call(go.GoClass):
|
|
|
2959
2645
|
self.handle = args[0].handle
|
|
2960
2646
|
_whatsapp.IncRef(self.handle)
|
|
2961
2647
|
else:
|
|
2962
|
-
self.handle = _whatsapp.
|
|
2648
|
+
self.handle = _whatsapp.whatsapp_Message_CTor()
|
|
2963
2649
|
_whatsapp.IncRef(self.handle)
|
|
2964
2650
|
if 0 < len(args):
|
|
2965
|
-
self.
|
|
2966
|
-
if "
|
|
2967
|
-
self.
|
|
2651
|
+
self.Kind = args[0]
|
|
2652
|
+
if "Kind" in kwargs:
|
|
2653
|
+
self.Kind = kwargs["Kind"]
|
|
2968
2654
|
if 1 < len(args):
|
|
2969
|
-
self.
|
|
2655
|
+
self.ID = args[1]
|
|
2656
|
+
if "ID" in kwargs:
|
|
2657
|
+
self.ID = kwargs["ID"]
|
|
2658
|
+
if 2 < len(args):
|
|
2659
|
+
self.JID = args[2]
|
|
2970
2660
|
if "JID" in kwargs:
|
|
2971
2661
|
self.JID = kwargs["JID"]
|
|
2972
|
-
if
|
|
2973
|
-
self.
|
|
2662
|
+
if 3 < len(args):
|
|
2663
|
+
self.GroupJID = args[3]
|
|
2664
|
+
if "GroupJID" in kwargs:
|
|
2665
|
+
self.GroupJID = kwargs["GroupJID"]
|
|
2666
|
+
if 4 < len(args):
|
|
2667
|
+
self.OriginJID = args[4]
|
|
2668
|
+
if "OriginJID" in kwargs:
|
|
2669
|
+
self.OriginJID = kwargs["OriginJID"]
|
|
2670
|
+
if 5 < len(args):
|
|
2671
|
+
self.Body = args[5]
|
|
2672
|
+
if "Body" in kwargs:
|
|
2673
|
+
self.Body = kwargs["Body"]
|
|
2674
|
+
if 6 < len(args):
|
|
2675
|
+
self.Timestamp = args[6]
|
|
2974
2676
|
if "Timestamp" in kwargs:
|
|
2975
2677
|
self.Timestamp = kwargs["Timestamp"]
|
|
2678
|
+
if 7 < len(args):
|
|
2679
|
+
self.IsCarbon = args[7]
|
|
2680
|
+
if "IsCarbon" in kwargs:
|
|
2681
|
+
self.IsCarbon = kwargs["IsCarbon"]
|
|
2682
|
+
if 8 < len(args):
|
|
2683
|
+
self.IsForwarded = args[8]
|
|
2684
|
+
if "IsForwarded" in kwargs:
|
|
2685
|
+
self.IsForwarded = kwargs["IsForwarded"]
|
|
2686
|
+
if 9 < len(args):
|
|
2687
|
+
self.ReplyID = args[9]
|
|
2688
|
+
if "ReplyID" in kwargs:
|
|
2689
|
+
self.ReplyID = kwargs["ReplyID"]
|
|
2690
|
+
if 10 < len(args):
|
|
2691
|
+
self.ReplyBody = args[10]
|
|
2692
|
+
if "ReplyBody" in kwargs:
|
|
2693
|
+
self.ReplyBody = kwargs["ReplyBody"]
|
|
2694
|
+
if 11 < len(args):
|
|
2695
|
+
self.Attachments = args[11]
|
|
2696
|
+
if "Attachments" in kwargs:
|
|
2697
|
+
self.Attachments = kwargs["Attachments"]
|
|
2698
|
+
if 12 < len(args):
|
|
2699
|
+
self.Preview = args[12]
|
|
2700
|
+
if "Preview" in kwargs:
|
|
2701
|
+
self.Preview = kwargs["Preview"]
|
|
2702
|
+
if 13 < len(args):
|
|
2703
|
+
self.Location = args[13]
|
|
2704
|
+
if "Location" in kwargs:
|
|
2705
|
+
self.Location = kwargs["Location"]
|
|
2706
|
+
if 14 < len(args):
|
|
2707
|
+
self.Poll = args[14]
|
|
2708
|
+
if "Poll" in kwargs:
|
|
2709
|
+
self.Poll = kwargs["Poll"]
|
|
2710
|
+
if 15 < len(args):
|
|
2711
|
+
self.Album = args[15]
|
|
2712
|
+
if "Album" in kwargs:
|
|
2713
|
+
self.Album = kwargs["Album"]
|
|
2714
|
+
if 16 < len(args):
|
|
2715
|
+
self.GroupInvite = args[16]
|
|
2716
|
+
if "GroupInvite" in kwargs:
|
|
2717
|
+
self.GroupInvite = kwargs["GroupInvite"]
|
|
2718
|
+
if 17 < len(args):
|
|
2719
|
+
self.MentionJIDs = args[17]
|
|
2720
|
+
if "MentionJIDs" in kwargs:
|
|
2721
|
+
self.MentionJIDs = kwargs["MentionJIDs"]
|
|
2722
|
+
if 18 < len(args):
|
|
2723
|
+
self.Receipts = args[18]
|
|
2724
|
+
if "Receipts" in kwargs:
|
|
2725
|
+
self.Receipts = kwargs["Receipts"]
|
|
2726
|
+
if 19 < len(args):
|
|
2727
|
+
self.Reactions = args[19]
|
|
2728
|
+
if "Reactions" in kwargs:
|
|
2729
|
+
self.Reactions = kwargs["Reactions"]
|
|
2730
|
+
if 20 < len(args):
|
|
2731
|
+
self.IsHistory = args[20]
|
|
2732
|
+
if "IsHistory" in kwargs:
|
|
2733
|
+
self.IsHistory = kwargs["IsHistory"]
|
|
2976
2734
|
def __del__(self):
|
|
2977
2735
|
_whatsapp.DecRef(self.handle)
|
|
2978
2736
|
def __str__(self):
|
|
2979
2737
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2980
|
-
sv = 'whatsapp.
|
|
2738
|
+
sv = 'whatsapp.Message{'
|
|
2981
2739
|
first = True
|
|
2982
2740
|
for v in pr:
|
|
2983
2741
|
if callable(v[1]):
|
|
@@ -2990,42 +2748,204 @@ class Call(go.GoClass):
|
|
|
2990
2748
|
return sv + '}'
|
|
2991
2749
|
def __repr__(self):
|
|
2992
2750
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2993
|
-
sv = 'whatsapp.
|
|
2751
|
+
sv = 'whatsapp.Message ( '
|
|
2994
2752
|
for v in pr:
|
|
2995
2753
|
if not callable(v[1]):
|
|
2996
2754
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2997
2755
|
return sv + ')'
|
|
2998
2756
|
@property
|
|
2999
|
-
def
|
|
3000
|
-
return _whatsapp.
|
|
3001
|
-
@
|
|
3002
|
-
def
|
|
2757
|
+
def Kind(self):
|
|
2758
|
+
return _whatsapp.whatsapp_Message_Kind_Get(self.handle)
|
|
2759
|
+
@Kind.setter
|
|
2760
|
+
def Kind(self, value):
|
|
3003
2761
|
if isinstance(value, go.GoClass):
|
|
3004
|
-
_whatsapp.
|
|
2762
|
+
_whatsapp.whatsapp_Message_Kind_Set(self.handle, value.handle)
|
|
3005
2763
|
else:
|
|
3006
|
-
_whatsapp.
|
|
2764
|
+
_whatsapp.whatsapp_Message_Kind_Set(self.handle, value)
|
|
2765
|
+
@property
|
|
2766
|
+
def ID(self):
|
|
2767
|
+
return _whatsapp.whatsapp_Message_ID_Get(self.handle)
|
|
2768
|
+
@ID.setter
|
|
2769
|
+
def ID(self, value):
|
|
2770
|
+
if isinstance(value, go.GoClass):
|
|
2771
|
+
_whatsapp.whatsapp_Message_ID_Set(self.handle, value.handle)
|
|
2772
|
+
else:
|
|
2773
|
+
_whatsapp.whatsapp_Message_ID_Set(self.handle, value)
|
|
3007
2774
|
@property
|
|
3008
2775
|
def JID(self):
|
|
3009
|
-
return _whatsapp.
|
|
2776
|
+
return _whatsapp.whatsapp_Message_JID_Get(self.handle)
|
|
3010
2777
|
@JID.setter
|
|
3011
2778
|
def JID(self, value):
|
|
3012
2779
|
if isinstance(value, go.GoClass):
|
|
3013
|
-
_whatsapp.
|
|
2780
|
+
_whatsapp.whatsapp_Message_JID_Set(self.handle, value.handle)
|
|
3014
2781
|
else:
|
|
3015
|
-
_whatsapp.
|
|
2782
|
+
_whatsapp.whatsapp_Message_JID_Set(self.handle, value)
|
|
2783
|
+
@property
|
|
2784
|
+
def GroupJID(self):
|
|
2785
|
+
return _whatsapp.whatsapp_Message_GroupJID_Get(self.handle)
|
|
2786
|
+
@GroupJID.setter
|
|
2787
|
+
def GroupJID(self, value):
|
|
2788
|
+
if isinstance(value, go.GoClass):
|
|
2789
|
+
_whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value.handle)
|
|
2790
|
+
else:
|
|
2791
|
+
_whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value)
|
|
2792
|
+
@property
|
|
2793
|
+
def OriginJID(self):
|
|
2794
|
+
return _whatsapp.whatsapp_Message_OriginJID_Get(self.handle)
|
|
2795
|
+
@OriginJID.setter
|
|
2796
|
+
def OriginJID(self, value):
|
|
2797
|
+
if isinstance(value, go.GoClass):
|
|
2798
|
+
_whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value.handle)
|
|
2799
|
+
else:
|
|
2800
|
+
_whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value)
|
|
2801
|
+
@property
|
|
2802
|
+
def Body(self):
|
|
2803
|
+
return _whatsapp.whatsapp_Message_Body_Get(self.handle)
|
|
2804
|
+
@Body.setter
|
|
2805
|
+
def Body(self, value):
|
|
2806
|
+
if isinstance(value, go.GoClass):
|
|
2807
|
+
_whatsapp.whatsapp_Message_Body_Set(self.handle, value.handle)
|
|
2808
|
+
else:
|
|
2809
|
+
_whatsapp.whatsapp_Message_Body_Set(self.handle, value)
|
|
3016
2810
|
@property
|
|
3017
2811
|
def Timestamp(self):
|
|
3018
|
-
return _whatsapp.
|
|
2812
|
+
return _whatsapp.whatsapp_Message_Timestamp_Get(self.handle)
|
|
3019
2813
|
@Timestamp.setter
|
|
3020
2814
|
def Timestamp(self, value):
|
|
3021
2815
|
if isinstance(value, go.GoClass):
|
|
3022
|
-
_whatsapp.
|
|
2816
|
+
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value.handle)
|
|
3023
2817
|
else:
|
|
3024
|
-
_whatsapp.
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
2818
|
+
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value)
|
|
2819
|
+
@property
|
|
2820
|
+
def IsCarbon(self):
|
|
2821
|
+
return _whatsapp.whatsapp_Message_IsCarbon_Get(self.handle)
|
|
2822
|
+
@IsCarbon.setter
|
|
2823
|
+
def IsCarbon(self, value):
|
|
2824
|
+
if isinstance(value, go.GoClass):
|
|
2825
|
+
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value.handle)
|
|
2826
|
+
else:
|
|
2827
|
+
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value)
|
|
2828
|
+
@property
|
|
2829
|
+
def IsForwarded(self):
|
|
2830
|
+
return _whatsapp.whatsapp_Message_IsForwarded_Get(self.handle)
|
|
2831
|
+
@IsForwarded.setter
|
|
2832
|
+
def IsForwarded(self, value):
|
|
2833
|
+
if isinstance(value, go.GoClass):
|
|
2834
|
+
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value.handle)
|
|
2835
|
+
else:
|
|
2836
|
+
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value)
|
|
2837
|
+
@property
|
|
2838
|
+
def ReplyID(self):
|
|
2839
|
+
return _whatsapp.whatsapp_Message_ReplyID_Get(self.handle)
|
|
2840
|
+
@ReplyID.setter
|
|
2841
|
+
def ReplyID(self, value):
|
|
2842
|
+
if isinstance(value, go.GoClass):
|
|
2843
|
+
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value.handle)
|
|
2844
|
+
else:
|
|
2845
|
+
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value)
|
|
2846
|
+
@property
|
|
2847
|
+
def ReplyBody(self):
|
|
2848
|
+
return _whatsapp.whatsapp_Message_ReplyBody_Get(self.handle)
|
|
2849
|
+
@ReplyBody.setter
|
|
2850
|
+
def ReplyBody(self, value):
|
|
2851
|
+
if isinstance(value, go.GoClass):
|
|
2852
|
+
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value.handle)
|
|
2853
|
+
else:
|
|
2854
|
+
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value)
|
|
2855
|
+
@property
|
|
2856
|
+
def Attachments(self):
|
|
2857
|
+
return Slice_whatsapp_Attachment(handle=_whatsapp.whatsapp_Message_Attachments_Get(self.handle))
|
|
2858
|
+
@Attachments.setter
|
|
2859
|
+
def Attachments(self, value):
|
|
2860
|
+
if isinstance(value, go.GoClass):
|
|
2861
|
+
_whatsapp.whatsapp_Message_Attachments_Set(self.handle, value.handle)
|
|
2862
|
+
else:
|
|
2863
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2864
|
+
@property
|
|
2865
|
+
def Preview(self):
|
|
2866
|
+
return Preview(handle=_whatsapp.whatsapp_Message_Preview_Get(self.handle))
|
|
2867
|
+
@Preview.setter
|
|
2868
|
+
def Preview(self, value):
|
|
2869
|
+
if isinstance(value, go.GoClass):
|
|
2870
|
+
_whatsapp.whatsapp_Message_Preview_Set(self.handle, value.handle)
|
|
2871
|
+
else:
|
|
2872
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2873
|
+
@property
|
|
2874
|
+
def Location(self):
|
|
2875
|
+
return Location(handle=_whatsapp.whatsapp_Message_Location_Get(self.handle))
|
|
2876
|
+
@Location.setter
|
|
2877
|
+
def Location(self, value):
|
|
2878
|
+
if isinstance(value, go.GoClass):
|
|
2879
|
+
_whatsapp.whatsapp_Message_Location_Set(self.handle, value.handle)
|
|
2880
|
+
else:
|
|
2881
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2882
|
+
@property
|
|
2883
|
+
def Poll(self):
|
|
2884
|
+
return Poll(handle=_whatsapp.whatsapp_Message_Poll_Get(self.handle))
|
|
2885
|
+
@Poll.setter
|
|
2886
|
+
def Poll(self, value):
|
|
2887
|
+
if isinstance(value, go.GoClass):
|
|
2888
|
+
_whatsapp.whatsapp_Message_Poll_Set(self.handle, value.handle)
|
|
2889
|
+
else:
|
|
2890
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2891
|
+
@property
|
|
2892
|
+
def Album(self):
|
|
2893
|
+
return Album(handle=_whatsapp.whatsapp_Message_Album_Get(self.handle))
|
|
2894
|
+
@Album.setter
|
|
2895
|
+
def Album(self, value):
|
|
2896
|
+
if isinstance(value, go.GoClass):
|
|
2897
|
+
_whatsapp.whatsapp_Message_Album_Set(self.handle, value.handle)
|
|
2898
|
+
else:
|
|
2899
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2900
|
+
@property
|
|
2901
|
+
def GroupInvite(self):
|
|
2902
|
+
return Group(handle=_whatsapp.whatsapp_Message_GroupInvite_Get(self.handle))
|
|
2903
|
+
@GroupInvite.setter
|
|
2904
|
+
def GroupInvite(self, value):
|
|
2905
|
+
if isinstance(value, go.GoClass):
|
|
2906
|
+
_whatsapp.whatsapp_Message_GroupInvite_Set(self.handle, value.handle)
|
|
2907
|
+
else:
|
|
2908
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2909
|
+
@property
|
|
2910
|
+
def MentionJIDs(self):
|
|
2911
|
+
return go.Slice_string(handle=_whatsapp.whatsapp_Message_MentionJIDs_Get(self.handle))
|
|
2912
|
+
@MentionJIDs.setter
|
|
2913
|
+
def MentionJIDs(self, value):
|
|
2914
|
+
if isinstance(value, go.GoClass):
|
|
2915
|
+
_whatsapp.whatsapp_Message_MentionJIDs_Set(self.handle, value.handle)
|
|
2916
|
+
else:
|
|
2917
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2918
|
+
@property
|
|
2919
|
+
def Receipts(self):
|
|
2920
|
+
return Slice_whatsapp_Receipt(handle=_whatsapp.whatsapp_Message_Receipts_Get(self.handle))
|
|
2921
|
+
@Receipts.setter
|
|
2922
|
+
def Receipts(self, value):
|
|
2923
|
+
if isinstance(value, go.GoClass):
|
|
2924
|
+
_whatsapp.whatsapp_Message_Receipts_Set(self.handle, value.handle)
|
|
2925
|
+
else:
|
|
2926
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2927
|
+
@property
|
|
2928
|
+
def Reactions(self):
|
|
2929
|
+
return Slice_whatsapp_Message(handle=_whatsapp.whatsapp_Message_Reactions_Get(self.handle))
|
|
2930
|
+
@Reactions.setter
|
|
2931
|
+
def Reactions(self, value):
|
|
2932
|
+
if isinstance(value, go.GoClass):
|
|
2933
|
+
_whatsapp.whatsapp_Message_Reactions_Set(self.handle, value.handle)
|
|
2934
|
+
else:
|
|
2935
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2936
|
+
@property
|
|
2937
|
+
def IsHistory(self):
|
|
2938
|
+
return _whatsapp.whatsapp_Message_IsHistory_Get(self.handle)
|
|
2939
|
+
@IsHistory.setter
|
|
2940
|
+
def IsHistory(self, value):
|
|
2941
|
+
if isinstance(value, go.GoClass):
|
|
2942
|
+
_whatsapp.whatsapp_Message_IsHistory_Set(self.handle, value.handle)
|
|
2943
|
+
else:
|
|
2944
|
+
_whatsapp.whatsapp_Message_IsHistory_Set(self.handle, value)
|
|
2945
|
+
|
|
2946
|
+
# Python type for struct whatsapp.ChatState
|
|
2947
|
+
class ChatState(go.GoClass):
|
|
2948
|
+
"""A ChatState represents the activity of a contact within a certain discussion, for instance,\nwhether the contact is currently composing a message. This is separate to the concept of a\nPresence, which is the contact's general state across all discussions.\n"""
|
|
3029
2949
|
def __init__(self, *args, **kwargs):
|
|
3030
2950
|
"""
|
|
3031
2951
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -3039,25 +2959,25 @@ class GroupSubject(go.GoClass):
|
|
|
3039
2959
|
self.handle = args[0].handle
|
|
3040
2960
|
_whatsapp.IncRef(self.handle)
|
|
3041
2961
|
else:
|
|
3042
|
-
self.handle = _whatsapp.
|
|
2962
|
+
self.handle = _whatsapp.whatsapp_ChatState_CTor()
|
|
3043
2963
|
_whatsapp.IncRef(self.handle)
|
|
3044
2964
|
if 0 < len(args):
|
|
3045
|
-
self.
|
|
3046
|
-
if "
|
|
3047
|
-
self.
|
|
2965
|
+
self.Kind = args[0]
|
|
2966
|
+
if "Kind" in kwargs:
|
|
2967
|
+
self.Kind = kwargs["Kind"]
|
|
3048
2968
|
if 1 < len(args):
|
|
3049
|
-
self.
|
|
3050
|
-
if "
|
|
3051
|
-
self.
|
|
2969
|
+
self.JID = args[1]
|
|
2970
|
+
if "JID" in kwargs:
|
|
2971
|
+
self.JID = kwargs["JID"]
|
|
3052
2972
|
if 2 < len(args):
|
|
3053
|
-
self.
|
|
3054
|
-
if "
|
|
3055
|
-
self.
|
|
2973
|
+
self.GroupJID = args[2]
|
|
2974
|
+
if "GroupJID" in kwargs:
|
|
2975
|
+
self.GroupJID = kwargs["GroupJID"]
|
|
3056
2976
|
def __del__(self):
|
|
3057
2977
|
_whatsapp.DecRef(self.handle)
|
|
3058
2978
|
def __str__(self):
|
|
3059
2979
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3060
|
-
sv = 'whatsapp.
|
|
2980
|
+
sv = 'whatsapp.ChatState{'
|
|
3061
2981
|
first = True
|
|
3062
2982
|
for v in pr:
|
|
3063
2983
|
if callable(v[1]):
|
|
@@ -3070,38 +2990,38 @@ class GroupSubject(go.GoClass):
|
|
|
3070
2990
|
return sv + '}'
|
|
3071
2991
|
def __repr__(self):
|
|
3072
2992
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3073
|
-
sv = 'whatsapp.
|
|
2993
|
+
sv = 'whatsapp.ChatState ( '
|
|
3074
2994
|
for v in pr:
|
|
3075
2995
|
if not callable(v[1]):
|
|
3076
2996
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
3077
2997
|
return sv + ')'
|
|
3078
2998
|
@property
|
|
3079
|
-
def
|
|
3080
|
-
return _whatsapp.
|
|
3081
|
-
@
|
|
3082
|
-
def
|
|
2999
|
+
def Kind(self):
|
|
3000
|
+
return _whatsapp.whatsapp_ChatState_Kind_Get(self.handle)
|
|
3001
|
+
@Kind.setter
|
|
3002
|
+
def Kind(self, value):
|
|
3083
3003
|
if isinstance(value, go.GoClass):
|
|
3084
|
-
_whatsapp.
|
|
3004
|
+
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value.handle)
|
|
3085
3005
|
else:
|
|
3086
|
-
_whatsapp.
|
|
3006
|
+
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value)
|
|
3087
3007
|
@property
|
|
3088
|
-
def
|
|
3089
|
-
return _whatsapp.
|
|
3090
|
-
@
|
|
3091
|
-
def
|
|
3008
|
+
def JID(self):
|
|
3009
|
+
return _whatsapp.whatsapp_ChatState_JID_Get(self.handle)
|
|
3010
|
+
@JID.setter
|
|
3011
|
+
def JID(self, value):
|
|
3092
3012
|
if isinstance(value, go.GoClass):
|
|
3093
|
-
_whatsapp.
|
|
3013
|
+
_whatsapp.whatsapp_ChatState_JID_Set(self.handle, value.handle)
|
|
3094
3014
|
else:
|
|
3095
|
-
_whatsapp.
|
|
3015
|
+
_whatsapp.whatsapp_ChatState_JID_Set(self.handle, value)
|
|
3096
3016
|
@property
|
|
3097
|
-
def
|
|
3098
|
-
return _whatsapp.
|
|
3099
|
-
@
|
|
3100
|
-
def
|
|
3017
|
+
def GroupJID(self):
|
|
3018
|
+
return _whatsapp.whatsapp_ChatState_GroupJID_Get(self.handle)
|
|
3019
|
+
@GroupJID.setter
|
|
3020
|
+
def GroupJID(self, value):
|
|
3101
3021
|
if isinstance(value, go.GoClass):
|
|
3102
|
-
_whatsapp.
|
|
3022
|
+
_whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value.handle)
|
|
3103
3023
|
else:
|
|
3104
|
-
_whatsapp.
|
|
3024
|
+
_whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value)
|
|
3105
3025
|
|
|
3106
3026
|
# Python type for struct whatsapp.Preview
|
|
3107
3027
|
class Preview(go.GoClass):
|
|
@@ -3209,6 +3129,205 @@ class Preview(go.GoClass):
|
|
|
3209
3129
|
else:
|
|
3210
3130
|
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
3211
3131
|
|
|
3132
|
+
# Python type for struct whatsapp.Receipt
|
|
3133
|
+
class Receipt(go.GoClass):
|
|
3134
|
+
"""A Receipt represents a notice of delivery or presentation for [Message] instances sent or\nreceived. Receipts can be delivered for many messages at once, but are generally all delivered\nunder one specific state at a time.\n"""
|
|
3135
|
+
def __init__(self, *args, **kwargs):
|
|
3136
|
+
"""
|
|
3137
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
3138
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
3139
|
+
in which case a new Go object is constructed first
|
|
3140
|
+
"""
|
|
3141
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
3142
|
+
self.handle = kwargs['handle']
|
|
3143
|
+
_whatsapp.IncRef(self.handle)
|
|
3144
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
3145
|
+
self.handle = args[0].handle
|
|
3146
|
+
_whatsapp.IncRef(self.handle)
|
|
3147
|
+
else:
|
|
3148
|
+
self.handle = _whatsapp.whatsapp_Receipt_CTor()
|
|
3149
|
+
_whatsapp.IncRef(self.handle)
|
|
3150
|
+
if 0 < len(args):
|
|
3151
|
+
self.Kind = args[0]
|
|
3152
|
+
if "Kind" in kwargs:
|
|
3153
|
+
self.Kind = kwargs["Kind"]
|
|
3154
|
+
if 1 < len(args):
|
|
3155
|
+
self.MessageIDs = args[1]
|
|
3156
|
+
if "MessageIDs" in kwargs:
|
|
3157
|
+
self.MessageIDs = kwargs["MessageIDs"]
|
|
3158
|
+
if 2 < len(args):
|
|
3159
|
+
self.JID = args[2]
|
|
3160
|
+
if "JID" in kwargs:
|
|
3161
|
+
self.JID = kwargs["JID"]
|
|
3162
|
+
if 3 < len(args):
|
|
3163
|
+
self.GroupJID = args[3]
|
|
3164
|
+
if "GroupJID" in kwargs:
|
|
3165
|
+
self.GroupJID = kwargs["GroupJID"]
|
|
3166
|
+
if 4 < len(args):
|
|
3167
|
+
self.Timestamp = args[4]
|
|
3168
|
+
if "Timestamp" in kwargs:
|
|
3169
|
+
self.Timestamp = kwargs["Timestamp"]
|
|
3170
|
+
if 5 < len(args):
|
|
3171
|
+
self.IsCarbon = args[5]
|
|
3172
|
+
if "IsCarbon" in kwargs:
|
|
3173
|
+
self.IsCarbon = kwargs["IsCarbon"]
|
|
3174
|
+
def __del__(self):
|
|
3175
|
+
_whatsapp.DecRef(self.handle)
|
|
3176
|
+
def __str__(self):
|
|
3177
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3178
|
+
sv = 'whatsapp.Receipt{'
|
|
3179
|
+
first = True
|
|
3180
|
+
for v in pr:
|
|
3181
|
+
if callable(v[1]):
|
|
3182
|
+
continue
|
|
3183
|
+
if first:
|
|
3184
|
+
first = False
|
|
3185
|
+
else:
|
|
3186
|
+
sv += ', '
|
|
3187
|
+
sv += v[0] + '=' + str(v[1])
|
|
3188
|
+
return sv + '}'
|
|
3189
|
+
def __repr__(self):
|
|
3190
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3191
|
+
sv = 'whatsapp.Receipt ( '
|
|
3192
|
+
for v in pr:
|
|
3193
|
+
if not callable(v[1]):
|
|
3194
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
3195
|
+
return sv + ')'
|
|
3196
|
+
@property
|
|
3197
|
+
def Kind(self):
|
|
3198
|
+
return _whatsapp.whatsapp_Receipt_Kind_Get(self.handle)
|
|
3199
|
+
@Kind.setter
|
|
3200
|
+
def Kind(self, value):
|
|
3201
|
+
if isinstance(value, go.GoClass):
|
|
3202
|
+
_whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value.handle)
|
|
3203
|
+
else:
|
|
3204
|
+
_whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value)
|
|
3205
|
+
@property
|
|
3206
|
+
def MessageIDs(self):
|
|
3207
|
+
return go.Slice_string(handle=_whatsapp.whatsapp_Receipt_MessageIDs_Get(self.handle))
|
|
3208
|
+
@MessageIDs.setter
|
|
3209
|
+
def MessageIDs(self, value):
|
|
3210
|
+
if isinstance(value, go.GoClass):
|
|
3211
|
+
_whatsapp.whatsapp_Receipt_MessageIDs_Set(self.handle, value.handle)
|
|
3212
|
+
else:
|
|
3213
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
3214
|
+
@property
|
|
3215
|
+
def JID(self):
|
|
3216
|
+
return _whatsapp.whatsapp_Receipt_JID_Get(self.handle)
|
|
3217
|
+
@JID.setter
|
|
3218
|
+
def JID(self, value):
|
|
3219
|
+
if isinstance(value, go.GoClass):
|
|
3220
|
+
_whatsapp.whatsapp_Receipt_JID_Set(self.handle, value.handle)
|
|
3221
|
+
else:
|
|
3222
|
+
_whatsapp.whatsapp_Receipt_JID_Set(self.handle, value)
|
|
3223
|
+
@property
|
|
3224
|
+
def GroupJID(self):
|
|
3225
|
+
return _whatsapp.whatsapp_Receipt_GroupJID_Get(self.handle)
|
|
3226
|
+
@GroupJID.setter
|
|
3227
|
+
def GroupJID(self, value):
|
|
3228
|
+
if isinstance(value, go.GoClass):
|
|
3229
|
+
_whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value.handle)
|
|
3230
|
+
else:
|
|
3231
|
+
_whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value)
|
|
3232
|
+
@property
|
|
3233
|
+
def Timestamp(self):
|
|
3234
|
+
return _whatsapp.whatsapp_Receipt_Timestamp_Get(self.handle)
|
|
3235
|
+
@Timestamp.setter
|
|
3236
|
+
def Timestamp(self, value):
|
|
3237
|
+
if isinstance(value, go.GoClass):
|
|
3238
|
+
_whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value.handle)
|
|
3239
|
+
else:
|
|
3240
|
+
_whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value)
|
|
3241
|
+
@property
|
|
3242
|
+
def IsCarbon(self):
|
|
3243
|
+
return _whatsapp.whatsapp_Receipt_IsCarbon_Get(self.handle)
|
|
3244
|
+
@IsCarbon.setter
|
|
3245
|
+
def IsCarbon(self, value):
|
|
3246
|
+
if isinstance(value, go.GoClass):
|
|
3247
|
+
_whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value.handle)
|
|
3248
|
+
else:
|
|
3249
|
+
_whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value)
|
|
3250
|
+
|
|
3251
|
+
# Python type for struct whatsapp.Presence
|
|
3252
|
+
class Presence(go.GoClass):
|
|
3253
|
+
"""Precence represents a contact's general state of activity, and is periodically updated as\ncontacts start or stop paying attention to their client of choice.\n"""
|
|
3254
|
+
def __init__(self, *args, **kwargs):
|
|
3255
|
+
"""
|
|
3256
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
3257
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
3258
|
+
in which case a new Go object is constructed first
|
|
3259
|
+
"""
|
|
3260
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
3261
|
+
self.handle = kwargs['handle']
|
|
3262
|
+
_whatsapp.IncRef(self.handle)
|
|
3263
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
3264
|
+
self.handle = args[0].handle
|
|
3265
|
+
_whatsapp.IncRef(self.handle)
|
|
3266
|
+
else:
|
|
3267
|
+
self.handle = _whatsapp.whatsapp_Presence_CTor()
|
|
3268
|
+
_whatsapp.IncRef(self.handle)
|
|
3269
|
+
if 0 < len(args):
|
|
3270
|
+
self.JID = args[0]
|
|
3271
|
+
if "JID" in kwargs:
|
|
3272
|
+
self.JID = kwargs["JID"]
|
|
3273
|
+
if 1 < len(args):
|
|
3274
|
+
self.Kind = args[1]
|
|
3275
|
+
if "Kind" in kwargs:
|
|
3276
|
+
self.Kind = kwargs["Kind"]
|
|
3277
|
+
if 2 < len(args):
|
|
3278
|
+
self.LastSeen = args[2]
|
|
3279
|
+
if "LastSeen" in kwargs:
|
|
3280
|
+
self.LastSeen = kwargs["LastSeen"]
|
|
3281
|
+
def __del__(self):
|
|
3282
|
+
_whatsapp.DecRef(self.handle)
|
|
3283
|
+
def __str__(self):
|
|
3284
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3285
|
+
sv = 'whatsapp.Presence{'
|
|
3286
|
+
first = True
|
|
3287
|
+
for v in pr:
|
|
3288
|
+
if callable(v[1]):
|
|
3289
|
+
continue
|
|
3290
|
+
if first:
|
|
3291
|
+
first = False
|
|
3292
|
+
else:
|
|
3293
|
+
sv += ', '
|
|
3294
|
+
sv += v[0] + '=' + str(v[1])
|
|
3295
|
+
return sv + '}'
|
|
3296
|
+
def __repr__(self):
|
|
3297
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3298
|
+
sv = 'whatsapp.Presence ( '
|
|
3299
|
+
for v in pr:
|
|
3300
|
+
if not callable(v[1]):
|
|
3301
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
3302
|
+
return sv + ')'
|
|
3303
|
+
@property
|
|
3304
|
+
def JID(self):
|
|
3305
|
+
return _whatsapp.whatsapp_Presence_JID_Get(self.handle)
|
|
3306
|
+
@JID.setter
|
|
3307
|
+
def JID(self, value):
|
|
3308
|
+
if isinstance(value, go.GoClass):
|
|
3309
|
+
_whatsapp.whatsapp_Presence_JID_Set(self.handle, value.handle)
|
|
3310
|
+
else:
|
|
3311
|
+
_whatsapp.whatsapp_Presence_JID_Set(self.handle, value)
|
|
3312
|
+
@property
|
|
3313
|
+
def Kind(self):
|
|
3314
|
+
return _whatsapp.whatsapp_Presence_Kind_Get(self.handle)
|
|
3315
|
+
@Kind.setter
|
|
3316
|
+
def Kind(self, value):
|
|
3317
|
+
if isinstance(value, go.GoClass):
|
|
3318
|
+
_whatsapp.whatsapp_Presence_Kind_Set(self.handle, value.handle)
|
|
3319
|
+
else:
|
|
3320
|
+
_whatsapp.whatsapp_Presence_Kind_Set(self.handle, value)
|
|
3321
|
+
@property
|
|
3322
|
+
def LastSeen(self):
|
|
3323
|
+
return _whatsapp.whatsapp_Presence_LastSeen_Get(self.handle)
|
|
3324
|
+
@LastSeen.setter
|
|
3325
|
+
def LastSeen(self, value):
|
|
3326
|
+
if isinstance(value, go.GoClass):
|
|
3327
|
+
_whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value.handle)
|
|
3328
|
+
else:
|
|
3329
|
+
_whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value)
|
|
3330
|
+
|
|
3212
3331
|
|
|
3213
3332
|
# ---- Slices ---
|
|
3214
3333
|
|
|
@@ -3227,5 +3346,11 @@ def NewGateway():
|
|
|
3227
3346
|
|
|
3228
3347
|
|
|
3229
3348
|
# ---- Functions ---
|
|
3349
|
+
def IsAnonymousJID(id):
|
|
3350
|
+
"""IsAnonymousJID(str id) bool
|
|
3351
|
+
|
|
3352
|
+
IsAnonymousJID returns true if the JID given is not addressible, that is, if it's actually a LID.
|
|
3353
|
+
"""
|
|
3354
|
+
return _whatsapp.whatsapp_IsAnonymousJID(id)
|
|
3230
3355
|
|
|
3231
3356
|
|