slidge-whatsapp 0.2.5__cp312-cp312-manylinux_2_36_aarch64.whl → 0.2.6__cp312-cp312-manylinux_2_36_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slidge-whatsapp might be problematic. Click here for more details.
- slidge_whatsapp/config.py +3 -0
- slidge_whatsapp/event.go +23 -24
- slidge_whatsapp/gateway.go +13 -9
- slidge_whatsapp/gateway.py +2 -2
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.h +169 -169
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +135 -135
- slidge_whatsapp/generated/whatsapp.c +1455 -1455
- slidge_whatsapp/generated/whatsapp.go +737 -737
- slidge_whatsapp/generated/whatsapp.py +1038 -1038
- slidge_whatsapp/generated/whatsapp_go.h +169 -169
- slidge_whatsapp/go.mod +15 -12
- slidge_whatsapp/go.sum +41 -29
- slidge_whatsapp/media/media.go +16 -10
- slidge_whatsapp/session.go +73 -66
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn.go +4 -4
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_darwin.go +0 -5
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_libinit.go +3 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols.go +40 -20
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/CHANGELOG.md +14 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/ffi.go +2 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/fun.go +10 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_unix.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_windows.go +1 -1
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +2 -7
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/callback.go +2 -1
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +8510 -5090
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +344 -150
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3.go +57 -23
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.c +4 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.go +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/.gitignore +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/LICENSE +202 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/README.md +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid.go +35 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_gccgo.go +26 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.3.c +23 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.3.go +22 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.4.go +35 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.4.s +18 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.5.go +28 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.5.s +44 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_slow.go +24 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_gccgo_go1.8.go +17 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.23.go +38 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.5.go +57 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.6.go +43 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.9.go +37 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/CONTRIBUTING.md +43 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/README.md +31 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/console.go +20 -5
- slidge_whatsapp/vendor/github.com/rs/zerolog/log/log.go +131 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/log.go +1 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/sampler.go +4 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/writer.go +9 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupCipher.go +17 -6
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupSessionBuilder.go +17 -7
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/store/SenderKeyStore.go +4 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/chain/ChainKey.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/identity/IdentityKey.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/logger/DefaultLogger.go +2 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/FingerprintProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/LocalStorageProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/WhisperTextProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/session/Session.go +41 -17
- slidge_whatsapp/vendor/go.mau.fi/libsignal/session/SessionCipher.go +64 -30
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/IdentityKeyStore.go +5 -3
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/MessageKeyStore.go +6 -4
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/PreKeyStore.go +6 -4
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SessionStore.go +8 -6
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SignedPreKeyStore.go +7 -5
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/connlog.go +257 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/database.go +309 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/iter.go +233 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/json.go +47 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/log.go +129 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/massinsert.go +164 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/queryhelper.go +137 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/reflectscan.go +30 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/transaction.go +180 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/upgrades.go +250 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/upgradetable.go +331 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exerrors/dualerror.go +33 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exerrors/must.go +23 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/cors.go +32 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/handleerrors.go +64 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/json.go +41 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/middleware.go +30 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/networkerror.go +37 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +88 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/returnonce.go +25 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/ringbuffer.go +139 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/syncmap.go +94 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/syncset.go +136 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/callermarshal.go +28 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/defaults.go +32 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/generics.go +45 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/writer.go +81 -0
- slidge_whatsapp/vendor/go.mau.fi/util/ptr/ptr.go +43 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +27 -26
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/encode.go +4 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/keys.go +5 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +27 -25
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/broadcast.go +5 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +60 -15
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +25 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download-to-file.go +45 -19
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +52 -28
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +59 -29
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +166 -146
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +2 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaconn.go +5 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaretry.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +270 -111
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +118 -31
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +67 -36
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +7 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair.go +42 -18
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/prekeys.go +9 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/privacysettings.go +10 -11
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.go +39 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.go +354 -175
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.proto +5 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.go +158 -15
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.go +29 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.go +13 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.go +344 -31
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.proto +26 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/{WAWebProtobufsCompanionReg.pb.go → WACompanionReg.pb.go} +170 -84
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/{WAWebProtobufsCompanionReg.proto → WACompanionReg.proto} +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.go +173 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.go +78 -16
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.proto +5 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +6747 -2230
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +294 -43
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +456 -135
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +14 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.go +162 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.go +32 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.go +192 -52
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.proto +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.go +60 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.go +39 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.go +61 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +1051 -382
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +32 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.go +27 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.go +59 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +382 -78
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +555 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +13 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +29 -19
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +244 -73
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +27 -16
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +3 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +85 -43
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/signal.go +75 -88
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/container.go +79 -61
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/lidmap.go +186 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +291 -167
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/00-latest-schema.sql +153 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/03-message-secrets.sql +11 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/04-privacy-tokens.sql +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/05-account-jid-format.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/06-facebook-uuid.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/07-account-lid.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/08-lid-mapping.sql +5 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/09-decryption-buffer.sql +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/upgrades.go +22 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +105 -56
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/botmap.go +210 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/group.go +15 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +7 -8
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/message.go +17 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/update.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/upload.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +45 -29
- slidge_whatsapp/vendor/golang.org/x/exp/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/exp/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/exp/constraints/constraints.go +54 -0
- slidge_whatsapp/vendor/golang.org/x/net/http/httpguts/guts.go +50 -0
- slidge_whatsapp/vendor/golang.org/x/net/http/httpguts/httplex.go +347 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/.gitignore +2 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/ascii.go +53 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/ciphers.go +641 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/client_conn_pool.go +311 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/config.go +122 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_go124.go +61 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_pre_go124.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/databuffer.go +149 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/errors.go +145 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/flow.go +120 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/frame.go +1702 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/gotrack.go +170 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/encode.go +245 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/hpack.go +523 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/huffman.go +226 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/static_table.go +188 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/tables.go +403 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/http2.go +432 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/pipe.go +184 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/server.go +3350 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/timer.go +20 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/transport.go +3287 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/unencrypted.go +32 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/write.go +381 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched.go +251 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_priority.go +451 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_random.go +77 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_roundrobin.go +119 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/go118.go +13 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/idna10.0.0.go +769 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/idna9.0.0.go +717 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/pre_go118.go +11 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/punycode.go +217 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables10.0.0.go +4559 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables11.0.0.go +4653 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables12.0.0.go +4733 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables13.0.0.go +4959 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables15.0.0.go +5144 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables9.0.0.go +4486 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie.go +51 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie12.0.0.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie13.0.0.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trieval.go +119 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/ascii.go +53 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/headermap.go +115 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/request.go +467 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin.go +148 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux.go +16 -26
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +84 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +84 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/security_windows.go +44 -5
- slidge_whatsapp/vendor/golang.org/x/sys/windows/syscall_windows.go +4 -2
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +239 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +9 -0
- slidge_whatsapp/vendor/golang.org/x/text/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/text/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule.go +336 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go +11 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go +14 -0
- slidge_whatsapp/vendor/golang.org/x/text/transform/transform.go +709 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/bidi.go +359 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/bracket.go +335 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/core.go +1071 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/prop.go +206 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables10.0.0.go +1815 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go +1887 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go +1923 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go +1955 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables15.0.0.go +2042 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables9.0.0.go +1781 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/trieval.go +48 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/composition.go +512 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/forminfo.go +279 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/input.go +109 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/iter.go +458 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/normalize.go +610 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/readwriter.go +125 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables10.0.0.go +7657 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go +7693 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go +7710 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go +7760 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables15.0.0.go +7907 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables9.0.0.go +7637 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/transform.go +88 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/trie.go +54 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb +0 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +3 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +16 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/{strings_unsafe_go121.go → strings_unsafe.go} +0 -2
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +1 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/merge.go +6 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +2 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/{value_unsafe_go121.go → value_unsafe.go} +0 -2
- slidge_whatsapp/vendor/modules.txt +38 -13
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.6.dist-info}/METADATA +1 -1
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.6.dist-info}/RECORD +293 -180
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.6.dist-info}/WHEEL +1 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/CNAME +0 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/_config.yml +0 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.raw +0 -23
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.raw +0 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrade.go +0 -296
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go +0 -94
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go +0 -98
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.6.dist-info}/LICENSE +0 -0
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.6.dist-info}/entry_points.txt +0 -0
|
@@ -1013,9 +1013,9 @@ DefaultUserServer = "s.whatsapp.net"
|
|
|
1013
1013
|
|
|
1014
1014
|
# ---- Structs ---
|
|
1015
1015
|
|
|
1016
|
-
# Python type for struct whatsapp.
|
|
1017
|
-
class
|
|
1018
|
-
"""
|
|
1016
|
+
# Python type for struct whatsapp.Presence
|
|
1017
|
+
class Presence(go.GoClass):
|
|
1018
|
+
"""Precence represents a contact's general state of activity, and is periodically updated as\ncontacts start or stop paying attention to their client of choice.\n"""
|
|
1019
1019
|
def __init__(self, *args, **kwargs):
|
|
1020
1020
|
"""
|
|
1021
1021
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1029,25 +1029,25 @@ class GroupSubject(go.GoClass):
|
|
|
1029
1029
|
self.handle = args[0].handle
|
|
1030
1030
|
_whatsapp.IncRef(self.handle)
|
|
1031
1031
|
else:
|
|
1032
|
-
self.handle = _whatsapp.
|
|
1032
|
+
self.handle = _whatsapp.whatsapp_Presence_CTor()
|
|
1033
1033
|
_whatsapp.IncRef(self.handle)
|
|
1034
1034
|
if 0 < len(args):
|
|
1035
|
-
self.
|
|
1036
|
-
if "
|
|
1037
|
-
self.
|
|
1035
|
+
self.JID = args[0]
|
|
1036
|
+
if "JID" in kwargs:
|
|
1037
|
+
self.JID = kwargs["JID"]
|
|
1038
1038
|
if 1 < len(args):
|
|
1039
|
-
self.
|
|
1040
|
-
if "
|
|
1041
|
-
self.
|
|
1039
|
+
self.Kind = args[1]
|
|
1040
|
+
if "Kind" in kwargs:
|
|
1041
|
+
self.Kind = kwargs["Kind"]
|
|
1042
1042
|
if 2 < len(args):
|
|
1043
|
-
self.
|
|
1044
|
-
if "
|
|
1045
|
-
self.
|
|
1043
|
+
self.LastSeen = args[2]
|
|
1044
|
+
if "LastSeen" in kwargs:
|
|
1045
|
+
self.LastSeen = kwargs["LastSeen"]
|
|
1046
1046
|
def __del__(self):
|
|
1047
1047
|
_whatsapp.DecRef(self.handle)
|
|
1048
1048
|
def __str__(self):
|
|
1049
1049
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1050
|
-
sv = 'whatsapp.
|
|
1050
|
+
sv = 'whatsapp.Presence{'
|
|
1051
1051
|
first = True
|
|
1052
1052
|
for v in pr:
|
|
1053
1053
|
if callable(v[1]):
|
|
@@ -1060,42 +1060,42 @@ class GroupSubject(go.GoClass):
|
|
|
1060
1060
|
return sv + '}'
|
|
1061
1061
|
def __repr__(self):
|
|
1062
1062
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1063
|
-
sv = 'whatsapp.
|
|
1063
|
+
sv = 'whatsapp.Presence ( '
|
|
1064
1064
|
for v in pr:
|
|
1065
1065
|
if not callable(v[1]):
|
|
1066
1066
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1067
1067
|
return sv + ')'
|
|
1068
1068
|
@property
|
|
1069
|
-
def
|
|
1070
|
-
return _whatsapp.
|
|
1071
|
-
@
|
|
1072
|
-
def
|
|
1069
|
+
def JID(self):
|
|
1070
|
+
return _whatsapp.whatsapp_Presence_JID_Get(self.handle)
|
|
1071
|
+
@JID.setter
|
|
1072
|
+
def JID(self, value):
|
|
1073
1073
|
if isinstance(value, go.GoClass):
|
|
1074
|
-
_whatsapp.
|
|
1074
|
+
_whatsapp.whatsapp_Presence_JID_Set(self.handle, value.handle)
|
|
1075
1075
|
else:
|
|
1076
|
-
_whatsapp.
|
|
1076
|
+
_whatsapp.whatsapp_Presence_JID_Set(self.handle, value)
|
|
1077
1077
|
@property
|
|
1078
|
-
def
|
|
1079
|
-
return _whatsapp.
|
|
1080
|
-
@
|
|
1081
|
-
def
|
|
1078
|
+
def Kind(self):
|
|
1079
|
+
return _whatsapp.whatsapp_Presence_Kind_Get(self.handle)
|
|
1080
|
+
@Kind.setter
|
|
1081
|
+
def Kind(self, value):
|
|
1082
1082
|
if isinstance(value, go.GoClass):
|
|
1083
|
-
_whatsapp.
|
|
1083
|
+
_whatsapp.whatsapp_Presence_Kind_Set(self.handle, value.handle)
|
|
1084
1084
|
else:
|
|
1085
|
-
_whatsapp.
|
|
1085
|
+
_whatsapp.whatsapp_Presence_Kind_Set(self.handle, value)
|
|
1086
1086
|
@property
|
|
1087
|
-
def
|
|
1088
|
-
return _whatsapp.
|
|
1089
|
-
@
|
|
1090
|
-
def
|
|
1087
|
+
def LastSeen(self):
|
|
1088
|
+
return _whatsapp.whatsapp_Presence_LastSeen_Get(self.handle)
|
|
1089
|
+
@LastSeen.setter
|
|
1090
|
+
def LastSeen(self, value):
|
|
1091
1091
|
if isinstance(value, go.GoClass):
|
|
1092
|
-
_whatsapp.
|
|
1092
|
+
_whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value.handle)
|
|
1093
1093
|
else:
|
|
1094
|
-
_whatsapp.
|
|
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.ChatState
|
|
1097
|
+
class ChatState(go.GoClass):
|
|
1098
|
+
"""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"""
|
|
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,89 +1109,25 @@ class Message(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_ChatState_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 "ID" in kwargs:
|
|
1121
|
-
self.ID = kwargs["ID"]
|
|
1122
|
-
if 2 < len(args):
|
|
1123
|
-
self.JID = args[2]
|
|
1119
|
+
self.JID = args[1]
|
|
1124
1120
|
if "JID" in kwargs:
|
|
1125
1121
|
self.JID = kwargs["JID"]
|
|
1126
|
-
if
|
|
1127
|
-
self.GroupJID = args[
|
|
1122
|
+
if 2 < len(args):
|
|
1123
|
+
self.GroupJID = args[2]
|
|
1128
1124
|
if "GroupJID" in kwargs:
|
|
1129
1125
|
self.GroupJID = kwargs["GroupJID"]
|
|
1130
|
-
if 4 < len(args):
|
|
1131
|
-
self.OriginJID = args[4]
|
|
1132
|
-
if "OriginJID" in kwargs:
|
|
1133
|
-
self.OriginJID = kwargs["OriginJID"]
|
|
1134
|
-
if 5 < len(args):
|
|
1135
|
-
self.Body = args[5]
|
|
1136
|
-
if "Body" in kwargs:
|
|
1137
|
-
self.Body = kwargs["Body"]
|
|
1138
|
-
if 6 < len(args):
|
|
1139
|
-
self.Timestamp = args[6]
|
|
1140
|
-
if "Timestamp" in kwargs:
|
|
1141
|
-
self.Timestamp = kwargs["Timestamp"]
|
|
1142
|
-
if 7 < len(args):
|
|
1143
|
-
self.IsCarbon = args[7]
|
|
1144
|
-
if "IsCarbon" in kwargs:
|
|
1145
|
-
self.IsCarbon = kwargs["IsCarbon"]
|
|
1146
|
-
if 8 < len(args):
|
|
1147
|
-
self.IsForwarded = args[8]
|
|
1148
|
-
if "IsForwarded" in kwargs:
|
|
1149
|
-
self.IsForwarded = kwargs["IsForwarded"]
|
|
1150
|
-
if 9 < len(args):
|
|
1151
|
-
self.ReplyID = args[9]
|
|
1152
|
-
if "ReplyID" in kwargs:
|
|
1153
|
-
self.ReplyID = kwargs["ReplyID"]
|
|
1154
|
-
if 10 < len(args):
|
|
1155
|
-
self.ReplyBody = args[10]
|
|
1156
|
-
if "ReplyBody" in kwargs:
|
|
1157
|
-
self.ReplyBody = kwargs["ReplyBody"]
|
|
1158
|
-
if 11 < len(args):
|
|
1159
|
-
self.Attachments = args[11]
|
|
1160
|
-
if "Attachments" in kwargs:
|
|
1161
|
-
self.Attachments = kwargs["Attachments"]
|
|
1162
|
-
if 12 < len(args):
|
|
1163
|
-
self.Preview = args[12]
|
|
1164
|
-
if "Preview" in kwargs:
|
|
1165
|
-
self.Preview = kwargs["Preview"]
|
|
1166
|
-
if 13 < len(args):
|
|
1167
|
-
self.Location = args[13]
|
|
1168
|
-
if "Location" in kwargs:
|
|
1169
|
-
self.Location = kwargs["Location"]
|
|
1170
|
-
if 14 < len(args):
|
|
1171
|
-
self.Poll = args[14]
|
|
1172
|
-
if "Poll" in kwargs:
|
|
1173
|
-
self.Poll = kwargs["Poll"]
|
|
1174
|
-
if 15 < len(args):
|
|
1175
|
-
self.Album = args[15]
|
|
1176
|
-
if "Album" in kwargs:
|
|
1177
|
-
self.Album = kwargs["Album"]
|
|
1178
|
-
if 16 < len(args):
|
|
1179
|
-
self.MentionJIDs = args[16]
|
|
1180
|
-
if "MentionJIDs" in kwargs:
|
|
1181
|
-
self.MentionJIDs = kwargs["MentionJIDs"]
|
|
1182
|
-
if 17 < len(args):
|
|
1183
|
-
self.Receipts = args[17]
|
|
1184
|
-
if "Receipts" in kwargs:
|
|
1185
|
-
self.Receipts = kwargs["Receipts"]
|
|
1186
|
-
if 18 < len(args):
|
|
1187
|
-
self.Reactions = args[18]
|
|
1188
|
-
if "Reactions" in kwargs:
|
|
1189
|
-
self.Reactions = kwargs["Reactions"]
|
|
1190
1126
|
def __del__(self):
|
|
1191
1127
|
_whatsapp.DecRef(self.handle)
|
|
1192
1128
|
def __str__(self):
|
|
1193
1129
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1194
|
-
sv = 'whatsapp.
|
|
1130
|
+
sv = 'whatsapp.ChatState{'
|
|
1195
1131
|
first = True
|
|
1196
1132
|
for v in pr:
|
|
1197
1133
|
if callable(v[1]):
|
|
@@ -1204,319 +1140,108 @@ class Message(go.GoClass):
|
|
|
1204
1140
|
return sv + '}'
|
|
1205
1141
|
def __repr__(self):
|
|
1206
1142
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1207
|
-
sv = 'whatsapp.
|
|
1143
|
+
sv = 'whatsapp.ChatState ( '
|
|
1208
1144
|
for v in pr:
|
|
1209
1145
|
if not callable(v[1]):
|
|
1210
1146
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1211
1147
|
return sv + ')'
|
|
1212
1148
|
@property
|
|
1213
1149
|
def Kind(self):
|
|
1214
|
-
return _whatsapp.
|
|
1150
|
+
return _whatsapp.whatsapp_ChatState_Kind_Get(self.handle)
|
|
1215
1151
|
@Kind.setter
|
|
1216
1152
|
def Kind(self, value):
|
|
1217
1153
|
if isinstance(value, go.GoClass):
|
|
1218
|
-
_whatsapp.
|
|
1219
|
-
else:
|
|
1220
|
-
_whatsapp.whatsapp_Message_Kind_Set(self.handle, value)
|
|
1221
|
-
@property
|
|
1222
|
-
def ID(self):
|
|
1223
|
-
return _whatsapp.whatsapp_Message_ID_Get(self.handle)
|
|
1224
|
-
@ID.setter
|
|
1225
|
-
def ID(self, value):
|
|
1226
|
-
if isinstance(value, go.GoClass):
|
|
1227
|
-
_whatsapp.whatsapp_Message_ID_Set(self.handle, value.handle)
|
|
1154
|
+
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value.handle)
|
|
1228
1155
|
else:
|
|
1229
|
-
_whatsapp.
|
|
1156
|
+
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value)
|
|
1230
1157
|
@property
|
|
1231
1158
|
def JID(self):
|
|
1232
|
-
return _whatsapp.
|
|
1159
|
+
return _whatsapp.whatsapp_ChatState_JID_Get(self.handle)
|
|
1233
1160
|
@JID.setter
|
|
1234
1161
|
def JID(self, value):
|
|
1235
1162
|
if isinstance(value, go.GoClass):
|
|
1236
|
-
_whatsapp.
|
|
1163
|
+
_whatsapp.whatsapp_ChatState_JID_Set(self.handle, value.handle)
|
|
1237
1164
|
else:
|
|
1238
|
-
_whatsapp.
|
|
1165
|
+
_whatsapp.whatsapp_ChatState_JID_Set(self.handle, value)
|
|
1239
1166
|
@property
|
|
1240
1167
|
def GroupJID(self):
|
|
1241
|
-
return _whatsapp.
|
|
1168
|
+
return _whatsapp.whatsapp_ChatState_GroupJID_Get(self.handle)
|
|
1242
1169
|
@GroupJID.setter
|
|
1243
1170
|
def GroupJID(self, value):
|
|
1244
1171
|
if isinstance(value, go.GoClass):
|
|
1245
|
-
_whatsapp.
|
|
1172
|
+
_whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value.handle)
|
|
1246
1173
|
else:
|
|
1247
|
-
_whatsapp.
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
def
|
|
1253
|
-
|
|
1254
|
-
|
|
1174
|
+
_whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value)
|
|
1175
|
+
|
|
1176
|
+
# Python type for struct whatsapp.Group
|
|
1177
|
+
class Group(go.GoClass):
|
|
1178
|
+
"""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"""
|
|
1179
|
+
def __init__(self, *args, **kwargs):
|
|
1180
|
+
"""
|
|
1181
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1182
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
1183
|
+
in which case a new Go object is constructed first
|
|
1184
|
+
"""
|
|
1185
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1186
|
+
self.handle = kwargs['handle']
|
|
1187
|
+
_whatsapp.IncRef(self.handle)
|
|
1188
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1189
|
+
self.handle = args[0].handle
|
|
1190
|
+
_whatsapp.IncRef(self.handle)
|
|
1255
1191
|
else:
|
|
1256
|
-
|
|
1192
|
+
self.handle = _whatsapp.whatsapp_Group_CTor()
|
|
1193
|
+
_whatsapp.IncRef(self.handle)
|
|
1194
|
+
if 0 < len(args):
|
|
1195
|
+
self.JID = args[0]
|
|
1196
|
+
if "JID" in kwargs:
|
|
1197
|
+
self.JID = kwargs["JID"]
|
|
1198
|
+
if 1 < len(args):
|
|
1199
|
+
self.Name = args[1]
|
|
1200
|
+
if "Name" in kwargs:
|
|
1201
|
+
self.Name = kwargs["Name"]
|
|
1202
|
+
if 2 < len(args):
|
|
1203
|
+
self.Subject = args[2]
|
|
1204
|
+
if "Subject" in kwargs:
|
|
1205
|
+
self.Subject = kwargs["Subject"]
|
|
1206
|
+
if 3 < len(args):
|
|
1207
|
+
self.Nickname = args[3]
|
|
1208
|
+
if "Nickname" in kwargs:
|
|
1209
|
+
self.Nickname = kwargs["Nickname"]
|
|
1210
|
+
if 4 < len(args):
|
|
1211
|
+
self.Participants = args[4]
|
|
1212
|
+
if "Participants" in kwargs:
|
|
1213
|
+
self.Participants = kwargs["Participants"]
|
|
1214
|
+
def __del__(self):
|
|
1215
|
+
_whatsapp.DecRef(self.handle)
|
|
1216
|
+
def __str__(self):
|
|
1217
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1218
|
+
sv = 'whatsapp.Group{'
|
|
1219
|
+
first = True
|
|
1220
|
+
for v in pr:
|
|
1221
|
+
if callable(v[1]):
|
|
1222
|
+
continue
|
|
1223
|
+
if first:
|
|
1224
|
+
first = False
|
|
1225
|
+
else:
|
|
1226
|
+
sv += ', '
|
|
1227
|
+
sv += v[0] + '=' + str(v[1])
|
|
1228
|
+
return sv + '}'
|
|
1229
|
+
def __repr__(self):
|
|
1230
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1231
|
+
sv = 'whatsapp.Group ( '
|
|
1232
|
+
for v in pr:
|
|
1233
|
+
if not callable(v[1]):
|
|
1234
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1235
|
+
return sv + ')'
|
|
1257
1236
|
@property
|
|
1258
|
-
def
|
|
1259
|
-
return _whatsapp.
|
|
1260
|
-
@
|
|
1261
|
-
def
|
|
1237
|
+
def JID(self):
|
|
1238
|
+
return _whatsapp.whatsapp_Group_JID_Get(self.handle)
|
|
1239
|
+
@JID.setter
|
|
1240
|
+
def JID(self, value):
|
|
1262
1241
|
if isinstance(value, go.GoClass):
|
|
1263
|
-
_whatsapp.
|
|
1242
|
+
_whatsapp.whatsapp_Group_JID_Set(self.handle, value.handle)
|
|
1264
1243
|
else:
|
|
1265
|
-
_whatsapp.
|
|
1266
|
-
@property
|
|
1267
|
-
def Timestamp(self):
|
|
1268
|
-
return _whatsapp.whatsapp_Message_Timestamp_Get(self.handle)
|
|
1269
|
-
@Timestamp.setter
|
|
1270
|
-
def Timestamp(self, value):
|
|
1271
|
-
if isinstance(value, go.GoClass):
|
|
1272
|
-
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value.handle)
|
|
1273
|
-
else:
|
|
1274
|
-
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value)
|
|
1275
|
-
@property
|
|
1276
|
-
def IsCarbon(self):
|
|
1277
|
-
return _whatsapp.whatsapp_Message_IsCarbon_Get(self.handle)
|
|
1278
|
-
@IsCarbon.setter
|
|
1279
|
-
def IsCarbon(self, value):
|
|
1280
|
-
if isinstance(value, go.GoClass):
|
|
1281
|
-
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value.handle)
|
|
1282
|
-
else:
|
|
1283
|
-
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value)
|
|
1284
|
-
@property
|
|
1285
|
-
def IsForwarded(self):
|
|
1286
|
-
return _whatsapp.whatsapp_Message_IsForwarded_Get(self.handle)
|
|
1287
|
-
@IsForwarded.setter
|
|
1288
|
-
def IsForwarded(self, value):
|
|
1289
|
-
if isinstance(value, go.GoClass):
|
|
1290
|
-
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value.handle)
|
|
1291
|
-
else:
|
|
1292
|
-
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value)
|
|
1293
|
-
@property
|
|
1294
|
-
def ReplyID(self):
|
|
1295
|
-
return _whatsapp.whatsapp_Message_ReplyID_Get(self.handle)
|
|
1296
|
-
@ReplyID.setter
|
|
1297
|
-
def ReplyID(self, value):
|
|
1298
|
-
if isinstance(value, go.GoClass):
|
|
1299
|
-
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value.handle)
|
|
1300
|
-
else:
|
|
1301
|
-
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value)
|
|
1302
|
-
@property
|
|
1303
|
-
def ReplyBody(self):
|
|
1304
|
-
return _whatsapp.whatsapp_Message_ReplyBody_Get(self.handle)
|
|
1305
|
-
@ReplyBody.setter
|
|
1306
|
-
def ReplyBody(self, value):
|
|
1307
|
-
if isinstance(value, go.GoClass):
|
|
1308
|
-
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value.handle)
|
|
1309
|
-
else:
|
|
1310
|
-
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value)
|
|
1311
|
-
@property
|
|
1312
|
-
def Attachments(self):
|
|
1313
|
-
return Slice_whatsapp_Attachment(handle=_whatsapp.whatsapp_Message_Attachments_Get(self.handle))
|
|
1314
|
-
@Attachments.setter
|
|
1315
|
-
def Attachments(self, value):
|
|
1316
|
-
if isinstance(value, go.GoClass):
|
|
1317
|
-
_whatsapp.whatsapp_Message_Attachments_Set(self.handle, value.handle)
|
|
1318
|
-
else:
|
|
1319
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1320
|
-
@property
|
|
1321
|
-
def Preview(self):
|
|
1322
|
-
return Preview(handle=_whatsapp.whatsapp_Message_Preview_Get(self.handle))
|
|
1323
|
-
@Preview.setter
|
|
1324
|
-
def Preview(self, value):
|
|
1325
|
-
if isinstance(value, go.GoClass):
|
|
1326
|
-
_whatsapp.whatsapp_Message_Preview_Set(self.handle, value.handle)
|
|
1327
|
-
else:
|
|
1328
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1329
|
-
@property
|
|
1330
|
-
def Location(self):
|
|
1331
|
-
return Location(handle=_whatsapp.whatsapp_Message_Location_Get(self.handle))
|
|
1332
|
-
@Location.setter
|
|
1333
|
-
def Location(self, value):
|
|
1334
|
-
if isinstance(value, go.GoClass):
|
|
1335
|
-
_whatsapp.whatsapp_Message_Location_Set(self.handle, value.handle)
|
|
1336
|
-
else:
|
|
1337
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1338
|
-
@property
|
|
1339
|
-
def Poll(self):
|
|
1340
|
-
return Poll(handle=_whatsapp.whatsapp_Message_Poll_Get(self.handle))
|
|
1341
|
-
@Poll.setter
|
|
1342
|
-
def Poll(self, value):
|
|
1343
|
-
if isinstance(value, go.GoClass):
|
|
1344
|
-
_whatsapp.whatsapp_Message_Poll_Set(self.handle, value.handle)
|
|
1345
|
-
else:
|
|
1346
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1347
|
-
@property
|
|
1348
|
-
def Album(self):
|
|
1349
|
-
return Album(handle=_whatsapp.whatsapp_Message_Album_Get(self.handle))
|
|
1350
|
-
@Album.setter
|
|
1351
|
-
def Album(self, value):
|
|
1352
|
-
if isinstance(value, go.GoClass):
|
|
1353
|
-
_whatsapp.whatsapp_Message_Album_Set(self.handle, value.handle)
|
|
1354
|
-
else:
|
|
1355
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1356
|
-
@property
|
|
1357
|
-
def MentionJIDs(self):
|
|
1358
|
-
return go.Slice_string(handle=_whatsapp.whatsapp_Message_MentionJIDs_Get(self.handle))
|
|
1359
|
-
@MentionJIDs.setter
|
|
1360
|
-
def MentionJIDs(self, value):
|
|
1361
|
-
if isinstance(value, go.GoClass):
|
|
1362
|
-
_whatsapp.whatsapp_Message_MentionJIDs_Set(self.handle, value.handle)
|
|
1363
|
-
else:
|
|
1364
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1365
|
-
@property
|
|
1366
|
-
def Receipts(self):
|
|
1367
|
-
return Slice_whatsapp_Receipt(handle=_whatsapp.whatsapp_Message_Receipts_Get(self.handle))
|
|
1368
|
-
@Receipts.setter
|
|
1369
|
-
def Receipts(self, value):
|
|
1370
|
-
if isinstance(value, go.GoClass):
|
|
1371
|
-
_whatsapp.whatsapp_Message_Receipts_Set(self.handle, value.handle)
|
|
1372
|
-
else:
|
|
1373
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1374
|
-
@property
|
|
1375
|
-
def Reactions(self):
|
|
1376
|
-
return Slice_whatsapp_Message(handle=_whatsapp.whatsapp_Message_Reactions_Get(self.handle))
|
|
1377
|
-
@Reactions.setter
|
|
1378
|
-
def Reactions(self, value):
|
|
1379
|
-
if isinstance(value, go.GoClass):
|
|
1380
|
-
_whatsapp.whatsapp_Message_Reactions_Set(self.handle, value.handle)
|
|
1381
|
-
else:
|
|
1382
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1383
|
-
|
|
1384
|
-
# Python type for struct whatsapp.Poll
|
|
1385
|
-
class Poll(go.GoClass):
|
|
1386
|
-
"""A Poll represents a multiple-choice question, on which each choice might be voted for one or more\ntimes.\n"""
|
|
1387
|
-
def __init__(self, *args, **kwargs):
|
|
1388
|
-
"""
|
|
1389
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1390
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
1391
|
-
in which case a new Go object is constructed first
|
|
1392
|
-
"""
|
|
1393
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1394
|
-
self.handle = kwargs['handle']
|
|
1395
|
-
_whatsapp.IncRef(self.handle)
|
|
1396
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1397
|
-
self.handle = args[0].handle
|
|
1398
|
-
_whatsapp.IncRef(self.handle)
|
|
1399
|
-
else:
|
|
1400
|
-
self.handle = _whatsapp.whatsapp_Poll_CTor()
|
|
1401
|
-
_whatsapp.IncRef(self.handle)
|
|
1402
|
-
if 0 < len(args):
|
|
1403
|
-
self.Title = args[0]
|
|
1404
|
-
if "Title" in kwargs:
|
|
1405
|
-
self.Title = kwargs["Title"]
|
|
1406
|
-
if 1 < len(args):
|
|
1407
|
-
self.Options = args[1]
|
|
1408
|
-
if "Options" in kwargs:
|
|
1409
|
-
self.Options = kwargs["Options"]
|
|
1410
|
-
def __del__(self):
|
|
1411
|
-
_whatsapp.DecRef(self.handle)
|
|
1412
|
-
def __str__(self):
|
|
1413
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1414
|
-
sv = 'whatsapp.Poll{'
|
|
1415
|
-
first = True
|
|
1416
|
-
for v in pr:
|
|
1417
|
-
if callable(v[1]):
|
|
1418
|
-
continue
|
|
1419
|
-
if first:
|
|
1420
|
-
first = False
|
|
1421
|
-
else:
|
|
1422
|
-
sv += ', '
|
|
1423
|
-
sv += v[0] + '=' + str(v[1])
|
|
1424
|
-
return sv + '}'
|
|
1425
|
-
def __repr__(self):
|
|
1426
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1427
|
-
sv = 'whatsapp.Poll ( '
|
|
1428
|
-
for v in pr:
|
|
1429
|
-
if not callable(v[1]):
|
|
1430
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1431
|
-
return sv + ')'
|
|
1432
|
-
@property
|
|
1433
|
-
def Title(self):
|
|
1434
|
-
return _whatsapp.whatsapp_Poll_Title_Get(self.handle)
|
|
1435
|
-
@Title.setter
|
|
1436
|
-
def Title(self, value):
|
|
1437
|
-
if isinstance(value, go.GoClass):
|
|
1438
|
-
_whatsapp.whatsapp_Poll_Title_Set(self.handle, value.handle)
|
|
1439
|
-
else:
|
|
1440
|
-
_whatsapp.whatsapp_Poll_Title_Set(self.handle, value)
|
|
1441
|
-
@property
|
|
1442
|
-
def Options(self):
|
|
1443
|
-
return Slice_whatsapp_PollOption(handle=_whatsapp.whatsapp_Poll_Options_Get(self.handle))
|
|
1444
|
-
@Options.setter
|
|
1445
|
-
def Options(self, value):
|
|
1446
|
-
if isinstance(value, go.GoClass):
|
|
1447
|
-
_whatsapp.whatsapp_Poll_Options_Set(self.handle, value.handle)
|
|
1448
|
-
else:
|
|
1449
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1450
|
-
|
|
1451
|
-
# Python type for struct whatsapp.Group
|
|
1452
|
-
class Group(go.GoClass):
|
|
1453
|
-
"""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"""
|
|
1454
|
-
def __init__(self, *args, **kwargs):
|
|
1455
|
-
"""
|
|
1456
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1457
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
1458
|
-
in which case a new Go object is constructed first
|
|
1459
|
-
"""
|
|
1460
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1461
|
-
self.handle = kwargs['handle']
|
|
1462
|
-
_whatsapp.IncRef(self.handle)
|
|
1463
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1464
|
-
self.handle = args[0].handle
|
|
1465
|
-
_whatsapp.IncRef(self.handle)
|
|
1466
|
-
else:
|
|
1467
|
-
self.handle = _whatsapp.whatsapp_Group_CTor()
|
|
1468
|
-
_whatsapp.IncRef(self.handle)
|
|
1469
|
-
if 0 < len(args):
|
|
1470
|
-
self.JID = args[0]
|
|
1471
|
-
if "JID" in kwargs:
|
|
1472
|
-
self.JID = kwargs["JID"]
|
|
1473
|
-
if 1 < len(args):
|
|
1474
|
-
self.Name = args[1]
|
|
1475
|
-
if "Name" in kwargs:
|
|
1476
|
-
self.Name = kwargs["Name"]
|
|
1477
|
-
if 2 < len(args):
|
|
1478
|
-
self.Subject = args[2]
|
|
1479
|
-
if "Subject" in kwargs:
|
|
1480
|
-
self.Subject = kwargs["Subject"]
|
|
1481
|
-
if 3 < len(args):
|
|
1482
|
-
self.Nickname = args[3]
|
|
1483
|
-
if "Nickname" in kwargs:
|
|
1484
|
-
self.Nickname = kwargs["Nickname"]
|
|
1485
|
-
if 4 < len(args):
|
|
1486
|
-
self.Participants = args[4]
|
|
1487
|
-
if "Participants" in kwargs:
|
|
1488
|
-
self.Participants = kwargs["Participants"]
|
|
1489
|
-
def __del__(self):
|
|
1490
|
-
_whatsapp.DecRef(self.handle)
|
|
1491
|
-
def __str__(self):
|
|
1492
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1493
|
-
sv = 'whatsapp.Group{'
|
|
1494
|
-
first = True
|
|
1495
|
-
for v in pr:
|
|
1496
|
-
if callable(v[1]):
|
|
1497
|
-
continue
|
|
1498
|
-
if first:
|
|
1499
|
-
first = False
|
|
1500
|
-
else:
|
|
1501
|
-
sv += ', '
|
|
1502
|
-
sv += v[0] + '=' + str(v[1])
|
|
1503
|
-
return sv + '}'
|
|
1504
|
-
def __repr__(self):
|
|
1505
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1506
|
-
sv = 'whatsapp.Group ( '
|
|
1507
|
-
for v in pr:
|
|
1508
|
-
if not callable(v[1]):
|
|
1509
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1510
|
-
return sv + ')'
|
|
1511
|
-
@property
|
|
1512
|
-
def JID(self):
|
|
1513
|
-
return _whatsapp.whatsapp_Group_JID_Get(self.handle)
|
|
1514
|
-
@JID.setter
|
|
1515
|
-
def JID(self, value):
|
|
1516
|
-
if isinstance(value, go.GoClass):
|
|
1517
|
-
_whatsapp.whatsapp_Group_JID_Set(self.handle, value.handle)
|
|
1518
|
-
else:
|
|
1519
|
-
_whatsapp.whatsapp_Group_JID_Set(self.handle, value)
|
|
1244
|
+
_whatsapp.whatsapp_Group_JID_Set(self.handle, value)
|
|
1520
1245
|
@property
|
|
1521
1246
|
def Name(self):
|
|
1522
1247
|
return _whatsapp.whatsapp_Group_Name_Get(self.handle)
|
|
@@ -1618,9 +1343,9 @@ class LinkedDevice(go.GoClass):
|
|
|
1618
1343
|
"""
|
|
1619
1344
|
return go.types_JID(handle=_whatsapp.whatsapp_LinkedDevice_JID(self.handle))
|
|
1620
1345
|
|
|
1621
|
-
# Python type for struct whatsapp.
|
|
1622
|
-
class
|
|
1623
|
-
"""
|
|
1346
|
+
# Python type for struct whatsapp.Location
|
|
1347
|
+
class Location(go.GoClass):
|
|
1348
|
+
"""A Location represents additional metadata given to location messages.\n"""
|
|
1624
1349
|
def __init__(self, *args, **kwargs):
|
|
1625
1350
|
"""
|
|
1626
1351
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1634,25 +1359,41 @@ class Presence(go.GoClass):
|
|
|
1634
1359
|
self.handle = args[0].handle
|
|
1635
1360
|
_whatsapp.IncRef(self.handle)
|
|
1636
1361
|
else:
|
|
1637
|
-
self.handle = _whatsapp.
|
|
1362
|
+
self.handle = _whatsapp.whatsapp_Location_CTor()
|
|
1638
1363
|
_whatsapp.IncRef(self.handle)
|
|
1639
1364
|
if 0 < len(args):
|
|
1640
|
-
self.
|
|
1641
|
-
if "
|
|
1642
|
-
self.
|
|
1365
|
+
self.Latitude = args[0]
|
|
1366
|
+
if "Latitude" in kwargs:
|
|
1367
|
+
self.Latitude = kwargs["Latitude"]
|
|
1643
1368
|
if 1 < len(args):
|
|
1644
|
-
self.
|
|
1645
|
-
if "
|
|
1646
|
-
self.
|
|
1369
|
+
self.Longitude = args[1]
|
|
1370
|
+
if "Longitude" in kwargs:
|
|
1371
|
+
self.Longitude = kwargs["Longitude"]
|
|
1647
1372
|
if 2 < len(args):
|
|
1648
|
-
self.
|
|
1649
|
-
if "
|
|
1650
|
-
self.
|
|
1373
|
+
self.Accuracy = args[2]
|
|
1374
|
+
if "Accuracy" in kwargs:
|
|
1375
|
+
self.Accuracy = kwargs["Accuracy"]
|
|
1376
|
+
if 3 < len(args):
|
|
1377
|
+
self.IsLive = args[3]
|
|
1378
|
+
if "IsLive" in kwargs:
|
|
1379
|
+
self.IsLive = kwargs["IsLive"]
|
|
1380
|
+
if 4 < len(args):
|
|
1381
|
+
self.Name = args[4]
|
|
1382
|
+
if "Name" in kwargs:
|
|
1383
|
+
self.Name = kwargs["Name"]
|
|
1384
|
+
if 5 < len(args):
|
|
1385
|
+
self.Address = args[5]
|
|
1386
|
+
if "Address" in kwargs:
|
|
1387
|
+
self.Address = kwargs["Address"]
|
|
1388
|
+
if 6 < len(args):
|
|
1389
|
+
self.URL = args[6]
|
|
1390
|
+
if "URL" in kwargs:
|
|
1391
|
+
self.URL = kwargs["URL"]
|
|
1651
1392
|
def __del__(self):
|
|
1652
1393
|
_whatsapp.DecRef(self.handle)
|
|
1653
1394
|
def __str__(self):
|
|
1654
1395
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1655
|
-
sv = 'whatsapp.
|
|
1396
|
+
sv = 'whatsapp.Location{'
|
|
1656
1397
|
first = True
|
|
1657
1398
|
for v in pr:
|
|
1658
1399
|
if callable(v[1]):
|
|
@@ -1665,42 +1406,80 @@ class Presence(go.GoClass):
|
|
|
1665
1406
|
return sv + '}'
|
|
1666
1407
|
def __repr__(self):
|
|
1667
1408
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1668
|
-
sv = 'whatsapp.
|
|
1409
|
+
sv = 'whatsapp.Location ( '
|
|
1669
1410
|
for v in pr:
|
|
1670
1411
|
if not callable(v[1]):
|
|
1671
1412
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1672
1413
|
return sv + ')'
|
|
1673
1414
|
@property
|
|
1674
|
-
def
|
|
1675
|
-
return _whatsapp.
|
|
1676
|
-
@
|
|
1677
|
-
def
|
|
1415
|
+
def Latitude(self):
|
|
1416
|
+
return _whatsapp.whatsapp_Location_Latitude_Get(self.handle)
|
|
1417
|
+
@Latitude.setter
|
|
1418
|
+
def Latitude(self, value):
|
|
1678
1419
|
if isinstance(value, go.GoClass):
|
|
1679
|
-
_whatsapp.
|
|
1420
|
+
_whatsapp.whatsapp_Location_Latitude_Set(self.handle, value.handle)
|
|
1680
1421
|
else:
|
|
1681
|
-
_whatsapp.
|
|
1422
|
+
_whatsapp.whatsapp_Location_Latitude_Set(self.handle, value)
|
|
1682
1423
|
@property
|
|
1683
|
-
def
|
|
1684
|
-
return _whatsapp.
|
|
1685
|
-
@
|
|
1686
|
-
def
|
|
1424
|
+
def Longitude(self):
|
|
1425
|
+
return _whatsapp.whatsapp_Location_Longitude_Get(self.handle)
|
|
1426
|
+
@Longitude.setter
|
|
1427
|
+
def Longitude(self, value):
|
|
1687
1428
|
if isinstance(value, go.GoClass):
|
|
1688
|
-
_whatsapp.
|
|
1429
|
+
_whatsapp.whatsapp_Location_Longitude_Set(self.handle, value.handle)
|
|
1689
1430
|
else:
|
|
1690
|
-
_whatsapp.
|
|
1431
|
+
_whatsapp.whatsapp_Location_Longitude_Set(self.handle, value)
|
|
1691
1432
|
@property
|
|
1692
|
-
def
|
|
1693
|
-
return _whatsapp.
|
|
1694
|
-
@
|
|
1695
|
-
def
|
|
1433
|
+
def Accuracy(self):
|
|
1434
|
+
return _whatsapp.whatsapp_Location_Accuracy_Get(self.handle)
|
|
1435
|
+
@Accuracy.setter
|
|
1436
|
+
def Accuracy(self, value):
|
|
1696
1437
|
if isinstance(value, go.GoClass):
|
|
1697
|
-
_whatsapp.
|
|
1438
|
+
_whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value.handle)
|
|
1698
1439
|
else:
|
|
1699
|
-
_whatsapp.
|
|
1440
|
+
_whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value)
|
|
1441
|
+
@property
|
|
1442
|
+
def IsLive(self):
|
|
1443
|
+
return _whatsapp.whatsapp_Location_IsLive_Get(self.handle)
|
|
1444
|
+
@IsLive.setter
|
|
1445
|
+
def IsLive(self, value):
|
|
1446
|
+
if isinstance(value, go.GoClass):
|
|
1447
|
+
_whatsapp.whatsapp_Location_IsLive_Set(self.handle, value.handle)
|
|
1448
|
+
else:
|
|
1449
|
+
_whatsapp.whatsapp_Location_IsLive_Set(self.handle, value)
|
|
1450
|
+
@property
|
|
1451
|
+
def Name(self):
|
|
1452
|
+
"""Optional fields given for named locations.
|
|
1453
|
+
"""
|
|
1454
|
+
return _whatsapp.whatsapp_Location_Name_Get(self.handle)
|
|
1455
|
+
@Name.setter
|
|
1456
|
+
def Name(self, value):
|
|
1457
|
+
if isinstance(value, go.GoClass):
|
|
1458
|
+
_whatsapp.whatsapp_Location_Name_Set(self.handle, value.handle)
|
|
1459
|
+
else:
|
|
1460
|
+
_whatsapp.whatsapp_Location_Name_Set(self.handle, value)
|
|
1461
|
+
@property
|
|
1462
|
+
def Address(self):
|
|
1463
|
+
return _whatsapp.whatsapp_Location_Address_Get(self.handle)
|
|
1464
|
+
@Address.setter
|
|
1465
|
+
def Address(self, value):
|
|
1466
|
+
if isinstance(value, go.GoClass):
|
|
1467
|
+
_whatsapp.whatsapp_Location_Address_Set(self.handle, value.handle)
|
|
1468
|
+
else:
|
|
1469
|
+
_whatsapp.whatsapp_Location_Address_Set(self.handle, value)
|
|
1470
|
+
@property
|
|
1471
|
+
def URL(self):
|
|
1472
|
+
return _whatsapp.whatsapp_Location_URL_Get(self.handle)
|
|
1473
|
+
@URL.setter
|
|
1474
|
+
def URL(self, value):
|
|
1475
|
+
if isinstance(value, go.GoClass):
|
|
1476
|
+
_whatsapp.whatsapp_Location_URL_Set(self.handle, value.handle)
|
|
1477
|
+
else:
|
|
1478
|
+
_whatsapp.whatsapp_Location_URL_Set(self.handle, value)
|
|
1700
1479
|
|
|
1701
|
-
# Python type for struct whatsapp.
|
|
1702
|
-
class
|
|
1703
|
-
"""A
|
|
1480
|
+
# Python type for struct whatsapp.Poll
|
|
1481
|
+
class Poll(go.GoClass):
|
|
1482
|
+
"""A Poll represents a multiple-choice question, on which each choice might be voted for one or more\ntimes.\n"""
|
|
1704
1483
|
def __init__(self, *args, **kwargs):
|
|
1705
1484
|
"""
|
|
1706
1485
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1714,37 +1493,21 @@ class Receipt(go.GoClass):
|
|
|
1714
1493
|
self.handle = args[0].handle
|
|
1715
1494
|
_whatsapp.IncRef(self.handle)
|
|
1716
1495
|
else:
|
|
1717
|
-
self.handle = _whatsapp.
|
|
1496
|
+
self.handle = _whatsapp.whatsapp_Poll_CTor()
|
|
1718
1497
|
_whatsapp.IncRef(self.handle)
|
|
1719
1498
|
if 0 < len(args):
|
|
1720
|
-
self.
|
|
1721
|
-
if "
|
|
1722
|
-
self.
|
|
1499
|
+
self.Title = args[0]
|
|
1500
|
+
if "Title" in kwargs:
|
|
1501
|
+
self.Title = kwargs["Title"]
|
|
1723
1502
|
if 1 < len(args):
|
|
1724
|
-
self.
|
|
1725
|
-
if "
|
|
1726
|
-
self.
|
|
1727
|
-
if 2 < len(args):
|
|
1728
|
-
self.JID = args[2]
|
|
1729
|
-
if "JID" in kwargs:
|
|
1730
|
-
self.JID = kwargs["JID"]
|
|
1731
|
-
if 3 < len(args):
|
|
1732
|
-
self.GroupJID = args[3]
|
|
1733
|
-
if "GroupJID" in kwargs:
|
|
1734
|
-
self.GroupJID = kwargs["GroupJID"]
|
|
1735
|
-
if 4 < len(args):
|
|
1736
|
-
self.Timestamp = args[4]
|
|
1737
|
-
if "Timestamp" in kwargs:
|
|
1738
|
-
self.Timestamp = kwargs["Timestamp"]
|
|
1739
|
-
if 5 < len(args):
|
|
1740
|
-
self.IsCarbon = args[5]
|
|
1741
|
-
if "IsCarbon" in kwargs:
|
|
1742
|
-
self.IsCarbon = kwargs["IsCarbon"]
|
|
1503
|
+
self.Options = args[1]
|
|
1504
|
+
if "Options" in kwargs:
|
|
1505
|
+
self.Options = kwargs["Options"]
|
|
1743
1506
|
def __del__(self):
|
|
1744
1507
|
_whatsapp.DecRef(self.handle)
|
|
1745
1508
|
def __str__(self):
|
|
1746
1509
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1747
|
-
sv = 'whatsapp.
|
|
1510
|
+
sv = 'whatsapp.Poll{'
|
|
1748
1511
|
first = True
|
|
1749
1512
|
for v in pr:
|
|
1750
1513
|
if callable(v[1]):
|
|
@@ -1757,65 +1520,29 @@ class Receipt(go.GoClass):
|
|
|
1757
1520
|
return sv + '}'
|
|
1758
1521
|
def __repr__(self):
|
|
1759
1522
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1760
|
-
sv = 'whatsapp.
|
|
1523
|
+
sv = 'whatsapp.Poll ( '
|
|
1761
1524
|
for v in pr:
|
|
1762
1525
|
if not callable(v[1]):
|
|
1763
1526
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1764
1527
|
return sv + ')'
|
|
1765
1528
|
@property
|
|
1766
|
-
def
|
|
1767
|
-
return _whatsapp.
|
|
1768
|
-
@
|
|
1769
|
-
def
|
|
1529
|
+
def Title(self):
|
|
1530
|
+
return _whatsapp.whatsapp_Poll_Title_Get(self.handle)
|
|
1531
|
+
@Title.setter
|
|
1532
|
+
def Title(self, value):
|
|
1770
1533
|
if isinstance(value, go.GoClass):
|
|
1771
|
-
_whatsapp.
|
|
1534
|
+
_whatsapp.whatsapp_Poll_Title_Set(self.handle, value.handle)
|
|
1772
1535
|
else:
|
|
1773
|
-
_whatsapp.
|
|
1536
|
+
_whatsapp.whatsapp_Poll_Title_Set(self.handle, value)
|
|
1774
1537
|
@property
|
|
1775
|
-
def
|
|
1776
|
-
return
|
|
1777
|
-
@
|
|
1778
|
-
def
|
|
1538
|
+
def Options(self):
|
|
1539
|
+
return Slice_whatsapp_PollOption(handle=_whatsapp.whatsapp_Poll_Options_Get(self.handle))
|
|
1540
|
+
@Options.setter
|
|
1541
|
+
def Options(self, value):
|
|
1779
1542
|
if isinstance(value, go.GoClass):
|
|
1780
|
-
_whatsapp.
|
|
1543
|
+
_whatsapp.whatsapp_Poll_Options_Set(self.handle, value.handle)
|
|
1781
1544
|
else:
|
|
1782
1545
|
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
1783
|
-
@property
|
|
1784
|
-
def JID(self):
|
|
1785
|
-
return _whatsapp.whatsapp_Receipt_JID_Get(self.handle)
|
|
1786
|
-
@JID.setter
|
|
1787
|
-
def JID(self, value):
|
|
1788
|
-
if isinstance(value, go.GoClass):
|
|
1789
|
-
_whatsapp.whatsapp_Receipt_JID_Set(self.handle, value.handle)
|
|
1790
|
-
else:
|
|
1791
|
-
_whatsapp.whatsapp_Receipt_JID_Set(self.handle, value)
|
|
1792
|
-
@property
|
|
1793
|
-
def GroupJID(self):
|
|
1794
|
-
return _whatsapp.whatsapp_Receipt_GroupJID_Get(self.handle)
|
|
1795
|
-
@GroupJID.setter
|
|
1796
|
-
def GroupJID(self, value):
|
|
1797
|
-
if isinstance(value, go.GoClass):
|
|
1798
|
-
_whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value.handle)
|
|
1799
|
-
else:
|
|
1800
|
-
_whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value)
|
|
1801
|
-
@property
|
|
1802
|
-
def Timestamp(self):
|
|
1803
|
-
return _whatsapp.whatsapp_Receipt_Timestamp_Get(self.handle)
|
|
1804
|
-
@Timestamp.setter
|
|
1805
|
-
def Timestamp(self, value):
|
|
1806
|
-
if isinstance(value, go.GoClass):
|
|
1807
|
-
_whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value.handle)
|
|
1808
|
-
else:
|
|
1809
|
-
_whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value)
|
|
1810
|
-
@property
|
|
1811
|
-
def IsCarbon(self):
|
|
1812
|
-
return _whatsapp.whatsapp_Receipt_IsCarbon_Get(self.handle)
|
|
1813
|
-
@IsCarbon.setter
|
|
1814
|
-
def IsCarbon(self, value):
|
|
1815
|
-
if isinstance(value, go.GoClass):
|
|
1816
|
-
_whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value.handle)
|
|
1817
|
-
else:
|
|
1818
|
-
_whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value)
|
|
1819
1546
|
|
|
1820
1547
|
# Python type for struct whatsapp.Attachment
|
|
1821
1548
|
class Attachment(go.GoClass):
|
|
@@ -1916,9 +1643,9 @@ class Attachment(go.GoClass):
|
|
|
1916
1643
|
"""
|
|
1917
1644
|
return go.Ptr_media_Spec(handle=_whatsapp.whatsapp_Attachment_GetSpec(self.handle, ctx.handle))
|
|
1918
1645
|
|
|
1919
|
-
# Python type for struct whatsapp.
|
|
1920
|
-
class
|
|
1921
|
-
"""A
|
|
1646
|
+
# Python type for struct whatsapp.Call
|
|
1647
|
+
class Call(go.GoClass):
|
|
1648
|
+
"""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"""
|
|
1922
1649
|
def __init__(self, *args, **kwargs):
|
|
1923
1650
|
"""
|
|
1924
1651
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1932,21 +1659,25 @@ class Contact(go.GoClass):
|
|
|
1932
1659
|
self.handle = args[0].handle
|
|
1933
1660
|
_whatsapp.IncRef(self.handle)
|
|
1934
1661
|
else:
|
|
1935
|
-
self.handle = _whatsapp.
|
|
1662
|
+
self.handle = _whatsapp.whatsapp_Call_CTor()
|
|
1936
1663
|
_whatsapp.IncRef(self.handle)
|
|
1937
1664
|
if 0 < len(args):
|
|
1938
|
-
self.
|
|
1665
|
+
self.State = args[0]
|
|
1666
|
+
if "State" in kwargs:
|
|
1667
|
+
self.State = kwargs["State"]
|
|
1668
|
+
if 1 < len(args):
|
|
1669
|
+
self.JID = args[1]
|
|
1939
1670
|
if "JID" in kwargs:
|
|
1940
1671
|
self.JID = kwargs["JID"]
|
|
1941
|
-
if
|
|
1942
|
-
self.
|
|
1943
|
-
if "
|
|
1944
|
-
self.
|
|
1672
|
+
if 2 < len(args):
|
|
1673
|
+
self.Timestamp = args[2]
|
|
1674
|
+
if "Timestamp" in kwargs:
|
|
1675
|
+
self.Timestamp = kwargs["Timestamp"]
|
|
1945
1676
|
def __del__(self):
|
|
1946
1677
|
_whatsapp.DecRef(self.handle)
|
|
1947
1678
|
def __str__(self):
|
|
1948
1679
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1949
|
-
sv = 'whatsapp.
|
|
1680
|
+
sv = 'whatsapp.Call{'
|
|
1950
1681
|
first = True
|
|
1951
1682
|
for v in pr:
|
|
1952
1683
|
if callable(v[1]):
|
|
@@ -1959,200 +1690,38 @@ class Contact(go.GoClass):
|
|
|
1959
1690
|
return sv + '}'
|
|
1960
1691
|
def __repr__(self):
|
|
1961
1692
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1962
|
-
sv = 'whatsapp.
|
|
1693
|
+
sv = 'whatsapp.Call ( '
|
|
1963
1694
|
for v in pr:
|
|
1964
1695
|
if not callable(v[1]):
|
|
1965
1696
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1966
1697
|
return sv + ')'
|
|
1967
1698
|
@property
|
|
1699
|
+
def State(self):
|
|
1700
|
+
return _whatsapp.whatsapp_Call_State_Get(self.handle)
|
|
1701
|
+
@State.setter
|
|
1702
|
+
def State(self, value):
|
|
1703
|
+
if isinstance(value, go.GoClass):
|
|
1704
|
+
_whatsapp.whatsapp_Call_State_Set(self.handle, value.handle)
|
|
1705
|
+
else:
|
|
1706
|
+
_whatsapp.whatsapp_Call_State_Set(self.handle, value)
|
|
1707
|
+
@property
|
|
1968
1708
|
def JID(self):
|
|
1969
|
-
return _whatsapp.
|
|
1709
|
+
return _whatsapp.whatsapp_Call_JID_Get(self.handle)
|
|
1970
1710
|
@JID.setter
|
|
1971
1711
|
def JID(self, value):
|
|
1972
1712
|
if isinstance(value, go.GoClass):
|
|
1973
|
-
_whatsapp.
|
|
1713
|
+
_whatsapp.whatsapp_Call_JID_Set(self.handle, value.handle)
|
|
1974
1714
|
else:
|
|
1975
|
-
_whatsapp.
|
|
1715
|
+
_whatsapp.whatsapp_Call_JID_Set(self.handle, value)
|
|
1976
1716
|
@property
|
|
1977
|
-
def
|
|
1978
|
-
return _whatsapp.
|
|
1979
|
-
@
|
|
1980
|
-
def
|
|
1981
|
-
if isinstance(value, go.GoClass):
|
|
1982
|
-
_whatsapp.whatsapp_Contact_Name_Set(self.handle, value.handle)
|
|
1983
|
-
else:
|
|
1984
|
-
_whatsapp.whatsapp_Contact_Name_Set(self.handle, value)
|
|
1985
|
-
|
|
1986
|
-
# Python type for struct whatsapp.EventPayload
|
|
1987
|
-
class EventPayload(go.GoClass):
|
|
1988
|
-
"""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"""
|
|
1989
|
-
def __init__(self, *args, **kwargs):
|
|
1990
|
-
"""
|
|
1991
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1992
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
1993
|
-
in which case a new Go object is constructed first
|
|
1994
|
-
"""
|
|
1995
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1996
|
-
self.handle = kwargs['handle']
|
|
1997
|
-
_whatsapp.IncRef(self.handle)
|
|
1998
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1999
|
-
self.handle = args[0].handle
|
|
2000
|
-
_whatsapp.IncRef(self.handle)
|
|
2001
|
-
else:
|
|
2002
|
-
self.handle = _whatsapp.whatsapp_EventPayload_CTor()
|
|
2003
|
-
_whatsapp.IncRef(self.handle)
|
|
2004
|
-
if 0 < len(args):
|
|
2005
|
-
self.QRCode = args[0]
|
|
2006
|
-
if "QRCode" in kwargs:
|
|
2007
|
-
self.QRCode = kwargs["QRCode"]
|
|
2008
|
-
if 1 < len(args):
|
|
2009
|
-
self.PairDeviceID = args[1]
|
|
2010
|
-
if "PairDeviceID" in kwargs:
|
|
2011
|
-
self.PairDeviceID = kwargs["PairDeviceID"]
|
|
2012
|
-
if 2 < len(args):
|
|
2013
|
-
self.Connect = args[2]
|
|
2014
|
-
if "Connect" in kwargs:
|
|
2015
|
-
self.Connect = kwargs["Connect"]
|
|
2016
|
-
if 3 < len(args):
|
|
2017
|
-
self.Contact = args[3]
|
|
2018
|
-
if "Contact" in kwargs:
|
|
2019
|
-
self.Contact = kwargs["Contact"]
|
|
2020
|
-
if 4 < len(args):
|
|
2021
|
-
self.Presence = args[4]
|
|
2022
|
-
if "Presence" in kwargs:
|
|
2023
|
-
self.Presence = kwargs["Presence"]
|
|
2024
|
-
if 5 < len(args):
|
|
2025
|
-
self.Message = args[5]
|
|
2026
|
-
if "Message" in kwargs:
|
|
2027
|
-
self.Message = kwargs["Message"]
|
|
2028
|
-
if 6 < len(args):
|
|
2029
|
-
self.ChatState = args[6]
|
|
2030
|
-
if "ChatState" in kwargs:
|
|
2031
|
-
self.ChatState = kwargs["ChatState"]
|
|
2032
|
-
if 7 < len(args):
|
|
2033
|
-
self.Receipt = args[7]
|
|
2034
|
-
if "Receipt" in kwargs:
|
|
2035
|
-
self.Receipt = kwargs["Receipt"]
|
|
2036
|
-
if 8 < len(args):
|
|
2037
|
-
self.Group = args[8]
|
|
2038
|
-
if "Group" in kwargs:
|
|
2039
|
-
self.Group = kwargs["Group"]
|
|
2040
|
-
if 9 < len(args):
|
|
2041
|
-
self.Call = args[9]
|
|
2042
|
-
if "Call" in kwargs:
|
|
2043
|
-
self.Call = kwargs["Call"]
|
|
2044
|
-
def __del__(self):
|
|
2045
|
-
_whatsapp.DecRef(self.handle)
|
|
2046
|
-
def __str__(self):
|
|
2047
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2048
|
-
sv = 'whatsapp.EventPayload{'
|
|
2049
|
-
first = True
|
|
2050
|
-
for v in pr:
|
|
2051
|
-
if callable(v[1]):
|
|
2052
|
-
continue
|
|
2053
|
-
if first:
|
|
2054
|
-
first = False
|
|
2055
|
-
else:
|
|
2056
|
-
sv += ', '
|
|
2057
|
-
sv += v[0] + '=' + str(v[1])
|
|
2058
|
-
return sv + '}'
|
|
2059
|
-
def __repr__(self):
|
|
2060
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2061
|
-
sv = 'whatsapp.EventPayload ( '
|
|
2062
|
-
for v in pr:
|
|
2063
|
-
if not callable(v[1]):
|
|
2064
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2065
|
-
return sv + ')'
|
|
2066
|
-
@property
|
|
2067
|
-
def QRCode(self):
|
|
2068
|
-
return _whatsapp.whatsapp_EventPayload_QRCode_Get(self.handle)
|
|
2069
|
-
@QRCode.setter
|
|
2070
|
-
def QRCode(self, value):
|
|
2071
|
-
if isinstance(value, go.GoClass):
|
|
2072
|
-
_whatsapp.whatsapp_EventPayload_QRCode_Set(self.handle, value.handle)
|
|
2073
|
-
else:
|
|
2074
|
-
_whatsapp.whatsapp_EventPayload_QRCode_Set(self.handle, value)
|
|
2075
|
-
@property
|
|
2076
|
-
def PairDeviceID(self):
|
|
2077
|
-
return _whatsapp.whatsapp_EventPayload_PairDeviceID_Get(self.handle)
|
|
2078
|
-
@PairDeviceID.setter
|
|
2079
|
-
def PairDeviceID(self, value):
|
|
2080
|
-
if isinstance(value, go.GoClass):
|
|
2081
|
-
_whatsapp.whatsapp_EventPayload_PairDeviceID_Set(self.handle, value.handle)
|
|
2082
|
-
else:
|
|
2083
|
-
_whatsapp.whatsapp_EventPayload_PairDeviceID_Set(self.handle, value)
|
|
2084
|
-
@property
|
|
2085
|
-
def Connect(self):
|
|
2086
|
-
return Connect(handle=_whatsapp.whatsapp_EventPayload_Connect_Get(self.handle))
|
|
2087
|
-
@Connect.setter
|
|
2088
|
-
def Connect(self, value):
|
|
2089
|
-
if isinstance(value, go.GoClass):
|
|
2090
|
-
_whatsapp.whatsapp_EventPayload_Connect_Set(self.handle, value.handle)
|
|
2091
|
-
else:
|
|
2092
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2093
|
-
@property
|
|
2094
|
-
def Contact(self):
|
|
2095
|
-
return Contact(handle=_whatsapp.whatsapp_EventPayload_Contact_Get(self.handle))
|
|
2096
|
-
@Contact.setter
|
|
2097
|
-
def Contact(self, value):
|
|
2098
|
-
if isinstance(value, go.GoClass):
|
|
2099
|
-
_whatsapp.whatsapp_EventPayload_Contact_Set(self.handle, value.handle)
|
|
2100
|
-
else:
|
|
2101
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2102
|
-
@property
|
|
2103
|
-
def Presence(self):
|
|
2104
|
-
return Presence(handle=_whatsapp.whatsapp_EventPayload_Presence_Get(self.handle))
|
|
2105
|
-
@Presence.setter
|
|
2106
|
-
def Presence(self, value):
|
|
2107
|
-
if isinstance(value, go.GoClass):
|
|
2108
|
-
_whatsapp.whatsapp_EventPayload_Presence_Set(self.handle, value.handle)
|
|
2109
|
-
else:
|
|
2110
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2111
|
-
@property
|
|
2112
|
-
def Message(self):
|
|
2113
|
-
return Message(handle=_whatsapp.whatsapp_EventPayload_Message_Get(self.handle))
|
|
2114
|
-
@Message.setter
|
|
2115
|
-
def Message(self, value):
|
|
2116
|
-
if isinstance(value, go.GoClass):
|
|
2117
|
-
_whatsapp.whatsapp_EventPayload_Message_Set(self.handle, value.handle)
|
|
2118
|
-
else:
|
|
2119
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2120
|
-
@property
|
|
2121
|
-
def ChatState(self):
|
|
2122
|
-
return ChatState(handle=_whatsapp.whatsapp_EventPayload_ChatState_Get(self.handle))
|
|
2123
|
-
@ChatState.setter
|
|
2124
|
-
def ChatState(self, value):
|
|
2125
|
-
if isinstance(value, go.GoClass):
|
|
2126
|
-
_whatsapp.whatsapp_EventPayload_ChatState_Set(self.handle, value.handle)
|
|
2127
|
-
else:
|
|
2128
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2129
|
-
@property
|
|
2130
|
-
def Receipt(self):
|
|
2131
|
-
return Receipt(handle=_whatsapp.whatsapp_EventPayload_Receipt_Get(self.handle))
|
|
2132
|
-
@Receipt.setter
|
|
2133
|
-
def Receipt(self, value):
|
|
2134
|
-
if isinstance(value, go.GoClass):
|
|
2135
|
-
_whatsapp.whatsapp_EventPayload_Receipt_Set(self.handle, value.handle)
|
|
2136
|
-
else:
|
|
2137
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2138
|
-
@property
|
|
2139
|
-
def Group(self):
|
|
2140
|
-
return Group(handle=_whatsapp.whatsapp_EventPayload_Group_Get(self.handle))
|
|
2141
|
-
@Group.setter
|
|
2142
|
-
def Group(self, value):
|
|
2143
|
-
if isinstance(value, go.GoClass):
|
|
2144
|
-
_whatsapp.whatsapp_EventPayload_Group_Set(self.handle, value.handle)
|
|
2145
|
-
else:
|
|
2146
|
-
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2147
|
-
@property
|
|
2148
|
-
def Call(self):
|
|
2149
|
-
return Call(handle=_whatsapp.whatsapp_EventPayload_Call_Get(self.handle))
|
|
2150
|
-
@Call.setter
|
|
2151
|
-
def Call(self, value):
|
|
1717
|
+
def Timestamp(self):
|
|
1718
|
+
return _whatsapp.whatsapp_Call_Timestamp_Get(self.handle)
|
|
1719
|
+
@Timestamp.setter
|
|
1720
|
+
def Timestamp(self, value):
|
|
2152
1721
|
if isinstance(value, go.GoClass):
|
|
2153
|
-
_whatsapp.
|
|
1722
|
+
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value.handle)
|
|
2154
1723
|
else:
|
|
2155
|
-
|
|
1724
|
+
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value)
|
|
2156
1725
|
|
|
2157
1726
|
# Python type for struct whatsapp.Gateway
|
|
2158
1727
|
class Gateway(go.GoClass):
|
|
@@ -2268,9 +1837,9 @@ class Gateway(go.GoClass):
|
|
|
2268
1837
|
"""
|
|
2269
1838
|
return _whatsapp.whatsapp_Gateway_CleanupSession(self.handle, device.handle)
|
|
2270
1839
|
|
|
2271
|
-
# Python type for struct whatsapp.
|
|
2272
|
-
class
|
|
2273
|
-
"""A
|
|
1840
|
+
# Python type for struct whatsapp.GroupParticipant
|
|
1841
|
+
class GroupParticipant(go.GoClass):
|
|
1842
|
+
"""A GroupParticipant represents a contact who is currently joined in a given group. Participants in\nWhatsApp can always be derived back to their individual [Contact]; there are no anonymous groups\nin WhatsApp.\n"""
|
|
2274
1843
|
def __init__(self, *args, **kwargs):
|
|
2275
1844
|
"""
|
|
2276
1845
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2284,25 +1853,386 @@ class ChatState(go.GoClass):
|
|
|
2284
1853
|
self.handle = args[0].handle
|
|
2285
1854
|
_whatsapp.IncRef(self.handle)
|
|
2286
1855
|
else:
|
|
2287
|
-
self.handle = _whatsapp.
|
|
1856
|
+
self.handle = _whatsapp.whatsapp_GroupParticipant_CTor()
|
|
2288
1857
|
_whatsapp.IncRef(self.handle)
|
|
2289
1858
|
if 0 < len(args):
|
|
2290
|
-
self.
|
|
2291
|
-
if "Kind" in kwargs:
|
|
2292
|
-
self.Kind = kwargs["Kind"]
|
|
2293
|
-
if 1 < len(args):
|
|
2294
|
-
self.JID = args[1]
|
|
1859
|
+
self.JID = args[0]
|
|
2295
1860
|
if "JID" in kwargs:
|
|
2296
1861
|
self.JID = kwargs["JID"]
|
|
1862
|
+
if 1 < len(args):
|
|
1863
|
+
self.Affiliation = args[1]
|
|
1864
|
+
if "Affiliation" in kwargs:
|
|
1865
|
+
self.Affiliation = kwargs["Affiliation"]
|
|
2297
1866
|
if 2 < len(args):
|
|
2298
|
-
self.
|
|
2299
|
-
if "
|
|
2300
|
-
self.
|
|
1867
|
+
self.Action = args[2]
|
|
1868
|
+
if "Action" in kwargs:
|
|
1869
|
+
self.Action = kwargs["Action"]
|
|
1870
|
+
def __del__(self):
|
|
1871
|
+
_whatsapp.DecRef(self.handle)
|
|
1872
|
+
def __str__(self):
|
|
1873
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1874
|
+
sv = 'whatsapp.GroupParticipant{'
|
|
1875
|
+
first = True
|
|
1876
|
+
for v in pr:
|
|
1877
|
+
if callable(v[1]):
|
|
1878
|
+
continue
|
|
1879
|
+
if first:
|
|
1880
|
+
first = False
|
|
1881
|
+
else:
|
|
1882
|
+
sv += ', '
|
|
1883
|
+
sv += v[0] + '=' + str(v[1])
|
|
1884
|
+
return sv + '}'
|
|
1885
|
+
def __repr__(self):
|
|
1886
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1887
|
+
sv = 'whatsapp.GroupParticipant ( '
|
|
1888
|
+
for v in pr:
|
|
1889
|
+
if not callable(v[1]):
|
|
1890
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1891
|
+
return sv + ')'
|
|
1892
|
+
@property
|
|
1893
|
+
def JID(self):
|
|
1894
|
+
return _whatsapp.whatsapp_GroupParticipant_JID_Get(self.handle)
|
|
1895
|
+
@JID.setter
|
|
1896
|
+
def JID(self, value):
|
|
1897
|
+
if isinstance(value, go.GoClass):
|
|
1898
|
+
_whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value.handle)
|
|
1899
|
+
else:
|
|
1900
|
+
_whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value)
|
|
1901
|
+
@property
|
|
1902
|
+
def Affiliation(self):
|
|
1903
|
+
return _whatsapp.whatsapp_GroupParticipant_Affiliation_Get(self.handle)
|
|
1904
|
+
@Affiliation.setter
|
|
1905
|
+
def Affiliation(self, value):
|
|
1906
|
+
if isinstance(value, go.GoClass):
|
|
1907
|
+
_whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value.handle)
|
|
1908
|
+
else:
|
|
1909
|
+
_whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value)
|
|
1910
|
+
@property
|
|
1911
|
+
def Action(self):
|
|
1912
|
+
return _whatsapp.whatsapp_GroupParticipant_Action_Get(self.handle)
|
|
1913
|
+
@Action.setter
|
|
1914
|
+
def Action(self, value):
|
|
1915
|
+
if isinstance(value, go.GoClass):
|
|
1916
|
+
_whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value.handle)
|
|
1917
|
+
else:
|
|
1918
|
+
_whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value)
|
|
1919
|
+
|
|
1920
|
+
# Python type for struct whatsapp.GroupSubject
|
|
1921
|
+
class GroupSubject(go.GoClass):
|
|
1922
|
+
"""A GroupSubject represents the user-defined group description and attached metadata thereof, for a\ngiven [Group].\n"""
|
|
1923
|
+
def __init__(self, *args, **kwargs):
|
|
1924
|
+
"""
|
|
1925
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1926
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
1927
|
+
in which case a new Go object is constructed first
|
|
1928
|
+
"""
|
|
1929
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1930
|
+
self.handle = kwargs['handle']
|
|
1931
|
+
_whatsapp.IncRef(self.handle)
|
|
1932
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1933
|
+
self.handle = args[0].handle
|
|
1934
|
+
_whatsapp.IncRef(self.handle)
|
|
1935
|
+
else:
|
|
1936
|
+
self.handle = _whatsapp.whatsapp_GroupSubject_CTor()
|
|
1937
|
+
_whatsapp.IncRef(self.handle)
|
|
1938
|
+
if 0 < len(args):
|
|
1939
|
+
self.Subject = args[0]
|
|
1940
|
+
if "Subject" in kwargs:
|
|
1941
|
+
self.Subject = kwargs["Subject"]
|
|
1942
|
+
if 1 < len(args):
|
|
1943
|
+
self.SetAt = args[1]
|
|
1944
|
+
if "SetAt" in kwargs:
|
|
1945
|
+
self.SetAt = kwargs["SetAt"]
|
|
1946
|
+
if 2 < len(args):
|
|
1947
|
+
self.SetByJID = args[2]
|
|
1948
|
+
if "SetByJID" in kwargs:
|
|
1949
|
+
self.SetByJID = kwargs["SetByJID"]
|
|
1950
|
+
def __del__(self):
|
|
1951
|
+
_whatsapp.DecRef(self.handle)
|
|
1952
|
+
def __str__(self):
|
|
1953
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1954
|
+
sv = 'whatsapp.GroupSubject{'
|
|
1955
|
+
first = True
|
|
1956
|
+
for v in pr:
|
|
1957
|
+
if callable(v[1]):
|
|
1958
|
+
continue
|
|
1959
|
+
if first:
|
|
1960
|
+
first = False
|
|
1961
|
+
else:
|
|
1962
|
+
sv += ', '
|
|
1963
|
+
sv += v[0] + '=' + str(v[1])
|
|
1964
|
+
return sv + '}'
|
|
1965
|
+
def __repr__(self):
|
|
1966
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1967
|
+
sv = 'whatsapp.GroupSubject ( '
|
|
1968
|
+
for v in pr:
|
|
1969
|
+
if not callable(v[1]):
|
|
1970
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1971
|
+
return sv + ')'
|
|
1972
|
+
@property
|
|
1973
|
+
def Subject(self):
|
|
1974
|
+
return _whatsapp.whatsapp_GroupSubject_Subject_Get(self.handle)
|
|
1975
|
+
@Subject.setter
|
|
1976
|
+
def Subject(self, value):
|
|
1977
|
+
if isinstance(value, go.GoClass):
|
|
1978
|
+
_whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value.handle)
|
|
1979
|
+
else:
|
|
1980
|
+
_whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value)
|
|
1981
|
+
@property
|
|
1982
|
+
def SetAt(self):
|
|
1983
|
+
return _whatsapp.whatsapp_GroupSubject_SetAt_Get(self.handle)
|
|
1984
|
+
@SetAt.setter
|
|
1985
|
+
def SetAt(self, value):
|
|
1986
|
+
if isinstance(value, go.GoClass):
|
|
1987
|
+
_whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value.handle)
|
|
1988
|
+
else:
|
|
1989
|
+
_whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value)
|
|
1990
|
+
@property
|
|
1991
|
+
def SetByJID(self):
|
|
1992
|
+
return _whatsapp.whatsapp_GroupSubject_SetByJID_Get(self.handle)
|
|
1993
|
+
@SetByJID.setter
|
|
1994
|
+
def SetByJID(self, value):
|
|
1995
|
+
if isinstance(value, go.GoClass):
|
|
1996
|
+
_whatsapp.whatsapp_GroupSubject_SetByJID_Set(self.handle, value.handle)
|
|
1997
|
+
else:
|
|
1998
|
+
_whatsapp.whatsapp_GroupSubject_SetByJID_Set(self.handle, value)
|
|
1999
|
+
|
|
2000
|
+
# Python type for struct whatsapp.Preview
|
|
2001
|
+
class Preview(go.GoClass):
|
|
2002
|
+
"""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"""
|
|
2003
|
+
def __init__(self, *args, **kwargs):
|
|
2004
|
+
"""
|
|
2005
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2006
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
2007
|
+
in which case a new Go object is constructed first
|
|
2008
|
+
"""
|
|
2009
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2010
|
+
self.handle = kwargs['handle']
|
|
2011
|
+
_whatsapp.IncRef(self.handle)
|
|
2012
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2013
|
+
self.handle = args[0].handle
|
|
2014
|
+
_whatsapp.IncRef(self.handle)
|
|
2015
|
+
else:
|
|
2016
|
+
self.handle = _whatsapp.whatsapp_Preview_CTor()
|
|
2017
|
+
_whatsapp.IncRef(self.handle)
|
|
2018
|
+
if 0 < len(args):
|
|
2019
|
+
self.Kind = args[0]
|
|
2020
|
+
if "Kind" in kwargs:
|
|
2021
|
+
self.Kind = kwargs["Kind"]
|
|
2022
|
+
if 1 < len(args):
|
|
2023
|
+
self.URL = args[1]
|
|
2024
|
+
if "URL" in kwargs:
|
|
2025
|
+
self.URL = kwargs["URL"]
|
|
2026
|
+
if 2 < len(args):
|
|
2027
|
+
self.Title = args[2]
|
|
2028
|
+
if "Title" in kwargs:
|
|
2029
|
+
self.Title = kwargs["Title"]
|
|
2030
|
+
if 3 < len(args):
|
|
2031
|
+
self.Description = args[3]
|
|
2032
|
+
if "Description" in kwargs:
|
|
2033
|
+
self.Description = kwargs["Description"]
|
|
2034
|
+
if 4 < len(args):
|
|
2035
|
+
self.Thumbnail = args[4]
|
|
2036
|
+
if "Thumbnail" in kwargs:
|
|
2037
|
+
self.Thumbnail = kwargs["Thumbnail"]
|
|
2038
|
+
def __del__(self):
|
|
2039
|
+
_whatsapp.DecRef(self.handle)
|
|
2040
|
+
def __str__(self):
|
|
2041
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2042
|
+
sv = 'whatsapp.Preview{'
|
|
2043
|
+
first = True
|
|
2044
|
+
for v in pr:
|
|
2045
|
+
if callable(v[1]):
|
|
2046
|
+
continue
|
|
2047
|
+
if first:
|
|
2048
|
+
first = False
|
|
2049
|
+
else:
|
|
2050
|
+
sv += ', '
|
|
2051
|
+
sv += v[0] + '=' + str(v[1])
|
|
2052
|
+
return sv + '}'
|
|
2053
|
+
def __repr__(self):
|
|
2054
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2055
|
+
sv = 'whatsapp.Preview ( '
|
|
2056
|
+
for v in pr:
|
|
2057
|
+
if not callable(v[1]):
|
|
2058
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2059
|
+
return sv + ')'
|
|
2060
|
+
@property
|
|
2061
|
+
def Kind(self):
|
|
2062
|
+
return _whatsapp.whatsapp_Preview_Kind_Get(self.handle)
|
|
2063
|
+
@Kind.setter
|
|
2064
|
+
def Kind(self, value):
|
|
2065
|
+
if isinstance(value, go.GoClass):
|
|
2066
|
+
_whatsapp.whatsapp_Preview_Kind_Set(self.handle, value.handle)
|
|
2067
|
+
else:
|
|
2068
|
+
_whatsapp.whatsapp_Preview_Kind_Set(self.handle, value)
|
|
2069
|
+
@property
|
|
2070
|
+
def URL(self):
|
|
2071
|
+
return _whatsapp.whatsapp_Preview_URL_Get(self.handle)
|
|
2072
|
+
@URL.setter
|
|
2073
|
+
def URL(self, value):
|
|
2074
|
+
if isinstance(value, go.GoClass):
|
|
2075
|
+
_whatsapp.whatsapp_Preview_URL_Set(self.handle, value.handle)
|
|
2076
|
+
else:
|
|
2077
|
+
_whatsapp.whatsapp_Preview_URL_Set(self.handle, value)
|
|
2078
|
+
@property
|
|
2079
|
+
def Title(self):
|
|
2080
|
+
return _whatsapp.whatsapp_Preview_Title_Get(self.handle)
|
|
2081
|
+
@Title.setter
|
|
2082
|
+
def Title(self, value):
|
|
2083
|
+
if isinstance(value, go.GoClass):
|
|
2084
|
+
_whatsapp.whatsapp_Preview_Title_Set(self.handle, value.handle)
|
|
2085
|
+
else:
|
|
2086
|
+
_whatsapp.whatsapp_Preview_Title_Set(self.handle, value)
|
|
2087
|
+
@property
|
|
2088
|
+
def Description(self):
|
|
2089
|
+
return _whatsapp.whatsapp_Preview_Description_Get(self.handle)
|
|
2090
|
+
@Description.setter
|
|
2091
|
+
def Description(self, value):
|
|
2092
|
+
if isinstance(value, go.GoClass):
|
|
2093
|
+
_whatsapp.whatsapp_Preview_Description_Set(self.handle, value.handle)
|
|
2094
|
+
else:
|
|
2095
|
+
_whatsapp.whatsapp_Preview_Description_Set(self.handle, value)
|
|
2096
|
+
@property
|
|
2097
|
+
def Thumbnail(self):
|
|
2098
|
+
return go.Slice_byte(handle=_whatsapp.whatsapp_Preview_Thumbnail_Get(self.handle))
|
|
2099
|
+
@Thumbnail.setter
|
|
2100
|
+
def Thumbnail(self, value):
|
|
2101
|
+
if isinstance(value, go.GoClass):
|
|
2102
|
+
_whatsapp.whatsapp_Preview_Thumbnail_Set(self.handle, value.handle)
|
|
2103
|
+
else:
|
|
2104
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2105
|
+
|
|
2106
|
+
# Python type for struct whatsapp.Avatar
|
|
2107
|
+
class Avatar(go.GoClass):
|
|
2108
|
+
"""A Avatar represents a small image set for a Contact or Group.\n"""
|
|
2109
|
+
def __init__(self, *args, **kwargs):
|
|
2110
|
+
"""
|
|
2111
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2112
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
2113
|
+
in which case a new Go object is constructed first
|
|
2114
|
+
"""
|
|
2115
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2116
|
+
self.handle = kwargs['handle']
|
|
2117
|
+
_whatsapp.IncRef(self.handle)
|
|
2118
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2119
|
+
self.handle = args[0].handle
|
|
2120
|
+
_whatsapp.IncRef(self.handle)
|
|
2121
|
+
else:
|
|
2122
|
+
self.handle = _whatsapp.whatsapp_Avatar_CTor()
|
|
2123
|
+
_whatsapp.IncRef(self.handle)
|
|
2124
|
+
if 0 < len(args):
|
|
2125
|
+
self.ID = args[0]
|
|
2126
|
+
if "ID" in kwargs:
|
|
2127
|
+
self.ID = kwargs["ID"]
|
|
2128
|
+
if 1 < len(args):
|
|
2129
|
+
self.URL = args[1]
|
|
2130
|
+
if "URL" in kwargs:
|
|
2131
|
+
self.URL = kwargs["URL"]
|
|
2132
|
+
def __del__(self):
|
|
2133
|
+
_whatsapp.DecRef(self.handle)
|
|
2134
|
+
def __str__(self):
|
|
2135
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2136
|
+
sv = 'whatsapp.Avatar{'
|
|
2137
|
+
first = True
|
|
2138
|
+
for v in pr:
|
|
2139
|
+
if callable(v[1]):
|
|
2140
|
+
continue
|
|
2141
|
+
if first:
|
|
2142
|
+
first = False
|
|
2143
|
+
else:
|
|
2144
|
+
sv += ', '
|
|
2145
|
+
sv += v[0] + '=' + str(v[1])
|
|
2146
|
+
return sv + '}'
|
|
2147
|
+
def __repr__(self):
|
|
2148
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2149
|
+
sv = 'whatsapp.Avatar ( '
|
|
2150
|
+
for v in pr:
|
|
2151
|
+
if not callable(v[1]):
|
|
2152
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2153
|
+
return sv + ')'
|
|
2154
|
+
@property
|
|
2155
|
+
def ID(self):
|
|
2156
|
+
return _whatsapp.whatsapp_Avatar_ID_Get(self.handle)
|
|
2157
|
+
@ID.setter
|
|
2158
|
+
def ID(self, value):
|
|
2159
|
+
if isinstance(value, go.GoClass):
|
|
2160
|
+
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value.handle)
|
|
2161
|
+
else:
|
|
2162
|
+
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value)
|
|
2163
|
+
@property
|
|
2164
|
+
def URL(self):
|
|
2165
|
+
return _whatsapp.whatsapp_Avatar_URL_Get(self.handle)
|
|
2166
|
+
@URL.setter
|
|
2167
|
+
def URL(self, value):
|
|
2168
|
+
if isinstance(value, go.GoClass):
|
|
2169
|
+
_whatsapp.whatsapp_Avatar_URL_Set(self.handle, value.handle)
|
|
2170
|
+
else:
|
|
2171
|
+
_whatsapp.whatsapp_Avatar_URL_Set(self.handle, value)
|
|
2172
|
+
|
|
2173
|
+
# Python type for struct whatsapp.EventPayload
|
|
2174
|
+
class EventPayload(go.GoClass):
|
|
2175
|
+
"""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"""
|
|
2176
|
+
def __init__(self, *args, **kwargs):
|
|
2177
|
+
"""
|
|
2178
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2179
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
2180
|
+
in which case a new Go object is constructed first
|
|
2181
|
+
"""
|
|
2182
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2183
|
+
self.handle = kwargs['handle']
|
|
2184
|
+
_whatsapp.IncRef(self.handle)
|
|
2185
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2186
|
+
self.handle = args[0].handle
|
|
2187
|
+
_whatsapp.IncRef(self.handle)
|
|
2188
|
+
else:
|
|
2189
|
+
self.handle = _whatsapp.whatsapp_EventPayload_CTor()
|
|
2190
|
+
_whatsapp.IncRef(self.handle)
|
|
2191
|
+
if 0 < len(args):
|
|
2192
|
+
self.QRCode = args[0]
|
|
2193
|
+
if "QRCode" in kwargs:
|
|
2194
|
+
self.QRCode = kwargs["QRCode"]
|
|
2195
|
+
if 1 < len(args):
|
|
2196
|
+
self.PairDeviceID = args[1]
|
|
2197
|
+
if "PairDeviceID" in kwargs:
|
|
2198
|
+
self.PairDeviceID = kwargs["PairDeviceID"]
|
|
2199
|
+
if 2 < len(args):
|
|
2200
|
+
self.Connect = args[2]
|
|
2201
|
+
if "Connect" in kwargs:
|
|
2202
|
+
self.Connect = kwargs["Connect"]
|
|
2203
|
+
if 3 < len(args):
|
|
2204
|
+
self.Contact = args[3]
|
|
2205
|
+
if "Contact" in kwargs:
|
|
2206
|
+
self.Contact = kwargs["Contact"]
|
|
2207
|
+
if 4 < len(args):
|
|
2208
|
+
self.Presence = args[4]
|
|
2209
|
+
if "Presence" in kwargs:
|
|
2210
|
+
self.Presence = kwargs["Presence"]
|
|
2211
|
+
if 5 < len(args):
|
|
2212
|
+
self.Message = args[5]
|
|
2213
|
+
if "Message" in kwargs:
|
|
2214
|
+
self.Message = kwargs["Message"]
|
|
2215
|
+
if 6 < len(args):
|
|
2216
|
+
self.ChatState = args[6]
|
|
2217
|
+
if "ChatState" in kwargs:
|
|
2218
|
+
self.ChatState = kwargs["ChatState"]
|
|
2219
|
+
if 7 < len(args):
|
|
2220
|
+
self.Receipt = args[7]
|
|
2221
|
+
if "Receipt" in kwargs:
|
|
2222
|
+
self.Receipt = kwargs["Receipt"]
|
|
2223
|
+
if 8 < len(args):
|
|
2224
|
+
self.Group = args[8]
|
|
2225
|
+
if "Group" in kwargs:
|
|
2226
|
+
self.Group = kwargs["Group"]
|
|
2227
|
+
if 9 < len(args):
|
|
2228
|
+
self.Call = args[9]
|
|
2229
|
+
if "Call" in kwargs:
|
|
2230
|
+
self.Call = kwargs["Call"]
|
|
2301
2231
|
def __del__(self):
|
|
2302
2232
|
_whatsapp.DecRef(self.handle)
|
|
2303
2233
|
def __str__(self):
|
|
2304
2234
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2305
|
-
sv = 'whatsapp.
|
|
2235
|
+
sv = 'whatsapp.EventPayload{'
|
|
2306
2236
|
first = True
|
|
2307
2237
|
for v in pr:
|
|
2308
2238
|
if callable(v[1]):
|
|
@@ -2315,42 +2245,105 @@ class ChatState(go.GoClass):
|
|
|
2315
2245
|
return sv + '}'
|
|
2316
2246
|
def __repr__(self):
|
|
2317
2247
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2318
|
-
sv = 'whatsapp.
|
|
2248
|
+
sv = 'whatsapp.EventPayload ( '
|
|
2319
2249
|
for v in pr:
|
|
2320
2250
|
if not callable(v[1]):
|
|
2321
2251
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2322
2252
|
return sv + ')'
|
|
2323
2253
|
@property
|
|
2324
|
-
def
|
|
2325
|
-
return _whatsapp.
|
|
2326
|
-
@
|
|
2327
|
-
def
|
|
2254
|
+
def QRCode(self):
|
|
2255
|
+
return _whatsapp.whatsapp_EventPayload_QRCode_Get(self.handle)
|
|
2256
|
+
@QRCode.setter
|
|
2257
|
+
def QRCode(self, value):
|
|
2328
2258
|
if isinstance(value, go.GoClass):
|
|
2329
|
-
_whatsapp.
|
|
2259
|
+
_whatsapp.whatsapp_EventPayload_QRCode_Set(self.handle, value.handle)
|
|
2330
2260
|
else:
|
|
2331
|
-
_whatsapp.
|
|
2261
|
+
_whatsapp.whatsapp_EventPayload_QRCode_Set(self.handle, value)
|
|
2332
2262
|
@property
|
|
2333
|
-
def
|
|
2334
|
-
return _whatsapp.
|
|
2335
|
-
@
|
|
2336
|
-
def
|
|
2263
|
+
def PairDeviceID(self):
|
|
2264
|
+
return _whatsapp.whatsapp_EventPayload_PairDeviceID_Get(self.handle)
|
|
2265
|
+
@PairDeviceID.setter
|
|
2266
|
+
def PairDeviceID(self, value):
|
|
2337
2267
|
if isinstance(value, go.GoClass):
|
|
2338
|
-
_whatsapp.
|
|
2268
|
+
_whatsapp.whatsapp_EventPayload_PairDeviceID_Set(self.handle, value.handle)
|
|
2339
2269
|
else:
|
|
2340
|
-
_whatsapp.
|
|
2270
|
+
_whatsapp.whatsapp_EventPayload_PairDeviceID_Set(self.handle, value)
|
|
2341
2271
|
@property
|
|
2342
|
-
def
|
|
2343
|
-
return _whatsapp.
|
|
2344
|
-
@
|
|
2345
|
-
def
|
|
2272
|
+
def Connect(self):
|
|
2273
|
+
return Connect(handle=_whatsapp.whatsapp_EventPayload_Connect_Get(self.handle))
|
|
2274
|
+
@Connect.setter
|
|
2275
|
+
def Connect(self, value):
|
|
2346
2276
|
if isinstance(value, go.GoClass):
|
|
2347
|
-
_whatsapp.
|
|
2277
|
+
_whatsapp.whatsapp_EventPayload_Connect_Set(self.handle, value.handle)
|
|
2348
2278
|
else:
|
|
2349
|
-
|
|
2279
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2280
|
+
@property
|
|
2281
|
+
def Contact(self):
|
|
2282
|
+
return Contact(handle=_whatsapp.whatsapp_EventPayload_Contact_Get(self.handle))
|
|
2283
|
+
@Contact.setter
|
|
2284
|
+
def Contact(self, value):
|
|
2285
|
+
if isinstance(value, go.GoClass):
|
|
2286
|
+
_whatsapp.whatsapp_EventPayload_Contact_Set(self.handle, value.handle)
|
|
2287
|
+
else:
|
|
2288
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2289
|
+
@property
|
|
2290
|
+
def Presence(self):
|
|
2291
|
+
return Presence(handle=_whatsapp.whatsapp_EventPayload_Presence_Get(self.handle))
|
|
2292
|
+
@Presence.setter
|
|
2293
|
+
def Presence(self, value):
|
|
2294
|
+
if isinstance(value, go.GoClass):
|
|
2295
|
+
_whatsapp.whatsapp_EventPayload_Presence_Set(self.handle, value.handle)
|
|
2296
|
+
else:
|
|
2297
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2298
|
+
@property
|
|
2299
|
+
def Message(self):
|
|
2300
|
+
return Message(handle=_whatsapp.whatsapp_EventPayload_Message_Get(self.handle))
|
|
2301
|
+
@Message.setter
|
|
2302
|
+
def Message(self, value):
|
|
2303
|
+
if isinstance(value, go.GoClass):
|
|
2304
|
+
_whatsapp.whatsapp_EventPayload_Message_Set(self.handle, value.handle)
|
|
2305
|
+
else:
|
|
2306
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2307
|
+
@property
|
|
2308
|
+
def ChatState(self):
|
|
2309
|
+
return ChatState(handle=_whatsapp.whatsapp_EventPayload_ChatState_Get(self.handle))
|
|
2310
|
+
@ChatState.setter
|
|
2311
|
+
def ChatState(self, value):
|
|
2312
|
+
if isinstance(value, go.GoClass):
|
|
2313
|
+
_whatsapp.whatsapp_EventPayload_ChatState_Set(self.handle, value.handle)
|
|
2314
|
+
else:
|
|
2315
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2316
|
+
@property
|
|
2317
|
+
def Receipt(self):
|
|
2318
|
+
return Receipt(handle=_whatsapp.whatsapp_EventPayload_Receipt_Get(self.handle))
|
|
2319
|
+
@Receipt.setter
|
|
2320
|
+
def Receipt(self, value):
|
|
2321
|
+
if isinstance(value, go.GoClass):
|
|
2322
|
+
_whatsapp.whatsapp_EventPayload_Receipt_Set(self.handle, value.handle)
|
|
2323
|
+
else:
|
|
2324
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2325
|
+
@property
|
|
2326
|
+
def Group(self):
|
|
2327
|
+
return Group(handle=_whatsapp.whatsapp_EventPayload_Group_Get(self.handle))
|
|
2328
|
+
@Group.setter
|
|
2329
|
+
def Group(self, value):
|
|
2330
|
+
if isinstance(value, go.GoClass):
|
|
2331
|
+
_whatsapp.whatsapp_EventPayload_Group_Set(self.handle, value.handle)
|
|
2332
|
+
else:
|
|
2333
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2334
|
+
@property
|
|
2335
|
+
def Call(self):
|
|
2336
|
+
return Call(handle=_whatsapp.whatsapp_EventPayload_Call_Get(self.handle))
|
|
2337
|
+
@Call.setter
|
|
2338
|
+
def Call(self, value):
|
|
2339
|
+
if isinstance(value, go.GoClass):
|
|
2340
|
+
_whatsapp.whatsapp_EventPayload_Call_Set(self.handle, value.handle)
|
|
2341
|
+
else:
|
|
2342
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2350
2343
|
|
|
2351
|
-
# Python type for struct whatsapp.
|
|
2352
|
-
class
|
|
2353
|
-
"""
|
|
2344
|
+
# Python type for struct whatsapp.Contact
|
|
2345
|
+
class Contact(go.GoClass):
|
|
2346
|
+
"""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"""
|
|
2354
2347
|
def __init__(self, *args, **kwargs):
|
|
2355
2348
|
"""
|
|
2356
2349
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2364,21 +2357,21 @@ class Connect(go.GoClass):
|
|
|
2364
2357
|
self.handle = args[0].handle
|
|
2365
2358
|
_whatsapp.IncRef(self.handle)
|
|
2366
2359
|
else:
|
|
2367
|
-
self.handle = _whatsapp.
|
|
2360
|
+
self.handle = _whatsapp.whatsapp_Contact_CTor()
|
|
2368
2361
|
_whatsapp.IncRef(self.handle)
|
|
2369
2362
|
if 0 < len(args):
|
|
2370
2363
|
self.JID = args[0]
|
|
2371
2364
|
if "JID" in kwargs:
|
|
2372
2365
|
self.JID = kwargs["JID"]
|
|
2373
2366
|
if 1 < len(args):
|
|
2374
|
-
self.
|
|
2375
|
-
if "
|
|
2376
|
-
self.
|
|
2367
|
+
self.Name = args[1]
|
|
2368
|
+
if "Name" in kwargs:
|
|
2369
|
+
self.Name = kwargs["Name"]
|
|
2377
2370
|
def __del__(self):
|
|
2378
2371
|
_whatsapp.DecRef(self.handle)
|
|
2379
2372
|
def __str__(self):
|
|
2380
2373
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2381
|
-
sv = 'whatsapp.
|
|
2374
|
+
sv = 'whatsapp.Contact{'
|
|
2382
2375
|
first = True
|
|
2383
2376
|
for v in pr:
|
|
2384
2377
|
if callable(v[1]):
|
|
@@ -2391,33 +2384,33 @@ class Connect(go.GoClass):
|
|
|
2391
2384
|
return sv + '}'
|
|
2392
2385
|
def __repr__(self):
|
|
2393
2386
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2394
|
-
sv = 'whatsapp.
|
|
2387
|
+
sv = 'whatsapp.Contact ( '
|
|
2395
2388
|
for v in pr:
|
|
2396
2389
|
if not callable(v[1]):
|
|
2397
2390
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2398
2391
|
return sv + ')'
|
|
2399
2392
|
@property
|
|
2400
2393
|
def JID(self):
|
|
2401
|
-
return _whatsapp.
|
|
2394
|
+
return _whatsapp.whatsapp_Contact_JID_Get(self.handle)
|
|
2402
2395
|
@JID.setter
|
|
2403
2396
|
def JID(self, value):
|
|
2404
2397
|
if isinstance(value, go.GoClass):
|
|
2405
|
-
_whatsapp.
|
|
2398
|
+
_whatsapp.whatsapp_Contact_JID_Set(self.handle, value.handle)
|
|
2406
2399
|
else:
|
|
2407
|
-
_whatsapp.
|
|
2400
|
+
_whatsapp.whatsapp_Contact_JID_Set(self.handle, value)
|
|
2408
2401
|
@property
|
|
2409
|
-
def
|
|
2410
|
-
return _whatsapp.
|
|
2411
|
-
@
|
|
2412
|
-
def
|
|
2402
|
+
def Name(self):
|
|
2403
|
+
return _whatsapp.whatsapp_Contact_Name_Get(self.handle)
|
|
2404
|
+
@Name.setter
|
|
2405
|
+
def Name(self, value):
|
|
2413
2406
|
if isinstance(value, go.GoClass):
|
|
2414
|
-
_whatsapp.
|
|
2407
|
+
_whatsapp.whatsapp_Contact_Name_Set(self.handle, value.handle)
|
|
2415
2408
|
else:
|
|
2416
|
-
_whatsapp.
|
|
2409
|
+
_whatsapp.whatsapp_Contact_Name_Set(self.handle, value)
|
|
2417
2410
|
|
|
2418
|
-
# Python type for struct whatsapp.
|
|
2419
|
-
class
|
|
2420
|
-
"""A
|
|
2411
|
+
# Python type for struct whatsapp.Message
|
|
2412
|
+
class Message(go.GoClass):
|
|
2413
|
+
"""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"""
|
|
2421
2414
|
def __init__(self, *args, **kwargs):
|
|
2422
2415
|
"""
|
|
2423
2416
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2431,41 +2424,89 @@ class Location(go.GoClass):
|
|
|
2431
2424
|
self.handle = args[0].handle
|
|
2432
2425
|
_whatsapp.IncRef(self.handle)
|
|
2433
2426
|
else:
|
|
2434
|
-
self.handle = _whatsapp.
|
|
2427
|
+
self.handle = _whatsapp.whatsapp_Message_CTor()
|
|
2435
2428
|
_whatsapp.IncRef(self.handle)
|
|
2436
2429
|
if 0 < len(args):
|
|
2437
|
-
self.
|
|
2438
|
-
if "
|
|
2439
|
-
self.
|
|
2430
|
+
self.Kind = args[0]
|
|
2431
|
+
if "Kind" in kwargs:
|
|
2432
|
+
self.Kind = kwargs["Kind"]
|
|
2440
2433
|
if 1 < len(args):
|
|
2441
|
-
self.
|
|
2442
|
-
if "
|
|
2443
|
-
self.
|
|
2434
|
+
self.ID = args[1]
|
|
2435
|
+
if "ID" in kwargs:
|
|
2436
|
+
self.ID = kwargs["ID"]
|
|
2444
2437
|
if 2 < len(args):
|
|
2445
|
-
self.
|
|
2446
|
-
if "
|
|
2447
|
-
self.
|
|
2438
|
+
self.JID = args[2]
|
|
2439
|
+
if "JID" in kwargs:
|
|
2440
|
+
self.JID = kwargs["JID"]
|
|
2448
2441
|
if 3 < len(args):
|
|
2449
|
-
self.
|
|
2450
|
-
if "
|
|
2451
|
-
self.
|
|
2442
|
+
self.GroupJID = args[3]
|
|
2443
|
+
if "GroupJID" in kwargs:
|
|
2444
|
+
self.GroupJID = kwargs["GroupJID"]
|
|
2452
2445
|
if 4 < len(args):
|
|
2453
|
-
self.
|
|
2454
|
-
if "
|
|
2455
|
-
self.
|
|
2446
|
+
self.OriginJID = args[4]
|
|
2447
|
+
if "OriginJID" in kwargs:
|
|
2448
|
+
self.OriginJID = kwargs["OriginJID"]
|
|
2456
2449
|
if 5 < len(args):
|
|
2457
|
-
self.
|
|
2458
|
-
if "
|
|
2459
|
-
self.
|
|
2450
|
+
self.Body = args[5]
|
|
2451
|
+
if "Body" in kwargs:
|
|
2452
|
+
self.Body = kwargs["Body"]
|
|
2460
2453
|
if 6 < len(args):
|
|
2461
|
-
self.
|
|
2462
|
-
if "
|
|
2463
|
-
self.
|
|
2454
|
+
self.Timestamp = args[6]
|
|
2455
|
+
if "Timestamp" in kwargs:
|
|
2456
|
+
self.Timestamp = kwargs["Timestamp"]
|
|
2457
|
+
if 7 < len(args):
|
|
2458
|
+
self.IsCarbon = args[7]
|
|
2459
|
+
if "IsCarbon" in kwargs:
|
|
2460
|
+
self.IsCarbon = kwargs["IsCarbon"]
|
|
2461
|
+
if 8 < len(args):
|
|
2462
|
+
self.IsForwarded = args[8]
|
|
2463
|
+
if "IsForwarded" in kwargs:
|
|
2464
|
+
self.IsForwarded = kwargs["IsForwarded"]
|
|
2465
|
+
if 9 < len(args):
|
|
2466
|
+
self.ReplyID = args[9]
|
|
2467
|
+
if "ReplyID" in kwargs:
|
|
2468
|
+
self.ReplyID = kwargs["ReplyID"]
|
|
2469
|
+
if 10 < len(args):
|
|
2470
|
+
self.ReplyBody = args[10]
|
|
2471
|
+
if "ReplyBody" in kwargs:
|
|
2472
|
+
self.ReplyBody = kwargs["ReplyBody"]
|
|
2473
|
+
if 11 < len(args):
|
|
2474
|
+
self.Attachments = args[11]
|
|
2475
|
+
if "Attachments" in kwargs:
|
|
2476
|
+
self.Attachments = kwargs["Attachments"]
|
|
2477
|
+
if 12 < len(args):
|
|
2478
|
+
self.Preview = args[12]
|
|
2479
|
+
if "Preview" in kwargs:
|
|
2480
|
+
self.Preview = kwargs["Preview"]
|
|
2481
|
+
if 13 < len(args):
|
|
2482
|
+
self.Location = args[13]
|
|
2483
|
+
if "Location" in kwargs:
|
|
2484
|
+
self.Location = kwargs["Location"]
|
|
2485
|
+
if 14 < len(args):
|
|
2486
|
+
self.Poll = args[14]
|
|
2487
|
+
if "Poll" in kwargs:
|
|
2488
|
+
self.Poll = kwargs["Poll"]
|
|
2489
|
+
if 15 < len(args):
|
|
2490
|
+
self.Album = args[15]
|
|
2491
|
+
if "Album" in kwargs:
|
|
2492
|
+
self.Album = kwargs["Album"]
|
|
2493
|
+
if 16 < len(args):
|
|
2494
|
+
self.MentionJIDs = args[16]
|
|
2495
|
+
if "MentionJIDs" in kwargs:
|
|
2496
|
+
self.MentionJIDs = kwargs["MentionJIDs"]
|
|
2497
|
+
if 17 < len(args):
|
|
2498
|
+
self.Receipts = args[17]
|
|
2499
|
+
if "Receipts" in kwargs:
|
|
2500
|
+
self.Receipts = kwargs["Receipts"]
|
|
2501
|
+
if 18 < len(args):
|
|
2502
|
+
self.Reactions = args[18]
|
|
2503
|
+
if "Reactions" in kwargs:
|
|
2504
|
+
self.Reactions = kwargs["Reactions"]
|
|
2464
2505
|
def __del__(self):
|
|
2465
2506
|
_whatsapp.DecRef(self.handle)
|
|
2466
2507
|
def __str__(self):
|
|
2467
2508
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2468
|
-
sv = 'whatsapp.
|
|
2509
|
+
sv = 'whatsapp.Message{'
|
|
2469
2510
|
first = True
|
|
2470
2511
|
for v in pr:
|
|
2471
2512
|
if callable(v[1]):
|
|
@@ -2478,76 +2519,182 @@ class Location(go.GoClass):
|
|
|
2478
2519
|
return sv + '}'
|
|
2479
2520
|
def __repr__(self):
|
|
2480
2521
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2481
|
-
sv = 'whatsapp.
|
|
2522
|
+
sv = 'whatsapp.Message ( '
|
|
2482
2523
|
for v in pr:
|
|
2483
2524
|
if not callable(v[1]):
|
|
2484
2525
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2485
2526
|
return sv + ')'
|
|
2486
2527
|
@property
|
|
2487
|
-
def
|
|
2488
|
-
return _whatsapp.
|
|
2489
|
-
@
|
|
2490
|
-
def
|
|
2528
|
+
def Kind(self):
|
|
2529
|
+
return _whatsapp.whatsapp_Message_Kind_Get(self.handle)
|
|
2530
|
+
@Kind.setter
|
|
2531
|
+
def Kind(self, value):
|
|
2491
2532
|
if isinstance(value, go.GoClass):
|
|
2492
|
-
_whatsapp.
|
|
2533
|
+
_whatsapp.whatsapp_Message_Kind_Set(self.handle, value.handle)
|
|
2493
2534
|
else:
|
|
2494
|
-
_whatsapp.
|
|
2535
|
+
_whatsapp.whatsapp_Message_Kind_Set(self.handle, value)
|
|
2495
2536
|
@property
|
|
2496
|
-
def
|
|
2497
|
-
return _whatsapp.
|
|
2498
|
-
@
|
|
2499
|
-
def
|
|
2537
|
+
def ID(self):
|
|
2538
|
+
return _whatsapp.whatsapp_Message_ID_Get(self.handle)
|
|
2539
|
+
@ID.setter
|
|
2540
|
+
def ID(self, value):
|
|
2500
2541
|
if isinstance(value, go.GoClass):
|
|
2501
|
-
_whatsapp.
|
|
2542
|
+
_whatsapp.whatsapp_Message_ID_Set(self.handle, value.handle)
|
|
2502
2543
|
else:
|
|
2503
|
-
_whatsapp.
|
|
2544
|
+
_whatsapp.whatsapp_Message_ID_Set(self.handle, value)
|
|
2504
2545
|
@property
|
|
2505
|
-
def
|
|
2506
|
-
return _whatsapp.
|
|
2507
|
-
@
|
|
2508
|
-
def
|
|
2546
|
+
def JID(self):
|
|
2547
|
+
return _whatsapp.whatsapp_Message_JID_Get(self.handle)
|
|
2548
|
+
@JID.setter
|
|
2549
|
+
def JID(self, value):
|
|
2509
2550
|
if isinstance(value, go.GoClass):
|
|
2510
|
-
_whatsapp.
|
|
2551
|
+
_whatsapp.whatsapp_Message_JID_Set(self.handle, value.handle)
|
|
2511
2552
|
else:
|
|
2512
|
-
_whatsapp.
|
|
2553
|
+
_whatsapp.whatsapp_Message_JID_Set(self.handle, value)
|
|
2513
2554
|
@property
|
|
2514
|
-
def
|
|
2515
|
-
return _whatsapp.
|
|
2516
|
-
@
|
|
2517
|
-
def
|
|
2555
|
+
def GroupJID(self):
|
|
2556
|
+
return _whatsapp.whatsapp_Message_GroupJID_Get(self.handle)
|
|
2557
|
+
@GroupJID.setter
|
|
2558
|
+
def GroupJID(self, value):
|
|
2518
2559
|
if isinstance(value, go.GoClass):
|
|
2519
|
-
_whatsapp.
|
|
2560
|
+
_whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value.handle)
|
|
2520
2561
|
else:
|
|
2521
|
-
_whatsapp.
|
|
2562
|
+
_whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value)
|
|
2522
2563
|
@property
|
|
2523
|
-
def
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
@Name.setter
|
|
2528
|
-
def Name(self, value):
|
|
2564
|
+
def OriginJID(self):
|
|
2565
|
+
return _whatsapp.whatsapp_Message_OriginJID_Get(self.handle)
|
|
2566
|
+
@OriginJID.setter
|
|
2567
|
+
def OriginJID(self, value):
|
|
2529
2568
|
if isinstance(value, go.GoClass):
|
|
2530
|
-
_whatsapp.
|
|
2569
|
+
_whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value.handle)
|
|
2531
2570
|
else:
|
|
2532
|
-
_whatsapp.
|
|
2571
|
+
_whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value)
|
|
2533
2572
|
@property
|
|
2534
|
-
def
|
|
2535
|
-
return _whatsapp.
|
|
2536
|
-
@
|
|
2537
|
-
def
|
|
2573
|
+
def Body(self):
|
|
2574
|
+
return _whatsapp.whatsapp_Message_Body_Get(self.handle)
|
|
2575
|
+
@Body.setter
|
|
2576
|
+
def Body(self, value):
|
|
2538
2577
|
if isinstance(value, go.GoClass):
|
|
2539
|
-
_whatsapp.
|
|
2578
|
+
_whatsapp.whatsapp_Message_Body_Set(self.handle, value.handle)
|
|
2540
2579
|
else:
|
|
2541
|
-
_whatsapp.
|
|
2580
|
+
_whatsapp.whatsapp_Message_Body_Set(self.handle, value)
|
|
2542
2581
|
@property
|
|
2543
|
-
def
|
|
2544
|
-
return _whatsapp.
|
|
2545
|
-
@
|
|
2546
|
-
def
|
|
2582
|
+
def Timestamp(self):
|
|
2583
|
+
return _whatsapp.whatsapp_Message_Timestamp_Get(self.handle)
|
|
2584
|
+
@Timestamp.setter
|
|
2585
|
+
def Timestamp(self, value):
|
|
2547
2586
|
if isinstance(value, go.GoClass):
|
|
2548
|
-
_whatsapp.
|
|
2587
|
+
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value.handle)
|
|
2549
2588
|
else:
|
|
2550
|
-
_whatsapp.
|
|
2589
|
+
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value)
|
|
2590
|
+
@property
|
|
2591
|
+
def IsCarbon(self):
|
|
2592
|
+
return _whatsapp.whatsapp_Message_IsCarbon_Get(self.handle)
|
|
2593
|
+
@IsCarbon.setter
|
|
2594
|
+
def IsCarbon(self, value):
|
|
2595
|
+
if isinstance(value, go.GoClass):
|
|
2596
|
+
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value.handle)
|
|
2597
|
+
else:
|
|
2598
|
+
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value)
|
|
2599
|
+
@property
|
|
2600
|
+
def IsForwarded(self):
|
|
2601
|
+
return _whatsapp.whatsapp_Message_IsForwarded_Get(self.handle)
|
|
2602
|
+
@IsForwarded.setter
|
|
2603
|
+
def IsForwarded(self, value):
|
|
2604
|
+
if isinstance(value, go.GoClass):
|
|
2605
|
+
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value.handle)
|
|
2606
|
+
else:
|
|
2607
|
+
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value)
|
|
2608
|
+
@property
|
|
2609
|
+
def ReplyID(self):
|
|
2610
|
+
return _whatsapp.whatsapp_Message_ReplyID_Get(self.handle)
|
|
2611
|
+
@ReplyID.setter
|
|
2612
|
+
def ReplyID(self, value):
|
|
2613
|
+
if isinstance(value, go.GoClass):
|
|
2614
|
+
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value.handle)
|
|
2615
|
+
else:
|
|
2616
|
+
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value)
|
|
2617
|
+
@property
|
|
2618
|
+
def ReplyBody(self):
|
|
2619
|
+
return _whatsapp.whatsapp_Message_ReplyBody_Get(self.handle)
|
|
2620
|
+
@ReplyBody.setter
|
|
2621
|
+
def ReplyBody(self, value):
|
|
2622
|
+
if isinstance(value, go.GoClass):
|
|
2623
|
+
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value.handle)
|
|
2624
|
+
else:
|
|
2625
|
+
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value)
|
|
2626
|
+
@property
|
|
2627
|
+
def Attachments(self):
|
|
2628
|
+
return Slice_whatsapp_Attachment(handle=_whatsapp.whatsapp_Message_Attachments_Get(self.handle))
|
|
2629
|
+
@Attachments.setter
|
|
2630
|
+
def Attachments(self, value):
|
|
2631
|
+
if isinstance(value, go.GoClass):
|
|
2632
|
+
_whatsapp.whatsapp_Message_Attachments_Set(self.handle, value.handle)
|
|
2633
|
+
else:
|
|
2634
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2635
|
+
@property
|
|
2636
|
+
def Preview(self):
|
|
2637
|
+
return Preview(handle=_whatsapp.whatsapp_Message_Preview_Get(self.handle))
|
|
2638
|
+
@Preview.setter
|
|
2639
|
+
def Preview(self, value):
|
|
2640
|
+
if isinstance(value, go.GoClass):
|
|
2641
|
+
_whatsapp.whatsapp_Message_Preview_Set(self.handle, value.handle)
|
|
2642
|
+
else:
|
|
2643
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2644
|
+
@property
|
|
2645
|
+
def Location(self):
|
|
2646
|
+
return Location(handle=_whatsapp.whatsapp_Message_Location_Get(self.handle))
|
|
2647
|
+
@Location.setter
|
|
2648
|
+
def Location(self, value):
|
|
2649
|
+
if isinstance(value, go.GoClass):
|
|
2650
|
+
_whatsapp.whatsapp_Message_Location_Set(self.handle, value.handle)
|
|
2651
|
+
else:
|
|
2652
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2653
|
+
@property
|
|
2654
|
+
def Poll(self):
|
|
2655
|
+
return Poll(handle=_whatsapp.whatsapp_Message_Poll_Get(self.handle))
|
|
2656
|
+
@Poll.setter
|
|
2657
|
+
def Poll(self, value):
|
|
2658
|
+
if isinstance(value, go.GoClass):
|
|
2659
|
+
_whatsapp.whatsapp_Message_Poll_Set(self.handle, value.handle)
|
|
2660
|
+
else:
|
|
2661
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2662
|
+
@property
|
|
2663
|
+
def Album(self):
|
|
2664
|
+
return Album(handle=_whatsapp.whatsapp_Message_Album_Get(self.handle))
|
|
2665
|
+
@Album.setter
|
|
2666
|
+
def Album(self, value):
|
|
2667
|
+
if isinstance(value, go.GoClass):
|
|
2668
|
+
_whatsapp.whatsapp_Message_Album_Set(self.handle, value.handle)
|
|
2669
|
+
else:
|
|
2670
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2671
|
+
@property
|
|
2672
|
+
def MentionJIDs(self):
|
|
2673
|
+
return go.Slice_string(handle=_whatsapp.whatsapp_Message_MentionJIDs_Get(self.handle))
|
|
2674
|
+
@MentionJIDs.setter
|
|
2675
|
+
def MentionJIDs(self, value):
|
|
2676
|
+
if isinstance(value, go.GoClass):
|
|
2677
|
+
_whatsapp.whatsapp_Message_MentionJIDs_Set(self.handle, value.handle)
|
|
2678
|
+
else:
|
|
2679
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2680
|
+
@property
|
|
2681
|
+
def Receipts(self):
|
|
2682
|
+
return Slice_whatsapp_Receipt(handle=_whatsapp.whatsapp_Message_Receipts_Get(self.handle))
|
|
2683
|
+
@Receipts.setter
|
|
2684
|
+
def Receipts(self, value):
|
|
2685
|
+
if isinstance(value, go.GoClass):
|
|
2686
|
+
_whatsapp.whatsapp_Message_Receipts_Set(self.handle, value.handle)
|
|
2687
|
+
else:
|
|
2688
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2689
|
+
@property
|
|
2690
|
+
def Reactions(self):
|
|
2691
|
+
return Slice_whatsapp_Message(handle=_whatsapp.whatsapp_Message_Reactions_Get(self.handle))
|
|
2692
|
+
@Reactions.setter
|
|
2693
|
+
def Reactions(self, value):
|
|
2694
|
+
if isinstance(value, go.GoClass):
|
|
2695
|
+
_whatsapp.whatsapp_Message_Reactions_Set(self.handle, value.handle)
|
|
2696
|
+
else:
|
|
2697
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2551
2698
|
|
|
2552
2699
|
# Python type for struct whatsapp.PollOption
|
|
2553
2700
|
class PollOption(go.GoClass):
|
|
@@ -2603,9 +2750,9 @@ class PollOption(go.GoClass):
|
|
|
2603
2750
|
else:
|
|
2604
2751
|
_whatsapp.whatsapp_PollOption_Title_Set(self.handle, value)
|
|
2605
2752
|
|
|
2606
|
-
# Python type for struct whatsapp.
|
|
2607
|
-
class
|
|
2608
|
-
"""A
|
|
2753
|
+
# Python type for struct whatsapp.Receipt
|
|
2754
|
+
class Receipt(go.GoClass):
|
|
2755
|
+
"""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"""
|
|
2609
2756
|
def __init__(self, *args, **kwargs):
|
|
2610
2757
|
"""
|
|
2611
2758
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2619,33 +2766,37 @@ class Preview(go.GoClass):
|
|
|
2619
2766
|
self.handle = args[0].handle
|
|
2620
2767
|
_whatsapp.IncRef(self.handle)
|
|
2621
2768
|
else:
|
|
2622
|
-
self.handle = _whatsapp.
|
|
2769
|
+
self.handle = _whatsapp.whatsapp_Receipt_CTor()
|
|
2623
2770
|
_whatsapp.IncRef(self.handle)
|
|
2624
2771
|
if 0 < len(args):
|
|
2625
2772
|
self.Kind = args[0]
|
|
2626
2773
|
if "Kind" in kwargs:
|
|
2627
2774
|
self.Kind = kwargs["Kind"]
|
|
2628
2775
|
if 1 < len(args):
|
|
2629
|
-
self.
|
|
2630
|
-
if "
|
|
2631
|
-
self.
|
|
2776
|
+
self.MessageIDs = args[1]
|
|
2777
|
+
if "MessageIDs" in kwargs:
|
|
2778
|
+
self.MessageIDs = kwargs["MessageIDs"]
|
|
2632
2779
|
if 2 < len(args):
|
|
2633
|
-
self.
|
|
2634
|
-
if "
|
|
2635
|
-
self.
|
|
2780
|
+
self.JID = args[2]
|
|
2781
|
+
if "JID" in kwargs:
|
|
2782
|
+
self.JID = kwargs["JID"]
|
|
2636
2783
|
if 3 < len(args):
|
|
2637
|
-
self.
|
|
2638
|
-
if "
|
|
2639
|
-
self.
|
|
2784
|
+
self.GroupJID = args[3]
|
|
2785
|
+
if "GroupJID" in kwargs:
|
|
2786
|
+
self.GroupJID = kwargs["GroupJID"]
|
|
2640
2787
|
if 4 < len(args):
|
|
2641
|
-
self.
|
|
2642
|
-
if "
|
|
2643
|
-
self.
|
|
2788
|
+
self.Timestamp = args[4]
|
|
2789
|
+
if "Timestamp" in kwargs:
|
|
2790
|
+
self.Timestamp = kwargs["Timestamp"]
|
|
2791
|
+
if 5 < len(args):
|
|
2792
|
+
self.IsCarbon = args[5]
|
|
2793
|
+
if "IsCarbon" in kwargs:
|
|
2794
|
+
self.IsCarbon = kwargs["IsCarbon"]
|
|
2644
2795
|
def __del__(self):
|
|
2645
2796
|
_whatsapp.DecRef(self.handle)
|
|
2646
2797
|
def __str__(self):
|
|
2647
2798
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2648
|
-
sv = 'whatsapp.
|
|
2799
|
+
sv = 'whatsapp.Receipt{'
|
|
2649
2800
|
first = True
|
|
2650
2801
|
for v in pr:
|
|
2651
2802
|
if callable(v[1]):
|
|
@@ -2658,56 +2809,65 @@ class Preview(go.GoClass):
|
|
|
2658
2809
|
return sv + '}'
|
|
2659
2810
|
def __repr__(self):
|
|
2660
2811
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2661
|
-
sv = 'whatsapp.
|
|
2812
|
+
sv = 'whatsapp.Receipt ( '
|
|
2662
2813
|
for v in pr:
|
|
2663
2814
|
if not callable(v[1]):
|
|
2664
2815
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2665
2816
|
return sv + ')'
|
|
2666
2817
|
@property
|
|
2667
|
-
def Kind(self):
|
|
2668
|
-
return _whatsapp.
|
|
2669
|
-
@Kind.setter
|
|
2670
|
-
def Kind(self, value):
|
|
2818
|
+
def Kind(self):
|
|
2819
|
+
return _whatsapp.whatsapp_Receipt_Kind_Get(self.handle)
|
|
2820
|
+
@Kind.setter
|
|
2821
|
+
def Kind(self, value):
|
|
2822
|
+
if isinstance(value, go.GoClass):
|
|
2823
|
+
_whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value.handle)
|
|
2824
|
+
else:
|
|
2825
|
+
_whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value)
|
|
2826
|
+
@property
|
|
2827
|
+
def MessageIDs(self):
|
|
2828
|
+
return go.Slice_string(handle=_whatsapp.whatsapp_Receipt_MessageIDs_Get(self.handle))
|
|
2829
|
+
@MessageIDs.setter
|
|
2830
|
+
def MessageIDs(self, value):
|
|
2671
2831
|
if isinstance(value, go.GoClass):
|
|
2672
|
-
_whatsapp.
|
|
2832
|
+
_whatsapp.whatsapp_Receipt_MessageIDs_Set(self.handle, value.handle)
|
|
2673
2833
|
else:
|
|
2674
|
-
|
|
2834
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2675
2835
|
@property
|
|
2676
|
-
def
|
|
2677
|
-
return _whatsapp.
|
|
2678
|
-
@
|
|
2679
|
-
def
|
|
2836
|
+
def JID(self):
|
|
2837
|
+
return _whatsapp.whatsapp_Receipt_JID_Get(self.handle)
|
|
2838
|
+
@JID.setter
|
|
2839
|
+
def JID(self, value):
|
|
2680
2840
|
if isinstance(value, go.GoClass):
|
|
2681
|
-
_whatsapp.
|
|
2841
|
+
_whatsapp.whatsapp_Receipt_JID_Set(self.handle, value.handle)
|
|
2682
2842
|
else:
|
|
2683
|
-
_whatsapp.
|
|
2843
|
+
_whatsapp.whatsapp_Receipt_JID_Set(self.handle, value)
|
|
2684
2844
|
@property
|
|
2685
|
-
def
|
|
2686
|
-
return _whatsapp.
|
|
2687
|
-
@
|
|
2688
|
-
def
|
|
2845
|
+
def GroupJID(self):
|
|
2846
|
+
return _whatsapp.whatsapp_Receipt_GroupJID_Get(self.handle)
|
|
2847
|
+
@GroupJID.setter
|
|
2848
|
+
def GroupJID(self, value):
|
|
2689
2849
|
if isinstance(value, go.GoClass):
|
|
2690
|
-
_whatsapp.
|
|
2850
|
+
_whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value.handle)
|
|
2691
2851
|
else:
|
|
2692
|
-
_whatsapp.
|
|
2852
|
+
_whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value)
|
|
2693
2853
|
@property
|
|
2694
|
-
def
|
|
2695
|
-
return _whatsapp.
|
|
2696
|
-
@
|
|
2697
|
-
def
|
|
2854
|
+
def Timestamp(self):
|
|
2855
|
+
return _whatsapp.whatsapp_Receipt_Timestamp_Get(self.handle)
|
|
2856
|
+
@Timestamp.setter
|
|
2857
|
+
def Timestamp(self, value):
|
|
2698
2858
|
if isinstance(value, go.GoClass):
|
|
2699
|
-
_whatsapp.
|
|
2859
|
+
_whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value.handle)
|
|
2700
2860
|
else:
|
|
2701
|
-
_whatsapp.
|
|
2861
|
+
_whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value)
|
|
2702
2862
|
@property
|
|
2703
|
-
def
|
|
2704
|
-
return
|
|
2705
|
-
@
|
|
2706
|
-
def
|
|
2863
|
+
def IsCarbon(self):
|
|
2864
|
+
return _whatsapp.whatsapp_Receipt_IsCarbon_Get(self.handle)
|
|
2865
|
+
@IsCarbon.setter
|
|
2866
|
+
def IsCarbon(self, value):
|
|
2707
2867
|
if isinstance(value, go.GoClass):
|
|
2708
|
-
_whatsapp.
|
|
2868
|
+
_whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value.handle)
|
|
2709
2869
|
else:
|
|
2710
|
-
|
|
2870
|
+
_whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value)
|
|
2711
2871
|
|
|
2712
2872
|
# Python type for struct whatsapp.Session
|
|
2713
2873
|
class Session(go.GoClass):
|
|
@@ -2982,156 +3142,9 @@ class Album(go.GoClass):
|
|
|
2982
3142
|
else:
|
|
2983
3143
|
_whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value)
|
|
2984
3144
|
|
|
2985
|
-
# Python type for struct whatsapp.
|
|
2986
|
-
class
|
|
2987
|
-
"""
|
|
2988
|
-
def __init__(self, *args, **kwargs):
|
|
2989
|
-
"""
|
|
2990
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2991
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
2992
|
-
in which case a new Go object is constructed first
|
|
2993
|
-
"""
|
|
2994
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2995
|
-
self.handle = kwargs['handle']
|
|
2996
|
-
_whatsapp.IncRef(self.handle)
|
|
2997
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2998
|
-
self.handle = args[0].handle
|
|
2999
|
-
_whatsapp.IncRef(self.handle)
|
|
3000
|
-
else:
|
|
3001
|
-
self.handle = _whatsapp.whatsapp_Avatar_CTor()
|
|
3002
|
-
_whatsapp.IncRef(self.handle)
|
|
3003
|
-
if 0 < len(args):
|
|
3004
|
-
self.ID = args[0]
|
|
3005
|
-
if "ID" in kwargs:
|
|
3006
|
-
self.ID = kwargs["ID"]
|
|
3007
|
-
if 1 < len(args):
|
|
3008
|
-
self.URL = args[1]
|
|
3009
|
-
if "URL" in kwargs:
|
|
3010
|
-
self.URL = kwargs["URL"]
|
|
3011
|
-
def __del__(self):
|
|
3012
|
-
_whatsapp.DecRef(self.handle)
|
|
3013
|
-
def __str__(self):
|
|
3014
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3015
|
-
sv = 'whatsapp.Avatar{'
|
|
3016
|
-
first = True
|
|
3017
|
-
for v in pr:
|
|
3018
|
-
if callable(v[1]):
|
|
3019
|
-
continue
|
|
3020
|
-
if first:
|
|
3021
|
-
first = False
|
|
3022
|
-
else:
|
|
3023
|
-
sv += ', '
|
|
3024
|
-
sv += v[0] + '=' + str(v[1])
|
|
3025
|
-
return sv + '}'
|
|
3026
|
-
def __repr__(self):
|
|
3027
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3028
|
-
sv = 'whatsapp.Avatar ( '
|
|
3029
|
-
for v in pr:
|
|
3030
|
-
if not callable(v[1]):
|
|
3031
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
3032
|
-
return sv + ')'
|
|
3033
|
-
@property
|
|
3034
|
-
def ID(self):
|
|
3035
|
-
return _whatsapp.whatsapp_Avatar_ID_Get(self.handle)
|
|
3036
|
-
@ID.setter
|
|
3037
|
-
def ID(self, value):
|
|
3038
|
-
if isinstance(value, go.GoClass):
|
|
3039
|
-
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value.handle)
|
|
3040
|
-
else:
|
|
3041
|
-
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value)
|
|
3042
|
-
@property
|
|
3043
|
-
def URL(self):
|
|
3044
|
-
return _whatsapp.whatsapp_Avatar_URL_Get(self.handle)
|
|
3045
|
-
@URL.setter
|
|
3046
|
-
def URL(self, value):
|
|
3047
|
-
if isinstance(value, go.GoClass):
|
|
3048
|
-
_whatsapp.whatsapp_Avatar_URL_Set(self.handle, value.handle)
|
|
3049
|
-
else:
|
|
3050
|
-
_whatsapp.whatsapp_Avatar_URL_Set(self.handle, value)
|
|
3051
|
-
|
|
3052
|
-
# Python type for struct whatsapp.Call
|
|
3053
|
-
class Call(go.GoClass):
|
|
3054
|
-
"""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"""
|
|
3055
|
-
def __init__(self, *args, **kwargs):
|
|
3056
|
-
"""
|
|
3057
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
3058
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
3059
|
-
in which case a new Go object is constructed first
|
|
3060
|
-
"""
|
|
3061
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
3062
|
-
self.handle = kwargs['handle']
|
|
3063
|
-
_whatsapp.IncRef(self.handle)
|
|
3064
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
3065
|
-
self.handle = args[0].handle
|
|
3066
|
-
_whatsapp.IncRef(self.handle)
|
|
3067
|
-
else:
|
|
3068
|
-
self.handle = _whatsapp.whatsapp_Call_CTor()
|
|
3069
|
-
_whatsapp.IncRef(self.handle)
|
|
3070
|
-
if 0 < len(args):
|
|
3071
|
-
self.State = args[0]
|
|
3072
|
-
if "State" in kwargs:
|
|
3073
|
-
self.State = kwargs["State"]
|
|
3074
|
-
if 1 < len(args):
|
|
3075
|
-
self.JID = args[1]
|
|
3076
|
-
if "JID" in kwargs:
|
|
3077
|
-
self.JID = kwargs["JID"]
|
|
3078
|
-
if 2 < len(args):
|
|
3079
|
-
self.Timestamp = args[2]
|
|
3080
|
-
if "Timestamp" in kwargs:
|
|
3081
|
-
self.Timestamp = kwargs["Timestamp"]
|
|
3082
|
-
def __del__(self):
|
|
3083
|
-
_whatsapp.DecRef(self.handle)
|
|
3084
|
-
def __str__(self):
|
|
3085
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3086
|
-
sv = 'whatsapp.Call{'
|
|
3087
|
-
first = True
|
|
3088
|
-
for v in pr:
|
|
3089
|
-
if callable(v[1]):
|
|
3090
|
-
continue
|
|
3091
|
-
if first:
|
|
3092
|
-
first = False
|
|
3093
|
-
else:
|
|
3094
|
-
sv += ', '
|
|
3095
|
-
sv += v[0] + '=' + str(v[1])
|
|
3096
|
-
return sv + '}'
|
|
3097
|
-
def __repr__(self):
|
|
3098
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3099
|
-
sv = 'whatsapp.Call ( '
|
|
3100
|
-
for v in pr:
|
|
3101
|
-
if not callable(v[1]):
|
|
3102
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
3103
|
-
return sv + ')'
|
|
3104
|
-
@property
|
|
3105
|
-
def State(self):
|
|
3106
|
-
return _whatsapp.whatsapp_Call_State_Get(self.handle)
|
|
3107
|
-
@State.setter
|
|
3108
|
-
def State(self, value):
|
|
3109
|
-
if isinstance(value, go.GoClass):
|
|
3110
|
-
_whatsapp.whatsapp_Call_State_Set(self.handle, value.handle)
|
|
3111
|
-
else:
|
|
3112
|
-
_whatsapp.whatsapp_Call_State_Set(self.handle, value)
|
|
3113
|
-
@property
|
|
3114
|
-
def JID(self):
|
|
3115
|
-
return _whatsapp.whatsapp_Call_JID_Get(self.handle)
|
|
3116
|
-
@JID.setter
|
|
3117
|
-
def JID(self, value):
|
|
3118
|
-
if isinstance(value, go.GoClass):
|
|
3119
|
-
_whatsapp.whatsapp_Call_JID_Set(self.handle, value.handle)
|
|
3120
|
-
else:
|
|
3121
|
-
_whatsapp.whatsapp_Call_JID_Set(self.handle, value)
|
|
3122
|
-
@property
|
|
3123
|
-
def Timestamp(self):
|
|
3124
|
-
return _whatsapp.whatsapp_Call_Timestamp_Get(self.handle)
|
|
3125
|
-
@Timestamp.setter
|
|
3126
|
-
def Timestamp(self, value):
|
|
3127
|
-
if isinstance(value, go.GoClass):
|
|
3128
|
-
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value.handle)
|
|
3129
|
-
else:
|
|
3130
|
-
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value)
|
|
3131
|
-
|
|
3132
|
-
# Python type for struct whatsapp.GroupParticipant
|
|
3133
|
-
class GroupParticipant(go.GoClass):
|
|
3134
|
-
"""A GroupParticipant represents a contact who is currently joined in a given group. Participants in\nWhatsApp can always be derived back to their individual [Contact]; there are no anonymous groups\nin WhatsApp.\n"""
|
|
3145
|
+
# Python type for struct whatsapp.Connect
|
|
3146
|
+
class Connect(go.GoClass):
|
|
3147
|
+
"""Connect represents event data related to a connection to WhatsApp being established, or failing\nto do so (based on the [Connect.Error] result).\n"""
|
|
3135
3148
|
def __init__(self, *args, **kwargs):
|
|
3136
3149
|
"""
|
|
3137
3150
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -3145,25 +3158,21 @@ class GroupParticipant(go.GoClass):
|
|
|
3145
3158
|
self.handle = args[0].handle
|
|
3146
3159
|
_whatsapp.IncRef(self.handle)
|
|
3147
3160
|
else:
|
|
3148
|
-
self.handle = _whatsapp.
|
|
3161
|
+
self.handle = _whatsapp.whatsapp_Connect_CTor()
|
|
3149
3162
|
_whatsapp.IncRef(self.handle)
|
|
3150
3163
|
if 0 < len(args):
|
|
3151
3164
|
self.JID = args[0]
|
|
3152
3165
|
if "JID" in kwargs:
|
|
3153
3166
|
self.JID = kwargs["JID"]
|
|
3154
3167
|
if 1 < len(args):
|
|
3155
|
-
self.
|
|
3156
|
-
if "
|
|
3157
|
-
self.
|
|
3158
|
-
if 2 < len(args):
|
|
3159
|
-
self.Action = args[2]
|
|
3160
|
-
if "Action" in kwargs:
|
|
3161
|
-
self.Action = kwargs["Action"]
|
|
3168
|
+
self.Error = args[1]
|
|
3169
|
+
if "Error" in kwargs:
|
|
3170
|
+
self.Error = kwargs["Error"]
|
|
3162
3171
|
def __del__(self):
|
|
3163
3172
|
_whatsapp.DecRef(self.handle)
|
|
3164
3173
|
def __str__(self):
|
|
3165
3174
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3166
|
-
sv = 'whatsapp.
|
|
3175
|
+
sv = 'whatsapp.Connect{'
|
|
3167
3176
|
first = True
|
|
3168
3177
|
for v in pr:
|
|
3169
3178
|
if callable(v[1]):
|
|
@@ -3176,38 +3185,29 @@ class GroupParticipant(go.GoClass):
|
|
|
3176
3185
|
return sv + '}'
|
|
3177
3186
|
def __repr__(self):
|
|
3178
3187
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3179
|
-
sv = 'whatsapp.
|
|
3188
|
+
sv = 'whatsapp.Connect ( '
|
|
3180
3189
|
for v in pr:
|
|
3181
3190
|
if not callable(v[1]):
|
|
3182
3191
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
3183
3192
|
return sv + ')'
|
|
3184
3193
|
@property
|
|
3185
3194
|
def JID(self):
|
|
3186
|
-
return _whatsapp.
|
|
3195
|
+
return _whatsapp.whatsapp_Connect_JID_Get(self.handle)
|
|
3187
3196
|
@JID.setter
|
|
3188
3197
|
def JID(self, value):
|
|
3189
3198
|
if isinstance(value, go.GoClass):
|
|
3190
|
-
_whatsapp.
|
|
3191
|
-
else:
|
|
3192
|
-
_whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value)
|
|
3193
|
-
@property
|
|
3194
|
-
def Affiliation(self):
|
|
3195
|
-
return _whatsapp.whatsapp_GroupParticipant_Affiliation_Get(self.handle)
|
|
3196
|
-
@Affiliation.setter
|
|
3197
|
-
def Affiliation(self, value):
|
|
3198
|
-
if isinstance(value, go.GoClass):
|
|
3199
|
-
_whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value.handle)
|
|
3199
|
+
_whatsapp.whatsapp_Connect_JID_Set(self.handle, value.handle)
|
|
3200
3200
|
else:
|
|
3201
|
-
_whatsapp.
|
|
3201
|
+
_whatsapp.whatsapp_Connect_JID_Set(self.handle, value)
|
|
3202
3202
|
@property
|
|
3203
|
-
def
|
|
3204
|
-
return _whatsapp.
|
|
3205
|
-
@
|
|
3206
|
-
def
|
|
3203
|
+
def Error(self):
|
|
3204
|
+
return _whatsapp.whatsapp_Connect_Error_Get(self.handle)
|
|
3205
|
+
@Error.setter
|
|
3206
|
+
def Error(self, value):
|
|
3207
3207
|
if isinstance(value, go.GoClass):
|
|
3208
|
-
_whatsapp.
|
|
3208
|
+
_whatsapp.whatsapp_Connect_Error_Set(self.handle, value.handle)
|
|
3209
3209
|
else:
|
|
3210
|
-
_whatsapp.
|
|
3210
|
+
_whatsapp.whatsapp_Connect_Error_Set(self.handle, value)
|
|
3211
3211
|
|
|
3212
3212
|
|
|
3213
3213
|
# ---- Slices ---
|