slidge-whatsapp 0.2.6__cp313-cp313-manylinux_2_36_aarch64.whl → 0.3.0__cp313-cp313-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/contact.py +15 -3
- slidge_whatsapp/event.go +152 -50
- slidge_whatsapp/gateway.go +7 -63
- slidge_whatsapp/gateway.py +2 -3
- slidge_whatsapp/generated/_whatsapp.cpython-313-aarch64-linux-gnu.h +180 -163
- slidge_whatsapp/generated/_whatsapp.cpython-313-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +145 -131
- slidge_whatsapp/generated/whatsapp.c +1669 -1397
- slidge_whatsapp/generated/whatsapp.go +1209 -1098
- slidge_whatsapp/generated/whatsapp.py +1175 -1050
- slidge_whatsapp/generated/whatsapp_go.h +180 -163
- slidge_whatsapp/go.mod +18 -15
- slidge_whatsapp/go.sum +38 -32
- slidge_whatsapp/group.py +34 -30
- slidge_whatsapp/media/media.go +6 -2
- slidge_whatsapp/session.go +34 -17
- 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/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 +30 -0
- 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 +51 -13
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/init.go +22 -9
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +2 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +3096 -1651
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +188 -128
- 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/runtime_go1.23.go +2 -2
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.25.go +37 -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/util/exhttp/handleerrors.go +60 -26
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/json.go +1 -6
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/networkerror.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/util/exstrings/stringutil.go +104 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +19 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.pre-commit-config.yaml +3 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/hash.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +5 -1
- 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 +40 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/encoder.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +79 -45
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +13 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download-to-file.go +19 -12
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +26 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +99 -27
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +54 -26
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +208 -57
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +2 -14
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/newsletter.go +83 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +17 -8
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +2 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +15 -6
- 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/waArmadilloXMA/WAArmadilloXMA.pb.go +16 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.proto +3 -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/waCompanionReg/WACompanionReg.pb.go +46 -10
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.proto +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +8975 -11209
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +193 -421
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +52 -23
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +3 -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/waMsgTransport/extra.go +7 -6
- 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 +1143 -463
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +60 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +60 -38
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +11 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +20 -7
- 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 +10 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +38 -21
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/container.go +9 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +25 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/00-latest-schema.sql +4 -2
- 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/store.go +5 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/call.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +13 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/message.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/user.go +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +14 -8
- slidge_whatsapp/vendor/golang.org/x/crypto/curve25519/curve25519.go +1 -1
- slidge_whatsapp/vendor/golang.org/x/net/http2/config.go +44 -2
- slidge_whatsapp/vendor/golang.org/x/net/http2/frame.go +8 -8
- slidge_whatsapp/vendor/golang.org/x/net/http2/gotrack.go +14 -3
- slidge_whatsapp/vendor/golang.org/x/net/http2/http2.go +7 -29
- slidge_whatsapp/vendor/golang.org/x/net/http2/server.go +53 -71
- slidge_whatsapp/vendor/golang.org/x/net/http2/transport.go +20 -74
- 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 +1 -55
- 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_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/types_windows.go +6 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +483 -483
- 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 +10 -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 +68 -22
- 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/version/version.go +1 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +8 -0
- slidge_whatsapp/vendor/modules.txt +57 -23
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0.dist-info}/METADATA +5 -4
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0.dist-info}/RECORD +254 -174
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0.dist-info}/WHEEL +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi_amd64.go +0 -7
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_go124.go +0 -61
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_pre_go124.go +0 -16
- slidge_whatsapp/vendor/golang.org/x/net/http2/timer.go +0 -20
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0.dist-info}/entry_points.txt +0 -0
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0.dist-info/licenses}/LICENSE +0 -0
|
@@ -1093,9 +1093,9 @@ class Presence(go.GoClass):
|
|
|
1093
1093
|
else:
|
|
1094
1094
|
_whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value)
|
|
1095
1095
|
|
|
1096
|
-
# Python type for struct whatsapp.
|
|
1097
|
-
class
|
|
1098
|
-
"""A
|
|
1096
|
+
# Python type for struct whatsapp.Preview
|
|
1097
|
+
class Preview(go.GoClass):
|
|
1098
|
+
"""A Preview represents a short description for a URL provided in a message body, as usually derived\nfrom the content of the page pointed at.\n"""
|
|
1099
1099
|
def __init__(self, *args, **kwargs):
|
|
1100
1100
|
"""
|
|
1101
1101
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1109,37 +1109,33 @@ class Receipt(go.GoClass):
|
|
|
1109
1109
|
self.handle = args[0].handle
|
|
1110
1110
|
_whatsapp.IncRef(self.handle)
|
|
1111
1111
|
else:
|
|
1112
|
-
self.handle = _whatsapp.
|
|
1112
|
+
self.handle = _whatsapp.whatsapp_Preview_CTor()
|
|
1113
1113
|
_whatsapp.IncRef(self.handle)
|
|
1114
1114
|
if 0 < len(args):
|
|
1115
1115
|
self.Kind = args[0]
|
|
1116
1116
|
if "Kind" in kwargs:
|
|
1117
1117
|
self.Kind = kwargs["Kind"]
|
|
1118
1118
|
if 1 < len(args):
|
|
1119
|
-
self.
|
|
1120
|
-
if "
|
|
1121
|
-
self.
|
|
1119
|
+
self.URL = args[1]
|
|
1120
|
+
if "URL" in kwargs:
|
|
1121
|
+
self.URL = kwargs["URL"]
|
|
1122
1122
|
if 2 < len(args):
|
|
1123
|
-
self.
|
|
1124
|
-
if "
|
|
1125
|
-
self.
|
|
1123
|
+
self.Title = args[2]
|
|
1124
|
+
if "Title" in kwargs:
|
|
1125
|
+
self.Title = kwargs["Title"]
|
|
1126
1126
|
if 3 < len(args):
|
|
1127
|
-
self.
|
|
1128
|
-
if "
|
|
1129
|
-
self.
|
|
1127
|
+
self.Description = args[3]
|
|
1128
|
+
if "Description" in kwargs:
|
|
1129
|
+
self.Description = kwargs["Description"]
|
|
1130
1130
|
if 4 < len(args):
|
|
1131
|
-
self.
|
|
1132
|
-
if "
|
|
1133
|
-
self.
|
|
1134
|
-
if 5 < len(args):
|
|
1135
|
-
self.IsCarbon = args[5]
|
|
1136
|
-
if "IsCarbon" in kwargs:
|
|
1137
|
-
self.IsCarbon = kwargs["IsCarbon"]
|
|
1131
|
+
self.Thumbnail = args[4]
|
|
1132
|
+
if "Thumbnail" in kwargs:
|
|
1133
|
+
self.Thumbnail = kwargs["Thumbnail"]
|
|
1138
1134
|
def __del__(self):
|
|
1139
1135
|
_whatsapp.DecRef(self.handle)
|
|
1140
1136
|
def __str__(self):
|
|
1141
1137
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1142
|
-
sv = 'whatsapp.
|
|
1138
|
+
sv = 'whatsapp.Preview{'
|
|
1143
1139
|
first = True
|
|
1144
1140
|
for v in pr:
|
|
1145
1141
|
if callable(v[1]):
|
|
@@ -1152,69 +1148,60 @@ class Receipt(go.GoClass):
|
|
|
1152
1148
|
return sv + '}'
|
|
1153
1149
|
def __repr__(self):
|
|
1154
1150
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1155
|
-
sv = 'whatsapp.
|
|
1151
|
+
sv = 'whatsapp.Preview ( '
|
|
1156
1152
|
for v in pr:
|
|
1157
1153
|
if not callable(v[1]):
|
|
1158
1154
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1159
1155
|
return sv + ')'
|
|
1160
1156
|
@property
|
|
1161
1157
|
def Kind(self):
|
|
1162
|
-
return _whatsapp.
|
|
1158
|
+
return _whatsapp.whatsapp_Preview_Kind_Get(self.handle)
|
|
1163
1159
|
@Kind.setter
|
|
1164
1160
|
def Kind(self, value):
|
|
1165
1161
|
if isinstance(value, go.GoClass):
|
|
1166
|
-
_whatsapp.
|
|
1167
|
-
else:
|
|
1168
|
-
_whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value)
|
|
1169
|
-
@property
|
|
1170
|
-
def MessageIDs(self):
|
|
1171
|
-
return go.Slice_string(handle=_whatsapp.whatsapp_Receipt_MessageIDs_Get(self.handle))
|
|
1172
|
-
@MessageIDs.setter
|
|
1173
|
-
def MessageIDs(self, value):
|
|
1174
|
-
if isinstance(value, go.GoClass):
|
|
1175
|
-
_whatsapp.whatsapp_Receipt_MessageIDs_Set(self.handle, value.handle)
|
|
1162
|
+
_whatsapp.whatsapp_Preview_Kind_Set(self.handle, value.handle)
|
|
1176
1163
|
else:
|
|
1177
|
-
|
|
1164
|
+
_whatsapp.whatsapp_Preview_Kind_Set(self.handle, value)
|
|
1178
1165
|
@property
|
|
1179
|
-
def
|
|
1180
|
-
return _whatsapp.
|
|
1181
|
-
@
|
|
1182
|
-
def
|
|
1166
|
+
def URL(self):
|
|
1167
|
+
return _whatsapp.whatsapp_Preview_URL_Get(self.handle)
|
|
1168
|
+
@URL.setter
|
|
1169
|
+
def URL(self, value):
|
|
1183
1170
|
if isinstance(value, go.GoClass):
|
|
1184
|
-
_whatsapp.
|
|
1171
|
+
_whatsapp.whatsapp_Preview_URL_Set(self.handle, value.handle)
|
|
1185
1172
|
else:
|
|
1186
|
-
_whatsapp.
|
|
1173
|
+
_whatsapp.whatsapp_Preview_URL_Set(self.handle, value)
|
|
1187
1174
|
@property
|
|
1188
|
-
def
|
|
1189
|
-
return _whatsapp.
|
|
1190
|
-
@
|
|
1191
|
-
def
|
|
1175
|
+
def Title(self):
|
|
1176
|
+
return _whatsapp.whatsapp_Preview_Title_Get(self.handle)
|
|
1177
|
+
@Title.setter
|
|
1178
|
+
def Title(self, value):
|
|
1192
1179
|
if isinstance(value, go.GoClass):
|
|
1193
|
-
_whatsapp.
|
|
1180
|
+
_whatsapp.whatsapp_Preview_Title_Set(self.handle, value.handle)
|
|
1194
1181
|
else:
|
|
1195
|
-
_whatsapp.
|
|
1182
|
+
_whatsapp.whatsapp_Preview_Title_Set(self.handle, value)
|
|
1196
1183
|
@property
|
|
1197
|
-
def
|
|
1198
|
-
return _whatsapp.
|
|
1199
|
-
@
|
|
1200
|
-
def
|
|
1184
|
+
def Description(self):
|
|
1185
|
+
return _whatsapp.whatsapp_Preview_Description_Get(self.handle)
|
|
1186
|
+
@Description.setter
|
|
1187
|
+
def Description(self, value):
|
|
1201
1188
|
if isinstance(value, go.GoClass):
|
|
1202
|
-
_whatsapp.
|
|
1189
|
+
_whatsapp.whatsapp_Preview_Description_Set(self.handle, value.handle)
|
|
1203
1190
|
else:
|
|
1204
|
-
_whatsapp.
|
|
1191
|
+
_whatsapp.whatsapp_Preview_Description_Set(self.handle, value)
|
|
1205
1192
|
@property
|
|
1206
|
-
def
|
|
1207
|
-
return _whatsapp.
|
|
1208
|
-
@
|
|
1209
|
-
def
|
|
1193
|
+
def Thumbnail(self):
|
|
1194
|
+
return go.Slice_byte(handle=_whatsapp.whatsapp_Preview_Thumbnail_Get(self.handle))
|
|
1195
|
+
@Thumbnail.setter
|
|
1196
|
+
def Thumbnail(self, value):
|
|
1210
1197
|
if isinstance(value, go.GoClass):
|
|
1211
|
-
_whatsapp.
|
|
1198
|
+
_whatsapp.whatsapp_Preview_Thumbnail_Set(self.handle, value.handle)
|
|
1212
1199
|
else:
|
|
1213
|
-
|
|
1200
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1214
1201
|
|
|
1215
|
-
# Python type for struct whatsapp.
|
|
1216
|
-
class
|
|
1217
|
-
"""A
|
|
1202
|
+
# Python type for struct whatsapp.Attachment
|
|
1203
|
+
class Attachment(go.GoClass):
|
|
1204
|
+
"""A Attachment represents additional binary data (e.g. images, videos, documents) provided alongside\na message, for display or storage on the recepient client.\n"""
|
|
1218
1205
|
def __init__(self, *args, **kwargs):
|
|
1219
1206
|
"""
|
|
1220
1207
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1228,13 +1215,29 @@ class Session(go.GoClass):
|
|
|
1228
1215
|
self.handle = args[0].handle
|
|
1229
1216
|
_whatsapp.IncRef(self.handle)
|
|
1230
1217
|
else:
|
|
1231
|
-
self.handle = _whatsapp.
|
|
1218
|
+
self.handle = _whatsapp.whatsapp_Attachment_CTor()
|
|
1232
1219
|
_whatsapp.IncRef(self.handle)
|
|
1220
|
+
if 0 < len(args):
|
|
1221
|
+
self.MIME = args[0]
|
|
1222
|
+
if "MIME" in kwargs:
|
|
1223
|
+
self.MIME = kwargs["MIME"]
|
|
1224
|
+
if 1 < len(args):
|
|
1225
|
+
self.Filename = args[1]
|
|
1226
|
+
if "Filename" in kwargs:
|
|
1227
|
+
self.Filename = kwargs["Filename"]
|
|
1228
|
+
if 2 < len(args):
|
|
1229
|
+
self.Caption = args[2]
|
|
1230
|
+
if "Caption" in kwargs:
|
|
1231
|
+
self.Caption = kwargs["Caption"]
|
|
1232
|
+
if 3 < len(args):
|
|
1233
|
+
self.Data = args[3]
|
|
1234
|
+
if "Data" in kwargs:
|
|
1235
|
+
self.Data = kwargs["Data"]
|
|
1233
1236
|
def __del__(self):
|
|
1234
1237
|
_whatsapp.DecRef(self.handle)
|
|
1235
1238
|
def __str__(self):
|
|
1236
1239
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1237
|
-
sv = 'whatsapp.
|
|
1240
|
+
sv = 'whatsapp.Attachment{'
|
|
1238
1241
|
first = True
|
|
1239
1242
|
for v in pr:
|
|
1240
1243
|
if callable(v[1]):
|
|
@@ -1247,252 +1250,62 @@ class Session(go.GoClass):
|
|
|
1247
1250
|
return sv + '}'
|
|
1248
1251
|
def __repr__(self):
|
|
1249
1252
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1250
|
-
sv = 'whatsapp.
|
|
1253
|
+
sv = 'whatsapp.Attachment ( '
|
|
1251
1254
|
for v in pr:
|
|
1252
1255
|
if not callable(v[1]):
|
|
1253
1256
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1254
1257
|
return sv + ')'
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
def
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
def
|
|
1292
|
-
"""
|
|
1293
|
-
|
|
1294
|
-
GenerateMessageID returns a valid, pseudo-random message ID for use in outgoing messages.
|
|
1295
|
-
"""
|
|
1296
|
-
return _whatsapp.whatsapp_Session_GenerateMessageID(self.handle)
|
|
1297
|
-
def SendChatState(self, state):
|
|
1298
|
-
"""SendChatState(object state) str
|
|
1299
|
-
|
|
1300
|
-
SendChatState sends the given chat state notification (e.g. composing message) to WhatsApp for the
|
|
1301
|
-
contact specified within.
|
|
1302
|
-
"""
|
|
1303
|
-
return _whatsapp.whatsapp_Session_SendChatState(self.handle, state.handle)
|
|
1304
|
-
def SendReceipt(self, receipt):
|
|
1305
|
-
"""SendReceipt(object receipt) str
|
|
1306
|
-
|
|
1307
|
-
SendReceipt sends a read receipt to WhatsApp for the message IDs specified within.
|
|
1308
|
-
"""
|
|
1309
|
-
return _whatsapp.whatsapp_Session_SendReceipt(self.handle, receipt.handle)
|
|
1310
|
-
def SendPresence(self, presence, statusMessage):
|
|
1311
|
-
"""SendPresence(int presence, str statusMessage) str
|
|
1258
|
+
@property
|
|
1259
|
+
def MIME(self):
|
|
1260
|
+
return _whatsapp.whatsapp_Attachment_MIME_Get(self.handle)
|
|
1261
|
+
@MIME.setter
|
|
1262
|
+
def MIME(self, value):
|
|
1263
|
+
if isinstance(value, go.GoClass):
|
|
1264
|
+
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value.handle)
|
|
1265
|
+
else:
|
|
1266
|
+
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value)
|
|
1267
|
+
@property
|
|
1268
|
+
def Filename(self):
|
|
1269
|
+
return _whatsapp.whatsapp_Attachment_Filename_Get(self.handle)
|
|
1270
|
+
@Filename.setter
|
|
1271
|
+
def Filename(self, value):
|
|
1272
|
+
if isinstance(value, go.GoClass):
|
|
1273
|
+
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value.handle)
|
|
1274
|
+
else:
|
|
1275
|
+
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value)
|
|
1276
|
+
@property
|
|
1277
|
+
def Caption(self):
|
|
1278
|
+
return _whatsapp.whatsapp_Attachment_Caption_Get(self.handle)
|
|
1279
|
+
@Caption.setter
|
|
1280
|
+
def Caption(self, value):
|
|
1281
|
+
if isinstance(value, go.GoClass):
|
|
1282
|
+
_whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value.handle)
|
|
1283
|
+
else:
|
|
1284
|
+
_whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value)
|
|
1285
|
+
@property
|
|
1286
|
+
def Data(self):
|
|
1287
|
+
return go.Slice_byte(handle=_whatsapp.whatsapp_Attachment_Data_Get(self.handle))
|
|
1288
|
+
@Data.setter
|
|
1289
|
+
def Data(self, value):
|
|
1290
|
+
if isinstance(value, go.GoClass):
|
|
1291
|
+
_whatsapp.whatsapp_Attachment_Data_Set(self.handle, value.handle)
|
|
1292
|
+
else:
|
|
1293
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1294
|
+
def GetSpec(self, ctx):
|
|
1295
|
+
"""GetSpec(object ctx) object, str
|
|
1312
1296
|
|
|
1313
|
-
|
|
1314
|
-
user. An error is returned if setting availability fails for any reason.
|
|
1297
|
+
GetSpec returns metadata for this attachment, as derived from the underlying attachment data.
|
|
1315
1298
|
"""
|
|
1316
|
-
return _whatsapp.
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
synchronize any contacts found with the adapter.
|
|
1299
|
+
return go.Ptr_media_Spec(handle=_whatsapp.whatsapp_Attachment_GetSpec(self.handle, ctx.handle))
|
|
1300
|
+
|
|
1301
|
+
# Python type for struct whatsapp.EventPayload
|
|
1302
|
+
class EventPayload(go.GoClass):
|
|
1303
|
+
"""EventPayload represents the collected payloads for all event types handled by the overarching\nsession adapter handler. Only specific fields will be populated in events emitted by internal\nhandlers, see documentation for specific types for more information.\n"""
|
|
1304
|
+
def __init__(self, *args, **kwargs):
|
|
1323
1305
|
"""
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
GetGroups returns a list of all group-chats currently joined in WhatsApp, along with additional
|
|
1329
|
-
information on present participants.
|
|
1330
|
-
"""
|
|
1331
|
-
return Slice_whatsapp_Group(handle=_whatsapp.whatsapp_Session_GetGroups(self.handle))
|
|
1332
|
-
def CreateGroup(self, name, participants):
|
|
1333
|
-
"""CreateGroup(str name, []str participants) object, str
|
|
1334
|
-
|
|
1335
|
-
CreateGroup attempts to create a new WhatsApp group for the given human-readable name and
|
|
1336
|
-
participant JIDs given.
|
|
1337
|
-
"""
|
|
1338
|
-
return Group(handle=_whatsapp.whatsapp_Session_CreateGroup(self.handle, name, participants.handle))
|
|
1339
|
-
def LeaveGroup(self, resourceID):
|
|
1340
|
-
"""LeaveGroup(str resourceID) str
|
|
1341
|
-
|
|
1342
|
-
LeaveGroup attempts to remove our own user from the given WhatsApp group, for the JID given.
|
|
1343
|
-
"""
|
|
1344
|
-
return _whatsapp.whatsapp_Session_LeaveGroup(self.handle, resourceID)
|
|
1345
|
-
def GetAvatar(self, resourceID, avatarID):
|
|
1346
|
-
"""GetAvatar(str resourceID, str avatarID) object, str
|
|
1347
|
-
|
|
1348
|
-
GetAvatar fetches a profile picture for the Contact or Group JID given. If a non-empty `avatarID`
|
|
1349
|
-
is also given, GetAvatar will return an empty [Avatar] instance with no error if the remote state
|
|
1350
|
-
for the given ID has not changed.
|
|
1351
|
-
"""
|
|
1352
|
-
return Avatar(handle=_whatsapp.whatsapp_Session_GetAvatar(self.handle, resourceID, avatarID))
|
|
1353
|
-
def SetAvatar(self, resourceID, avatar):
|
|
1354
|
-
"""SetAvatar(str resourceID, []int avatar) str, str
|
|
1355
|
-
|
|
1356
|
-
SetAvatar updates the profile picture for the Contact or Group JID given; it can also update the
|
|
1357
|
-
profile picture for our own user by providing an empty JID. The unique picture ID is returned,
|
|
1358
|
-
typically used as a cache reference or in providing to future calls for [Session.GetAvatar].
|
|
1359
|
-
"""
|
|
1360
|
-
return _whatsapp.whatsapp_Session_SetAvatar(self.handle, resourceID, avatar.handle)
|
|
1361
|
-
def SetGroupName(self, resourceID, name):
|
|
1362
|
-
"""SetGroupName(str resourceID, str name) str
|
|
1363
|
-
|
|
1364
|
-
SetGroupName updates the name of a WhatsApp group for the Group JID given.
|
|
1365
|
-
"""
|
|
1366
|
-
return _whatsapp.whatsapp_Session_SetGroupName(self.handle, resourceID, name)
|
|
1367
|
-
def SetGroupTopic(self, resourceID, topic):
|
|
1368
|
-
"""SetGroupTopic(str resourceID, str topic) str
|
|
1369
|
-
|
|
1370
|
-
SetGroupName updates the topic of a WhatsApp group for the Group JID given.
|
|
1371
|
-
"""
|
|
1372
|
-
return _whatsapp.whatsapp_Session_SetGroupTopic(self.handle, resourceID, topic)
|
|
1373
|
-
def UpdateGroupParticipants(self, resourceID, participants):
|
|
1374
|
-
"""UpdateGroupParticipants(str resourceID, []object participants) []object, str
|
|
1375
|
-
|
|
1376
|
-
UpdateGroupParticipants processes changes to the given group's participants, including additions,
|
|
1377
|
-
removals, and changes to privileges. Participant JIDs given must be part of the authenticated
|
|
1378
|
-
session's roster at least, and must also be active group participants for other types of changes.
|
|
1379
|
-
"""
|
|
1380
|
-
return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Session_UpdateGroupParticipants(self.handle, resourceID, participants.handle))
|
|
1381
|
-
def FindContact(self, phone):
|
|
1382
|
-
"""FindContact(str phone) object, str
|
|
1383
|
-
|
|
1384
|
-
FindContact attempts to check for a registered contact on WhatsApp corresponding to the given
|
|
1385
|
-
phone number, returning a concrete instance if found; typically, only the contact JID is set. No
|
|
1386
|
-
error is returned if no contact was found, but any unexpected errors will otherwise be returned
|
|
1387
|
-
directly.
|
|
1388
|
-
"""
|
|
1389
|
-
return Contact(handle=_whatsapp.whatsapp_Session_FindContact(self.handle, phone))
|
|
1390
|
-
def RequestMessageHistory(self, resourceID, oldestMessage):
|
|
1391
|
-
"""RequestMessageHistory(str resourceID, object oldestMessage) str
|
|
1392
|
-
|
|
1393
|
-
RequestMessageHistory sends and asynchronous request for message history related to the given
|
|
1394
|
-
resource (e.g. Contact or Group JID), ending at the oldest message given. Messages returned from
|
|
1395
|
-
history should then be handled as a `HistorySync` event of type `ON_DEMAND`, in the session-wide
|
|
1396
|
-
event handler. An error will be returned if requesting history fails for any reason.
|
|
1397
|
-
"""
|
|
1398
|
-
return _whatsapp.whatsapp_Session_RequestMessageHistory(self.handle, resourceID, oldestMessage.handle)
|
|
1399
|
-
def SetEventHandler(self, h, goRun=False):
|
|
1400
|
-
"""SetEventHandler(callable h)
|
|
1401
|
-
|
|
1402
|
-
SetEventHandler assigns the given handler function for propagating internal events into the Python
|
|
1403
|
-
gateway. Note that the event handler function is not entirely safe to use directly, and all calls
|
|
1404
|
-
should instead be sent to the [Gateway] via its internal call channel.
|
|
1405
|
-
"""
|
|
1406
|
-
_whatsapp.whatsapp_Session_SetEventHandler(self.handle, h, goRun)
|
|
1407
|
-
|
|
1408
|
-
# Python type for struct whatsapp.Call
|
|
1409
|
-
class Call(go.GoClass):
|
|
1410
|
-
"""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"""
|
|
1411
|
-
def __init__(self, *args, **kwargs):
|
|
1412
|
-
"""
|
|
1413
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1414
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
1415
|
-
in which case a new Go object is constructed first
|
|
1416
|
-
"""
|
|
1417
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1418
|
-
self.handle = kwargs['handle']
|
|
1419
|
-
_whatsapp.IncRef(self.handle)
|
|
1420
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1421
|
-
self.handle = args[0].handle
|
|
1422
|
-
_whatsapp.IncRef(self.handle)
|
|
1423
|
-
else:
|
|
1424
|
-
self.handle = _whatsapp.whatsapp_Call_CTor()
|
|
1425
|
-
_whatsapp.IncRef(self.handle)
|
|
1426
|
-
if 0 < len(args):
|
|
1427
|
-
self.State = args[0]
|
|
1428
|
-
if "State" in kwargs:
|
|
1429
|
-
self.State = kwargs["State"]
|
|
1430
|
-
if 1 < len(args):
|
|
1431
|
-
self.JID = args[1]
|
|
1432
|
-
if "JID" in kwargs:
|
|
1433
|
-
self.JID = kwargs["JID"]
|
|
1434
|
-
if 2 < len(args):
|
|
1435
|
-
self.Timestamp = args[2]
|
|
1436
|
-
if "Timestamp" in kwargs:
|
|
1437
|
-
self.Timestamp = kwargs["Timestamp"]
|
|
1438
|
-
def __del__(self):
|
|
1439
|
-
_whatsapp.DecRef(self.handle)
|
|
1440
|
-
def __str__(self):
|
|
1441
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1442
|
-
sv = 'whatsapp.Call{'
|
|
1443
|
-
first = True
|
|
1444
|
-
for v in pr:
|
|
1445
|
-
if callable(v[1]):
|
|
1446
|
-
continue
|
|
1447
|
-
if first:
|
|
1448
|
-
first = False
|
|
1449
|
-
else:
|
|
1450
|
-
sv += ', '
|
|
1451
|
-
sv += v[0] + '=' + str(v[1])
|
|
1452
|
-
return sv + '}'
|
|
1453
|
-
def __repr__(self):
|
|
1454
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1455
|
-
sv = 'whatsapp.Call ( '
|
|
1456
|
-
for v in pr:
|
|
1457
|
-
if not callable(v[1]):
|
|
1458
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1459
|
-
return sv + ')'
|
|
1460
|
-
@property
|
|
1461
|
-
def State(self):
|
|
1462
|
-
return _whatsapp.whatsapp_Call_State_Get(self.handle)
|
|
1463
|
-
@State.setter
|
|
1464
|
-
def State(self, value):
|
|
1465
|
-
if isinstance(value, go.GoClass):
|
|
1466
|
-
_whatsapp.whatsapp_Call_State_Set(self.handle, value.handle)
|
|
1467
|
-
else:
|
|
1468
|
-
_whatsapp.whatsapp_Call_State_Set(self.handle, value)
|
|
1469
|
-
@property
|
|
1470
|
-
def JID(self):
|
|
1471
|
-
return _whatsapp.whatsapp_Call_JID_Get(self.handle)
|
|
1472
|
-
@JID.setter
|
|
1473
|
-
def JID(self, value):
|
|
1474
|
-
if isinstance(value, go.GoClass):
|
|
1475
|
-
_whatsapp.whatsapp_Call_JID_Set(self.handle, value.handle)
|
|
1476
|
-
else:
|
|
1477
|
-
_whatsapp.whatsapp_Call_JID_Set(self.handle, value)
|
|
1478
|
-
@property
|
|
1479
|
-
def Timestamp(self):
|
|
1480
|
-
return _whatsapp.whatsapp_Call_Timestamp_Get(self.handle)
|
|
1481
|
-
@Timestamp.setter
|
|
1482
|
-
def Timestamp(self, value):
|
|
1483
|
-
if isinstance(value, go.GoClass):
|
|
1484
|
-
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value.handle)
|
|
1485
|
-
else:
|
|
1486
|
-
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value)
|
|
1487
|
-
|
|
1488
|
-
# Python type for struct whatsapp.EventPayload
|
|
1489
|
-
class EventPayload(go.GoClass):
|
|
1490
|
-
"""EventPayload represents the collected payloads for all event types handled by the overarching\nsession adapter handler. Only specific fields will be populated in events emitted by internal\nhandlers, see documentation for specific types for more information.\n"""
|
|
1491
|
-
def __init__(self, *args, **kwargs):
|
|
1492
|
-
"""
|
|
1493
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1494
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
1495
|
-
in which case a new Go object is constructed first
|
|
1306
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1307
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
1308
|
+
in which case a new Go object is constructed first
|
|
1496
1309
|
"""
|
|
1497
1310
|
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1498
1311
|
self.handle = kwargs['handle']
|
|
@@ -1516,31 +1329,35 @@ class EventPayload(go.GoClass):
|
|
|
1516
1329
|
if "Connect" in kwargs:
|
|
1517
1330
|
self.Connect = kwargs["Connect"]
|
|
1518
1331
|
if 3 < len(args):
|
|
1519
|
-
self.
|
|
1332
|
+
self.LoggedOut = args[3]
|
|
1333
|
+
if "LoggedOut" in kwargs:
|
|
1334
|
+
self.LoggedOut = kwargs["LoggedOut"]
|
|
1335
|
+
if 4 < len(args):
|
|
1336
|
+
self.Contact = args[4]
|
|
1520
1337
|
if "Contact" in kwargs:
|
|
1521
1338
|
self.Contact = kwargs["Contact"]
|
|
1522
|
-
if
|
|
1523
|
-
self.Presence = args[
|
|
1339
|
+
if 5 < len(args):
|
|
1340
|
+
self.Presence = args[5]
|
|
1524
1341
|
if "Presence" in kwargs:
|
|
1525
1342
|
self.Presence = kwargs["Presence"]
|
|
1526
|
-
if
|
|
1527
|
-
self.Message = args[
|
|
1343
|
+
if 6 < len(args):
|
|
1344
|
+
self.Message = args[6]
|
|
1528
1345
|
if "Message" in kwargs:
|
|
1529
1346
|
self.Message = kwargs["Message"]
|
|
1530
|
-
if
|
|
1531
|
-
self.ChatState = args[
|
|
1347
|
+
if 7 < len(args):
|
|
1348
|
+
self.ChatState = args[7]
|
|
1532
1349
|
if "ChatState" in kwargs:
|
|
1533
1350
|
self.ChatState = kwargs["ChatState"]
|
|
1534
|
-
if
|
|
1535
|
-
self.Receipt = args[
|
|
1351
|
+
if 8 < len(args):
|
|
1352
|
+
self.Receipt = args[8]
|
|
1536
1353
|
if "Receipt" in kwargs:
|
|
1537
1354
|
self.Receipt = kwargs["Receipt"]
|
|
1538
|
-
if
|
|
1539
|
-
self.Group = args[
|
|
1355
|
+
if 9 < len(args):
|
|
1356
|
+
self.Group = args[9]
|
|
1540
1357
|
if "Group" in kwargs:
|
|
1541
1358
|
self.Group = kwargs["Group"]
|
|
1542
|
-
if
|
|
1543
|
-
self.Call = args[
|
|
1359
|
+
if 10 < len(args):
|
|
1360
|
+
self.Call = args[10]
|
|
1544
1361
|
if "Call" in kwargs:
|
|
1545
1362
|
self.Call = kwargs["Call"]
|
|
1546
1363
|
def __del__(self):
|
|
@@ -1593,6 +1410,15 @@ class EventPayload(go.GoClass):
|
|
|
1593
1410
|
else:
|
|
1594
1411
|
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1595
1412
|
@property
|
|
1413
|
+
def LoggedOut(self):
|
|
1414
|
+
return LoggedOut(handle=_whatsapp.whatsapp_EventPayload_LoggedOut_Get(self.handle))
|
|
1415
|
+
@LoggedOut.setter
|
|
1416
|
+
def LoggedOut(self, value):
|
|
1417
|
+
if isinstance(value, go.GoClass):
|
|
1418
|
+
_whatsapp.whatsapp_EventPayload_LoggedOut_Set(self.handle, value.handle)
|
|
1419
|
+
else:
|
|
1420
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1421
|
+
@property
|
|
1596
1422
|
def Contact(self):
|
|
1597
1423
|
return Contact(handle=_whatsapp.whatsapp_EventPayload_Contact_Get(self.handle))
|
|
1598
1424
|
@Contact.setter
|
|
@@ -1656,9 +1482,9 @@ class EventPayload(go.GoClass):
|
|
|
1656
1482
|
else:
|
|
1657
1483
|
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1658
1484
|
|
|
1659
|
-
# Python type for struct whatsapp.
|
|
1660
|
-
class
|
|
1661
|
-
"""A
|
|
1485
|
+
# Python type for struct whatsapp.Location
|
|
1486
|
+
class Location(go.GoClass):
|
|
1487
|
+
"""A Location represents additional metadata given to location messages.\n"""
|
|
1662
1488
|
def __init__(self, *args, **kwargs):
|
|
1663
1489
|
"""
|
|
1664
1490
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1672,25 +1498,41 @@ class GroupSubject(go.GoClass):
|
|
|
1672
1498
|
self.handle = args[0].handle
|
|
1673
1499
|
_whatsapp.IncRef(self.handle)
|
|
1674
1500
|
else:
|
|
1675
|
-
self.handle = _whatsapp.
|
|
1501
|
+
self.handle = _whatsapp.whatsapp_Location_CTor()
|
|
1676
1502
|
_whatsapp.IncRef(self.handle)
|
|
1677
1503
|
if 0 < len(args):
|
|
1678
|
-
self.
|
|
1679
|
-
if "
|
|
1680
|
-
self.
|
|
1504
|
+
self.Latitude = args[0]
|
|
1505
|
+
if "Latitude" in kwargs:
|
|
1506
|
+
self.Latitude = kwargs["Latitude"]
|
|
1681
1507
|
if 1 < len(args):
|
|
1682
|
-
self.
|
|
1683
|
-
if "
|
|
1684
|
-
self.
|
|
1508
|
+
self.Longitude = args[1]
|
|
1509
|
+
if "Longitude" in kwargs:
|
|
1510
|
+
self.Longitude = kwargs["Longitude"]
|
|
1685
1511
|
if 2 < len(args):
|
|
1686
|
-
self.
|
|
1687
|
-
if "
|
|
1688
|
-
self.
|
|
1512
|
+
self.Accuracy = args[2]
|
|
1513
|
+
if "Accuracy" in kwargs:
|
|
1514
|
+
self.Accuracy = kwargs["Accuracy"]
|
|
1515
|
+
if 3 < len(args):
|
|
1516
|
+
self.IsLive = args[3]
|
|
1517
|
+
if "IsLive" in kwargs:
|
|
1518
|
+
self.IsLive = kwargs["IsLive"]
|
|
1519
|
+
if 4 < len(args):
|
|
1520
|
+
self.Name = args[4]
|
|
1521
|
+
if "Name" in kwargs:
|
|
1522
|
+
self.Name = kwargs["Name"]
|
|
1523
|
+
if 5 < len(args):
|
|
1524
|
+
self.Address = args[5]
|
|
1525
|
+
if "Address" in kwargs:
|
|
1526
|
+
self.Address = kwargs["Address"]
|
|
1527
|
+
if 6 < len(args):
|
|
1528
|
+
self.URL = args[6]
|
|
1529
|
+
if "URL" in kwargs:
|
|
1530
|
+
self.URL = kwargs["URL"]
|
|
1689
1531
|
def __del__(self):
|
|
1690
1532
|
_whatsapp.DecRef(self.handle)
|
|
1691
1533
|
def __str__(self):
|
|
1692
1534
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1693
|
-
sv = 'whatsapp.
|
|
1535
|
+
sv = 'whatsapp.Location{'
|
|
1694
1536
|
first = True
|
|
1695
1537
|
for v in pr:
|
|
1696
1538
|
if callable(v[1]):
|
|
@@ -1703,45 +1545,83 @@ class GroupSubject(go.GoClass):
|
|
|
1703
1545
|
return sv + '}'
|
|
1704
1546
|
def __repr__(self):
|
|
1705
1547
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1706
|
-
sv = 'whatsapp.
|
|
1548
|
+
sv = 'whatsapp.Location ( '
|
|
1707
1549
|
for v in pr:
|
|
1708
1550
|
if not callable(v[1]):
|
|
1709
1551
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1710
1552
|
return sv + ')'
|
|
1711
1553
|
@property
|
|
1712
|
-
def
|
|
1713
|
-
return _whatsapp.
|
|
1714
|
-
@
|
|
1715
|
-
def
|
|
1554
|
+
def Latitude(self):
|
|
1555
|
+
return _whatsapp.whatsapp_Location_Latitude_Get(self.handle)
|
|
1556
|
+
@Latitude.setter
|
|
1557
|
+
def Latitude(self, value):
|
|
1716
1558
|
if isinstance(value, go.GoClass):
|
|
1717
|
-
_whatsapp.
|
|
1559
|
+
_whatsapp.whatsapp_Location_Latitude_Set(self.handle, value.handle)
|
|
1718
1560
|
else:
|
|
1719
|
-
_whatsapp.
|
|
1561
|
+
_whatsapp.whatsapp_Location_Latitude_Set(self.handle, value)
|
|
1720
1562
|
@property
|
|
1721
|
-
def
|
|
1722
|
-
return _whatsapp.
|
|
1723
|
-
@
|
|
1724
|
-
def
|
|
1563
|
+
def Longitude(self):
|
|
1564
|
+
return _whatsapp.whatsapp_Location_Longitude_Get(self.handle)
|
|
1565
|
+
@Longitude.setter
|
|
1566
|
+
def Longitude(self, value):
|
|
1725
1567
|
if isinstance(value, go.GoClass):
|
|
1726
|
-
_whatsapp.
|
|
1568
|
+
_whatsapp.whatsapp_Location_Longitude_Set(self.handle, value.handle)
|
|
1727
1569
|
else:
|
|
1728
|
-
_whatsapp.
|
|
1570
|
+
_whatsapp.whatsapp_Location_Longitude_Set(self.handle, value)
|
|
1729
1571
|
@property
|
|
1730
|
-
def
|
|
1731
|
-
return _whatsapp.
|
|
1732
|
-
@
|
|
1733
|
-
def
|
|
1572
|
+
def Accuracy(self):
|
|
1573
|
+
return _whatsapp.whatsapp_Location_Accuracy_Get(self.handle)
|
|
1574
|
+
@Accuracy.setter
|
|
1575
|
+
def Accuracy(self, value):
|
|
1734
1576
|
if isinstance(value, go.GoClass):
|
|
1735
|
-
_whatsapp.
|
|
1577
|
+
_whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value.handle)
|
|
1736
1578
|
else:
|
|
1737
|
-
_whatsapp.
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
def
|
|
1743
|
-
|
|
1744
|
-
|
|
1579
|
+
_whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value)
|
|
1580
|
+
@property
|
|
1581
|
+
def IsLive(self):
|
|
1582
|
+
return _whatsapp.whatsapp_Location_IsLive_Get(self.handle)
|
|
1583
|
+
@IsLive.setter
|
|
1584
|
+
def IsLive(self, value):
|
|
1585
|
+
if isinstance(value, go.GoClass):
|
|
1586
|
+
_whatsapp.whatsapp_Location_IsLive_Set(self.handle, value.handle)
|
|
1587
|
+
else:
|
|
1588
|
+
_whatsapp.whatsapp_Location_IsLive_Set(self.handle, value)
|
|
1589
|
+
@property
|
|
1590
|
+
def Name(self):
|
|
1591
|
+
"""Optional fields given for named locations.
|
|
1592
|
+
"""
|
|
1593
|
+
return _whatsapp.whatsapp_Location_Name_Get(self.handle)
|
|
1594
|
+
@Name.setter
|
|
1595
|
+
def Name(self, value):
|
|
1596
|
+
if isinstance(value, go.GoClass):
|
|
1597
|
+
_whatsapp.whatsapp_Location_Name_Set(self.handle, value.handle)
|
|
1598
|
+
else:
|
|
1599
|
+
_whatsapp.whatsapp_Location_Name_Set(self.handle, value)
|
|
1600
|
+
@property
|
|
1601
|
+
def Address(self):
|
|
1602
|
+
return _whatsapp.whatsapp_Location_Address_Get(self.handle)
|
|
1603
|
+
@Address.setter
|
|
1604
|
+
def Address(self, value):
|
|
1605
|
+
if isinstance(value, go.GoClass):
|
|
1606
|
+
_whatsapp.whatsapp_Location_Address_Set(self.handle, value.handle)
|
|
1607
|
+
else:
|
|
1608
|
+
_whatsapp.whatsapp_Location_Address_Set(self.handle, value)
|
|
1609
|
+
@property
|
|
1610
|
+
def URL(self):
|
|
1611
|
+
return _whatsapp.whatsapp_Location_URL_Get(self.handle)
|
|
1612
|
+
@URL.setter
|
|
1613
|
+
def URL(self, value):
|
|
1614
|
+
if isinstance(value, go.GoClass):
|
|
1615
|
+
_whatsapp.whatsapp_Location_URL_Set(self.handle, value.handle)
|
|
1616
|
+
else:
|
|
1617
|
+
_whatsapp.whatsapp_Location_URL_Set(self.handle, value)
|
|
1618
|
+
|
|
1619
|
+
# Python type for struct whatsapp.PollOption
|
|
1620
|
+
class PollOption(go.GoClass):
|
|
1621
|
+
"""A PollOption represents an individual choice within a broader poll.\n"""
|
|
1622
|
+
def __init__(self, *args, **kwargs):
|
|
1623
|
+
"""
|
|
1624
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1745
1625
|
otherwise parameters can be unnamed in order of field names or named fields
|
|
1746
1626
|
in which case a new Go object is constructed first
|
|
1747
1627
|
"""
|
|
@@ -1752,25 +1632,17 @@ class GroupParticipant(go.GoClass):
|
|
|
1752
1632
|
self.handle = args[0].handle
|
|
1753
1633
|
_whatsapp.IncRef(self.handle)
|
|
1754
1634
|
else:
|
|
1755
|
-
self.handle = _whatsapp.
|
|
1635
|
+
self.handle = _whatsapp.whatsapp_PollOption_CTor()
|
|
1756
1636
|
_whatsapp.IncRef(self.handle)
|
|
1757
1637
|
if 0 < len(args):
|
|
1758
|
-
self.
|
|
1759
|
-
if "
|
|
1760
|
-
self.
|
|
1761
|
-
if 1 < len(args):
|
|
1762
|
-
self.Affiliation = args[1]
|
|
1763
|
-
if "Affiliation" in kwargs:
|
|
1764
|
-
self.Affiliation = kwargs["Affiliation"]
|
|
1765
|
-
if 2 < len(args):
|
|
1766
|
-
self.Action = args[2]
|
|
1767
|
-
if "Action" in kwargs:
|
|
1768
|
-
self.Action = kwargs["Action"]
|
|
1638
|
+
self.Title = args[0]
|
|
1639
|
+
if "Title" in kwargs:
|
|
1640
|
+
self.Title = kwargs["Title"]
|
|
1769
1641
|
def __del__(self):
|
|
1770
1642
|
_whatsapp.DecRef(self.handle)
|
|
1771
1643
|
def __str__(self):
|
|
1772
1644
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1773
|
-
sv = 'whatsapp.
|
|
1645
|
+
sv = 'whatsapp.PollOption{'
|
|
1774
1646
|
first = True
|
|
1775
1647
|
for v in pr:
|
|
1776
1648
|
if callable(v[1]):
|
|
@@ -1783,42 +1655,24 @@ class GroupParticipant(go.GoClass):
|
|
|
1783
1655
|
return sv + '}'
|
|
1784
1656
|
def __repr__(self):
|
|
1785
1657
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1786
|
-
sv = 'whatsapp.
|
|
1658
|
+
sv = 'whatsapp.PollOption ( '
|
|
1787
1659
|
for v in pr:
|
|
1788
1660
|
if not callable(v[1]):
|
|
1789
1661
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1790
1662
|
return sv + ')'
|
|
1791
1663
|
@property
|
|
1792
|
-
def
|
|
1793
|
-
return _whatsapp.
|
|
1794
|
-
@
|
|
1795
|
-
def
|
|
1796
|
-
if isinstance(value, go.GoClass):
|
|
1797
|
-
_whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value.handle)
|
|
1798
|
-
else:
|
|
1799
|
-
_whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value)
|
|
1800
|
-
@property
|
|
1801
|
-
def Affiliation(self):
|
|
1802
|
-
return _whatsapp.whatsapp_GroupParticipant_Affiliation_Get(self.handle)
|
|
1803
|
-
@Affiliation.setter
|
|
1804
|
-
def Affiliation(self, value):
|
|
1805
|
-
if isinstance(value, go.GoClass):
|
|
1806
|
-
_whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value.handle)
|
|
1807
|
-
else:
|
|
1808
|
-
_whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value)
|
|
1809
|
-
@property
|
|
1810
|
-
def Action(self):
|
|
1811
|
-
return _whatsapp.whatsapp_GroupParticipant_Action_Get(self.handle)
|
|
1812
|
-
@Action.setter
|
|
1813
|
-
def Action(self, value):
|
|
1664
|
+
def Title(self):
|
|
1665
|
+
return _whatsapp.whatsapp_PollOption_Title_Get(self.handle)
|
|
1666
|
+
@Title.setter
|
|
1667
|
+
def Title(self, value):
|
|
1814
1668
|
if isinstance(value, go.GoClass):
|
|
1815
|
-
_whatsapp.
|
|
1669
|
+
_whatsapp.whatsapp_PollOption_Title_Set(self.handle, value.handle)
|
|
1816
1670
|
else:
|
|
1817
|
-
_whatsapp.
|
|
1671
|
+
_whatsapp.whatsapp_PollOption_Title_Set(self.handle, value)
|
|
1818
1672
|
|
|
1819
|
-
# Python type for struct whatsapp.
|
|
1820
|
-
class
|
|
1821
|
-
"""
|
|
1673
|
+
# Python type for struct whatsapp.LoggedOut
|
|
1674
|
+
class LoggedOut(go.GoClass):
|
|
1675
|
+
"""LoggedOut repreents event data related to an explicit or implicit log-out event.\n"""
|
|
1822
1676
|
def __init__(self, *args, **kwargs):
|
|
1823
1677
|
"""
|
|
1824
1678
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1832,17 +1686,17 @@ class LinkedDevice(go.GoClass):
|
|
|
1832
1686
|
self.handle = args[0].handle
|
|
1833
1687
|
_whatsapp.IncRef(self.handle)
|
|
1834
1688
|
else:
|
|
1835
|
-
self.handle = _whatsapp.
|
|
1689
|
+
self.handle = _whatsapp.whatsapp_LoggedOut_CTor()
|
|
1836
1690
|
_whatsapp.IncRef(self.handle)
|
|
1837
1691
|
if 0 < len(args):
|
|
1838
|
-
self.
|
|
1839
|
-
if "
|
|
1840
|
-
self.
|
|
1692
|
+
self.Reason = args[0]
|
|
1693
|
+
if "Reason" in kwargs:
|
|
1694
|
+
self.Reason = kwargs["Reason"]
|
|
1841
1695
|
def __del__(self):
|
|
1842
1696
|
_whatsapp.DecRef(self.handle)
|
|
1843
1697
|
def __str__(self):
|
|
1844
1698
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1845
|
-
sv = 'whatsapp.
|
|
1699
|
+
sv = 'whatsapp.LoggedOut{'
|
|
1846
1700
|
first = True
|
|
1847
1701
|
for v in pr:
|
|
1848
1702
|
if callable(v[1]):
|
|
@@ -1855,34 +1709,24 @@ class LinkedDevice(go.GoClass):
|
|
|
1855
1709
|
return sv + '}'
|
|
1856
1710
|
def __repr__(self):
|
|
1857
1711
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1858
|
-
sv = 'whatsapp.
|
|
1712
|
+
sv = 'whatsapp.LoggedOut ( '
|
|
1859
1713
|
for v in pr:
|
|
1860
1714
|
if not callable(v[1]):
|
|
1861
1715
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1862
1716
|
return sv + ')'
|
|
1863
1717
|
@property
|
|
1864
|
-
def
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
return _whatsapp.whatsapp_LinkedDevice_ID_Get(self.handle)
|
|
1869
|
-
@ID.setter
|
|
1870
|
-
def ID(self, value):
|
|
1718
|
+
def Reason(self):
|
|
1719
|
+
return _whatsapp.whatsapp_LoggedOut_Reason_Get(self.handle)
|
|
1720
|
+
@Reason.setter
|
|
1721
|
+
def Reason(self, value):
|
|
1871
1722
|
if isinstance(value, go.GoClass):
|
|
1872
|
-
_whatsapp.
|
|
1723
|
+
_whatsapp.whatsapp_LoggedOut_Reason_Set(self.handle, value.handle)
|
|
1873
1724
|
else:
|
|
1874
|
-
_whatsapp.
|
|
1875
|
-
def JID(self):
|
|
1876
|
-
"""JID() object
|
|
1877
|
-
|
|
1878
|
-
JID returns the WhatsApp JID corresponding to the LinkedDevice ID. Empty or invalid device IDs
|
|
1879
|
-
may return invalid JIDs, and this function does not handle errors.
|
|
1880
|
-
"""
|
|
1881
|
-
return go.types_JID(handle=_whatsapp.whatsapp_LinkedDevice_JID(self.handle))
|
|
1725
|
+
_whatsapp.whatsapp_LoggedOut_Reason_Set(self.handle, value)
|
|
1882
1726
|
|
|
1883
|
-
# Python type for struct whatsapp.
|
|
1884
|
-
class
|
|
1885
|
-
"""A
|
|
1727
|
+
# Python type for struct whatsapp.Message
|
|
1728
|
+
class Message(go.GoClass):
|
|
1729
|
+
"""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"""
|
|
1886
1730
|
def __init__(self, *args, **kwargs):
|
|
1887
1731
|
"""
|
|
1888
1732
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1896,33 +1740,97 @@ class Preview(go.GoClass):
|
|
|
1896
1740
|
self.handle = args[0].handle
|
|
1897
1741
|
_whatsapp.IncRef(self.handle)
|
|
1898
1742
|
else:
|
|
1899
|
-
self.handle = _whatsapp.
|
|
1743
|
+
self.handle = _whatsapp.whatsapp_Message_CTor()
|
|
1900
1744
|
_whatsapp.IncRef(self.handle)
|
|
1901
1745
|
if 0 < len(args):
|
|
1902
1746
|
self.Kind = args[0]
|
|
1903
1747
|
if "Kind" in kwargs:
|
|
1904
1748
|
self.Kind = kwargs["Kind"]
|
|
1905
1749
|
if 1 < len(args):
|
|
1906
|
-
self.
|
|
1907
|
-
if "
|
|
1908
|
-
self.
|
|
1750
|
+
self.ID = args[1]
|
|
1751
|
+
if "ID" in kwargs:
|
|
1752
|
+
self.ID = kwargs["ID"]
|
|
1909
1753
|
if 2 < len(args):
|
|
1910
|
-
self.
|
|
1911
|
-
if "
|
|
1912
|
-
self.
|
|
1754
|
+
self.JID = args[2]
|
|
1755
|
+
if "JID" in kwargs:
|
|
1756
|
+
self.JID = kwargs["JID"]
|
|
1913
1757
|
if 3 < len(args):
|
|
1914
|
-
self.
|
|
1915
|
-
if "
|
|
1916
|
-
self.
|
|
1758
|
+
self.GroupJID = args[3]
|
|
1759
|
+
if "GroupJID" in kwargs:
|
|
1760
|
+
self.GroupJID = kwargs["GroupJID"]
|
|
1917
1761
|
if 4 < len(args):
|
|
1918
|
-
self.
|
|
1919
|
-
if "
|
|
1920
|
-
self.
|
|
1762
|
+
self.OriginJID = args[4]
|
|
1763
|
+
if "OriginJID" in kwargs:
|
|
1764
|
+
self.OriginJID = kwargs["OriginJID"]
|
|
1765
|
+
if 5 < len(args):
|
|
1766
|
+
self.Body = args[5]
|
|
1767
|
+
if "Body" in kwargs:
|
|
1768
|
+
self.Body = kwargs["Body"]
|
|
1769
|
+
if 6 < len(args):
|
|
1770
|
+
self.Timestamp = args[6]
|
|
1771
|
+
if "Timestamp" in kwargs:
|
|
1772
|
+
self.Timestamp = kwargs["Timestamp"]
|
|
1773
|
+
if 7 < len(args):
|
|
1774
|
+
self.IsCarbon = args[7]
|
|
1775
|
+
if "IsCarbon" in kwargs:
|
|
1776
|
+
self.IsCarbon = kwargs["IsCarbon"]
|
|
1777
|
+
if 8 < len(args):
|
|
1778
|
+
self.IsForwarded = args[8]
|
|
1779
|
+
if "IsForwarded" in kwargs:
|
|
1780
|
+
self.IsForwarded = kwargs["IsForwarded"]
|
|
1781
|
+
if 9 < len(args):
|
|
1782
|
+
self.ReplyID = args[9]
|
|
1783
|
+
if "ReplyID" in kwargs:
|
|
1784
|
+
self.ReplyID = kwargs["ReplyID"]
|
|
1785
|
+
if 10 < len(args):
|
|
1786
|
+
self.ReplyBody = args[10]
|
|
1787
|
+
if "ReplyBody" in kwargs:
|
|
1788
|
+
self.ReplyBody = kwargs["ReplyBody"]
|
|
1789
|
+
if 11 < len(args):
|
|
1790
|
+
self.Attachments = args[11]
|
|
1791
|
+
if "Attachments" in kwargs:
|
|
1792
|
+
self.Attachments = kwargs["Attachments"]
|
|
1793
|
+
if 12 < len(args):
|
|
1794
|
+
self.Preview = args[12]
|
|
1795
|
+
if "Preview" in kwargs:
|
|
1796
|
+
self.Preview = kwargs["Preview"]
|
|
1797
|
+
if 13 < len(args):
|
|
1798
|
+
self.Location = args[13]
|
|
1799
|
+
if "Location" in kwargs:
|
|
1800
|
+
self.Location = kwargs["Location"]
|
|
1801
|
+
if 14 < len(args):
|
|
1802
|
+
self.Poll = args[14]
|
|
1803
|
+
if "Poll" in kwargs:
|
|
1804
|
+
self.Poll = kwargs["Poll"]
|
|
1805
|
+
if 15 < len(args):
|
|
1806
|
+
self.Album = args[15]
|
|
1807
|
+
if "Album" in kwargs:
|
|
1808
|
+
self.Album = kwargs["Album"]
|
|
1809
|
+
if 16 < len(args):
|
|
1810
|
+
self.GroupInvite = args[16]
|
|
1811
|
+
if "GroupInvite" in kwargs:
|
|
1812
|
+
self.GroupInvite = kwargs["GroupInvite"]
|
|
1813
|
+
if 17 < len(args):
|
|
1814
|
+
self.MentionJIDs = args[17]
|
|
1815
|
+
if "MentionJIDs" in kwargs:
|
|
1816
|
+
self.MentionJIDs = kwargs["MentionJIDs"]
|
|
1817
|
+
if 18 < len(args):
|
|
1818
|
+
self.Receipts = args[18]
|
|
1819
|
+
if "Receipts" in kwargs:
|
|
1820
|
+
self.Receipts = kwargs["Receipts"]
|
|
1821
|
+
if 19 < len(args):
|
|
1822
|
+
self.Reactions = args[19]
|
|
1823
|
+
if "Reactions" in kwargs:
|
|
1824
|
+
self.Reactions = kwargs["Reactions"]
|
|
1825
|
+
if 20 < len(args):
|
|
1826
|
+
self.IsHistory = args[20]
|
|
1827
|
+
if "IsHistory" in kwargs:
|
|
1828
|
+
self.IsHistory = kwargs["IsHistory"]
|
|
1921
1829
|
def __del__(self):
|
|
1922
1830
|
_whatsapp.DecRef(self.handle)
|
|
1923
1831
|
def __str__(self):
|
|
1924
1832
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1925
|
-
sv = 'whatsapp.
|
|
1833
|
+
sv = 'whatsapp.Message{'
|
|
1926
1834
|
first = True
|
|
1927
1835
|
for v in pr:
|
|
1928
1836
|
if callable(v[1]):
|
|
@@ -1935,60 +1843,464 @@ class Preview(go.GoClass):
|
|
|
1935
1843
|
return sv + '}'
|
|
1936
1844
|
def __repr__(self):
|
|
1937
1845
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1938
|
-
sv = 'whatsapp.
|
|
1846
|
+
sv = 'whatsapp.Message ( '
|
|
1939
1847
|
for v in pr:
|
|
1940
1848
|
if not callable(v[1]):
|
|
1941
1849
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1942
1850
|
return sv + ')'
|
|
1943
1851
|
@property
|
|
1944
1852
|
def Kind(self):
|
|
1945
|
-
return _whatsapp.
|
|
1853
|
+
return _whatsapp.whatsapp_Message_Kind_Get(self.handle)
|
|
1946
1854
|
@Kind.setter
|
|
1947
1855
|
def Kind(self, value):
|
|
1948
1856
|
if isinstance(value, go.GoClass):
|
|
1949
|
-
_whatsapp.
|
|
1857
|
+
_whatsapp.whatsapp_Message_Kind_Set(self.handle, value.handle)
|
|
1950
1858
|
else:
|
|
1951
|
-
_whatsapp.
|
|
1859
|
+
_whatsapp.whatsapp_Message_Kind_Set(self.handle, value)
|
|
1952
1860
|
@property
|
|
1953
|
-
def
|
|
1954
|
-
return _whatsapp.
|
|
1955
|
-
@
|
|
1956
|
-
def
|
|
1861
|
+
def ID(self):
|
|
1862
|
+
return _whatsapp.whatsapp_Message_ID_Get(self.handle)
|
|
1863
|
+
@ID.setter
|
|
1864
|
+
def ID(self, value):
|
|
1957
1865
|
if isinstance(value, go.GoClass):
|
|
1958
|
-
_whatsapp.
|
|
1866
|
+
_whatsapp.whatsapp_Message_ID_Set(self.handle, value.handle)
|
|
1959
1867
|
else:
|
|
1960
|
-
_whatsapp.
|
|
1868
|
+
_whatsapp.whatsapp_Message_ID_Set(self.handle, value)
|
|
1961
1869
|
@property
|
|
1962
|
-
def
|
|
1963
|
-
return _whatsapp.
|
|
1964
|
-
@
|
|
1965
|
-
def
|
|
1870
|
+
def JID(self):
|
|
1871
|
+
return _whatsapp.whatsapp_Message_JID_Get(self.handle)
|
|
1872
|
+
@JID.setter
|
|
1873
|
+
def JID(self, value):
|
|
1966
1874
|
if isinstance(value, go.GoClass):
|
|
1967
|
-
_whatsapp.
|
|
1875
|
+
_whatsapp.whatsapp_Message_JID_Set(self.handle, value.handle)
|
|
1968
1876
|
else:
|
|
1969
|
-
_whatsapp.
|
|
1877
|
+
_whatsapp.whatsapp_Message_JID_Set(self.handle, value)
|
|
1970
1878
|
@property
|
|
1971
|
-
def
|
|
1972
|
-
return _whatsapp.
|
|
1973
|
-
@
|
|
1974
|
-
def
|
|
1879
|
+
def GroupJID(self):
|
|
1880
|
+
return _whatsapp.whatsapp_Message_GroupJID_Get(self.handle)
|
|
1881
|
+
@GroupJID.setter
|
|
1882
|
+
def GroupJID(self, value):
|
|
1975
1883
|
if isinstance(value, go.GoClass):
|
|
1976
|
-
_whatsapp.
|
|
1884
|
+
_whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value.handle)
|
|
1977
1885
|
else:
|
|
1978
|
-
_whatsapp.
|
|
1886
|
+
_whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value)
|
|
1979
1887
|
@property
|
|
1980
|
-
def
|
|
1981
|
-
return
|
|
1982
|
-
@
|
|
1983
|
-
def
|
|
1984
|
-
if isinstance(value, go.GoClass):
|
|
1985
|
-
_whatsapp.
|
|
1888
|
+
def OriginJID(self):
|
|
1889
|
+
return _whatsapp.whatsapp_Message_OriginJID_Get(self.handle)
|
|
1890
|
+
@OriginJID.setter
|
|
1891
|
+
def OriginJID(self, value):
|
|
1892
|
+
if isinstance(value, go.GoClass):
|
|
1893
|
+
_whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value.handle)
|
|
1894
|
+
else:
|
|
1895
|
+
_whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value)
|
|
1896
|
+
@property
|
|
1897
|
+
def Body(self):
|
|
1898
|
+
return _whatsapp.whatsapp_Message_Body_Get(self.handle)
|
|
1899
|
+
@Body.setter
|
|
1900
|
+
def Body(self, value):
|
|
1901
|
+
if isinstance(value, go.GoClass):
|
|
1902
|
+
_whatsapp.whatsapp_Message_Body_Set(self.handle, value.handle)
|
|
1903
|
+
else:
|
|
1904
|
+
_whatsapp.whatsapp_Message_Body_Set(self.handle, value)
|
|
1905
|
+
@property
|
|
1906
|
+
def Timestamp(self):
|
|
1907
|
+
return _whatsapp.whatsapp_Message_Timestamp_Get(self.handle)
|
|
1908
|
+
@Timestamp.setter
|
|
1909
|
+
def Timestamp(self, value):
|
|
1910
|
+
if isinstance(value, go.GoClass):
|
|
1911
|
+
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value.handle)
|
|
1912
|
+
else:
|
|
1913
|
+
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value)
|
|
1914
|
+
@property
|
|
1915
|
+
def IsCarbon(self):
|
|
1916
|
+
return _whatsapp.whatsapp_Message_IsCarbon_Get(self.handle)
|
|
1917
|
+
@IsCarbon.setter
|
|
1918
|
+
def IsCarbon(self, value):
|
|
1919
|
+
if isinstance(value, go.GoClass):
|
|
1920
|
+
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value.handle)
|
|
1921
|
+
else:
|
|
1922
|
+
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value)
|
|
1923
|
+
@property
|
|
1924
|
+
def IsForwarded(self):
|
|
1925
|
+
return _whatsapp.whatsapp_Message_IsForwarded_Get(self.handle)
|
|
1926
|
+
@IsForwarded.setter
|
|
1927
|
+
def IsForwarded(self, value):
|
|
1928
|
+
if isinstance(value, go.GoClass):
|
|
1929
|
+
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value.handle)
|
|
1930
|
+
else:
|
|
1931
|
+
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value)
|
|
1932
|
+
@property
|
|
1933
|
+
def ReplyID(self):
|
|
1934
|
+
return _whatsapp.whatsapp_Message_ReplyID_Get(self.handle)
|
|
1935
|
+
@ReplyID.setter
|
|
1936
|
+
def ReplyID(self, value):
|
|
1937
|
+
if isinstance(value, go.GoClass):
|
|
1938
|
+
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value.handle)
|
|
1939
|
+
else:
|
|
1940
|
+
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value)
|
|
1941
|
+
@property
|
|
1942
|
+
def ReplyBody(self):
|
|
1943
|
+
return _whatsapp.whatsapp_Message_ReplyBody_Get(self.handle)
|
|
1944
|
+
@ReplyBody.setter
|
|
1945
|
+
def ReplyBody(self, value):
|
|
1946
|
+
if isinstance(value, go.GoClass):
|
|
1947
|
+
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value.handle)
|
|
1948
|
+
else:
|
|
1949
|
+
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value)
|
|
1950
|
+
@property
|
|
1951
|
+
def Attachments(self):
|
|
1952
|
+
return Slice_whatsapp_Attachment(handle=_whatsapp.whatsapp_Message_Attachments_Get(self.handle))
|
|
1953
|
+
@Attachments.setter
|
|
1954
|
+
def Attachments(self, value):
|
|
1955
|
+
if isinstance(value, go.GoClass):
|
|
1956
|
+
_whatsapp.whatsapp_Message_Attachments_Set(self.handle, value.handle)
|
|
1957
|
+
else:
|
|
1958
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1959
|
+
@property
|
|
1960
|
+
def Preview(self):
|
|
1961
|
+
return Preview(handle=_whatsapp.whatsapp_Message_Preview_Get(self.handle))
|
|
1962
|
+
@Preview.setter
|
|
1963
|
+
def Preview(self, value):
|
|
1964
|
+
if isinstance(value, go.GoClass):
|
|
1965
|
+
_whatsapp.whatsapp_Message_Preview_Set(self.handle, value.handle)
|
|
1966
|
+
else:
|
|
1967
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1968
|
+
@property
|
|
1969
|
+
def Location(self):
|
|
1970
|
+
return Location(handle=_whatsapp.whatsapp_Message_Location_Get(self.handle))
|
|
1971
|
+
@Location.setter
|
|
1972
|
+
def Location(self, value):
|
|
1973
|
+
if isinstance(value, go.GoClass):
|
|
1974
|
+
_whatsapp.whatsapp_Message_Location_Set(self.handle, value.handle)
|
|
1975
|
+
else:
|
|
1976
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1977
|
+
@property
|
|
1978
|
+
def Poll(self):
|
|
1979
|
+
return Poll(handle=_whatsapp.whatsapp_Message_Poll_Get(self.handle))
|
|
1980
|
+
@Poll.setter
|
|
1981
|
+
def Poll(self, value):
|
|
1982
|
+
if isinstance(value, go.GoClass):
|
|
1983
|
+
_whatsapp.whatsapp_Message_Poll_Set(self.handle, value.handle)
|
|
1984
|
+
else:
|
|
1985
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1986
|
+
@property
|
|
1987
|
+
def Album(self):
|
|
1988
|
+
return Album(handle=_whatsapp.whatsapp_Message_Album_Get(self.handle))
|
|
1989
|
+
@Album.setter
|
|
1990
|
+
def Album(self, value):
|
|
1991
|
+
if isinstance(value, go.GoClass):
|
|
1992
|
+
_whatsapp.whatsapp_Message_Album_Set(self.handle, value.handle)
|
|
1993
|
+
else:
|
|
1994
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1995
|
+
@property
|
|
1996
|
+
def GroupInvite(self):
|
|
1997
|
+
return Group(handle=_whatsapp.whatsapp_Message_GroupInvite_Get(self.handle))
|
|
1998
|
+
@GroupInvite.setter
|
|
1999
|
+
def GroupInvite(self, value):
|
|
2000
|
+
if isinstance(value, go.GoClass):
|
|
2001
|
+
_whatsapp.whatsapp_Message_GroupInvite_Set(self.handle, value.handle)
|
|
2002
|
+
else:
|
|
2003
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2004
|
+
@property
|
|
2005
|
+
def MentionJIDs(self):
|
|
2006
|
+
return go.Slice_string(handle=_whatsapp.whatsapp_Message_MentionJIDs_Get(self.handle))
|
|
2007
|
+
@MentionJIDs.setter
|
|
2008
|
+
def MentionJIDs(self, value):
|
|
2009
|
+
if isinstance(value, go.GoClass):
|
|
2010
|
+
_whatsapp.whatsapp_Message_MentionJIDs_Set(self.handle, value.handle)
|
|
2011
|
+
else:
|
|
2012
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2013
|
+
@property
|
|
2014
|
+
def Receipts(self):
|
|
2015
|
+
return Slice_whatsapp_Receipt(handle=_whatsapp.whatsapp_Message_Receipts_Get(self.handle))
|
|
2016
|
+
@Receipts.setter
|
|
2017
|
+
def Receipts(self, value):
|
|
2018
|
+
if isinstance(value, go.GoClass):
|
|
2019
|
+
_whatsapp.whatsapp_Message_Receipts_Set(self.handle, value.handle)
|
|
2020
|
+
else:
|
|
2021
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2022
|
+
@property
|
|
2023
|
+
def Reactions(self):
|
|
2024
|
+
return Slice_whatsapp_Message(handle=_whatsapp.whatsapp_Message_Reactions_Get(self.handle))
|
|
2025
|
+
@Reactions.setter
|
|
2026
|
+
def Reactions(self, value):
|
|
2027
|
+
if isinstance(value, go.GoClass):
|
|
2028
|
+
_whatsapp.whatsapp_Message_Reactions_Set(self.handle, value.handle)
|
|
2029
|
+
else:
|
|
2030
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2031
|
+
@property
|
|
2032
|
+
def IsHistory(self):
|
|
2033
|
+
return _whatsapp.whatsapp_Message_IsHistory_Get(self.handle)
|
|
2034
|
+
@IsHistory.setter
|
|
2035
|
+
def IsHistory(self, value):
|
|
2036
|
+
if isinstance(value, go.GoClass):
|
|
2037
|
+
_whatsapp.whatsapp_Message_IsHistory_Set(self.handle, value.handle)
|
|
2038
|
+
else:
|
|
2039
|
+
_whatsapp.whatsapp_Message_IsHistory_Set(self.handle, value)
|
|
2040
|
+
|
|
2041
|
+
# Python type for struct whatsapp.Poll
|
|
2042
|
+
class Poll(go.GoClass):
|
|
2043
|
+
"""A Poll represents a multiple-choice question, on which each choice might be voted for one or more\ntimes.\n"""
|
|
2044
|
+
def __init__(self, *args, **kwargs):
|
|
2045
|
+
"""
|
|
2046
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2047
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
2048
|
+
in which case a new Go object is constructed first
|
|
2049
|
+
"""
|
|
2050
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2051
|
+
self.handle = kwargs['handle']
|
|
2052
|
+
_whatsapp.IncRef(self.handle)
|
|
2053
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2054
|
+
self.handle = args[0].handle
|
|
2055
|
+
_whatsapp.IncRef(self.handle)
|
|
2056
|
+
else:
|
|
2057
|
+
self.handle = _whatsapp.whatsapp_Poll_CTor()
|
|
2058
|
+
_whatsapp.IncRef(self.handle)
|
|
2059
|
+
if 0 < len(args):
|
|
2060
|
+
self.Title = args[0]
|
|
2061
|
+
if "Title" in kwargs:
|
|
2062
|
+
self.Title = kwargs["Title"]
|
|
2063
|
+
if 1 < len(args):
|
|
2064
|
+
self.Options = args[1]
|
|
2065
|
+
if "Options" in kwargs:
|
|
2066
|
+
self.Options = kwargs["Options"]
|
|
2067
|
+
def __del__(self):
|
|
2068
|
+
_whatsapp.DecRef(self.handle)
|
|
2069
|
+
def __str__(self):
|
|
2070
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2071
|
+
sv = 'whatsapp.Poll{'
|
|
2072
|
+
first = True
|
|
2073
|
+
for v in pr:
|
|
2074
|
+
if callable(v[1]):
|
|
2075
|
+
continue
|
|
2076
|
+
if first:
|
|
2077
|
+
first = False
|
|
2078
|
+
else:
|
|
2079
|
+
sv += ', '
|
|
2080
|
+
sv += v[0] + '=' + str(v[1])
|
|
2081
|
+
return sv + '}'
|
|
2082
|
+
def __repr__(self):
|
|
2083
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2084
|
+
sv = 'whatsapp.Poll ( '
|
|
2085
|
+
for v in pr:
|
|
2086
|
+
if not callable(v[1]):
|
|
2087
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2088
|
+
return sv + ')'
|
|
2089
|
+
@property
|
|
2090
|
+
def Title(self):
|
|
2091
|
+
return _whatsapp.whatsapp_Poll_Title_Get(self.handle)
|
|
2092
|
+
@Title.setter
|
|
2093
|
+
def Title(self, value):
|
|
2094
|
+
if isinstance(value, go.GoClass):
|
|
2095
|
+
_whatsapp.whatsapp_Poll_Title_Set(self.handle, value.handle)
|
|
2096
|
+
else:
|
|
2097
|
+
_whatsapp.whatsapp_Poll_Title_Set(self.handle, value)
|
|
2098
|
+
@property
|
|
2099
|
+
def Options(self):
|
|
2100
|
+
return Slice_whatsapp_PollOption(handle=_whatsapp.whatsapp_Poll_Options_Get(self.handle))
|
|
2101
|
+
@Options.setter
|
|
2102
|
+
def Options(self, value):
|
|
2103
|
+
if isinstance(value, go.GoClass):
|
|
2104
|
+
_whatsapp.whatsapp_Poll_Options_Set(self.handle, value.handle)
|
|
1986
2105
|
else:
|
|
1987
2106
|
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1988
2107
|
|
|
1989
|
-
# Python type for struct whatsapp.
|
|
1990
|
-
class
|
|
1991
|
-
"""A
|
|
2108
|
+
# Python type for struct whatsapp.Session
|
|
2109
|
+
class Session(go.GoClass):
|
|
2110
|
+
"""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"""
|
|
2111
|
+
def __init__(self, *args, **kwargs):
|
|
2112
|
+
"""
|
|
2113
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2114
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
2115
|
+
in which case a new Go object is constructed first
|
|
2116
|
+
"""
|
|
2117
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2118
|
+
self.handle = kwargs['handle']
|
|
2119
|
+
_whatsapp.IncRef(self.handle)
|
|
2120
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2121
|
+
self.handle = args[0].handle
|
|
2122
|
+
_whatsapp.IncRef(self.handle)
|
|
2123
|
+
else:
|
|
2124
|
+
self.handle = _whatsapp.whatsapp_Session_CTor()
|
|
2125
|
+
_whatsapp.IncRef(self.handle)
|
|
2126
|
+
def __del__(self):
|
|
2127
|
+
_whatsapp.DecRef(self.handle)
|
|
2128
|
+
def __str__(self):
|
|
2129
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2130
|
+
sv = 'whatsapp.Session{'
|
|
2131
|
+
first = True
|
|
2132
|
+
for v in pr:
|
|
2133
|
+
if callable(v[1]):
|
|
2134
|
+
continue
|
|
2135
|
+
if first:
|
|
2136
|
+
first = False
|
|
2137
|
+
else:
|
|
2138
|
+
sv += ', '
|
|
2139
|
+
sv += v[0] + '=' + str(v[1])
|
|
2140
|
+
return sv + '}'
|
|
2141
|
+
def __repr__(self):
|
|
2142
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2143
|
+
sv = 'whatsapp.Session ( '
|
|
2144
|
+
for v in pr:
|
|
2145
|
+
if not callable(v[1]):
|
|
2146
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2147
|
+
return sv + ')'
|
|
2148
|
+
def Login(self):
|
|
2149
|
+
"""Login() str
|
|
2150
|
+
|
|
2151
|
+
Login attempts to authenticate the given [Session], either by re-using the [LinkedDevice] attached
|
|
2152
|
+
or by initiating a pairing session for a new linked device. Callers are expected to have set an
|
|
2153
|
+
event handler in order to receive any incoming events from the underlying WhatsApp session.
|
|
2154
|
+
"""
|
|
2155
|
+
return _whatsapp.whatsapp_Session_Login(self.handle)
|
|
2156
|
+
def Logout(self):
|
|
2157
|
+
"""Logout() str
|
|
2158
|
+
|
|
2159
|
+
Logout disconnects and removes the current linked device locally and initiates a logout remotely.
|
|
2160
|
+
"""
|
|
2161
|
+
return _whatsapp.whatsapp_Session_Logout(self.handle)
|
|
2162
|
+
def Disconnect(self):
|
|
2163
|
+
"""Disconnect() str
|
|
2164
|
+
|
|
2165
|
+
Disconnects detaches the current connection to WhatsApp without removing any linked device state.
|
|
2166
|
+
"""
|
|
2167
|
+
return _whatsapp.whatsapp_Session_Disconnect(self.handle)
|
|
2168
|
+
def PairPhone(self, phone):
|
|
2169
|
+
"""PairPhone(str phone) str, str
|
|
2170
|
+
|
|
2171
|
+
PairPhone returns a one-time code from WhatsApp, used for pairing this [Session] against the
|
|
2172
|
+
user's primary device, as identified by the given phone number. This will return an error if the
|
|
2173
|
+
[Session] is already paired, or if the phone number given is empty or invalid.
|
|
2174
|
+
"""
|
|
2175
|
+
return _whatsapp.whatsapp_Session_PairPhone(self.handle, phone)
|
|
2176
|
+
def SendMessage(self, message):
|
|
2177
|
+
"""SendMessage(object message) str
|
|
2178
|
+
|
|
2179
|
+
SendMessage processes the given Message and sends a WhatsApp message for the kind and contact JID
|
|
2180
|
+
specified within. In general, different message kinds require different fields to be set; see the
|
|
2181
|
+
documentation for the [Message] type for more information.
|
|
2182
|
+
"""
|
|
2183
|
+
return _whatsapp.whatsapp_Session_SendMessage(self.handle, message.handle)
|
|
2184
|
+
def GenerateMessageID(self):
|
|
2185
|
+
"""GenerateMessageID() str
|
|
2186
|
+
|
|
2187
|
+
GenerateMessageID returns a valid, pseudo-random message ID for use in outgoing messages.
|
|
2188
|
+
"""
|
|
2189
|
+
return _whatsapp.whatsapp_Session_GenerateMessageID(self.handle)
|
|
2190
|
+
def SendChatState(self, state):
|
|
2191
|
+
"""SendChatState(object state) str
|
|
2192
|
+
|
|
2193
|
+
SendChatState sends the given chat state notification (e.g. composing message) to WhatsApp for the
|
|
2194
|
+
contact specified within.
|
|
2195
|
+
"""
|
|
2196
|
+
return _whatsapp.whatsapp_Session_SendChatState(self.handle, state.handle)
|
|
2197
|
+
def SendReceipt(self, receipt):
|
|
2198
|
+
"""SendReceipt(object receipt) str
|
|
2199
|
+
|
|
2200
|
+
SendReceipt sends a read receipt to WhatsApp for the message IDs specified within.
|
|
2201
|
+
"""
|
|
2202
|
+
return _whatsapp.whatsapp_Session_SendReceipt(self.handle, receipt.handle)
|
|
2203
|
+
def SendPresence(self, presence, statusMessage):
|
|
2204
|
+
"""SendPresence(int presence, str statusMessage) str
|
|
2205
|
+
|
|
2206
|
+
SendPresence sets the activity state and (optional) status message for the current session and
|
|
2207
|
+
user. An error is returned if setting availability fails for any reason.
|
|
2208
|
+
"""
|
|
2209
|
+
return _whatsapp.whatsapp_Session_SendPresence(self.handle, presence, statusMessage)
|
|
2210
|
+
def GetContacts(self, refresh):
|
|
2211
|
+
"""GetContacts(bool refresh) []object, str
|
|
2212
|
+
|
|
2213
|
+
GetContacts subscribes to the WhatsApp roster currently stored in the Session's internal state.
|
|
2214
|
+
If `refresh` is `true`, FetchRoster will pull application state from the remote service and
|
|
2215
|
+
synchronize any contacts found with the adapter.
|
|
2216
|
+
"""
|
|
2217
|
+
return Slice_whatsapp_Contact(handle=_whatsapp.whatsapp_Session_GetContacts(self.handle, refresh))
|
|
2218
|
+
def GetGroups(self):
|
|
2219
|
+
"""GetGroups() []object, str
|
|
2220
|
+
|
|
2221
|
+
GetGroups returns a list of all group-chats currently joined in WhatsApp, along with additional
|
|
2222
|
+
information on present participants.
|
|
2223
|
+
"""
|
|
2224
|
+
return Slice_whatsapp_Group(handle=_whatsapp.whatsapp_Session_GetGroups(self.handle))
|
|
2225
|
+
def CreateGroup(self, name, participants):
|
|
2226
|
+
"""CreateGroup(str name, []str participants) object, str
|
|
2227
|
+
|
|
2228
|
+
CreateGroup attempts to create a new WhatsApp group for the given human-readable name and
|
|
2229
|
+
participant JIDs given.
|
|
2230
|
+
"""
|
|
2231
|
+
return Group(handle=_whatsapp.whatsapp_Session_CreateGroup(self.handle, name, participants.handle))
|
|
2232
|
+
def LeaveGroup(self, resourceID):
|
|
2233
|
+
"""LeaveGroup(str resourceID) str
|
|
2234
|
+
|
|
2235
|
+
LeaveGroup attempts to remove our own user from the given WhatsApp group, for the JID given.
|
|
2236
|
+
"""
|
|
2237
|
+
return _whatsapp.whatsapp_Session_LeaveGroup(self.handle, resourceID)
|
|
2238
|
+
def GetAvatar(self, resourceID, avatarID):
|
|
2239
|
+
"""GetAvatar(str resourceID, str avatarID) object, str
|
|
2240
|
+
|
|
2241
|
+
GetAvatar fetches a profile picture for the Contact or Group JID given. If a non-empty `avatarID`
|
|
2242
|
+
is also given, GetAvatar will return an empty [Avatar] instance with no error if the remote state
|
|
2243
|
+
for the given ID has not changed.
|
|
2244
|
+
"""
|
|
2245
|
+
return Avatar(handle=_whatsapp.whatsapp_Session_GetAvatar(self.handle, resourceID, avatarID))
|
|
2246
|
+
def SetAvatar(self, resourceID, avatar):
|
|
2247
|
+
"""SetAvatar(str resourceID, []int avatar) str, str
|
|
2248
|
+
|
|
2249
|
+
SetAvatar updates the profile picture for the Contact or Group JID given; it can also update the
|
|
2250
|
+
profile picture for our own user by providing an empty JID. The unique picture ID is returned,
|
|
2251
|
+
typically used as a cache reference or in providing to future calls for [Session.GetAvatar].
|
|
2252
|
+
"""
|
|
2253
|
+
return _whatsapp.whatsapp_Session_SetAvatar(self.handle, resourceID, avatar.handle)
|
|
2254
|
+
def SetGroupName(self, resourceID, name):
|
|
2255
|
+
"""SetGroupName(str resourceID, str name) str
|
|
2256
|
+
|
|
2257
|
+
SetGroupName updates the name of a WhatsApp group for the Group JID given.
|
|
2258
|
+
"""
|
|
2259
|
+
return _whatsapp.whatsapp_Session_SetGroupName(self.handle, resourceID, name)
|
|
2260
|
+
def SetGroupTopic(self, resourceID, topic):
|
|
2261
|
+
"""SetGroupTopic(str resourceID, str topic) str
|
|
2262
|
+
|
|
2263
|
+
SetGroupName updates the topic of a WhatsApp group for the Group JID given.
|
|
2264
|
+
"""
|
|
2265
|
+
return _whatsapp.whatsapp_Session_SetGroupTopic(self.handle, resourceID, topic)
|
|
2266
|
+
def UpdateGroupParticipants(self, resourceID, participants):
|
|
2267
|
+
"""UpdateGroupParticipants(str resourceID, []object participants) []object, str
|
|
2268
|
+
|
|
2269
|
+
UpdateGroupParticipants processes changes to the given group's participants, including additions,
|
|
2270
|
+
removals, and changes to privileges. Participant JIDs given must be part of the authenticated
|
|
2271
|
+
session's roster at least, and must also be active group participants for other types of changes.
|
|
2272
|
+
"""
|
|
2273
|
+
return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Session_UpdateGroupParticipants(self.handle, resourceID, participants.handle))
|
|
2274
|
+
def FindContact(self, phone):
|
|
2275
|
+
"""FindContact(str phone) object, str
|
|
2276
|
+
|
|
2277
|
+
FindContact attempts to check for a registered contact on WhatsApp corresponding to the given
|
|
2278
|
+
phone number, returning a concrete instance if found; typically, only the contact JID is set. No
|
|
2279
|
+
error is returned if no contact was found, but any unexpected errors will otherwise be returned
|
|
2280
|
+
directly.
|
|
2281
|
+
"""
|
|
2282
|
+
return Contact(handle=_whatsapp.whatsapp_Session_FindContact(self.handle, phone))
|
|
2283
|
+
def RequestMessageHistory(self, resourceID, oldestMessage):
|
|
2284
|
+
"""RequestMessageHistory(str resourceID, object oldestMessage) str
|
|
2285
|
+
|
|
2286
|
+
RequestMessageHistory sends and asynchronous request for message history related to the given
|
|
2287
|
+
resource (e.g. Contact or Group JID), ending at the oldest message given. Messages returned from
|
|
2288
|
+
history should then be handled as a `HistorySync` event of type `ON_DEMAND`, in the session-wide
|
|
2289
|
+
event handler. An error will be returned if requesting history fails for any reason.
|
|
2290
|
+
"""
|
|
2291
|
+
return _whatsapp.whatsapp_Session_RequestMessageHistory(self.handle, resourceID, oldestMessage.handle)
|
|
2292
|
+
def SetEventHandler(self, h, goRun=False):
|
|
2293
|
+
"""SetEventHandler(callable h)
|
|
2294
|
+
|
|
2295
|
+
SetEventHandler assigns the given handler function for propagating internal events into the Python
|
|
2296
|
+
gateway. Note that the event handler function is not entirely safe to use directly, and all calls
|
|
2297
|
+
should instead be sent to the [Gateway] via its internal call channel.
|
|
2298
|
+
"""
|
|
2299
|
+
_whatsapp.whatsapp_Session_SetEventHandler(self.handle, h, goRun)
|
|
2300
|
+
|
|
2301
|
+
# Python type for struct whatsapp.Call
|
|
2302
|
+
class Call(go.GoClass):
|
|
2303
|
+
"""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"""
|
|
1992
2304
|
def __init__(self, *args, **kwargs):
|
|
1993
2305
|
"""
|
|
1994
2306
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2002,25 +2314,25 @@ class Album(go.GoClass):
|
|
|
2002
2314
|
self.handle = args[0].handle
|
|
2003
2315
|
_whatsapp.IncRef(self.handle)
|
|
2004
2316
|
else:
|
|
2005
|
-
self.handle = _whatsapp.
|
|
2317
|
+
self.handle = _whatsapp.whatsapp_Call_CTor()
|
|
2006
2318
|
_whatsapp.IncRef(self.handle)
|
|
2007
2319
|
if 0 < len(args):
|
|
2008
|
-
self.
|
|
2009
|
-
if "
|
|
2010
|
-
self.
|
|
2320
|
+
self.State = args[0]
|
|
2321
|
+
if "State" in kwargs:
|
|
2322
|
+
self.State = kwargs["State"]
|
|
2011
2323
|
if 1 < len(args):
|
|
2012
|
-
self.
|
|
2013
|
-
if "
|
|
2014
|
-
self.
|
|
2324
|
+
self.JID = args[1]
|
|
2325
|
+
if "JID" in kwargs:
|
|
2326
|
+
self.JID = kwargs["JID"]
|
|
2015
2327
|
if 2 < len(args):
|
|
2016
|
-
self.
|
|
2017
|
-
if "
|
|
2018
|
-
self.
|
|
2328
|
+
self.Timestamp = args[2]
|
|
2329
|
+
if "Timestamp" in kwargs:
|
|
2330
|
+
self.Timestamp = kwargs["Timestamp"]
|
|
2019
2331
|
def __del__(self):
|
|
2020
2332
|
_whatsapp.DecRef(self.handle)
|
|
2021
2333
|
def __str__(self):
|
|
2022
2334
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2023
|
-
sv = 'whatsapp.
|
|
2335
|
+
sv = 'whatsapp.Call{'
|
|
2024
2336
|
first = True
|
|
2025
2337
|
for v in pr:
|
|
2026
2338
|
if callable(v[1]):
|
|
@@ -2033,42 +2345,42 @@ class Album(go.GoClass):
|
|
|
2033
2345
|
return sv + '}'
|
|
2034
2346
|
def __repr__(self):
|
|
2035
2347
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2036
|
-
sv = 'whatsapp.
|
|
2348
|
+
sv = 'whatsapp.Call ( '
|
|
2037
2349
|
for v in pr:
|
|
2038
2350
|
if not callable(v[1]):
|
|
2039
2351
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2040
2352
|
return sv + ')'
|
|
2041
2353
|
@property
|
|
2042
|
-
def
|
|
2043
|
-
return _whatsapp.
|
|
2044
|
-
@
|
|
2045
|
-
def
|
|
2354
|
+
def State(self):
|
|
2355
|
+
return _whatsapp.whatsapp_Call_State_Get(self.handle)
|
|
2356
|
+
@State.setter
|
|
2357
|
+
def State(self, value):
|
|
2046
2358
|
if isinstance(value, go.GoClass):
|
|
2047
|
-
_whatsapp.
|
|
2359
|
+
_whatsapp.whatsapp_Call_State_Set(self.handle, value.handle)
|
|
2048
2360
|
else:
|
|
2049
|
-
_whatsapp.
|
|
2361
|
+
_whatsapp.whatsapp_Call_State_Set(self.handle, value)
|
|
2050
2362
|
@property
|
|
2051
|
-
def
|
|
2052
|
-
return _whatsapp.
|
|
2053
|
-
@
|
|
2054
|
-
def
|
|
2363
|
+
def JID(self):
|
|
2364
|
+
return _whatsapp.whatsapp_Call_JID_Get(self.handle)
|
|
2365
|
+
@JID.setter
|
|
2366
|
+
def JID(self, value):
|
|
2055
2367
|
if isinstance(value, go.GoClass):
|
|
2056
|
-
_whatsapp.
|
|
2368
|
+
_whatsapp.whatsapp_Call_JID_Set(self.handle, value.handle)
|
|
2057
2369
|
else:
|
|
2058
|
-
_whatsapp.
|
|
2370
|
+
_whatsapp.whatsapp_Call_JID_Set(self.handle, value)
|
|
2059
2371
|
@property
|
|
2060
|
-
def
|
|
2061
|
-
return _whatsapp.
|
|
2062
|
-
@
|
|
2063
|
-
def
|
|
2372
|
+
def Timestamp(self):
|
|
2373
|
+
return _whatsapp.whatsapp_Call_Timestamp_Get(self.handle)
|
|
2374
|
+
@Timestamp.setter
|
|
2375
|
+
def Timestamp(self, value):
|
|
2064
2376
|
if isinstance(value, go.GoClass):
|
|
2065
|
-
_whatsapp.
|
|
2377
|
+
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value.handle)
|
|
2066
2378
|
else:
|
|
2067
|
-
_whatsapp.
|
|
2379
|
+
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value)
|
|
2068
2380
|
|
|
2069
|
-
# Python type for struct whatsapp.
|
|
2070
|
-
class
|
|
2071
|
-
"""A
|
|
2381
|
+
# Python type for struct whatsapp.ChatState
|
|
2382
|
+
class ChatState(go.GoClass):
|
|
2383
|
+
"""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"""
|
|
2072
2384
|
def __init__(self, *args, **kwargs):
|
|
2073
2385
|
"""
|
|
2074
2386
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2082,29 +2394,25 @@ class Attachment(go.GoClass):
|
|
|
2082
2394
|
self.handle = args[0].handle
|
|
2083
2395
|
_whatsapp.IncRef(self.handle)
|
|
2084
2396
|
else:
|
|
2085
|
-
self.handle = _whatsapp.
|
|
2397
|
+
self.handle = _whatsapp.whatsapp_ChatState_CTor()
|
|
2086
2398
|
_whatsapp.IncRef(self.handle)
|
|
2087
2399
|
if 0 < len(args):
|
|
2088
|
-
self.
|
|
2089
|
-
if "
|
|
2090
|
-
self.
|
|
2400
|
+
self.Kind = args[0]
|
|
2401
|
+
if "Kind" in kwargs:
|
|
2402
|
+
self.Kind = kwargs["Kind"]
|
|
2091
2403
|
if 1 < len(args):
|
|
2092
|
-
self.
|
|
2093
|
-
if "
|
|
2094
|
-
self.
|
|
2404
|
+
self.JID = args[1]
|
|
2405
|
+
if "JID" in kwargs:
|
|
2406
|
+
self.JID = kwargs["JID"]
|
|
2095
2407
|
if 2 < len(args):
|
|
2096
|
-
self.
|
|
2097
|
-
if "
|
|
2098
|
-
self.
|
|
2099
|
-
if 3 < len(args):
|
|
2100
|
-
self.Data = args[3]
|
|
2101
|
-
if "Data" in kwargs:
|
|
2102
|
-
self.Data = kwargs["Data"]
|
|
2408
|
+
self.GroupJID = args[2]
|
|
2409
|
+
if "GroupJID" in kwargs:
|
|
2410
|
+
self.GroupJID = kwargs["GroupJID"]
|
|
2103
2411
|
def __del__(self):
|
|
2104
2412
|
_whatsapp.DecRef(self.handle)
|
|
2105
2413
|
def __str__(self):
|
|
2106
2414
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2107
|
-
sv = 'whatsapp.
|
|
2415
|
+
sv = 'whatsapp.ChatState{'
|
|
2108
2416
|
first = True
|
|
2109
2417
|
for v in pr:
|
|
2110
2418
|
if callable(v[1]):
|
|
@@ -2117,57 +2425,42 @@ class Attachment(go.GoClass):
|
|
|
2117
2425
|
return sv + '}'
|
|
2118
2426
|
def __repr__(self):
|
|
2119
2427
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2120
|
-
sv = 'whatsapp.
|
|
2428
|
+
sv = 'whatsapp.ChatState ( '
|
|
2121
2429
|
for v in pr:
|
|
2122
2430
|
if not callable(v[1]):
|
|
2123
2431
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2124
2432
|
return sv + ')'
|
|
2125
2433
|
@property
|
|
2126
|
-
def
|
|
2127
|
-
return _whatsapp.
|
|
2128
|
-
@
|
|
2129
|
-
def
|
|
2130
|
-
if isinstance(value, go.GoClass):
|
|
2131
|
-
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value.handle)
|
|
2132
|
-
else:
|
|
2133
|
-
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value)
|
|
2134
|
-
@property
|
|
2135
|
-
def Filename(self):
|
|
2136
|
-
return _whatsapp.whatsapp_Attachment_Filename_Get(self.handle)
|
|
2137
|
-
@Filename.setter
|
|
2138
|
-
def Filename(self, value):
|
|
2434
|
+
def Kind(self):
|
|
2435
|
+
return _whatsapp.whatsapp_ChatState_Kind_Get(self.handle)
|
|
2436
|
+
@Kind.setter
|
|
2437
|
+
def Kind(self, value):
|
|
2139
2438
|
if isinstance(value, go.GoClass):
|
|
2140
|
-
_whatsapp.
|
|
2439
|
+
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value.handle)
|
|
2141
2440
|
else:
|
|
2142
|
-
_whatsapp.
|
|
2441
|
+
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value)
|
|
2143
2442
|
@property
|
|
2144
|
-
def
|
|
2145
|
-
return _whatsapp.
|
|
2146
|
-
@
|
|
2147
|
-
def
|
|
2443
|
+
def JID(self):
|
|
2444
|
+
return _whatsapp.whatsapp_ChatState_JID_Get(self.handle)
|
|
2445
|
+
@JID.setter
|
|
2446
|
+
def JID(self, value):
|
|
2148
2447
|
if isinstance(value, go.GoClass):
|
|
2149
|
-
_whatsapp.
|
|
2448
|
+
_whatsapp.whatsapp_ChatState_JID_Set(self.handle, value.handle)
|
|
2150
2449
|
else:
|
|
2151
|
-
_whatsapp.
|
|
2450
|
+
_whatsapp.whatsapp_ChatState_JID_Set(self.handle, value)
|
|
2152
2451
|
@property
|
|
2153
|
-
def
|
|
2154
|
-
return
|
|
2155
|
-
@
|
|
2156
|
-
def
|
|
2452
|
+
def GroupJID(self):
|
|
2453
|
+
return _whatsapp.whatsapp_ChatState_GroupJID_Get(self.handle)
|
|
2454
|
+
@GroupJID.setter
|
|
2455
|
+
def GroupJID(self, value):
|
|
2157
2456
|
if isinstance(value, go.GoClass):
|
|
2158
|
-
_whatsapp.
|
|
2457
|
+
_whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value.handle)
|
|
2159
2458
|
else:
|
|
2160
|
-
|
|
2161
|
-
def GetSpec(self, ctx):
|
|
2162
|
-
"""GetSpec(object ctx) object, str
|
|
2163
|
-
|
|
2164
|
-
GetSpec returns metadata for this attachment, as derived from the underlying attachment data.
|
|
2165
|
-
"""
|
|
2166
|
-
return go.Ptr_media_Spec(handle=_whatsapp.whatsapp_Attachment_GetSpec(self.handle, ctx.handle))
|
|
2459
|
+
_whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value)
|
|
2167
2460
|
|
|
2168
|
-
# Python type for struct whatsapp.
|
|
2169
|
-
class
|
|
2170
|
-
"""
|
|
2461
|
+
# Python type for struct whatsapp.Connect
|
|
2462
|
+
class Connect(go.GoClass):
|
|
2463
|
+
"""Connect represents event data related to a connection to WhatsApp being established, or failing\nto do so (based on the [Connect.Error] result).\n"""
|
|
2171
2464
|
def __init__(self, *args, **kwargs):
|
|
2172
2465
|
"""
|
|
2173
2466
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2181,25 +2474,21 @@ class ChatState(go.GoClass):
|
|
|
2181
2474
|
self.handle = args[0].handle
|
|
2182
2475
|
_whatsapp.IncRef(self.handle)
|
|
2183
2476
|
else:
|
|
2184
|
-
self.handle = _whatsapp.
|
|
2477
|
+
self.handle = _whatsapp.whatsapp_Connect_CTor()
|
|
2185
2478
|
_whatsapp.IncRef(self.handle)
|
|
2186
2479
|
if 0 < len(args):
|
|
2187
|
-
self.
|
|
2188
|
-
if "Kind" in kwargs:
|
|
2189
|
-
self.Kind = kwargs["Kind"]
|
|
2190
|
-
if 1 < len(args):
|
|
2191
|
-
self.JID = args[1]
|
|
2480
|
+
self.JID = args[0]
|
|
2192
2481
|
if "JID" in kwargs:
|
|
2193
2482
|
self.JID = kwargs["JID"]
|
|
2194
|
-
if
|
|
2195
|
-
self.
|
|
2196
|
-
if "
|
|
2197
|
-
self.
|
|
2483
|
+
if 1 < len(args):
|
|
2484
|
+
self.Error = args[1]
|
|
2485
|
+
if "Error" in kwargs:
|
|
2486
|
+
self.Error = kwargs["Error"]
|
|
2198
2487
|
def __del__(self):
|
|
2199
2488
|
_whatsapp.DecRef(self.handle)
|
|
2200
2489
|
def __str__(self):
|
|
2201
2490
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2202
|
-
sv = 'whatsapp.
|
|
2491
|
+
sv = 'whatsapp.Connect{'
|
|
2203
2492
|
first = True
|
|
2204
2493
|
for v in pr:
|
|
2205
2494
|
if callable(v[1]):
|
|
@@ -2212,42 +2501,33 @@ class ChatState(go.GoClass):
|
|
|
2212
2501
|
return sv + '}'
|
|
2213
2502
|
def __repr__(self):
|
|
2214
2503
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2215
|
-
sv = 'whatsapp.
|
|
2504
|
+
sv = 'whatsapp.Connect ( '
|
|
2216
2505
|
for v in pr:
|
|
2217
2506
|
if not callable(v[1]):
|
|
2218
2507
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2219
|
-
return sv + ')'
|
|
2220
|
-
@property
|
|
2221
|
-
def Kind(self):
|
|
2222
|
-
return _whatsapp.whatsapp_ChatState_Kind_Get(self.handle)
|
|
2223
|
-
@Kind.setter
|
|
2224
|
-
def Kind(self, value):
|
|
2225
|
-
if isinstance(value, go.GoClass):
|
|
2226
|
-
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value.handle)
|
|
2227
|
-
else:
|
|
2228
|
-
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value)
|
|
2508
|
+
return sv + ')'
|
|
2229
2509
|
@property
|
|
2230
2510
|
def JID(self):
|
|
2231
|
-
return _whatsapp.
|
|
2511
|
+
return _whatsapp.whatsapp_Connect_JID_Get(self.handle)
|
|
2232
2512
|
@JID.setter
|
|
2233
2513
|
def JID(self, value):
|
|
2234
2514
|
if isinstance(value, go.GoClass):
|
|
2235
|
-
_whatsapp.
|
|
2515
|
+
_whatsapp.whatsapp_Connect_JID_Set(self.handle, value.handle)
|
|
2236
2516
|
else:
|
|
2237
|
-
_whatsapp.
|
|
2517
|
+
_whatsapp.whatsapp_Connect_JID_Set(self.handle, value)
|
|
2238
2518
|
@property
|
|
2239
|
-
def
|
|
2240
|
-
return _whatsapp.
|
|
2241
|
-
@
|
|
2242
|
-
def
|
|
2519
|
+
def Error(self):
|
|
2520
|
+
return _whatsapp.whatsapp_Connect_Error_Get(self.handle)
|
|
2521
|
+
@Error.setter
|
|
2522
|
+
def Error(self, value):
|
|
2243
2523
|
if isinstance(value, go.GoClass):
|
|
2244
|
-
_whatsapp.
|
|
2524
|
+
_whatsapp.whatsapp_Connect_Error_Set(self.handle, value.handle)
|
|
2245
2525
|
else:
|
|
2246
|
-
_whatsapp.
|
|
2526
|
+
_whatsapp.whatsapp_Connect_Error_Set(self.handle, value)
|
|
2247
2527
|
|
|
2248
|
-
# Python type for struct whatsapp.
|
|
2249
|
-
class
|
|
2250
|
-
"""A
|
|
2528
|
+
# Python type for struct whatsapp.GroupSubject
|
|
2529
|
+
class GroupSubject(go.GoClass):
|
|
2530
|
+
"""A GroupSubject represents the user-defined group description and attached metadata thereof, for a\ngiven [Group].\n"""
|
|
2251
2531
|
def __init__(self, *args, **kwargs):
|
|
2252
2532
|
"""
|
|
2253
2533
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2261,33 +2541,25 @@ class Group(go.GoClass):
|
|
|
2261
2541
|
self.handle = args[0].handle
|
|
2262
2542
|
_whatsapp.IncRef(self.handle)
|
|
2263
2543
|
else:
|
|
2264
|
-
self.handle = _whatsapp.
|
|
2544
|
+
self.handle = _whatsapp.whatsapp_GroupSubject_CTor()
|
|
2265
2545
|
_whatsapp.IncRef(self.handle)
|
|
2266
2546
|
if 0 < len(args):
|
|
2267
|
-
self.
|
|
2268
|
-
if "JID" in kwargs:
|
|
2269
|
-
self.JID = kwargs["JID"]
|
|
2270
|
-
if 1 < len(args):
|
|
2271
|
-
self.Name = args[1]
|
|
2272
|
-
if "Name" in kwargs:
|
|
2273
|
-
self.Name = kwargs["Name"]
|
|
2274
|
-
if 2 < len(args):
|
|
2275
|
-
self.Subject = args[2]
|
|
2547
|
+
self.Subject = args[0]
|
|
2276
2548
|
if "Subject" in kwargs:
|
|
2277
2549
|
self.Subject = kwargs["Subject"]
|
|
2278
|
-
if
|
|
2279
|
-
self.
|
|
2280
|
-
if "
|
|
2281
|
-
self.
|
|
2282
|
-
if
|
|
2283
|
-
self.
|
|
2284
|
-
if "
|
|
2285
|
-
self.
|
|
2550
|
+
if 1 < len(args):
|
|
2551
|
+
self.SetAt = args[1]
|
|
2552
|
+
if "SetAt" in kwargs:
|
|
2553
|
+
self.SetAt = kwargs["SetAt"]
|
|
2554
|
+
if 2 < len(args):
|
|
2555
|
+
self.SetBy = args[2]
|
|
2556
|
+
if "SetBy" in kwargs:
|
|
2557
|
+
self.SetBy = kwargs["SetBy"]
|
|
2286
2558
|
def __del__(self):
|
|
2287
2559
|
_whatsapp.DecRef(self.handle)
|
|
2288
2560
|
def __str__(self):
|
|
2289
2561
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2290
|
-
sv = 'whatsapp.
|
|
2562
|
+
sv = 'whatsapp.GroupSubject{'
|
|
2291
2563
|
first = True
|
|
2292
2564
|
for v in pr:
|
|
2293
2565
|
if callable(v[1]):
|
|
@@ -2300,60 +2572,42 @@ class Group(go.GoClass):
|
|
|
2300
2572
|
return sv + '}'
|
|
2301
2573
|
def __repr__(self):
|
|
2302
2574
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2303
|
-
sv = 'whatsapp.
|
|
2575
|
+
sv = 'whatsapp.GroupSubject ( '
|
|
2304
2576
|
for v in pr:
|
|
2305
2577
|
if not callable(v[1]):
|
|
2306
2578
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2307
2579
|
return sv + ')'
|
|
2308
2580
|
@property
|
|
2309
|
-
def JID(self):
|
|
2310
|
-
return _whatsapp.whatsapp_Group_JID_Get(self.handle)
|
|
2311
|
-
@JID.setter
|
|
2312
|
-
def JID(self, value):
|
|
2313
|
-
if isinstance(value, go.GoClass):
|
|
2314
|
-
_whatsapp.whatsapp_Group_JID_Set(self.handle, value.handle)
|
|
2315
|
-
else:
|
|
2316
|
-
_whatsapp.whatsapp_Group_JID_Set(self.handle, value)
|
|
2317
|
-
@property
|
|
2318
|
-
def Name(self):
|
|
2319
|
-
return _whatsapp.whatsapp_Group_Name_Get(self.handle)
|
|
2320
|
-
@Name.setter
|
|
2321
|
-
def Name(self, value):
|
|
2322
|
-
if isinstance(value, go.GoClass):
|
|
2323
|
-
_whatsapp.whatsapp_Group_Name_Set(self.handle, value.handle)
|
|
2324
|
-
else:
|
|
2325
|
-
_whatsapp.whatsapp_Group_Name_Set(self.handle, value)
|
|
2326
|
-
@property
|
|
2327
2581
|
def Subject(self):
|
|
2328
|
-
return
|
|
2582
|
+
return _whatsapp.whatsapp_GroupSubject_Subject_Get(self.handle)
|
|
2329
2583
|
@Subject.setter
|
|
2330
2584
|
def Subject(self, value):
|
|
2331
2585
|
if isinstance(value, go.GoClass):
|
|
2332
|
-
_whatsapp.
|
|
2586
|
+
_whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value.handle)
|
|
2333
2587
|
else:
|
|
2334
|
-
|
|
2588
|
+
_whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value)
|
|
2335
2589
|
@property
|
|
2336
|
-
def
|
|
2337
|
-
return _whatsapp.
|
|
2338
|
-
@
|
|
2339
|
-
def
|
|
2590
|
+
def SetAt(self):
|
|
2591
|
+
return _whatsapp.whatsapp_GroupSubject_SetAt_Get(self.handle)
|
|
2592
|
+
@SetAt.setter
|
|
2593
|
+
def SetAt(self, value):
|
|
2340
2594
|
if isinstance(value, go.GoClass):
|
|
2341
|
-
_whatsapp.
|
|
2595
|
+
_whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value.handle)
|
|
2342
2596
|
else:
|
|
2343
|
-
_whatsapp.
|
|
2597
|
+
_whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value)
|
|
2344
2598
|
@property
|
|
2345
|
-
def
|
|
2346
|
-
return
|
|
2347
|
-
@
|
|
2348
|
-
def
|
|
2599
|
+
def SetBy(self):
|
|
2600
|
+
return _whatsapp.whatsapp_GroupSubject_SetBy_Get(self.handle)
|
|
2601
|
+
@SetBy.setter
|
|
2602
|
+
def SetBy(self, value):
|
|
2349
2603
|
if isinstance(value, go.GoClass):
|
|
2350
|
-
_whatsapp.
|
|
2604
|
+
_whatsapp.whatsapp_GroupSubject_SetBy_Set(self.handle, value.handle)
|
|
2351
2605
|
else:
|
|
2352
|
-
|
|
2606
|
+
_whatsapp.whatsapp_GroupSubject_SetBy_Set(self.handle, value)
|
|
2353
2607
|
|
|
2354
|
-
# Python type for struct whatsapp.
|
|
2355
|
-
class
|
|
2356
|
-
"""A
|
|
2608
|
+
# Python type for struct whatsapp.Receipt
|
|
2609
|
+
class Receipt(go.GoClass):
|
|
2610
|
+
"""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"""
|
|
2357
2611
|
def __init__(self, *args, **kwargs):
|
|
2358
2612
|
"""
|
|
2359
2613
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2367,41 +2621,37 @@ class Location(go.GoClass):
|
|
|
2367
2621
|
self.handle = args[0].handle
|
|
2368
2622
|
_whatsapp.IncRef(self.handle)
|
|
2369
2623
|
else:
|
|
2370
|
-
self.handle = _whatsapp.
|
|
2624
|
+
self.handle = _whatsapp.whatsapp_Receipt_CTor()
|
|
2371
2625
|
_whatsapp.IncRef(self.handle)
|
|
2372
2626
|
if 0 < len(args):
|
|
2373
|
-
self.
|
|
2374
|
-
if "
|
|
2375
|
-
self.
|
|
2627
|
+
self.Kind = args[0]
|
|
2628
|
+
if "Kind" in kwargs:
|
|
2629
|
+
self.Kind = kwargs["Kind"]
|
|
2376
2630
|
if 1 < len(args):
|
|
2377
|
-
self.
|
|
2378
|
-
if "
|
|
2379
|
-
self.
|
|
2631
|
+
self.MessageIDs = args[1]
|
|
2632
|
+
if "MessageIDs" in kwargs:
|
|
2633
|
+
self.MessageIDs = kwargs["MessageIDs"]
|
|
2380
2634
|
if 2 < len(args):
|
|
2381
|
-
self.
|
|
2382
|
-
if "
|
|
2383
|
-
self.
|
|
2635
|
+
self.JID = args[2]
|
|
2636
|
+
if "JID" in kwargs:
|
|
2637
|
+
self.JID = kwargs["JID"]
|
|
2384
2638
|
if 3 < len(args):
|
|
2385
|
-
self.
|
|
2386
|
-
if "
|
|
2387
|
-
self.
|
|
2639
|
+
self.GroupJID = args[3]
|
|
2640
|
+
if "GroupJID" in kwargs:
|
|
2641
|
+
self.GroupJID = kwargs["GroupJID"]
|
|
2388
2642
|
if 4 < len(args):
|
|
2389
|
-
self.
|
|
2390
|
-
if "
|
|
2391
|
-
self.
|
|
2643
|
+
self.Timestamp = args[4]
|
|
2644
|
+
if "Timestamp" in kwargs:
|
|
2645
|
+
self.Timestamp = kwargs["Timestamp"]
|
|
2392
2646
|
if 5 < len(args):
|
|
2393
|
-
self.
|
|
2394
|
-
if "
|
|
2395
|
-
self.
|
|
2396
|
-
if 6 < len(args):
|
|
2397
|
-
self.URL = args[6]
|
|
2398
|
-
if "URL" in kwargs:
|
|
2399
|
-
self.URL = kwargs["URL"]
|
|
2647
|
+
self.IsCarbon = args[5]
|
|
2648
|
+
if "IsCarbon" in kwargs:
|
|
2649
|
+
self.IsCarbon = kwargs["IsCarbon"]
|
|
2400
2650
|
def __del__(self):
|
|
2401
2651
|
_whatsapp.DecRef(self.handle)
|
|
2402
2652
|
def __str__(self):
|
|
2403
2653
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2404
|
-
sv = 'whatsapp.
|
|
2654
|
+
sv = 'whatsapp.Receipt{'
|
|
2405
2655
|
first = True
|
|
2406
2656
|
for v in pr:
|
|
2407
2657
|
if callable(v[1]):
|
|
@@ -2414,80 +2664,69 @@ class Location(go.GoClass):
|
|
|
2414
2664
|
return sv + '}'
|
|
2415
2665
|
def __repr__(self):
|
|
2416
2666
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2417
|
-
sv = 'whatsapp.
|
|
2667
|
+
sv = 'whatsapp.Receipt ( '
|
|
2418
2668
|
for v in pr:
|
|
2419
2669
|
if not callable(v[1]):
|
|
2420
2670
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2421
2671
|
return sv + ')'
|
|
2422
2672
|
@property
|
|
2423
|
-
def
|
|
2424
|
-
return _whatsapp.
|
|
2425
|
-
@
|
|
2426
|
-
def
|
|
2427
|
-
if isinstance(value, go.GoClass):
|
|
2428
|
-
_whatsapp.whatsapp_Location_Latitude_Set(self.handle, value.handle)
|
|
2429
|
-
else:
|
|
2430
|
-
_whatsapp.whatsapp_Location_Latitude_Set(self.handle, value)
|
|
2431
|
-
@property
|
|
2432
|
-
def Longitude(self):
|
|
2433
|
-
return _whatsapp.whatsapp_Location_Longitude_Get(self.handle)
|
|
2434
|
-
@Longitude.setter
|
|
2435
|
-
def Longitude(self, value):
|
|
2673
|
+
def Kind(self):
|
|
2674
|
+
return _whatsapp.whatsapp_Receipt_Kind_Get(self.handle)
|
|
2675
|
+
@Kind.setter
|
|
2676
|
+
def Kind(self, value):
|
|
2436
2677
|
if isinstance(value, go.GoClass):
|
|
2437
|
-
_whatsapp.
|
|
2678
|
+
_whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value.handle)
|
|
2438
2679
|
else:
|
|
2439
|
-
_whatsapp.
|
|
2680
|
+
_whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value)
|
|
2440
2681
|
@property
|
|
2441
|
-
def
|
|
2442
|
-
return _whatsapp.
|
|
2443
|
-
@
|
|
2444
|
-
def
|
|
2682
|
+
def MessageIDs(self):
|
|
2683
|
+
return go.Slice_string(handle=_whatsapp.whatsapp_Receipt_MessageIDs_Get(self.handle))
|
|
2684
|
+
@MessageIDs.setter
|
|
2685
|
+
def MessageIDs(self, value):
|
|
2445
2686
|
if isinstance(value, go.GoClass):
|
|
2446
|
-
_whatsapp.
|
|
2687
|
+
_whatsapp.whatsapp_Receipt_MessageIDs_Set(self.handle, value.handle)
|
|
2447
2688
|
else:
|
|
2448
|
-
|
|
2689
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2449
2690
|
@property
|
|
2450
|
-
def
|
|
2451
|
-
return _whatsapp.
|
|
2452
|
-
@
|
|
2453
|
-
def
|
|
2691
|
+
def JID(self):
|
|
2692
|
+
return _whatsapp.whatsapp_Receipt_JID_Get(self.handle)
|
|
2693
|
+
@JID.setter
|
|
2694
|
+
def JID(self, value):
|
|
2454
2695
|
if isinstance(value, go.GoClass):
|
|
2455
|
-
_whatsapp.
|
|
2696
|
+
_whatsapp.whatsapp_Receipt_JID_Set(self.handle, value.handle)
|
|
2456
2697
|
else:
|
|
2457
|
-
_whatsapp.
|
|
2698
|
+
_whatsapp.whatsapp_Receipt_JID_Set(self.handle, value)
|
|
2458
2699
|
@property
|
|
2459
|
-
def
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
@Name.setter
|
|
2464
|
-
def Name(self, value):
|
|
2700
|
+
def GroupJID(self):
|
|
2701
|
+
return _whatsapp.whatsapp_Receipt_GroupJID_Get(self.handle)
|
|
2702
|
+
@GroupJID.setter
|
|
2703
|
+
def GroupJID(self, value):
|
|
2465
2704
|
if isinstance(value, go.GoClass):
|
|
2466
|
-
_whatsapp.
|
|
2705
|
+
_whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value.handle)
|
|
2467
2706
|
else:
|
|
2468
|
-
_whatsapp.
|
|
2707
|
+
_whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value)
|
|
2469
2708
|
@property
|
|
2470
|
-
def
|
|
2471
|
-
return _whatsapp.
|
|
2472
|
-
@
|
|
2473
|
-
def
|
|
2709
|
+
def Timestamp(self):
|
|
2710
|
+
return _whatsapp.whatsapp_Receipt_Timestamp_Get(self.handle)
|
|
2711
|
+
@Timestamp.setter
|
|
2712
|
+
def Timestamp(self, value):
|
|
2474
2713
|
if isinstance(value, go.GoClass):
|
|
2475
|
-
_whatsapp.
|
|
2714
|
+
_whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value.handle)
|
|
2476
2715
|
else:
|
|
2477
|
-
_whatsapp.
|
|
2716
|
+
_whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value)
|
|
2478
2717
|
@property
|
|
2479
|
-
def
|
|
2480
|
-
return _whatsapp.
|
|
2481
|
-
@
|
|
2482
|
-
def
|
|
2718
|
+
def IsCarbon(self):
|
|
2719
|
+
return _whatsapp.whatsapp_Receipt_IsCarbon_Get(self.handle)
|
|
2720
|
+
@IsCarbon.setter
|
|
2721
|
+
def IsCarbon(self, value):
|
|
2483
2722
|
if isinstance(value, go.GoClass):
|
|
2484
|
-
_whatsapp.
|
|
2723
|
+
_whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value.handle)
|
|
2485
2724
|
else:
|
|
2486
|
-
_whatsapp.
|
|
2725
|
+
_whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value)
|
|
2487
2726
|
|
|
2488
|
-
# Python type for struct whatsapp.
|
|
2489
|
-
class
|
|
2490
|
-
"""A
|
|
2727
|
+
# Python type for struct whatsapp.Album
|
|
2728
|
+
class Album(go.GoClass):
|
|
2729
|
+
"""A Album message represents a collection of media files, typically images and videos.\n"""
|
|
2491
2730
|
def __init__(self, *args, **kwargs):
|
|
2492
2731
|
"""
|
|
2493
2732
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2501,21 +2740,25 @@ class Poll(go.GoClass):
|
|
|
2501
2740
|
self.handle = args[0].handle
|
|
2502
2741
|
_whatsapp.IncRef(self.handle)
|
|
2503
2742
|
else:
|
|
2504
|
-
self.handle = _whatsapp.
|
|
2743
|
+
self.handle = _whatsapp.whatsapp_Album_CTor()
|
|
2505
2744
|
_whatsapp.IncRef(self.handle)
|
|
2506
2745
|
if 0 < len(args):
|
|
2507
|
-
self.
|
|
2508
|
-
if "
|
|
2509
|
-
self.
|
|
2746
|
+
self.IsAlbum = args[0]
|
|
2747
|
+
if "IsAlbum" in kwargs:
|
|
2748
|
+
self.IsAlbum = kwargs["IsAlbum"]
|
|
2510
2749
|
if 1 < len(args):
|
|
2511
|
-
self.
|
|
2512
|
-
if "
|
|
2513
|
-
self.
|
|
2750
|
+
self.ImageCount = args[1]
|
|
2751
|
+
if "ImageCount" in kwargs:
|
|
2752
|
+
self.ImageCount = kwargs["ImageCount"]
|
|
2753
|
+
if 2 < len(args):
|
|
2754
|
+
self.VideoCount = args[2]
|
|
2755
|
+
if "VideoCount" in kwargs:
|
|
2756
|
+
self.VideoCount = kwargs["VideoCount"]
|
|
2514
2757
|
def __del__(self):
|
|
2515
2758
|
_whatsapp.DecRef(self.handle)
|
|
2516
2759
|
def __str__(self):
|
|
2517
2760
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2518
|
-
sv = 'whatsapp.
|
|
2761
|
+
sv = 'whatsapp.Album{'
|
|
2519
2762
|
first = True
|
|
2520
2763
|
for v in pr:
|
|
2521
2764
|
if callable(v[1]):
|
|
@@ -2528,29 +2771,38 @@ class Poll(go.GoClass):
|
|
|
2528
2771
|
return sv + '}'
|
|
2529
2772
|
def __repr__(self):
|
|
2530
2773
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2531
|
-
sv = 'whatsapp.
|
|
2774
|
+
sv = 'whatsapp.Album ( '
|
|
2532
2775
|
for v in pr:
|
|
2533
2776
|
if not callable(v[1]):
|
|
2534
2777
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2535
2778
|
return sv + ')'
|
|
2536
2779
|
@property
|
|
2537
|
-
def
|
|
2538
|
-
return _whatsapp.
|
|
2539
|
-
@
|
|
2540
|
-
def
|
|
2780
|
+
def IsAlbum(self):
|
|
2781
|
+
return _whatsapp.whatsapp_Album_IsAlbum_Get(self.handle)
|
|
2782
|
+
@IsAlbum.setter
|
|
2783
|
+
def IsAlbum(self, value):
|
|
2541
2784
|
if isinstance(value, go.GoClass):
|
|
2542
|
-
_whatsapp.
|
|
2785
|
+
_whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value.handle)
|
|
2543
2786
|
else:
|
|
2544
|
-
_whatsapp.
|
|
2787
|
+
_whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value)
|
|
2545
2788
|
@property
|
|
2546
|
-
def
|
|
2547
|
-
return
|
|
2548
|
-
@
|
|
2549
|
-
def
|
|
2789
|
+
def ImageCount(self):
|
|
2790
|
+
return _whatsapp.whatsapp_Album_ImageCount_Get(self.handle)
|
|
2791
|
+
@ImageCount.setter
|
|
2792
|
+
def ImageCount(self, value):
|
|
2550
2793
|
if isinstance(value, go.GoClass):
|
|
2551
|
-
_whatsapp.
|
|
2794
|
+
_whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value.handle)
|
|
2552
2795
|
else:
|
|
2553
|
-
|
|
2796
|
+
_whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value)
|
|
2797
|
+
@property
|
|
2798
|
+
def VideoCount(self):
|
|
2799
|
+
return _whatsapp.whatsapp_Album_VideoCount_Get(self.handle)
|
|
2800
|
+
@VideoCount.setter
|
|
2801
|
+
def VideoCount(self, value):
|
|
2802
|
+
if isinstance(value, go.GoClass):
|
|
2803
|
+
_whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value.handle)
|
|
2804
|
+
else:
|
|
2805
|
+
_whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value)
|
|
2554
2806
|
|
|
2555
2807
|
# Python type for struct whatsapp.Gateway
|
|
2556
2808
|
class Gateway(go.GoClass):
|
|
@@ -2666,9 +2918,9 @@ class Gateway(go.GoClass):
|
|
|
2666
2918
|
"""
|
|
2667
2919
|
return _whatsapp.whatsapp_Gateway_CleanupSession(self.handle, device.handle)
|
|
2668
2920
|
|
|
2669
|
-
# Python type for struct whatsapp.
|
|
2670
|
-
class
|
|
2671
|
-
"""A
|
|
2921
|
+
# Python type for struct whatsapp.Group
|
|
2922
|
+
class Group(go.GoClass):
|
|
2923
|
+
"""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"""
|
|
2672
2924
|
def __init__(self, *args, **kwargs):
|
|
2673
2925
|
"""
|
|
2674
2926
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2682,281 +2934,112 @@ class Message(go.GoClass):
|
|
|
2682
2934
|
self.handle = args[0].handle
|
|
2683
2935
|
_whatsapp.IncRef(self.handle)
|
|
2684
2936
|
else:
|
|
2685
|
-
self.handle = _whatsapp.
|
|
2937
|
+
self.handle = _whatsapp.whatsapp_Group_CTor()
|
|
2686
2938
|
_whatsapp.IncRef(self.handle)
|
|
2687
2939
|
if 0 < len(args):
|
|
2688
|
-
self.
|
|
2689
|
-
if "
|
|
2690
|
-
self.
|
|
2691
|
-
if 1 < len(args):
|
|
2692
|
-
self.
|
|
2693
|
-
if "
|
|
2694
|
-
self.
|
|
2695
|
-
if 2 < len(args):
|
|
2696
|
-
self.
|
|
2697
|
-
if "
|
|
2698
|
-
self.
|
|
2699
|
-
if 3 < len(args):
|
|
2700
|
-
self.
|
|
2701
|
-
if "
|
|
2702
|
-
self.
|
|
2703
|
-
if 4 < len(args):
|
|
2704
|
-
self.
|
|
2705
|
-
if "
|
|
2706
|
-
self.
|
|
2707
|
-
if 5 < len(args):
|
|
2708
|
-
self.
|
|
2709
|
-
if "
|
|
2710
|
-
self.
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
if "Attachments" in kwargs:
|
|
2734
|
-
self.Attachments = kwargs["Attachments"]
|
|
2735
|
-
if 12 < len(args):
|
|
2736
|
-
self.Preview = args[12]
|
|
2737
|
-
if "Preview" in kwargs:
|
|
2738
|
-
self.Preview = kwargs["Preview"]
|
|
2739
|
-
if 13 < len(args):
|
|
2740
|
-
self.Location = args[13]
|
|
2741
|
-
if "Location" in kwargs:
|
|
2742
|
-
self.Location = kwargs["Location"]
|
|
2743
|
-
if 14 < len(args):
|
|
2744
|
-
self.Poll = args[14]
|
|
2745
|
-
if "Poll" in kwargs:
|
|
2746
|
-
self.Poll = kwargs["Poll"]
|
|
2747
|
-
if 15 < len(args):
|
|
2748
|
-
self.Album = args[15]
|
|
2749
|
-
if "Album" in kwargs:
|
|
2750
|
-
self.Album = kwargs["Album"]
|
|
2751
|
-
if 16 < len(args):
|
|
2752
|
-
self.MentionJIDs = args[16]
|
|
2753
|
-
if "MentionJIDs" in kwargs:
|
|
2754
|
-
self.MentionJIDs = kwargs["MentionJIDs"]
|
|
2755
|
-
if 17 < len(args):
|
|
2756
|
-
self.Receipts = args[17]
|
|
2757
|
-
if "Receipts" in kwargs:
|
|
2758
|
-
self.Receipts = kwargs["Receipts"]
|
|
2759
|
-
if 18 < len(args):
|
|
2760
|
-
self.Reactions = args[18]
|
|
2761
|
-
if "Reactions" in kwargs:
|
|
2762
|
-
self.Reactions = kwargs["Reactions"]
|
|
2763
|
-
def __del__(self):
|
|
2764
|
-
_whatsapp.DecRef(self.handle)
|
|
2765
|
-
def __str__(self):
|
|
2766
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2767
|
-
sv = 'whatsapp.Message{'
|
|
2768
|
-
first = True
|
|
2769
|
-
for v in pr:
|
|
2770
|
-
if callable(v[1]):
|
|
2771
|
-
continue
|
|
2772
|
-
if first:
|
|
2773
|
-
first = False
|
|
2774
|
-
else:
|
|
2775
|
-
sv += ', '
|
|
2776
|
-
sv += v[0] + '=' + str(v[1])
|
|
2777
|
-
return sv + '}'
|
|
2778
|
-
def __repr__(self):
|
|
2779
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2780
|
-
sv = 'whatsapp.Message ( '
|
|
2781
|
-
for v in pr:
|
|
2782
|
-
if not callable(v[1]):
|
|
2783
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2784
|
-
return sv + ')'
|
|
2785
|
-
@property
|
|
2786
|
-
def Kind(self):
|
|
2787
|
-
return _whatsapp.whatsapp_Message_Kind_Get(self.handle)
|
|
2788
|
-
@Kind.setter
|
|
2789
|
-
def Kind(self, value):
|
|
2790
|
-
if isinstance(value, go.GoClass):
|
|
2791
|
-
_whatsapp.whatsapp_Message_Kind_Set(self.handle, value.handle)
|
|
2792
|
-
else:
|
|
2793
|
-
_whatsapp.whatsapp_Message_Kind_Set(self.handle, value)
|
|
2794
|
-
@property
|
|
2795
|
-
def ID(self):
|
|
2796
|
-
return _whatsapp.whatsapp_Message_ID_Get(self.handle)
|
|
2797
|
-
@ID.setter
|
|
2798
|
-
def ID(self, value):
|
|
2799
|
-
if isinstance(value, go.GoClass):
|
|
2800
|
-
_whatsapp.whatsapp_Message_ID_Set(self.handle, value.handle)
|
|
2801
|
-
else:
|
|
2802
|
-
_whatsapp.whatsapp_Message_ID_Set(self.handle, value)
|
|
2803
|
-
@property
|
|
2804
|
-
def JID(self):
|
|
2805
|
-
return _whatsapp.whatsapp_Message_JID_Get(self.handle)
|
|
2806
|
-
@JID.setter
|
|
2807
|
-
def JID(self, value):
|
|
2808
|
-
if isinstance(value, go.GoClass):
|
|
2809
|
-
_whatsapp.whatsapp_Message_JID_Set(self.handle, value.handle)
|
|
2810
|
-
else:
|
|
2811
|
-
_whatsapp.whatsapp_Message_JID_Set(self.handle, value)
|
|
2812
|
-
@property
|
|
2813
|
-
def GroupJID(self):
|
|
2814
|
-
return _whatsapp.whatsapp_Message_GroupJID_Get(self.handle)
|
|
2815
|
-
@GroupJID.setter
|
|
2816
|
-
def GroupJID(self, value):
|
|
2817
|
-
if isinstance(value, go.GoClass):
|
|
2818
|
-
_whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value.handle)
|
|
2819
|
-
else:
|
|
2820
|
-
_whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value)
|
|
2821
|
-
@property
|
|
2822
|
-
def OriginJID(self):
|
|
2823
|
-
return _whatsapp.whatsapp_Message_OriginJID_Get(self.handle)
|
|
2824
|
-
@OriginJID.setter
|
|
2825
|
-
def OriginJID(self, value):
|
|
2826
|
-
if isinstance(value, go.GoClass):
|
|
2827
|
-
_whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value.handle)
|
|
2828
|
-
else:
|
|
2829
|
-
_whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value)
|
|
2830
|
-
@property
|
|
2831
|
-
def Body(self):
|
|
2832
|
-
return _whatsapp.whatsapp_Message_Body_Get(self.handle)
|
|
2833
|
-
@Body.setter
|
|
2834
|
-
def Body(self, value):
|
|
2835
|
-
if isinstance(value, go.GoClass):
|
|
2836
|
-
_whatsapp.whatsapp_Message_Body_Set(self.handle, value.handle)
|
|
2837
|
-
else:
|
|
2838
|
-
_whatsapp.whatsapp_Message_Body_Set(self.handle, value)
|
|
2839
|
-
@property
|
|
2840
|
-
def Timestamp(self):
|
|
2841
|
-
return _whatsapp.whatsapp_Message_Timestamp_Get(self.handle)
|
|
2842
|
-
@Timestamp.setter
|
|
2843
|
-
def Timestamp(self, value):
|
|
2844
|
-
if isinstance(value, go.GoClass):
|
|
2845
|
-
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value.handle)
|
|
2846
|
-
else:
|
|
2847
|
-
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value)
|
|
2848
|
-
@property
|
|
2849
|
-
def IsCarbon(self):
|
|
2850
|
-
return _whatsapp.whatsapp_Message_IsCarbon_Get(self.handle)
|
|
2851
|
-
@IsCarbon.setter
|
|
2852
|
-
def IsCarbon(self, value):
|
|
2853
|
-
if isinstance(value, go.GoClass):
|
|
2854
|
-
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value.handle)
|
|
2855
|
-
else:
|
|
2856
|
-
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value)
|
|
2857
|
-
@property
|
|
2858
|
-
def IsForwarded(self):
|
|
2859
|
-
return _whatsapp.whatsapp_Message_IsForwarded_Get(self.handle)
|
|
2860
|
-
@IsForwarded.setter
|
|
2861
|
-
def IsForwarded(self, value):
|
|
2862
|
-
if isinstance(value, go.GoClass):
|
|
2863
|
-
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value.handle)
|
|
2864
|
-
else:
|
|
2865
|
-
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value)
|
|
2866
|
-
@property
|
|
2867
|
-
def ReplyID(self):
|
|
2868
|
-
return _whatsapp.whatsapp_Message_ReplyID_Get(self.handle)
|
|
2869
|
-
@ReplyID.setter
|
|
2870
|
-
def ReplyID(self, value):
|
|
2871
|
-
if isinstance(value, go.GoClass):
|
|
2872
|
-
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value.handle)
|
|
2873
|
-
else:
|
|
2874
|
-
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value)
|
|
2875
|
-
@property
|
|
2876
|
-
def ReplyBody(self):
|
|
2877
|
-
return _whatsapp.whatsapp_Message_ReplyBody_Get(self.handle)
|
|
2878
|
-
@ReplyBody.setter
|
|
2879
|
-
def ReplyBody(self, value):
|
|
2880
|
-
if isinstance(value, go.GoClass):
|
|
2881
|
-
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value.handle)
|
|
2882
|
-
else:
|
|
2883
|
-
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value)
|
|
2884
|
-
@property
|
|
2885
|
-
def Attachments(self):
|
|
2886
|
-
return Slice_whatsapp_Attachment(handle=_whatsapp.whatsapp_Message_Attachments_Get(self.handle))
|
|
2887
|
-
@Attachments.setter
|
|
2888
|
-
def Attachments(self, value):
|
|
2889
|
-
if isinstance(value, go.GoClass):
|
|
2890
|
-
_whatsapp.whatsapp_Message_Attachments_Set(self.handle, value.handle)
|
|
2891
|
-
else:
|
|
2892
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2893
|
-
@property
|
|
2894
|
-
def Preview(self):
|
|
2895
|
-
return Preview(handle=_whatsapp.whatsapp_Message_Preview_Get(self.handle))
|
|
2896
|
-
@Preview.setter
|
|
2897
|
-
def Preview(self, value):
|
|
2898
|
-
if isinstance(value, go.GoClass):
|
|
2899
|
-
_whatsapp.whatsapp_Message_Preview_Set(self.handle, value.handle)
|
|
2900
|
-
else:
|
|
2901
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2940
|
+
self.JID = args[0]
|
|
2941
|
+
if "JID" in kwargs:
|
|
2942
|
+
self.JID = kwargs["JID"]
|
|
2943
|
+
if 1 < len(args):
|
|
2944
|
+
self.Name = args[1]
|
|
2945
|
+
if "Name" in kwargs:
|
|
2946
|
+
self.Name = kwargs["Name"]
|
|
2947
|
+
if 2 < len(args):
|
|
2948
|
+
self.Subject = args[2]
|
|
2949
|
+
if "Subject" in kwargs:
|
|
2950
|
+
self.Subject = kwargs["Subject"]
|
|
2951
|
+
if 3 < len(args):
|
|
2952
|
+
self.Nickname = args[3]
|
|
2953
|
+
if "Nickname" in kwargs:
|
|
2954
|
+
self.Nickname = kwargs["Nickname"]
|
|
2955
|
+
if 4 < len(args):
|
|
2956
|
+
self.Participants = args[4]
|
|
2957
|
+
if "Participants" in kwargs:
|
|
2958
|
+
self.Participants = kwargs["Participants"]
|
|
2959
|
+
if 5 < len(args):
|
|
2960
|
+
self.InviteCode = args[5]
|
|
2961
|
+
if "InviteCode" in kwargs:
|
|
2962
|
+
self.InviteCode = kwargs["InviteCode"]
|
|
2963
|
+
def __del__(self):
|
|
2964
|
+
_whatsapp.DecRef(self.handle)
|
|
2965
|
+
def __str__(self):
|
|
2966
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2967
|
+
sv = 'whatsapp.Group{'
|
|
2968
|
+
first = True
|
|
2969
|
+
for v in pr:
|
|
2970
|
+
if callable(v[1]):
|
|
2971
|
+
continue
|
|
2972
|
+
if first:
|
|
2973
|
+
first = False
|
|
2974
|
+
else:
|
|
2975
|
+
sv += ', '
|
|
2976
|
+
sv += v[0] + '=' + str(v[1])
|
|
2977
|
+
return sv + '}'
|
|
2978
|
+
def __repr__(self):
|
|
2979
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2980
|
+
sv = 'whatsapp.Group ( '
|
|
2981
|
+
for v in pr:
|
|
2982
|
+
if not callable(v[1]):
|
|
2983
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2984
|
+
return sv + ')'
|
|
2902
2985
|
@property
|
|
2903
|
-
def
|
|
2904
|
-
return
|
|
2905
|
-
@
|
|
2906
|
-
def
|
|
2986
|
+
def JID(self):
|
|
2987
|
+
return _whatsapp.whatsapp_Group_JID_Get(self.handle)
|
|
2988
|
+
@JID.setter
|
|
2989
|
+
def JID(self, value):
|
|
2907
2990
|
if isinstance(value, go.GoClass):
|
|
2908
|
-
_whatsapp.
|
|
2991
|
+
_whatsapp.whatsapp_Group_JID_Set(self.handle, value.handle)
|
|
2909
2992
|
else:
|
|
2910
|
-
|
|
2993
|
+
_whatsapp.whatsapp_Group_JID_Set(self.handle, value)
|
|
2911
2994
|
@property
|
|
2912
|
-
def
|
|
2913
|
-
return
|
|
2914
|
-
@
|
|
2915
|
-
def
|
|
2995
|
+
def Name(self):
|
|
2996
|
+
return _whatsapp.whatsapp_Group_Name_Get(self.handle)
|
|
2997
|
+
@Name.setter
|
|
2998
|
+
def Name(self, value):
|
|
2916
2999
|
if isinstance(value, go.GoClass):
|
|
2917
|
-
_whatsapp.
|
|
3000
|
+
_whatsapp.whatsapp_Group_Name_Set(self.handle, value.handle)
|
|
2918
3001
|
else:
|
|
2919
|
-
|
|
3002
|
+
_whatsapp.whatsapp_Group_Name_Set(self.handle, value)
|
|
2920
3003
|
@property
|
|
2921
|
-
def
|
|
2922
|
-
return
|
|
2923
|
-
@
|
|
2924
|
-
def
|
|
3004
|
+
def Subject(self):
|
|
3005
|
+
return GroupSubject(handle=_whatsapp.whatsapp_Group_Subject_Get(self.handle))
|
|
3006
|
+
@Subject.setter
|
|
3007
|
+
def Subject(self, value):
|
|
2925
3008
|
if isinstance(value, go.GoClass):
|
|
2926
|
-
_whatsapp.
|
|
3009
|
+
_whatsapp.whatsapp_Group_Subject_Set(self.handle, value.handle)
|
|
2927
3010
|
else:
|
|
2928
3011
|
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2929
3012
|
@property
|
|
2930
|
-
def
|
|
2931
|
-
return
|
|
2932
|
-
@
|
|
2933
|
-
def
|
|
3013
|
+
def Nickname(self):
|
|
3014
|
+
return _whatsapp.whatsapp_Group_Nickname_Get(self.handle)
|
|
3015
|
+
@Nickname.setter
|
|
3016
|
+
def Nickname(self, value):
|
|
2934
3017
|
if isinstance(value, go.GoClass):
|
|
2935
|
-
_whatsapp.
|
|
3018
|
+
_whatsapp.whatsapp_Group_Nickname_Set(self.handle, value.handle)
|
|
2936
3019
|
else:
|
|
2937
|
-
|
|
3020
|
+
_whatsapp.whatsapp_Group_Nickname_Set(self.handle, value)
|
|
2938
3021
|
@property
|
|
2939
|
-
def
|
|
2940
|
-
return
|
|
2941
|
-
@
|
|
2942
|
-
def
|
|
3022
|
+
def Participants(self):
|
|
3023
|
+
return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Group_Participants_Get(self.handle))
|
|
3024
|
+
@Participants.setter
|
|
3025
|
+
def Participants(self, value):
|
|
2943
3026
|
if isinstance(value, go.GoClass):
|
|
2944
|
-
_whatsapp.
|
|
3027
|
+
_whatsapp.whatsapp_Group_Participants_Set(self.handle, value.handle)
|
|
2945
3028
|
else:
|
|
2946
3029
|
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2947
3030
|
@property
|
|
2948
|
-
def
|
|
2949
|
-
return
|
|
2950
|
-
@
|
|
2951
|
-
def
|
|
3031
|
+
def InviteCode(self):
|
|
3032
|
+
return _whatsapp.whatsapp_Group_InviteCode_Get(self.handle)
|
|
3033
|
+
@InviteCode.setter
|
|
3034
|
+
def InviteCode(self, value):
|
|
2952
3035
|
if isinstance(value, go.GoClass):
|
|
2953
|
-
_whatsapp.
|
|
3036
|
+
_whatsapp.whatsapp_Group_InviteCode_Set(self.handle, value.handle)
|
|
2954
3037
|
else:
|
|
2955
|
-
|
|
3038
|
+
_whatsapp.whatsapp_Group_InviteCode_Set(self.handle, value)
|
|
2956
3039
|
|
|
2957
|
-
# Python type for struct whatsapp.
|
|
2958
|
-
class
|
|
2959
|
-
"""A
|
|
3040
|
+
# Python type for struct whatsapp.GroupParticipant
|
|
3041
|
+
class GroupParticipant(go.GoClass):
|
|
3042
|
+
"""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"""
|
|
2960
3043
|
def __init__(self, *args, **kwargs):
|
|
2961
3044
|
"""
|
|
2962
3045
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2970,17 +3053,29 @@ class PollOption(go.GoClass):
|
|
|
2970
3053
|
self.handle = args[0].handle
|
|
2971
3054
|
_whatsapp.IncRef(self.handle)
|
|
2972
3055
|
else:
|
|
2973
|
-
self.handle = _whatsapp.
|
|
3056
|
+
self.handle = _whatsapp.whatsapp_GroupParticipant_CTor()
|
|
2974
3057
|
_whatsapp.IncRef(self.handle)
|
|
2975
3058
|
if 0 < len(args):
|
|
2976
|
-
self.
|
|
2977
|
-
if "
|
|
2978
|
-
self.
|
|
3059
|
+
self.JID = args[0]
|
|
3060
|
+
if "JID" in kwargs:
|
|
3061
|
+
self.JID = kwargs["JID"]
|
|
3062
|
+
if 1 < len(args):
|
|
3063
|
+
self.Nickname = args[1]
|
|
3064
|
+
if "Nickname" in kwargs:
|
|
3065
|
+
self.Nickname = kwargs["Nickname"]
|
|
3066
|
+
if 2 < len(args):
|
|
3067
|
+
self.Affiliation = args[2]
|
|
3068
|
+
if "Affiliation" in kwargs:
|
|
3069
|
+
self.Affiliation = kwargs["Affiliation"]
|
|
3070
|
+
if 3 < len(args):
|
|
3071
|
+
self.Action = args[3]
|
|
3072
|
+
if "Action" in kwargs:
|
|
3073
|
+
self.Action = kwargs["Action"]
|
|
2979
3074
|
def __del__(self):
|
|
2980
3075
|
_whatsapp.DecRef(self.handle)
|
|
2981
3076
|
def __str__(self):
|
|
2982
3077
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2983
|
-
sv = 'whatsapp.
|
|
3078
|
+
sv = 'whatsapp.GroupParticipant{'
|
|
2984
3079
|
first = True
|
|
2985
3080
|
for v in pr:
|
|
2986
3081
|
if callable(v[1]):
|
|
@@ -2993,20 +3088,47 @@ class PollOption(go.GoClass):
|
|
|
2993
3088
|
return sv + '}'
|
|
2994
3089
|
def __repr__(self):
|
|
2995
3090
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2996
|
-
sv = 'whatsapp.
|
|
3091
|
+
sv = 'whatsapp.GroupParticipant ( '
|
|
2997
3092
|
for v in pr:
|
|
2998
3093
|
if not callable(v[1]):
|
|
2999
3094
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
3000
3095
|
return sv + ')'
|
|
3001
3096
|
@property
|
|
3002
|
-
def
|
|
3003
|
-
return _whatsapp.
|
|
3004
|
-
@
|
|
3005
|
-
def
|
|
3097
|
+
def JID(self):
|
|
3098
|
+
return _whatsapp.whatsapp_GroupParticipant_JID_Get(self.handle)
|
|
3099
|
+
@JID.setter
|
|
3100
|
+
def JID(self, value):
|
|
3006
3101
|
if isinstance(value, go.GoClass):
|
|
3007
|
-
_whatsapp.
|
|
3102
|
+
_whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value.handle)
|
|
3008
3103
|
else:
|
|
3009
|
-
_whatsapp.
|
|
3104
|
+
_whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value)
|
|
3105
|
+
@property
|
|
3106
|
+
def Nickname(self):
|
|
3107
|
+
return _whatsapp.whatsapp_GroupParticipant_Nickname_Get(self.handle)
|
|
3108
|
+
@Nickname.setter
|
|
3109
|
+
def Nickname(self, value):
|
|
3110
|
+
if isinstance(value, go.GoClass):
|
|
3111
|
+
_whatsapp.whatsapp_GroupParticipant_Nickname_Set(self.handle, value.handle)
|
|
3112
|
+
else:
|
|
3113
|
+
_whatsapp.whatsapp_GroupParticipant_Nickname_Set(self.handle, value)
|
|
3114
|
+
@property
|
|
3115
|
+
def Affiliation(self):
|
|
3116
|
+
return _whatsapp.whatsapp_GroupParticipant_Affiliation_Get(self.handle)
|
|
3117
|
+
@Affiliation.setter
|
|
3118
|
+
def Affiliation(self, value):
|
|
3119
|
+
if isinstance(value, go.GoClass):
|
|
3120
|
+
_whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value.handle)
|
|
3121
|
+
else:
|
|
3122
|
+
_whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value)
|
|
3123
|
+
@property
|
|
3124
|
+
def Action(self):
|
|
3125
|
+
return _whatsapp.whatsapp_GroupParticipant_Action_Get(self.handle)
|
|
3126
|
+
@Action.setter
|
|
3127
|
+
def Action(self, value):
|
|
3128
|
+
if isinstance(value, go.GoClass):
|
|
3129
|
+
_whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value.handle)
|
|
3130
|
+
else:
|
|
3131
|
+
_whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value)
|
|
3010
3132
|
|
|
3011
3133
|
# Python type for struct whatsapp.Avatar
|
|
3012
3134
|
class Avatar(go.GoClass):
|
|
@@ -3075,9 +3197,9 @@ class Avatar(go.GoClass):
|
|
|
3075
3197
|
else:
|
|
3076
3198
|
_whatsapp.whatsapp_Avatar_URL_Set(self.handle, value)
|
|
3077
3199
|
|
|
3078
|
-
# Python type for struct whatsapp.
|
|
3079
|
-
class
|
|
3080
|
-
"""
|
|
3200
|
+
# Python type for struct whatsapp.Contact
|
|
3201
|
+
class Contact(go.GoClass):
|
|
3202
|
+
"""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"""
|
|
3081
3203
|
def __init__(self, *args, **kwargs):
|
|
3082
3204
|
"""
|
|
3083
3205
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -3091,21 +3213,21 @@ class Connect(go.GoClass):
|
|
|
3091
3213
|
self.handle = args[0].handle
|
|
3092
3214
|
_whatsapp.IncRef(self.handle)
|
|
3093
3215
|
else:
|
|
3094
|
-
self.handle = _whatsapp.
|
|
3216
|
+
self.handle = _whatsapp.whatsapp_Contact_CTor()
|
|
3095
3217
|
_whatsapp.IncRef(self.handle)
|
|
3096
3218
|
if 0 < len(args):
|
|
3097
3219
|
self.JID = args[0]
|
|
3098
3220
|
if "JID" in kwargs:
|
|
3099
3221
|
self.JID = kwargs["JID"]
|
|
3100
3222
|
if 1 < len(args):
|
|
3101
|
-
self.
|
|
3102
|
-
if "
|
|
3103
|
-
self.
|
|
3223
|
+
self.Name = args[1]
|
|
3224
|
+
if "Name" in kwargs:
|
|
3225
|
+
self.Name = kwargs["Name"]
|
|
3104
3226
|
def __del__(self):
|
|
3105
3227
|
_whatsapp.DecRef(self.handle)
|
|
3106
3228
|
def __str__(self):
|
|
3107
3229
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3108
|
-
sv = 'whatsapp.
|
|
3230
|
+
sv = 'whatsapp.Contact{'
|
|
3109
3231
|
first = True
|
|
3110
3232
|
for v in pr:
|
|
3111
3233
|
if callable(v[1]):
|
|
@@ -3118,33 +3240,33 @@ class Connect(go.GoClass):
|
|
|
3118
3240
|
return sv + '}'
|
|
3119
3241
|
def __repr__(self):
|
|
3120
3242
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3121
|
-
sv = 'whatsapp.
|
|
3243
|
+
sv = 'whatsapp.Contact ( '
|
|
3122
3244
|
for v in pr:
|
|
3123
3245
|
if not callable(v[1]):
|
|
3124
3246
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
3125
3247
|
return sv + ')'
|
|
3126
3248
|
@property
|
|
3127
3249
|
def JID(self):
|
|
3128
|
-
return _whatsapp.
|
|
3250
|
+
return _whatsapp.whatsapp_Contact_JID_Get(self.handle)
|
|
3129
3251
|
@JID.setter
|
|
3130
3252
|
def JID(self, value):
|
|
3131
3253
|
if isinstance(value, go.GoClass):
|
|
3132
|
-
_whatsapp.
|
|
3254
|
+
_whatsapp.whatsapp_Contact_JID_Set(self.handle, value.handle)
|
|
3133
3255
|
else:
|
|
3134
|
-
_whatsapp.
|
|
3256
|
+
_whatsapp.whatsapp_Contact_JID_Set(self.handle, value)
|
|
3135
3257
|
@property
|
|
3136
|
-
def
|
|
3137
|
-
return _whatsapp.
|
|
3138
|
-
@
|
|
3139
|
-
def
|
|
3258
|
+
def Name(self):
|
|
3259
|
+
return _whatsapp.whatsapp_Contact_Name_Get(self.handle)
|
|
3260
|
+
@Name.setter
|
|
3261
|
+
def Name(self, value):
|
|
3140
3262
|
if isinstance(value, go.GoClass):
|
|
3141
|
-
_whatsapp.
|
|
3263
|
+
_whatsapp.whatsapp_Contact_Name_Set(self.handle, value.handle)
|
|
3142
3264
|
else:
|
|
3143
|
-
_whatsapp.
|
|
3265
|
+
_whatsapp.whatsapp_Contact_Name_Set(self.handle, value)
|
|
3144
3266
|
|
|
3145
|
-
# Python type for struct whatsapp.
|
|
3146
|
-
class
|
|
3147
|
-
"""A
|
|
3267
|
+
# Python type for struct whatsapp.LinkedDevice
|
|
3268
|
+
class LinkedDevice(go.GoClass):
|
|
3269
|
+
"""A LinkedDevice represents a unique pairing session between the gateway and WhatsApp. It is not\nunique to the underlying \"main\" device (or phone number), as multiple linked devices may be paired\nwith any main device.\n"""
|
|
3148
3270
|
def __init__(self, *args, **kwargs):
|
|
3149
3271
|
"""
|
|
3150
3272
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -3158,21 +3280,17 @@ class Contact(go.GoClass):
|
|
|
3158
3280
|
self.handle = args[0].handle
|
|
3159
3281
|
_whatsapp.IncRef(self.handle)
|
|
3160
3282
|
else:
|
|
3161
|
-
self.handle = _whatsapp.
|
|
3283
|
+
self.handle = _whatsapp.whatsapp_LinkedDevice_CTor()
|
|
3162
3284
|
_whatsapp.IncRef(self.handle)
|
|
3163
3285
|
if 0 < len(args):
|
|
3164
|
-
self.
|
|
3165
|
-
if "
|
|
3166
|
-
self.
|
|
3167
|
-
if 1 < len(args):
|
|
3168
|
-
self.Name = args[1]
|
|
3169
|
-
if "Name" in kwargs:
|
|
3170
|
-
self.Name = kwargs["Name"]
|
|
3286
|
+
self.ID = args[0]
|
|
3287
|
+
if "ID" in kwargs:
|
|
3288
|
+
self.ID = kwargs["ID"]
|
|
3171
3289
|
def __del__(self):
|
|
3172
3290
|
_whatsapp.DecRef(self.handle)
|
|
3173
3291
|
def __str__(self):
|
|
3174
3292
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3175
|
-
sv = 'whatsapp.
|
|
3293
|
+
sv = 'whatsapp.LinkedDevice{'
|
|
3176
3294
|
first = True
|
|
3177
3295
|
for v in pr:
|
|
3178
3296
|
if callable(v[1]):
|
|
@@ -3185,29 +3303,30 @@ class Contact(go.GoClass):
|
|
|
3185
3303
|
return sv + '}'
|
|
3186
3304
|
def __repr__(self):
|
|
3187
3305
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3188
|
-
sv = 'whatsapp.
|
|
3306
|
+
sv = 'whatsapp.LinkedDevice ( '
|
|
3189
3307
|
for v in pr:
|
|
3190
3308
|
if not callable(v[1]):
|
|
3191
3309
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
3192
3310
|
return sv + ')'
|
|
3193
3311
|
@property
|
|
3194
|
-
def
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
_whatsapp.whatsapp_Contact_JID_Set(self.handle, value)
|
|
3202
|
-
@property
|
|
3203
|
-
def Name(self):
|
|
3204
|
-
return _whatsapp.whatsapp_Contact_Name_Get(self.handle)
|
|
3205
|
-
@Name.setter
|
|
3206
|
-
def Name(self, value):
|
|
3312
|
+
def ID(self):
|
|
3313
|
+
"""ID is an opaque string identifying this LinkedDevice to the Session. Noted that this string
|
|
3314
|
+
is currently equivalent to a password, and needs to be protected accordingly.
|
|
3315
|
+
"""
|
|
3316
|
+
return _whatsapp.whatsapp_LinkedDevice_ID_Get(self.handle)
|
|
3317
|
+
@ID.setter
|
|
3318
|
+
def ID(self, value):
|
|
3207
3319
|
if isinstance(value, go.GoClass):
|
|
3208
|
-
_whatsapp.
|
|
3320
|
+
_whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value.handle)
|
|
3209
3321
|
else:
|
|
3210
|
-
_whatsapp.
|
|
3322
|
+
_whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value)
|
|
3323
|
+
def JID(self):
|
|
3324
|
+
"""JID() object
|
|
3325
|
+
|
|
3326
|
+
JID returns the WhatsApp JID corresponding to the LinkedDevice ID. Empty or invalid device IDs
|
|
3327
|
+
may return invalid JIDs, and this function does not handle errors.
|
|
3328
|
+
"""
|
|
3329
|
+
return go.types_JID(handle=_whatsapp.whatsapp_LinkedDevice_JID(self.handle))
|
|
3211
3330
|
|
|
3212
3331
|
|
|
3213
3332
|
# ---- Slices ---
|
|
@@ -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
|
|