slidge-whatsapp 0.2.5__cp312-cp312-manylinux_2_36_aarch64.whl → 0.2.7__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 +31 -26
- slidge_whatsapp/gateway.go +13 -9
- slidge_whatsapp/gateway.py +2 -2
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.h +183 -183
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +148 -148
- slidge_whatsapp/generated/whatsapp.c +1490 -1490
- slidge_whatsapp/generated/whatsapp.go +1217 -1217
- slidge_whatsapp/generated/whatsapp.py +1210 -1210
- slidge_whatsapp/generated/whatsapp_go.h +183 -183
- slidge_whatsapp/go.mod +15 -12
- slidge_whatsapp/go.sum +35 -29
- slidge_whatsapp/media/media.go +21 -11
- 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 +36 -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/exstrings/stringutil.go +76 -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 +40 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/encoder.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/broadcast.go +5 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +119 -37
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +29 -11
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download-to-file.go +63 -30
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +74 -34
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +61 -31
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +188 -152
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaconn.go +5 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaretry.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +444 -135
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +118 -31
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +78 -42
- 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/extra.go +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.pb.go +983 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.proto +85 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.pb.go +197 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.proto +13 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.pb.go +279 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.proto +21 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.pb.go +137 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.proto +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.pb.go +313 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.proto +27 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.pb.go +1299 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.proto +112 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.pb.go +514 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.proto +47 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.pb.go +123 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.proto +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.pb.go +720 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.proto +59 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.pb.go +365 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.proto +33 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.pb.go +1238 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.proto +105 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.go +39 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.go +354 -175
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.proto +5 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.go +170 -15
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.proto +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/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} +184 -89
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/{WAWebProtobufsCompanionReg.proto → WACompanionReg.proto} +2 -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 +7428 -2151
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +373 -44
- 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/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.pb.go +198 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.proto +14 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.go +162 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.go +32 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.go +192 -52
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.proto +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.go +60 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/extra.go +7 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.go +39 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.go +61 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.pb.go +800 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.proto +72 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +1344 -438
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +52 -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 +563 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +25 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingfields.json +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingtoken.go +176 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +39 -21
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +261 -75
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +28 -16
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +3 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +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 +86 -65
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/lidmap.go +186 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +291 -167
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/00-latest-schema.sql +155 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/03-message-secrets.sql +11 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/04-privacy-tokens.sql +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/05-account-jid-format.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/06-facebook-uuid.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/07-account-lid.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/08-lid-mapping.sql +5 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/09-decryption-buffer.sql +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/10-chat-db-lid-migration-ts.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/upgrades.go +22 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +107 -56
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/botmap.go +210 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +13 -2
- 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 +18 -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 +47 -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 +52 -13
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.7.dist-info}/METADATA +1 -1
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.7.dist-info}/RECORD +330 -184
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.7.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.7.dist-info}/LICENSE +0 -0
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.7.dist-info}/entry_points.txt +0 -0
|
@@ -1013,9 +1013,9 @@ DefaultUserServer = "s.whatsapp.net"
|
|
|
1013
1013
|
|
|
1014
1014
|
# ---- Structs ---
|
|
1015
1015
|
|
|
1016
|
-
# Python type for struct whatsapp.
|
|
1017
|
-
class
|
|
1018
|
-
"""A
|
|
1016
|
+
# Python type for struct whatsapp.Gateway
|
|
1017
|
+
class Gateway(go.GoClass):
|
|
1018
|
+
"""A Gateway represents a persistent process for establishing individual sessions between linked\ndevices and WhatsApp.\n"""
|
|
1019
1019
|
def __init__(self, *args, **kwargs):
|
|
1020
1020
|
"""
|
|
1021
1021
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1029,25 +1029,29 @@ 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_Gateway_CTor()
|
|
1033
1033
|
_whatsapp.IncRef(self.handle)
|
|
1034
1034
|
if 0 < len(args):
|
|
1035
|
-
self.
|
|
1036
|
-
if "
|
|
1037
|
-
self.
|
|
1035
|
+
self.DBPath = args[0]
|
|
1036
|
+
if "DBPath" in kwargs:
|
|
1037
|
+
self.DBPath = kwargs["DBPath"]
|
|
1038
1038
|
if 1 < len(args):
|
|
1039
|
-
self.
|
|
1040
|
-
if "
|
|
1041
|
-
self.
|
|
1039
|
+
self.Name = args[1]
|
|
1040
|
+
if "Name" in kwargs:
|
|
1041
|
+
self.Name = kwargs["Name"]
|
|
1042
1042
|
if 2 < len(args):
|
|
1043
|
-
self.
|
|
1044
|
-
if "
|
|
1045
|
-
self.
|
|
1043
|
+
self.LogLevel = args[2]
|
|
1044
|
+
if "LogLevel" in kwargs:
|
|
1045
|
+
self.LogLevel = kwargs["LogLevel"]
|
|
1046
|
+
if 3 < len(args):
|
|
1047
|
+
self.TempDir = args[3]
|
|
1048
|
+
if "TempDir" in kwargs:
|
|
1049
|
+
self.TempDir = kwargs["TempDir"]
|
|
1046
1050
|
def __del__(self):
|
|
1047
1051
|
_whatsapp.DecRef(self.handle)
|
|
1048
1052
|
def __str__(self):
|
|
1049
1053
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1050
|
-
sv = 'whatsapp.
|
|
1054
|
+
sv = 'whatsapp.Gateway{'
|
|
1051
1055
|
first = True
|
|
1052
1056
|
for v in pr:
|
|
1053
1057
|
if callable(v[1]):
|
|
@@ -1060,42 +1064,72 @@ class GroupSubject(go.GoClass):
|
|
|
1060
1064
|
return sv + '}'
|
|
1061
1065
|
def __repr__(self):
|
|
1062
1066
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1063
|
-
sv = 'whatsapp.
|
|
1067
|
+
sv = 'whatsapp.Gateway ( '
|
|
1064
1068
|
for v in pr:
|
|
1065
1069
|
if not callable(v[1]):
|
|
1066
1070
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1067
1071
|
return sv + ')'
|
|
1068
1072
|
@property
|
|
1069
|
-
def
|
|
1070
|
-
return _whatsapp.
|
|
1071
|
-
@
|
|
1072
|
-
def
|
|
1073
|
+
def DBPath(self):
|
|
1074
|
+
return _whatsapp.whatsapp_Gateway_DBPath_Get(self.handle)
|
|
1075
|
+
@DBPath.setter
|
|
1076
|
+
def DBPath(self, value):
|
|
1073
1077
|
if isinstance(value, go.GoClass):
|
|
1074
|
-
_whatsapp.
|
|
1078
|
+
_whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value.handle)
|
|
1075
1079
|
else:
|
|
1076
|
-
_whatsapp.
|
|
1080
|
+
_whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value)
|
|
1077
1081
|
@property
|
|
1078
|
-
def
|
|
1079
|
-
return _whatsapp.
|
|
1080
|
-
@
|
|
1081
|
-
def
|
|
1082
|
+
def Name(self):
|
|
1083
|
+
return _whatsapp.whatsapp_Gateway_Name_Get(self.handle)
|
|
1084
|
+
@Name.setter
|
|
1085
|
+
def Name(self, value):
|
|
1082
1086
|
if isinstance(value, go.GoClass):
|
|
1083
|
-
_whatsapp.
|
|
1087
|
+
_whatsapp.whatsapp_Gateway_Name_Set(self.handle, value.handle)
|
|
1084
1088
|
else:
|
|
1085
|
-
_whatsapp.
|
|
1089
|
+
_whatsapp.whatsapp_Gateway_Name_Set(self.handle, value)
|
|
1086
1090
|
@property
|
|
1087
|
-
def
|
|
1088
|
-
return _whatsapp.
|
|
1089
|
-
@
|
|
1090
|
-
def
|
|
1091
|
+
def LogLevel(self):
|
|
1092
|
+
return _whatsapp.whatsapp_Gateway_LogLevel_Get(self.handle)
|
|
1093
|
+
@LogLevel.setter
|
|
1094
|
+
def LogLevel(self, value):
|
|
1091
1095
|
if isinstance(value, go.GoClass):
|
|
1092
|
-
_whatsapp.
|
|
1096
|
+
_whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value.handle)
|
|
1093
1097
|
else:
|
|
1094
|
-
_whatsapp.
|
|
1098
|
+
_whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value)
|
|
1099
|
+
@property
|
|
1100
|
+
def TempDir(self):
|
|
1101
|
+
return _whatsapp.whatsapp_Gateway_TempDir_Get(self.handle)
|
|
1102
|
+
@TempDir.setter
|
|
1103
|
+
def TempDir(self, value):
|
|
1104
|
+
if isinstance(value, go.GoClass):
|
|
1105
|
+
_whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value.handle)
|
|
1106
|
+
else:
|
|
1107
|
+
_whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value)
|
|
1108
|
+
def Init(self):
|
|
1109
|
+
"""Init() str
|
|
1110
|
+
|
|
1111
|
+
Init performs initialization procedures for the Gateway, and is expected to be run before any
|
|
1112
|
+
calls to [Gateway.Session].
|
|
1113
|
+
"""
|
|
1114
|
+
return _whatsapp.whatsapp_Gateway_Init(self.handle)
|
|
1115
|
+
def NewSession(self, device):
|
|
1116
|
+
"""NewSession(object device) object
|
|
1117
|
+
|
|
1118
|
+
NewSession returns a new [Session] for the LinkedDevice given. If the linked device does not have
|
|
1119
|
+
a valid ID, a pair operation will be required, as described in [Session.Login].
|
|
1120
|
+
"""
|
|
1121
|
+
return Session(handle=_whatsapp.whatsapp_Gateway_NewSession(self.handle, device.handle))
|
|
1122
|
+
def CleanupSession(self, device):
|
|
1123
|
+
"""CleanupSession(object device) str
|
|
1124
|
+
|
|
1125
|
+
CleanupSession will remove all invalid and obsolete references to the given device, and should be
|
|
1126
|
+
used when pairing a new device or unregistering from the Gateway.
|
|
1127
|
+
"""
|
|
1128
|
+
return _whatsapp.whatsapp_Gateway_CleanupSession(self.handle, device.handle)
|
|
1095
1129
|
|
|
1096
|
-
# Python type for struct whatsapp.
|
|
1097
|
-
class
|
|
1098
|
-
"""A
|
|
1130
|
+
# Python type for struct whatsapp.Location
|
|
1131
|
+
class Location(go.GoClass):
|
|
1132
|
+
"""A Location represents additional metadata given to location messages.\n"""
|
|
1099
1133
|
def __init__(self, *args, **kwargs):
|
|
1100
1134
|
"""
|
|
1101
1135
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1109,89 +1143,41 @@ class Message(go.GoClass):
|
|
|
1109
1143
|
self.handle = args[0].handle
|
|
1110
1144
|
_whatsapp.IncRef(self.handle)
|
|
1111
1145
|
else:
|
|
1112
|
-
self.handle = _whatsapp.
|
|
1146
|
+
self.handle = _whatsapp.whatsapp_Location_CTor()
|
|
1113
1147
|
_whatsapp.IncRef(self.handle)
|
|
1114
1148
|
if 0 < len(args):
|
|
1115
|
-
self.
|
|
1116
|
-
if "
|
|
1117
|
-
self.
|
|
1149
|
+
self.Latitude = args[0]
|
|
1150
|
+
if "Latitude" in kwargs:
|
|
1151
|
+
self.Latitude = kwargs["Latitude"]
|
|
1118
1152
|
if 1 < len(args):
|
|
1119
|
-
self.
|
|
1120
|
-
if "
|
|
1121
|
-
self.
|
|
1153
|
+
self.Longitude = args[1]
|
|
1154
|
+
if "Longitude" in kwargs:
|
|
1155
|
+
self.Longitude = kwargs["Longitude"]
|
|
1122
1156
|
if 2 < len(args):
|
|
1123
|
-
self.
|
|
1124
|
-
if "
|
|
1125
|
-
self.
|
|
1157
|
+
self.Accuracy = args[2]
|
|
1158
|
+
if "Accuracy" in kwargs:
|
|
1159
|
+
self.Accuracy = kwargs["Accuracy"]
|
|
1126
1160
|
if 3 < len(args):
|
|
1127
|
-
self.
|
|
1128
|
-
if "
|
|
1129
|
-
self.
|
|
1161
|
+
self.IsLive = args[3]
|
|
1162
|
+
if "IsLive" in kwargs:
|
|
1163
|
+
self.IsLive = kwargs["IsLive"]
|
|
1130
1164
|
if 4 < len(args):
|
|
1131
|
-
self.
|
|
1132
|
-
if "
|
|
1133
|
-
self.
|
|
1165
|
+
self.Name = args[4]
|
|
1166
|
+
if "Name" in kwargs:
|
|
1167
|
+
self.Name = kwargs["Name"]
|
|
1134
1168
|
if 5 < len(args):
|
|
1135
|
-
self.
|
|
1136
|
-
if "
|
|
1137
|
-
self.
|
|
1169
|
+
self.Address = args[5]
|
|
1170
|
+
if "Address" in kwargs:
|
|
1171
|
+
self.Address = kwargs["Address"]
|
|
1138
1172
|
if 6 < len(args):
|
|
1139
|
-
self.
|
|
1140
|
-
if "
|
|
1141
|
-
self.
|
|
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"]
|
|
1173
|
+
self.URL = args[6]
|
|
1174
|
+
if "URL" in kwargs:
|
|
1175
|
+
self.URL = kwargs["URL"]
|
|
1190
1176
|
def __del__(self):
|
|
1191
1177
|
_whatsapp.DecRef(self.handle)
|
|
1192
1178
|
def __str__(self):
|
|
1193
1179
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1194
|
-
sv = 'whatsapp.
|
|
1180
|
+
sv = 'whatsapp.Location{'
|
|
1195
1181
|
first = True
|
|
1196
1182
|
for v in pr:
|
|
1197
1183
|
if callable(v[1]):
|
|
@@ -1204,186 +1190,80 @@ class Message(go.GoClass):
|
|
|
1204
1190
|
return sv + '}'
|
|
1205
1191
|
def __repr__(self):
|
|
1206
1192
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1207
|
-
sv = 'whatsapp.
|
|
1193
|
+
sv = 'whatsapp.Location ( '
|
|
1208
1194
|
for v in pr:
|
|
1209
1195
|
if not callable(v[1]):
|
|
1210
1196
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1211
1197
|
return sv + ')'
|
|
1212
1198
|
@property
|
|
1213
|
-
def
|
|
1214
|
-
return _whatsapp.
|
|
1215
|
-
@
|
|
1216
|
-
def
|
|
1199
|
+
def Latitude(self):
|
|
1200
|
+
return _whatsapp.whatsapp_Location_Latitude_Get(self.handle)
|
|
1201
|
+
@Latitude.setter
|
|
1202
|
+
def Latitude(self, value):
|
|
1217
1203
|
if isinstance(value, go.GoClass):
|
|
1218
|
-
_whatsapp.
|
|
1204
|
+
_whatsapp.whatsapp_Location_Latitude_Set(self.handle, value.handle)
|
|
1219
1205
|
else:
|
|
1220
|
-
_whatsapp.
|
|
1206
|
+
_whatsapp.whatsapp_Location_Latitude_Set(self.handle, value)
|
|
1221
1207
|
@property
|
|
1222
|
-
def
|
|
1223
|
-
return _whatsapp.
|
|
1224
|
-
@
|
|
1225
|
-
def
|
|
1208
|
+
def Longitude(self):
|
|
1209
|
+
return _whatsapp.whatsapp_Location_Longitude_Get(self.handle)
|
|
1210
|
+
@Longitude.setter
|
|
1211
|
+
def Longitude(self, value):
|
|
1226
1212
|
if isinstance(value, go.GoClass):
|
|
1227
|
-
_whatsapp.
|
|
1213
|
+
_whatsapp.whatsapp_Location_Longitude_Set(self.handle, value.handle)
|
|
1228
1214
|
else:
|
|
1229
|
-
_whatsapp.
|
|
1215
|
+
_whatsapp.whatsapp_Location_Longitude_Set(self.handle, value)
|
|
1230
1216
|
@property
|
|
1231
|
-
def
|
|
1232
|
-
return _whatsapp.
|
|
1233
|
-
@
|
|
1234
|
-
def
|
|
1217
|
+
def Accuracy(self):
|
|
1218
|
+
return _whatsapp.whatsapp_Location_Accuracy_Get(self.handle)
|
|
1219
|
+
@Accuracy.setter
|
|
1220
|
+
def Accuracy(self, value):
|
|
1235
1221
|
if isinstance(value, go.GoClass):
|
|
1236
|
-
_whatsapp.
|
|
1222
|
+
_whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value.handle)
|
|
1237
1223
|
else:
|
|
1238
|
-
_whatsapp.
|
|
1224
|
+
_whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value)
|
|
1239
1225
|
@property
|
|
1240
|
-
def
|
|
1241
|
-
return _whatsapp.
|
|
1242
|
-
@
|
|
1243
|
-
def
|
|
1226
|
+
def IsLive(self):
|
|
1227
|
+
return _whatsapp.whatsapp_Location_IsLive_Get(self.handle)
|
|
1228
|
+
@IsLive.setter
|
|
1229
|
+
def IsLive(self, value):
|
|
1244
1230
|
if isinstance(value, go.GoClass):
|
|
1245
|
-
_whatsapp.
|
|
1231
|
+
_whatsapp.whatsapp_Location_IsLive_Set(self.handle, value.handle)
|
|
1246
1232
|
else:
|
|
1247
|
-
_whatsapp.
|
|
1233
|
+
_whatsapp.whatsapp_Location_IsLive_Set(self.handle, value)
|
|
1248
1234
|
@property
|
|
1249
|
-
def
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
else:
|
|
1256
|
-
_whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value)
|
|
1257
|
-
@property
|
|
1258
|
-
def Body(self):
|
|
1259
|
-
return _whatsapp.whatsapp_Message_Body_Get(self.handle)
|
|
1260
|
-
@Body.setter
|
|
1261
|
-
def Body(self, value):
|
|
1262
|
-
if isinstance(value, go.GoClass):
|
|
1263
|
-
_whatsapp.whatsapp_Message_Body_Set(self.handle, value.handle)
|
|
1264
|
-
else:
|
|
1265
|
-
_whatsapp.whatsapp_Message_Body_Set(self.handle, value)
|
|
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):
|
|
1235
|
+
def Name(self):
|
|
1236
|
+
"""Optional fields given for named locations.
|
|
1237
|
+
"""
|
|
1238
|
+
return _whatsapp.whatsapp_Location_Name_Get(self.handle)
|
|
1239
|
+
@Name.setter
|
|
1240
|
+
def Name(self, value):
|
|
1361
1241
|
if isinstance(value, go.GoClass):
|
|
1362
|
-
_whatsapp.
|
|
1242
|
+
_whatsapp.whatsapp_Location_Name_Set(self.handle, value.handle)
|
|
1363
1243
|
else:
|
|
1364
|
-
|
|
1244
|
+
_whatsapp.whatsapp_Location_Name_Set(self.handle, value)
|
|
1365
1245
|
@property
|
|
1366
|
-
def
|
|
1367
|
-
return
|
|
1368
|
-
@
|
|
1369
|
-
def
|
|
1246
|
+
def Address(self):
|
|
1247
|
+
return _whatsapp.whatsapp_Location_Address_Get(self.handle)
|
|
1248
|
+
@Address.setter
|
|
1249
|
+
def Address(self, value):
|
|
1370
1250
|
if isinstance(value, go.GoClass):
|
|
1371
|
-
_whatsapp.
|
|
1251
|
+
_whatsapp.whatsapp_Location_Address_Set(self.handle, value.handle)
|
|
1372
1252
|
else:
|
|
1373
|
-
|
|
1253
|
+
_whatsapp.whatsapp_Location_Address_Set(self.handle, value)
|
|
1374
1254
|
@property
|
|
1375
|
-
def
|
|
1376
|
-
return
|
|
1377
|
-
@
|
|
1378
|
-
def
|
|
1255
|
+
def URL(self):
|
|
1256
|
+
return _whatsapp.whatsapp_Location_URL_Get(self.handle)
|
|
1257
|
+
@URL.setter
|
|
1258
|
+
def URL(self, value):
|
|
1379
1259
|
if isinstance(value, go.GoClass):
|
|
1380
|
-
_whatsapp.
|
|
1260
|
+
_whatsapp.whatsapp_Location_URL_Set(self.handle, value.handle)
|
|
1381
1261
|
else:
|
|
1382
|
-
|
|
1262
|
+
_whatsapp.whatsapp_Location_URL_Set(self.handle, value)
|
|
1383
1263
|
|
|
1384
|
-
# Python type for struct whatsapp.
|
|
1385
|
-
class
|
|
1386
|
-
"""A
|
|
1264
|
+
# Python type for struct whatsapp.PollOption
|
|
1265
|
+
class PollOption(go.GoClass):
|
|
1266
|
+
"""A PollOption represents an individual choice within a broader poll.\n"""
|
|
1387
1267
|
def __init__(self, *args, **kwargs):
|
|
1388
1268
|
"""
|
|
1389
1269
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1397,21 +1277,17 @@ class Poll(go.GoClass):
|
|
|
1397
1277
|
self.handle = args[0].handle
|
|
1398
1278
|
_whatsapp.IncRef(self.handle)
|
|
1399
1279
|
else:
|
|
1400
|
-
self.handle = _whatsapp.
|
|
1280
|
+
self.handle = _whatsapp.whatsapp_PollOption_CTor()
|
|
1401
1281
|
_whatsapp.IncRef(self.handle)
|
|
1402
1282
|
if 0 < len(args):
|
|
1403
1283
|
self.Title = args[0]
|
|
1404
1284
|
if "Title" in kwargs:
|
|
1405
1285
|
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
1286
|
def __del__(self):
|
|
1411
1287
|
_whatsapp.DecRef(self.handle)
|
|
1412
1288
|
def __str__(self):
|
|
1413
1289
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1414
|
-
sv = 'whatsapp.
|
|
1290
|
+
sv = 'whatsapp.PollOption{'
|
|
1415
1291
|
first = True
|
|
1416
1292
|
for v in pr:
|
|
1417
1293
|
if callable(v[1]):
|
|
@@ -1424,33 +1300,24 @@ class Poll(go.GoClass):
|
|
|
1424
1300
|
return sv + '}'
|
|
1425
1301
|
def __repr__(self):
|
|
1426
1302
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1427
|
-
sv = 'whatsapp.
|
|
1303
|
+
sv = 'whatsapp.PollOption ( '
|
|
1428
1304
|
for v in pr:
|
|
1429
1305
|
if not callable(v[1]):
|
|
1430
1306
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1431
1307
|
return sv + ')'
|
|
1432
1308
|
@property
|
|
1433
1309
|
def Title(self):
|
|
1434
|
-
return _whatsapp.
|
|
1310
|
+
return _whatsapp.whatsapp_PollOption_Title_Get(self.handle)
|
|
1435
1311
|
@Title.setter
|
|
1436
1312
|
def Title(self, value):
|
|
1437
1313
|
if isinstance(value, go.GoClass):
|
|
1438
|
-
_whatsapp.
|
|
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)
|
|
1314
|
+
_whatsapp.whatsapp_PollOption_Title_Set(self.handle, value.handle)
|
|
1448
1315
|
else:
|
|
1449
|
-
|
|
1316
|
+
_whatsapp.whatsapp_PollOption_Title_Set(self.handle, value)
|
|
1450
1317
|
|
|
1451
|
-
# Python type for struct whatsapp.
|
|
1452
|
-
class
|
|
1453
|
-
"""A
|
|
1318
|
+
# Python type for struct whatsapp.Session
|
|
1319
|
+
class Session(go.GoClass):
|
|
1320
|
+
"""A Session represents a connection (active or not) between a linked device and WhatsApp. Active\nsessions need to be established by logging in, after which incoming events will be forwarded to\nthe adapter event handler, and outgoing events will be forwarded to WhatsApp.\n"""
|
|
1454
1321
|
def __init__(self, *args, **kwargs):
|
|
1455
1322
|
"""
|
|
1456
1323
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1464,33 +1331,13 @@ class Group(go.GoClass):
|
|
|
1464
1331
|
self.handle = args[0].handle
|
|
1465
1332
|
_whatsapp.IncRef(self.handle)
|
|
1466
1333
|
else:
|
|
1467
|
-
self.handle = _whatsapp.
|
|
1334
|
+
self.handle = _whatsapp.whatsapp_Session_CTor()
|
|
1468
1335
|
_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
1336
|
def __del__(self):
|
|
1490
1337
|
_whatsapp.DecRef(self.handle)
|
|
1491
1338
|
def __str__(self):
|
|
1492
1339
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1493
|
-
sv = 'whatsapp.
|
|
1340
|
+
sv = 'whatsapp.Session{'
|
|
1494
1341
|
first = True
|
|
1495
1342
|
for v in pr:
|
|
1496
1343
|
if callable(v[1]):
|
|
@@ -1503,64 +1350,171 @@ class Group(go.GoClass):
|
|
|
1503
1350
|
return sv + '}'
|
|
1504
1351
|
def __repr__(self):
|
|
1505
1352
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1506
|
-
sv = 'whatsapp.
|
|
1353
|
+
sv = 'whatsapp.Session ( '
|
|
1507
1354
|
for v in pr:
|
|
1508
1355
|
if not callable(v[1]):
|
|
1509
1356
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1510
1357
|
return sv + ')'
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
def
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
def
|
|
1561
|
-
"""
|
|
1562
|
-
|
|
1563
|
-
|
|
1358
|
+
def Login(self):
|
|
1359
|
+
"""Login() str
|
|
1360
|
+
|
|
1361
|
+
Login attempts to authenticate the given [Session], either by re-using the [LinkedDevice] attached
|
|
1362
|
+
or by initiating a pairing session for a new linked device. Callers are expected to have set an
|
|
1363
|
+
event handler in order to receive any incoming events from the underlying WhatsApp session.
|
|
1364
|
+
"""
|
|
1365
|
+
return _whatsapp.whatsapp_Session_Login(self.handle)
|
|
1366
|
+
def Logout(self):
|
|
1367
|
+
"""Logout() str
|
|
1368
|
+
|
|
1369
|
+
Logout disconnects and removes the current linked device locally and initiates a logout remotely.
|
|
1370
|
+
"""
|
|
1371
|
+
return _whatsapp.whatsapp_Session_Logout(self.handle)
|
|
1372
|
+
def Disconnect(self):
|
|
1373
|
+
"""Disconnect() str
|
|
1374
|
+
|
|
1375
|
+
Disconnects detaches the current connection to WhatsApp without removing any linked device state.
|
|
1376
|
+
"""
|
|
1377
|
+
return _whatsapp.whatsapp_Session_Disconnect(self.handle)
|
|
1378
|
+
def PairPhone(self, phone):
|
|
1379
|
+
"""PairPhone(str phone) str, str
|
|
1380
|
+
|
|
1381
|
+
PairPhone returns a one-time code from WhatsApp, used for pairing this [Session] against the
|
|
1382
|
+
user's primary device, as identified by the given phone number. This will return an error if the
|
|
1383
|
+
[Session] is already paired, or if the phone number given is empty or invalid.
|
|
1384
|
+
"""
|
|
1385
|
+
return _whatsapp.whatsapp_Session_PairPhone(self.handle, phone)
|
|
1386
|
+
def SendMessage(self, message):
|
|
1387
|
+
"""SendMessage(object message) str
|
|
1388
|
+
|
|
1389
|
+
SendMessage processes the given Message and sends a WhatsApp message for the kind and contact JID
|
|
1390
|
+
specified within. In general, different message kinds require different fields to be set; see the
|
|
1391
|
+
documentation for the [Message] type for more information.
|
|
1392
|
+
"""
|
|
1393
|
+
return _whatsapp.whatsapp_Session_SendMessage(self.handle, message.handle)
|
|
1394
|
+
def GenerateMessageID(self):
|
|
1395
|
+
"""GenerateMessageID() str
|
|
1396
|
+
|
|
1397
|
+
GenerateMessageID returns a valid, pseudo-random message ID for use in outgoing messages.
|
|
1398
|
+
"""
|
|
1399
|
+
return _whatsapp.whatsapp_Session_GenerateMessageID(self.handle)
|
|
1400
|
+
def SendChatState(self, state):
|
|
1401
|
+
"""SendChatState(object state) str
|
|
1402
|
+
|
|
1403
|
+
SendChatState sends the given chat state notification (e.g. composing message) to WhatsApp for the
|
|
1404
|
+
contact specified within.
|
|
1405
|
+
"""
|
|
1406
|
+
return _whatsapp.whatsapp_Session_SendChatState(self.handle, state.handle)
|
|
1407
|
+
def SendReceipt(self, receipt):
|
|
1408
|
+
"""SendReceipt(object receipt) str
|
|
1409
|
+
|
|
1410
|
+
SendReceipt sends a read receipt to WhatsApp for the message IDs specified within.
|
|
1411
|
+
"""
|
|
1412
|
+
return _whatsapp.whatsapp_Session_SendReceipt(self.handle, receipt.handle)
|
|
1413
|
+
def SendPresence(self, presence, statusMessage):
|
|
1414
|
+
"""SendPresence(int presence, str statusMessage) str
|
|
1415
|
+
|
|
1416
|
+
SendPresence sets the activity state and (optional) status message for the current session and
|
|
1417
|
+
user. An error is returned if setting availability fails for any reason.
|
|
1418
|
+
"""
|
|
1419
|
+
return _whatsapp.whatsapp_Session_SendPresence(self.handle, presence, statusMessage)
|
|
1420
|
+
def GetContacts(self, refresh):
|
|
1421
|
+
"""GetContacts(bool refresh) []object, str
|
|
1422
|
+
|
|
1423
|
+
GetContacts subscribes to the WhatsApp roster currently stored in the Session's internal state.
|
|
1424
|
+
If `refresh` is `true`, FetchRoster will pull application state from the remote service and
|
|
1425
|
+
synchronize any contacts found with the adapter.
|
|
1426
|
+
"""
|
|
1427
|
+
return Slice_whatsapp_Contact(handle=_whatsapp.whatsapp_Session_GetContacts(self.handle, refresh))
|
|
1428
|
+
def GetGroups(self):
|
|
1429
|
+
"""GetGroups() []object, str
|
|
1430
|
+
|
|
1431
|
+
GetGroups returns a list of all group-chats currently joined in WhatsApp, along with additional
|
|
1432
|
+
information on present participants.
|
|
1433
|
+
"""
|
|
1434
|
+
return Slice_whatsapp_Group(handle=_whatsapp.whatsapp_Session_GetGroups(self.handle))
|
|
1435
|
+
def CreateGroup(self, name, participants):
|
|
1436
|
+
"""CreateGroup(str name, []str participants) object, str
|
|
1437
|
+
|
|
1438
|
+
CreateGroup attempts to create a new WhatsApp group for the given human-readable name and
|
|
1439
|
+
participant JIDs given.
|
|
1440
|
+
"""
|
|
1441
|
+
return Group(handle=_whatsapp.whatsapp_Session_CreateGroup(self.handle, name, participants.handle))
|
|
1442
|
+
def LeaveGroup(self, resourceID):
|
|
1443
|
+
"""LeaveGroup(str resourceID) str
|
|
1444
|
+
|
|
1445
|
+
LeaveGroup attempts to remove our own user from the given WhatsApp group, for the JID given.
|
|
1446
|
+
"""
|
|
1447
|
+
return _whatsapp.whatsapp_Session_LeaveGroup(self.handle, resourceID)
|
|
1448
|
+
def GetAvatar(self, resourceID, avatarID):
|
|
1449
|
+
"""GetAvatar(str resourceID, str avatarID) object, str
|
|
1450
|
+
|
|
1451
|
+
GetAvatar fetches a profile picture for the Contact or Group JID given. If a non-empty `avatarID`
|
|
1452
|
+
is also given, GetAvatar will return an empty [Avatar] instance with no error if the remote state
|
|
1453
|
+
for the given ID has not changed.
|
|
1454
|
+
"""
|
|
1455
|
+
return Avatar(handle=_whatsapp.whatsapp_Session_GetAvatar(self.handle, resourceID, avatarID))
|
|
1456
|
+
def SetAvatar(self, resourceID, avatar):
|
|
1457
|
+
"""SetAvatar(str resourceID, []int avatar) str, str
|
|
1458
|
+
|
|
1459
|
+
SetAvatar updates the profile picture for the Contact or Group JID given; it can also update the
|
|
1460
|
+
profile picture for our own user by providing an empty JID. The unique picture ID is returned,
|
|
1461
|
+
typically used as a cache reference or in providing to future calls for [Session.GetAvatar].
|
|
1462
|
+
"""
|
|
1463
|
+
return _whatsapp.whatsapp_Session_SetAvatar(self.handle, resourceID, avatar.handle)
|
|
1464
|
+
def SetGroupName(self, resourceID, name):
|
|
1465
|
+
"""SetGroupName(str resourceID, str name) str
|
|
1466
|
+
|
|
1467
|
+
SetGroupName updates the name of a WhatsApp group for the Group JID given.
|
|
1468
|
+
"""
|
|
1469
|
+
return _whatsapp.whatsapp_Session_SetGroupName(self.handle, resourceID, name)
|
|
1470
|
+
def SetGroupTopic(self, resourceID, topic):
|
|
1471
|
+
"""SetGroupTopic(str resourceID, str topic) str
|
|
1472
|
+
|
|
1473
|
+
SetGroupName updates the topic of a WhatsApp group for the Group JID given.
|
|
1474
|
+
"""
|
|
1475
|
+
return _whatsapp.whatsapp_Session_SetGroupTopic(self.handle, resourceID, topic)
|
|
1476
|
+
def UpdateGroupParticipants(self, resourceID, participants):
|
|
1477
|
+
"""UpdateGroupParticipants(str resourceID, []object participants) []object, str
|
|
1478
|
+
|
|
1479
|
+
UpdateGroupParticipants processes changes to the given group's participants, including additions,
|
|
1480
|
+
removals, and changes to privileges. Participant JIDs given must be part of the authenticated
|
|
1481
|
+
session's roster at least, and must also be active group participants for other types of changes.
|
|
1482
|
+
"""
|
|
1483
|
+
return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Session_UpdateGroupParticipants(self.handle, resourceID, participants.handle))
|
|
1484
|
+
def FindContact(self, phone):
|
|
1485
|
+
"""FindContact(str phone) object, str
|
|
1486
|
+
|
|
1487
|
+
FindContact attempts to check for a registered contact on WhatsApp corresponding to the given
|
|
1488
|
+
phone number, returning a concrete instance if found; typically, only the contact JID is set. No
|
|
1489
|
+
error is returned if no contact was found, but any unexpected errors will otherwise be returned
|
|
1490
|
+
directly.
|
|
1491
|
+
"""
|
|
1492
|
+
return Contact(handle=_whatsapp.whatsapp_Session_FindContact(self.handle, phone))
|
|
1493
|
+
def RequestMessageHistory(self, resourceID, oldestMessage):
|
|
1494
|
+
"""RequestMessageHistory(str resourceID, object oldestMessage) str
|
|
1495
|
+
|
|
1496
|
+
RequestMessageHistory sends and asynchronous request for message history related to the given
|
|
1497
|
+
resource (e.g. Contact or Group JID), ending at the oldest message given. Messages returned from
|
|
1498
|
+
history should then be handled as a `HistorySync` event of type `ON_DEMAND`, in the session-wide
|
|
1499
|
+
event handler. An error will be returned if requesting history fails for any reason.
|
|
1500
|
+
"""
|
|
1501
|
+
return _whatsapp.whatsapp_Session_RequestMessageHistory(self.handle, resourceID, oldestMessage.handle)
|
|
1502
|
+
def SetEventHandler(self, h, goRun=False):
|
|
1503
|
+
"""SetEventHandler(callable h)
|
|
1504
|
+
|
|
1505
|
+
SetEventHandler assigns the given handler function for propagating internal events into the Python
|
|
1506
|
+
gateway. Note that the event handler function is not entirely safe to use directly, and all calls
|
|
1507
|
+
should instead be sent to the [Gateway] via its internal call channel.
|
|
1508
|
+
"""
|
|
1509
|
+
_whatsapp.whatsapp_Session_SetEventHandler(self.handle, h, goRun)
|
|
1510
|
+
|
|
1511
|
+
# Python type for struct whatsapp.Album
|
|
1512
|
+
class Album(go.GoClass):
|
|
1513
|
+
"""A Album message represents a collection of media files, typically images and videos.\n"""
|
|
1514
|
+
def __init__(self, *args, **kwargs):
|
|
1515
|
+
"""
|
|
1516
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1517
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
1564
1518
|
in which case a new Go object is constructed first
|
|
1565
1519
|
"""
|
|
1566
1520
|
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
@@ -1570,17 +1524,25 @@ class LinkedDevice(go.GoClass):
|
|
|
1570
1524
|
self.handle = args[0].handle
|
|
1571
1525
|
_whatsapp.IncRef(self.handle)
|
|
1572
1526
|
else:
|
|
1573
|
-
self.handle = _whatsapp.
|
|
1527
|
+
self.handle = _whatsapp.whatsapp_Album_CTor()
|
|
1574
1528
|
_whatsapp.IncRef(self.handle)
|
|
1575
1529
|
if 0 < len(args):
|
|
1576
|
-
self.
|
|
1577
|
-
if "
|
|
1578
|
-
self.
|
|
1530
|
+
self.IsAlbum = args[0]
|
|
1531
|
+
if "IsAlbum" in kwargs:
|
|
1532
|
+
self.IsAlbum = kwargs["IsAlbum"]
|
|
1533
|
+
if 1 < len(args):
|
|
1534
|
+
self.ImageCount = args[1]
|
|
1535
|
+
if "ImageCount" in kwargs:
|
|
1536
|
+
self.ImageCount = kwargs["ImageCount"]
|
|
1537
|
+
if 2 < len(args):
|
|
1538
|
+
self.VideoCount = args[2]
|
|
1539
|
+
if "VideoCount" in kwargs:
|
|
1540
|
+
self.VideoCount = kwargs["VideoCount"]
|
|
1579
1541
|
def __del__(self):
|
|
1580
1542
|
_whatsapp.DecRef(self.handle)
|
|
1581
1543
|
def __str__(self):
|
|
1582
1544
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1583
|
-
sv = 'whatsapp.
|
|
1545
|
+
sv = 'whatsapp.Album{'
|
|
1584
1546
|
first = True
|
|
1585
1547
|
for v in pr:
|
|
1586
1548
|
if callable(v[1]):
|
|
@@ -1593,34 +1555,42 @@ class LinkedDevice(go.GoClass):
|
|
|
1593
1555
|
return sv + '}'
|
|
1594
1556
|
def __repr__(self):
|
|
1595
1557
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1596
|
-
sv = 'whatsapp.
|
|
1558
|
+
sv = 'whatsapp.Album ( '
|
|
1597
1559
|
for v in pr:
|
|
1598
1560
|
if not callable(v[1]):
|
|
1599
1561
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1600
1562
|
return sv + ')'
|
|
1601
1563
|
@property
|
|
1602
|
-
def
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
return _whatsapp.whatsapp_LinkedDevice_ID_Get(self.handle)
|
|
1607
|
-
@ID.setter
|
|
1608
|
-
def ID(self, value):
|
|
1564
|
+
def IsAlbum(self):
|
|
1565
|
+
return _whatsapp.whatsapp_Album_IsAlbum_Get(self.handle)
|
|
1566
|
+
@IsAlbum.setter
|
|
1567
|
+
def IsAlbum(self, value):
|
|
1609
1568
|
if isinstance(value, go.GoClass):
|
|
1610
|
-
_whatsapp.
|
|
1569
|
+
_whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value.handle)
|
|
1611
1570
|
else:
|
|
1612
|
-
_whatsapp.
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1571
|
+
_whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value)
|
|
1572
|
+
@property
|
|
1573
|
+
def ImageCount(self):
|
|
1574
|
+
return _whatsapp.whatsapp_Album_ImageCount_Get(self.handle)
|
|
1575
|
+
@ImageCount.setter
|
|
1576
|
+
def ImageCount(self, value):
|
|
1577
|
+
if isinstance(value, go.GoClass):
|
|
1578
|
+
_whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value.handle)
|
|
1579
|
+
else:
|
|
1580
|
+
_whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value)
|
|
1581
|
+
@property
|
|
1582
|
+
def VideoCount(self):
|
|
1583
|
+
return _whatsapp.whatsapp_Album_VideoCount_Get(self.handle)
|
|
1584
|
+
@VideoCount.setter
|
|
1585
|
+
def VideoCount(self, value):
|
|
1586
|
+
if isinstance(value, go.GoClass):
|
|
1587
|
+
_whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value.handle)
|
|
1588
|
+
else:
|
|
1589
|
+
_whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value)
|
|
1620
1590
|
|
|
1621
|
-
# Python type for struct whatsapp.
|
|
1622
|
-
class
|
|
1623
|
-
"""
|
|
1591
|
+
# Python type for struct whatsapp.Avatar
|
|
1592
|
+
class Avatar(go.GoClass):
|
|
1593
|
+
"""A Avatar represents a small image set for a Contact or Group.\n"""
|
|
1624
1594
|
def __init__(self, *args, **kwargs):
|
|
1625
1595
|
"""
|
|
1626
1596
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -1634,25 +1604,21 @@ class Presence(go.GoClass):
|
|
|
1634
1604
|
self.handle = args[0].handle
|
|
1635
1605
|
_whatsapp.IncRef(self.handle)
|
|
1636
1606
|
else:
|
|
1637
|
-
self.handle = _whatsapp.
|
|
1607
|
+
self.handle = _whatsapp.whatsapp_Avatar_CTor()
|
|
1638
1608
|
_whatsapp.IncRef(self.handle)
|
|
1639
1609
|
if 0 < len(args):
|
|
1640
|
-
self.
|
|
1641
|
-
if "
|
|
1642
|
-
self.
|
|
1610
|
+
self.ID = args[0]
|
|
1611
|
+
if "ID" in kwargs:
|
|
1612
|
+
self.ID = kwargs["ID"]
|
|
1643
1613
|
if 1 < len(args):
|
|
1644
|
-
self.
|
|
1645
|
-
if "
|
|
1646
|
-
self.
|
|
1647
|
-
if 2 < len(args):
|
|
1648
|
-
self.LastSeen = args[2]
|
|
1649
|
-
if "LastSeen" in kwargs:
|
|
1650
|
-
self.LastSeen = kwargs["LastSeen"]
|
|
1614
|
+
self.URL = args[1]
|
|
1615
|
+
if "URL" in kwargs:
|
|
1616
|
+
self.URL = kwargs["URL"]
|
|
1651
1617
|
def __del__(self):
|
|
1652
1618
|
_whatsapp.DecRef(self.handle)
|
|
1653
1619
|
def __str__(self):
|
|
1654
1620
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1655
|
-
sv = 'whatsapp.
|
|
1621
|
+
sv = 'whatsapp.Avatar{'
|
|
1656
1622
|
first = True
|
|
1657
1623
|
for v in pr:
|
|
1658
1624
|
if callable(v[1]):
|
|
@@ -1665,256 +1631,29 @@ class Presence(go.GoClass):
|
|
|
1665
1631
|
return sv + '}'
|
|
1666
1632
|
def __repr__(self):
|
|
1667
1633
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1668
|
-
sv = 'whatsapp.
|
|
1634
|
+
sv = 'whatsapp.Avatar ( '
|
|
1669
1635
|
for v in pr:
|
|
1670
1636
|
if not callable(v[1]):
|
|
1671
1637
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1672
1638
|
return sv + ')'
|
|
1673
1639
|
@property
|
|
1674
|
-
def
|
|
1675
|
-
return _whatsapp.
|
|
1676
|
-
@
|
|
1677
|
-
def
|
|
1640
|
+
def ID(self):
|
|
1641
|
+
return _whatsapp.whatsapp_Avatar_ID_Get(self.handle)
|
|
1642
|
+
@ID.setter
|
|
1643
|
+
def ID(self, value):
|
|
1678
1644
|
if isinstance(value, go.GoClass):
|
|
1679
|
-
_whatsapp.
|
|
1680
|
-
else:
|
|
1681
|
-
_whatsapp.whatsapp_Presence_JID_Set(self.handle, value)
|
|
1682
|
-
@property
|
|
1683
|
-
def Kind(self):
|
|
1684
|
-
return _whatsapp.whatsapp_Presence_Kind_Get(self.handle)
|
|
1685
|
-
@Kind.setter
|
|
1686
|
-
def Kind(self, value):
|
|
1687
|
-
if isinstance(value, go.GoClass):
|
|
1688
|
-
_whatsapp.whatsapp_Presence_Kind_Set(self.handle, value.handle)
|
|
1689
|
-
else:
|
|
1690
|
-
_whatsapp.whatsapp_Presence_Kind_Set(self.handle, value)
|
|
1691
|
-
@property
|
|
1692
|
-
def LastSeen(self):
|
|
1693
|
-
return _whatsapp.whatsapp_Presence_LastSeen_Get(self.handle)
|
|
1694
|
-
@LastSeen.setter
|
|
1695
|
-
def LastSeen(self, value):
|
|
1696
|
-
if isinstance(value, go.GoClass):
|
|
1697
|
-
_whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value.handle)
|
|
1698
|
-
else:
|
|
1699
|
-
_whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value)
|
|
1700
|
-
|
|
1701
|
-
# Python type for struct whatsapp.Receipt
|
|
1702
|
-
class Receipt(go.GoClass):
|
|
1703
|
-
"""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"""
|
|
1704
|
-
def __init__(self, *args, **kwargs):
|
|
1705
|
-
"""
|
|
1706
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1707
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
1708
|
-
in which case a new Go object is constructed first
|
|
1709
|
-
"""
|
|
1710
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1711
|
-
self.handle = kwargs['handle']
|
|
1712
|
-
_whatsapp.IncRef(self.handle)
|
|
1713
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1714
|
-
self.handle = args[0].handle
|
|
1715
|
-
_whatsapp.IncRef(self.handle)
|
|
1716
|
-
else:
|
|
1717
|
-
self.handle = _whatsapp.whatsapp_Receipt_CTor()
|
|
1718
|
-
_whatsapp.IncRef(self.handle)
|
|
1719
|
-
if 0 < len(args):
|
|
1720
|
-
self.Kind = args[0]
|
|
1721
|
-
if "Kind" in kwargs:
|
|
1722
|
-
self.Kind = kwargs["Kind"]
|
|
1723
|
-
if 1 < len(args):
|
|
1724
|
-
self.MessageIDs = args[1]
|
|
1725
|
-
if "MessageIDs" in kwargs:
|
|
1726
|
-
self.MessageIDs = kwargs["MessageIDs"]
|
|
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"]
|
|
1743
|
-
def __del__(self):
|
|
1744
|
-
_whatsapp.DecRef(self.handle)
|
|
1745
|
-
def __str__(self):
|
|
1746
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1747
|
-
sv = 'whatsapp.Receipt{'
|
|
1748
|
-
first = True
|
|
1749
|
-
for v in pr:
|
|
1750
|
-
if callable(v[1]):
|
|
1751
|
-
continue
|
|
1752
|
-
if first:
|
|
1753
|
-
first = False
|
|
1754
|
-
else:
|
|
1755
|
-
sv += ', '
|
|
1756
|
-
sv += v[0] + '=' + str(v[1])
|
|
1757
|
-
return sv + '}'
|
|
1758
|
-
def __repr__(self):
|
|
1759
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1760
|
-
sv = 'whatsapp.Receipt ( '
|
|
1761
|
-
for v in pr:
|
|
1762
|
-
if not callable(v[1]):
|
|
1763
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1764
|
-
return sv + ')'
|
|
1765
|
-
@property
|
|
1766
|
-
def Kind(self):
|
|
1767
|
-
return _whatsapp.whatsapp_Receipt_Kind_Get(self.handle)
|
|
1768
|
-
@Kind.setter
|
|
1769
|
-
def Kind(self, value):
|
|
1770
|
-
if isinstance(value, go.GoClass):
|
|
1771
|
-
_whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value.handle)
|
|
1772
|
-
else:
|
|
1773
|
-
_whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value)
|
|
1774
|
-
@property
|
|
1775
|
-
def MessageIDs(self):
|
|
1776
|
-
return go.Slice_string(handle=_whatsapp.whatsapp_Receipt_MessageIDs_Get(self.handle))
|
|
1777
|
-
@MessageIDs.setter
|
|
1778
|
-
def MessageIDs(self, value):
|
|
1779
|
-
if isinstance(value, go.GoClass):
|
|
1780
|
-
_whatsapp.whatsapp_Receipt_MessageIDs_Set(self.handle, value.handle)
|
|
1781
|
-
else:
|
|
1782
|
-
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
|
-
|
|
1820
|
-
# Python type for struct whatsapp.Attachment
|
|
1821
|
-
class Attachment(go.GoClass):
|
|
1822
|
-
"""A Attachment represents additional binary data (e.g. images, videos, documents) provided alongside\na message, for display or storage on the recepient client.\n"""
|
|
1823
|
-
def __init__(self, *args, **kwargs):
|
|
1824
|
-
"""
|
|
1825
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
1826
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
1827
|
-
in which case a new Go object is constructed first
|
|
1828
|
-
"""
|
|
1829
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
1830
|
-
self.handle = kwargs['handle']
|
|
1831
|
-
_whatsapp.IncRef(self.handle)
|
|
1832
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
1833
|
-
self.handle = args[0].handle
|
|
1834
|
-
_whatsapp.IncRef(self.handle)
|
|
1835
|
-
else:
|
|
1836
|
-
self.handle = _whatsapp.whatsapp_Attachment_CTor()
|
|
1837
|
-
_whatsapp.IncRef(self.handle)
|
|
1838
|
-
if 0 < len(args):
|
|
1839
|
-
self.MIME = args[0]
|
|
1840
|
-
if "MIME" in kwargs:
|
|
1841
|
-
self.MIME = kwargs["MIME"]
|
|
1842
|
-
if 1 < len(args):
|
|
1843
|
-
self.Filename = args[1]
|
|
1844
|
-
if "Filename" in kwargs:
|
|
1845
|
-
self.Filename = kwargs["Filename"]
|
|
1846
|
-
if 2 < len(args):
|
|
1847
|
-
self.Caption = args[2]
|
|
1848
|
-
if "Caption" in kwargs:
|
|
1849
|
-
self.Caption = kwargs["Caption"]
|
|
1850
|
-
if 3 < len(args):
|
|
1851
|
-
self.Data = args[3]
|
|
1852
|
-
if "Data" in kwargs:
|
|
1853
|
-
self.Data = kwargs["Data"]
|
|
1854
|
-
def __del__(self):
|
|
1855
|
-
_whatsapp.DecRef(self.handle)
|
|
1856
|
-
def __str__(self):
|
|
1857
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1858
|
-
sv = 'whatsapp.Attachment{'
|
|
1859
|
-
first = True
|
|
1860
|
-
for v in pr:
|
|
1861
|
-
if callable(v[1]):
|
|
1862
|
-
continue
|
|
1863
|
-
if first:
|
|
1864
|
-
first = False
|
|
1865
|
-
else:
|
|
1866
|
-
sv += ', '
|
|
1867
|
-
sv += v[0] + '=' + str(v[1])
|
|
1868
|
-
return sv + '}'
|
|
1869
|
-
def __repr__(self):
|
|
1870
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
1871
|
-
sv = 'whatsapp.Attachment ( '
|
|
1872
|
-
for v in pr:
|
|
1873
|
-
if not callable(v[1]):
|
|
1874
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
1875
|
-
return sv + ')'
|
|
1876
|
-
@property
|
|
1877
|
-
def MIME(self):
|
|
1878
|
-
return _whatsapp.whatsapp_Attachment_MIME_Get(self.handle)
|
|
1879
|
-
@MIME.setter
|
|
1880
|
-
def MIME(self, value):
|
|
1881
|
-
if isinstance(value, go.GoClass):
|
|
1882
|
-
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value.handle)
|
|
1883
|
-
else:
|
|
1884
|
-
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value)
|
|
1885
|
-
@property
|
|
1886
|
-
def Filename(self):
|
|
1887
|
-
return _whatsapp.whatsapp_Attachment_Filename_Get(self.handle)
|
|
1888
|
-
@Filename.setter
|
|
1889
|
-
def Filename(self, value):
|
|
1890
|
-
if isinstance(value, go.GoClass):
|
|
1891
|
-
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value.handle)
|
|
1892
|
-
else:
|
|
1893
|
-
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value)
|
|
1894
|
-
@property
|
|
1895
|
-
def Caption(self):
|
|
1896
|
-
return _whatsapp.whatsapp_Attachment_Caption_Get(self.handle)
|
|
1897
|
-
@Caption.setter
|
|
1898
|
-
def Caption(self, value):
|
|
1899
|
-
if isinstance(value, go.GoClass):
|
|
1900
|
-
_whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value.handle)
|
|
1645
|
+
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value.handle)
|
|
1901
1646
|
else:
|
|
1902
|
-
_whatsapp.
|
|
1647
|
+
_whatsapp.whatsapp_Avatar_ID_Set(self.handle, value)
|
|
1903
1648
|
@property
|
|
1904
|
-
def
|
|
1905
|
-
return
|
|
1906
|
-
@
|
|
1907
|
-
def
|
|
1649
|
+
def URL(self):
|
|
1650
|
+
return _whatsapp.whatsapp_Avatar_URL_Get(self.handle)
|
|
1651
|
+
@URL.setter
|
|
1652
|
+
def URL(self, value):
|
|
1908
1653
|
if isinstance(value, go.GoClass):
|
|
1909
|
-
_whatsapp.
|
|
1654
|
+
_whatsapp.whatsapp_Avatar_URL_Set(self.handle, value.handle)
|
|
1910
1655
|
else:
|
|
1911
|
-
|
|
1912
|
-
def GetSpec(self, ctx):
|
|
1913
|
-
"""GetSpec(object ctx) object, str
|
|
1914
|
-
|
|
1915
|
-
GetSpec returns metadata for this attachment, as derived from the underlying attachment data.
|
|
1916
|
-
"""
|
|
1917
|
-
return go.Ptr_media_Spec(handle=_whatsapp.whatsapp_Attachment_GetSpec(self.handle, ctx.handle))
|
|
1656
|
+
_whatsapp.whatsapp_Avatar_URL_Set(self.handle, value)
|
|
1918
1657
|
|
|
1919
1658
|
# Python type for struct whatsapp.Contact
|
|
1920
1659
|
class Contact(go.GoClass):
|
|
@@ -2154,9 +1893,9 @@ class EventPayload(go.GoClass):
|
|
|
2154
1893
|
else:
|
|
2155
1894
|
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2156
1895
|
|
|
2157
|
-
# Python type for struct whatsapp.
|
|
2158
|
-
class
|
|
2159
|
-
"""A
|
|
1896
|
+
# Python type for struct whatsapp.Group
|
|
1897
|
+
class Group(go.GoClass):
|
|
1898
|
+
"""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"""
|
|
2160
1899
|
def __init__(self, *args, **kwargs):
|
|
2161
1900
|
"""
|
|
2162
1901
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2170,29 +1909,33 @@ class Gateway(go.GoClass):
|
|
|
2170
1909
|
self.handle = args[0].handle
|
|
2171
1910
|
_whatsapp.IncRef(self.handle)
|
|
2172
1911
|
else:
|
|
2173
|
-
self.handle = _whatsapp.
|
|
1912
|
+
self.handle = _whatsapp.whatsapp_Group_CTor()
|
|
2174
1913
|
_whatsapp.IncRef(self.handle)
|
|
2175
1914
|
if 0 < len(args):
|
|
2176
|
-
self.
|
|
2177
|
-
if "
|
|
2178
|
-
self.
|
|
2179
|
-
if 1 < len(args):
|
|
2180
|
-
self.Name = args[1]
|
|
1915
|
+
self.JID = args[0]
|
|
1916
|
+
if "JID" in kwargs:
|
|
1917
|
+
self.JID = kwargs["JID"]
|
|
1918
|
+
if 1 < len(args):
|
|
1919
|
+
self.Name = args[1]
|
|
2181
1920
|
if "Name" in kwargs:
|
|
2182
1921
|
self.Name = kwargs["Name"]
|
|
2183
1922
|
if 2 < len(args):
|
|
2184
|
-
self.
|
|
2185
|
-
if "
|
|
2186
|
-
self.
|
|
1923
|
+
self.Subject = args[2]
|
|
1924
|
+
if "Subject" in kwargs:
|
|
1925
|
+
self.Subject = kwargs["Subject"]
|
|
2187
1926
|
if 3 < len(args):
|
|
2188
|
-
self.
|
|
2189
|
-
if "
|
|
2190
|
-
self.
|
|
1927
|
+
self.Nickname = args[3]
|
|
1928
|
+
if "Nickname" in kwargs:
|
|
1929
|
+
self.Nickname = kwargs["Nickname"]
|
|
1930
|
+
if 4 < len(args):
|
|
1931
|
+
self.Participants = args[4]
|
|
1932
|
+
if "Participants" in kwargs:
|
|
1933
|
+
self.Participants = kwargs["Participants"]
|
|
2191
1934
|
def __del__(self):
|
|
2192
1935
|
_whatsapp.DecRef(self.handle)
|
|
2193
1936
|
def __str__(self):
|
|
2194
1937
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2195
|
-
sv = 'whatsapp.
|
|
1938
|
+
sv = 'whatsapp.Group{'
|
|
2196
1939
|
first = True
|
|
2197
1940
|
for v in pr:
|
|
2198
1941
|
if callable(v[1]):
|
|
@@ -2205,72 +1948,60 @@ class Gateway(go.GoClass):
|
|
|
2205
1948
|
return sv + '}'
|
|
2206
1949
|
def __repr__(self):
|
|
2207
1950
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2208
|
-
sv = 'whatsapp.
|
|
1951
|
+
sv = 'whatsapp.Group ( '
|
|
2209
1952
|
for v in pr:
|
|
2210
1953
|
if not callable(v[1]):
|
|
2211
1954
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2212
1955
|
return sv + ')'
|
|
2213
1956
|
@property
|
|
2214
|
-
def
|
|
2215
|
-
return _whatsapp.
|
|
2216
|
-
@
|
|
2217
|
-
def
|
|
1957
|
+
def JID(self):
|
|
1958
|
+
return _whatsapp.whatsapp_Group_JID_Get(self.handle)
|
|
1959
|
+
@JID.setter
|
|
1960
|
+
def JID(self, value):
|
|
2218
1961
|
if isinstance(value, go.GoClass):
|
|
2219
|
-
_whatsapp.
|
|
1962
|
+
_whatsapp.whatsapp_Group_JID_Set(self.handle, value.handle)
|
|
2220
1963
|
else:
|
|
2221
|
-
_whatsapp.
|
|
1964
|
+
_whatsapp.whatsapp_Group_JID_Set(self.handle, value)
|
|
2222
1965
|
@property
|
|
2223
1966
|
def Name(self):
|
|
2224
|
-
return _whatsapp.
|
|
1967
|
+
return _whatsapp.whatsapp_Group_Name_Get(self.handle)
|
|
2225
1968
|
@Name.setter
|
|
2226
1969
|
def Name(self, value):
|
|
2227
1970
|
if isinstance(value, go.GoClass):
|
|
2228
|
-
_whatsapp.
|
|
1971
|
+
_whatsapp.whatsapp_Group_Name_Set(self.handle, value.handle)
|
|
2229
1972
|
else:
|
|
2230
|
-
_whatsapp.
|
|
1973
|
+
_whatsapp.whatsapp_Group_Name_Set(self.handle, value)
|
|
2231
1974
|
@property
|
|
2232
|
-
def
|
|
2233
|
-
return _whatsapp.
|
|
2234
|
-
@
|
|
2235
|
-
def
|
|
1975
|
+
def Subject(self):
|
|
1976
|
+
return GroupSubject(handle=_whatsapp.whatsapp_Group_Subject_Get(self.handle))
|
|
1977
|
+
@Subject.setter
|
|
1978
|
+
def Subject(self, value):
|
|
2236
1979
|
if isinstance(value, go.GoClass):
|
|
2237
|
-
_whatsapp.
|
|
1980
|
+
_whatsapp.whatsapp_Group_Subject_Set(self.handle, value.handle)
|
|
2238
1981
|
else:
|
|
2239
|
-
|
|
1982
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2240
1983
|
@property
|
|
2241
|
-
def
|
|
2242
|
-
return _whatsapp.
|
|
2243
|
-
@
|
|
2244
|
-
def
|
|
1984
|
+
def Nickname(self):
|
|
1985
|
+
return _whatsapp.whatsapp_Group_Nickname_Get(self.handle)
|
|
1986
|
+
@Nickname.setter
|
|
1987
|
+
def Nickname(self, value):
|
|
2245
1988
|
if isinstance(value, go.GoClass):
|
|
2246
|
-
_whatsapp.
|
|
1989
|
+
_whatsapp.whatsapp_Group_Nickname_Set(self.handle, value.handle)
|
|
2247
1990
|
else:
|
|
2248
|
-
_whatsapp.
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
NewSession returns a new [Session] for the LinkedDevice given. If the linked device does not have
|
|
2260
|
-
a valid ID, a pair operation will be required, as described in [Session.Login].
|
|
2261
|
-
"""
|
|
2262
|
-
return Session(handle=_whatsapp.whatsapp_Gateway_NewSession(self.handle, device.handle))
|
|
2263
|
-
def CleanupSession(self, device):
|
|
2264
|
-
"""CleanupSession(object device) str
|
|
2265
|
-
|
|
2266
|
-
CleanupSession will remove all invalid and obsolete references to the given device, and should be
|
|
2267
|
-
used when pairing a new device or unregistering from the Gateway.
|
|
2268
|
-
"""
|
|
2269
|
-
return _whatsapp.whatsapp_Gateway_CleanupSession(self.handle, device.handle)
|
|
1991
|
+
_whatsapp.whatsapp_Group_Nickname_Set(self.handle, value)
|
|
1992
|
+
@property
|
|
1993
|
+
def Participants(self):
|
|
1994
|
+
return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Group_Participants_Get(self.handle))
|
|
1995
|
+
@Participants.setter
|
|
1996
|
+
def Participants(self, value):
|
|
1997
|
+
if isinstance(value, go.GoClass):
|
|
1998
|
+
_whatsapp.whatsapp_Group_Participants_Set(self.handle, value.handle)
|
|
1999
|
+
else:
|
|
2000
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2270
2001
|
|
|
2271
|
-
# Python type for struct whatsapp.
|
|
2272
|
-
class
|
|
2273
|
-
"""A
|
|
2002
|
+
# Python type for struct whatsapp.GroupParticipant
|
|
2003
|
+
class GroupParticipant(go.GoClass):
|
|
2004
|
+
"""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
2005
|
def __init__(self, *args, **kwargs):
|
|
2275
2006
|
"""
|
|
2276
2007
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2284,25 +2015,25 @@ class ChatState(go.GoClass):
|
|
|
2284
2015
|
self.handle = args[0].handle
|
|
2285
2016
|
_whatsapp.IncRef(self.handle)
|
|
2286
2017
|
else:
|
|
2287
|
-
self.handle = _whatsapp.
|
|
2018
|
+
self.handle = _whatsapp.whatsapp_GroupParticipant_CTor()
|
|
2288
2019
|
_whatsapp.IncRef(self.handle)
|
|
2289
2020
|
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]
|
|
2021
|
+
self.JID = args[0]
|
|
2295
2022
|
if "JID" in kwargs:
|
|
2296
2023
|
self.JID = kwargs["JID"]
|
|
2024
|
+
if 1 < len(args):
|
|
2025
|
+
self.Affiliation = args[1]
|
|
2026
|
+
if "Affiliation" in kwargs:
|
|
2027
|
+
self.Affiliation = kwargs["Affiliation"]
|
|
2297
2028
|
if 2 < len(args):
|
|
2298
|
-
self.
|
|
2299
|
-
if "
|
|
2300
|
-
self.
|
|
2029
|
+
self.Action = args[2]
|
|
2030
|
+
if "Action" in kwargs:
|
|
2031
|
+
self.Action = kwargs["Action"]
|
|
2301
2032
|
def __del__(self):
|
|
2302
2033
|
_whatsapp.DecRef(self.handle)
|
|
2303
2034
|
def __str__(self):
|
|
2304
2035
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2305
|
-
sv = 'whatsapp.
|
|
2036
|
+
sv = 'whatsapp.GroupParticipant{'
|
|
2306
2037
|
first = True
|
|
2307
2038
|
for v in pr:
|
|
2308
2039
|
if callable(v[1]):
|
|
@@ -2315,42 +2046,42 @@ class ChatState(go.GoClass):
|
|
|
2315
2046
|
return sv + '}'
|
|
2316
2047
|
def __repr__(self):
|
|
2317
2048
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2318
|
-
sv = 'whatsapp.
|
|
2049
|
+
sv = 'whatsapp.GroupParticipant ( '
|
|
2319
2050
|
for v in pr:
|
|
2320
2051
|
if not callable(v[1]):
|
|
2321
2052
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2322
2053
|
return sv + ')'
|
|
2323
2054
|
@property
|
|
2324
|
-
def Kind(self):
|
|
2325
|
-
return _whatsapp.whatsapp_ChatState_Kind_Get(self.handle)
|
|
2326
|
-
@Kind.setter
|
|
2327
|
-
def Kind(self, value):
|
|
2328
|
-
if isinstance(value, go.GoClass):
|
|
2329
|
-
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value.handle)
|
|
2330
|
-
else:
|
|
2331
|
-
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value)
|
|
2332
|
-
@property
|
|
2333
2055
|
def JID(self):
|
|
2334
|
-
return _whatsapp.
|
|
2056
|
+
return _whatsapp.whatsapp_GroupParticipant_JID_Get(self.handle)
|
|
2335
2057
|
@JID.setter
|
|
2336
2058
|
def JID(self, value):
|
|
2337
2059
|
if isinstance(value, go.GoClass):
|
|
2338
|
-
_whatsapp.
|
|
2060
|
+
_whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value.handle)
|
|
2339
2061
|
else:
|
|
2340
|
-
_whatsapp.
|
|
2062
|
+
_whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value)
|
|
2341
2063
|
@property
|
|
2342
|
-
def
|
|
2343
|
-
return _whatsapp.
|
|
2344
|
-
@
|
|
2345
|
-
def
|
|
2064
|
+
def Affiliation(self):
|
|
2065
|
+
return _whatsapp.whatsapp_GroupParticipant_Affiliation_Get(self.handle)
|
|
2066
|
+
@Affiliation.setter
|
|
2067
|
+
def Affiliation(self, value):
|
|
2346
2068
|
if isinstance(value, go.GoClass):
|
|
2347
|
-
_whatsapp.
|
|
2069
|
+
_whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value.handle)
|
|
2348
2070
|
else:
|
|
2349
|
-
_whatsapp.
|
|
2071
|
+
_whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value)
|
|
2072
|
+
@property
|
|
2073
|
+
def Action(self):
|
|
2074
|
+
return _whatsapp.whatsapp_GroupParticipant_Action_Get(self.handle)
|
|
2075
|
+
@Action.setter
|
|
2076
|
+
def Action(self, value):
|
|
2077
|
+
if isinstance(value, go.GoClass):
|
|
2078
|
+
_whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value.handle)
|
|
2079
|
+
else:
|
|
2080
|
+
_whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value)
|
|
2350
2081
|
|
|
2351
|
-
# Python type for struct whatsapp.
|
|
2352
|
-
class
|
|
2353
|
-
"""
|
|
2082
|
+
# Python type for struct whatsapp.GroupSubject
|
|
2083
|
+
class GroupSubject(go.GoClass):
|
|
2084
|
+
"""A GroupSubject represents the user-defined group description and attached metadata thereof, for a\ngiven [Group].\n"""
|
|
2354
2085
|
def __init__(self, *args, **kwargs):
|
|
2355
2086
|
"""
|
|
2356
2087
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2364,21 +2095,25 @@ class Connect(go.GoClass):
|
|
|
2364
2095
|
self.handle = args[0].handle
|
|
2365
2096
|
_whatsapp.IncRef(self.handle)
|
|
2366
2097
|
else:
|
|
2367
|
-
self.handle = _whatsapp.
|
|
2098
|
+
self.handle = _whatsapp.whatsapp_GroupSubject_CTor()
|
|
2368
2099
|
_whatsapp.IncRef(self.handle)
|
|
2369
2100
|
if 0 < len(args):
|
|
2370
|
-
self.
|
|
2371
|
-
if "
|
|
2372
|
-
self.
|
|
2101
|
+
self.Subject = args[0]
|
|
2102
|
+
if "Subject" in kwargs:
|
|
2103
|
+
self.Subject = kwargs["Subject"]
|
|
2373
2104
|
if 1 < len(args):
|
|
2374
|
-
self.
|
|
2375
|
-
if "
|
|
2376
|
-
self.
|
|
2105
|
+
self.SetAt = args[1]
|
|
2106
|
+
if "SetAt" in kwargs:
|
|
2107
|
+
self.SetAt = kwargs["SetAt"]
|
|
2108
|
+
if 2 < len(args):
|
|
2109
|
+
self.SetByJID = args[2]
|
|
2110
|
+
if "SetByJID" in kwargs:
|
|
2111
|
+
self.SetByJID = kwargs["SetByJID"]
|
|
2377
2112
|
def __del__(self):
|
|
2378
2113
|
_whatsapp.DecRef(self.handle)
|
|
2379
2114
|
def __str__(self):
|
|
2380
2115
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2381
|
-
sv = 'whatsapp.
|
|
2116
|
+
sv = 'whatsapp.GroupSubject{'
|
|
2382
2117
|
first = True
|
|
2383
2118
|
for v in pr:
|
|
2384
2119
|
if callable(v[1]):
|
|
@@ -2391,33 +2126,42 @@ class Connect(go.GoClass):
|
|
|
2391
2126
|
return sv + '}'
|
|
2392
2127
|
def __repr__(self):
|
|
2393
2128
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2394
|
-
sv = 'whatsapp.
|
|
2129
|
+
sv = 'whatsapp.GroupSubject ( '
|
|
2395
2130
|
for v in pr:
|
|
2396
2131
|
if not callable(v[1]):
|
|
2397
2132
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2398
2133
|
return sv + ')'
|
|
2399
2134
|
@property
|
|
2400
|
-
def
|
|
2401
|
-
return _whatsapp.
|
|
2402
|
-
@
|
|
2403
|
-
def
|
|
2135
|
+
def Subject(self):
|
|
2136
|
+
return _whatsapp.whatsapp_GroupSubject_Subject_Get(self.handle)
|
|
2137
|
+
@Subject.setter
|
|
2138
|
+
def Subject(self, value):
|
|
2404
2139
|
if isinstance(value, go.GoClass):
|
|
2405
|
-
_whatsapp.
|
|
2140
|
+
_whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value.handle)
|
|
2406
2141
|
else:
|
|
2407
|
-
_whatsapp.
|
|
2142
|
+
_whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value)
|
|
2408
2143
|
@property
|
|
2409
|
-
def
|
|
2410
|
-
return _whatsapp.
|
|
2411
|
-
@
|
|
2412
|
-
def
|
|
2144
|
+
def SetAt(self):
|
|
2145
|
+
return _whatsapp.whatsapp_GroupSubject_SetAt_Get(self.handle)
|
|
2146
|
+
@SetAt.setter
|
|
2147
|
+
def SetAt(self, value):
|
|
2413
2148
|
if isinstance(value, go.GoClass):
|
|
2414
|
-
_whatsapp.
|
|
2149
|
+
_whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value.handle)
|
|
2415
2150
|
else:
|
|
2416
|
-
_whatsapp.
|
|
2151
|
+
_whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value)
|
|
2152
|
+
@property
|
|
2153
|
+
def SetByJID(self):
|
|
2154
|
+
return _whatsapp.whatsapp_GroupSubject_SetByJID_Get(self.handle)
|
|
2155
|
+
@SetByJID.setter
|
|
2156
|
+
def SetByJID(self, value):
|
|
2157
|
+
if isinstance(value, go.GoClass):
|
|
2158
|
+
_whatsapp.whatsapp_GroupSubject_SetByJID_Set(self.handle, value.handle)
|
|
2159
|
+
else:
|
|
2160
|
+
_whatsapp.whatsapp_GroupSubject_SetByJID_Set(self.handle, value)
|
|
2417
2161
|
|
|
2418
|
-
# Python type for struct whatsapp.
|
|
2419
|
-
class
|
|
2420
|
-
"""A
|
|
2162
|
+
# Python type for struct whatsapp.Message
|
|
2163
|
+
class Message(go.GoClass):
|
|
2164
|
+
"""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
2165
|
def __init__(self, *args, **kwargs):
|
|
2422
2166
|
"""
|
|
2423
2167
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2431,41 +2175,89 @@ class Location(go.GoClass):
|
|
|
2431
2175
|
self.handle = args[0].handle
|
|
2432
2176
|
_whatsapp.IncRef(self.handle)
|
|
2433
2177
|
else:
|
|
2434
|
-
self.handle = _whatsapp.
|
|
2178
|
+
self.handle = _whatsapp.whatsapp_Message_CTor()
|
|
2435
2179
|
_whatsapp.IncRef(self.handle)
|
|
2436
2180
|
if 0 < len(args):
|
|
2437
|
-
self.
|
|
2438
|
-
if "
|
|
2439
|
-
self.
|
|
2181
|
+
self.Kind = args[0]
|
|
2182
|
+
if "Kind" in kwargs:
|
|
2183
|
+
self.Kind = kwargs["Kind"]
|
|
2440
2184
|
if 1 < len(args):
|
|
2441
|
-
self.
|
|
2442
|
-
if "
|
|
2443
|
-
self.
|
|
2185
|
+
self.ID = args[1]
|
|
2186
|
+
if "ID" in kwargs:
|
|
2187
|
+
self.ID = kwargs["ID"]
|
|
2444
2188
|
if 2 < len(args):
|
|
2445
|
-
self.
|
|
2446
|
-
if "
|
|
2447
|
-
self.
|
|
2189
|
+
self.JID = args[2]
|
|
2190
|
+
if "JID" in kwargs:
|
|
2191
|
+
self.JID = kwargs["JID"]
|
|
2448
2192
|
if 3 < len(args):
|
|
2449
|
-
self.
|
|
2450
|
-
if "
|
|
2451
|
-
self.
|
|
2193
|
+
self.GroupJID = args[3]
|
|
2194
|
+
if "GroupJID" in kwargs:
|
|
2195
|
+
self.GroupJID = kwargs["GroupJID"]
|
|
2452
2196
|
if 4 < len(args):
|
|
2453
|
-
self.
|
|
2454
|
-
if "
|
|
2455
|
-
self.
|
|
2197
|
+
self.OriginJID = args[4]
|
|
2198
|
+
if "OriginJID" in kwargs:
|
|
2199
|
+
self.OriginJID = kwargs["OriginJID"]
|
|
2456
2200
|
if 5 < len(args):
|
|
2457
|
-
self.
|
|
2458
|
-
if "
|
|
2459
|
-
self.
|
|
2201
|
+
self.Body = args[5]
|
|
2202
|
+
if "Body" in kwargs:
|
|
2203
|
+
self.Body = kwargs["Body"]
|
|
2460
2204
|
if 6 < len(args):
|
|
2461
|
-
self.
|
|
2462
|
-
if "
|
|
2463
|
-
self.
|
|
2205
|
+
self.Timestamp = args[6]
|
|
2206
|
+
if "Timestamp" in kwargs:
|
|
2207
|
+
self.Timestamp = kwargs["Timestamp"]
|
|
2208
|
+
if 7 < len(args):
|
|
2209
|
+
self.IsCarbon = args[7]
|
|
2210
|
+
if "IsCarbon" in kwargs:
|
|
2211
|
+
self.IsCarbon = kwargs["IsCarbon"]
|
|
2212
|
+
if 8 < len(args):
|
|
2213
|
+
self.IsForwarded = args[8]
|
|
2214
|
+
if "IsForwarded" in kwargs:
|
|
2215
|
+
self.IsForwarded = kwargs["IsForwarded"]
|
|
2216
|
+
if 9 < len(args):
|
|
2217
|
+
self.ReplyID = args[9]
|
|
2218
|
+
if "ReplyID" in kwargs:
|
|
2219
|
+
self.ReplyID = kwargs["ReplyID"]
|
|
2220
|
+
if 10 < len(args):
|
|
2221
|
+
self.ReplyBody = args[10]
|
|
2222
|
+
if "ReplyBody" in kwargs:
|
|
2223
|
+
self.ReplyBody = kwargs["ReplyBody"]
|
|
2224
|
+
if 11 < len(args):
|
|
2225
|
+
self.Attachments = args[11]
|
|
2226
|
+
if "Attachments" in kwargs:
|
|
2227
|
+
self.Attachments = kwargs["Attachments"]
|
|
2228
|
+
if 12 < len(args):
|
|
2229
|
+
self.Preview = args[12]
|
|
2230
|
+
if "Preview" in kwargs:
|
|
2231
|
+
self.Preview = kwargs["Preview"]
|
|
2232
|
+
if 13 < len(args):
|
|
2233
|
+
self.Location = args[13]
|
|
2234
|
+
if "Location" in kwargs:
|
|
2235
|
+
self.Location = kwargs["Location"]
|
|
2236
|
+
if 14 < len(args):
|
|
2237
|
+
self.Poll = args[14]
|
|
2238
|
+
if "Poll" in kwargs:
|
|
2239
|
+
self.Poll = kwargs["Poll"]
|
|
2240
|
+
if 15 < len(args):
|
|
2241
|
+
self.Album = args[15]
|
|
2242
|
+
if "Album" in kwargs:
|
|
2243
|
+
self.Album = kwargs["Album"]
|
|
2244
|
+
if 16 < len(args):
|
|
2245
|
+
self.MentionJIDs = args[16]
|
|
2246
|
+
if "MentionJIDs" in kwargs:
|
|
2247
|
+
self.MentionJIDs = kwargs["MentionJIDs"]
|
|
2248
|
+
if 17 < len(args):
|
|
2249
|
+
self.Receipts = args[17]
|
|
2250
|
+
if "Receipts" in kwargs:
|
|
2251
|
+
self.Receipts = kwargs["Receipts"]
|
|
2252
|
+
if 18 < len(args):
|
|
2253
|
+
self.Reactions = args[18]
|
|
2254
|
+
if "Reactions" in kwargs:
|
|
2255
|
+
self.Reactions = kwargs["Reactions"]
|
|
2464
2256
|
def __del__(self):
|
|
2465
2257
|
_whatsapp.DecRef(self.handle)
|
|
2466
2258
|
def __str__(self):
|
|
2467
2259
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2468
|
-
sv = 'whatsapp.
|
|
2260
|
+
sv = 'whatsapp.Message{'
|
|
2469
2261
|
first = True
|
|
2470
2262
|
for v in pr:
|
|
2471
2263
|
if callable(v[1]):
|
|
@@ -2478,174 +2270,222 @@ class Location(go.GoClass):
|
|
|
2478
2270
|
return sv + '}'
|
|
2479
2271
|
def __repr__(self):
|
|
2480
2272
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2481
|
-
sv = 'whatsapp.
|
|
2273
|
+
sv = 'whatsapp.Message ( '
|
|
2482
2274
|
for v in pr:
|
|
2483
2275
|
if not callable(v[1]):
|
|
2484
2276
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2485
2277
|
return sv + ')'
|
|
2486
2278
|
@property
|
|
2487
|
-
def
|
|
2488
|
-
return _whatsapp.
|
|
2489
|
-
@
|
|
2490
|
-
def
|
|
2279
|
+
def Kind(self):
|
|
2280
|
+
return _whatsapp.whatsapp_Message_Kind_Get(self.handle)
|
|
2281
|
+
@Kind.setter
|
|
2282
|
+
def Kind(self, value):
|
|
2491
2283
|
if isinstance(value, go.GoClass):
|
|
2492
|
-
_whatsapp.
|
|
2284
|
+
_whatsapp.whatsapp_Message_Kind_Set(self.handle, value.handle)
|
|
2493
2285
|
else:
|
|
2494
|
-
_whatsapp.
|
|
2286
|
+
_whatsapp.whatsapp_Message_Kind_Set(self.handle, value)
|
|
2495
2287
|
@property
|
|
2496
|
-
def
|
|
2497
|
-
return _whatsapp.
|
|
2498
|
-
@
|
|
2499
|
-
def
|
|
2288
|
+
def ID(self):
|
|
2289
|
+
return _whatsapp.whatsapp_Message_ID_Get(self.handle)
|
|
2290
|
+
@ID.setter
|
|
2291
|
+
def ID(self, value):
|
|
2500
2292
|
if isinstance(value, go.GoClass):
|
|
2501
|
-
_whatsapp.
|
|
2293
|
+
_whatsapp.whatsapp_Message_ID_Set(self.handle, value.handle)
|
|
2502
2294
|
else:
|
|
2503
|
-
_whatsapp.
|
|
2295
|
+
_whatsapp.whatsapp_Message_ID_Set(self.handle, value)
|
|
2504
2296
|
@property
|
|
2505
|
-
def
|
|
2506
|
-
return _whatsapp.
|
|
2507
|
-
@
|
|
2508
|
-
def
|
|
2297
|
+
def JID(self):
|
|
2298
|
+
return _whatsapp.whatsapp_Message_JID_Get(self.handle)
|
|
2299
|
+
@JID.setter
|
|
2300
|
+
def JID(self, value):
|
|
2509
2301
|
if isinstance(value, go.GoClass):
|
|
2510
|
-
_whatsapp.
|
|
2302
|
+
_whatsapp.whatsapp_Message_JID_Set(self.handle, value.handle)
|
|
2511
2303
|
else:
|
|
2512
|
-
_whatsapp.
|
|
2304
|
+
_whatsapp.whatsapp_Message_JID_Set(self.handle, value)
|
|
2513
2305
|
@property
|
|
2514
|
-
def
|
|
2515
|
-
return _whatsapp.
|
|
2516
|
-
@
|
|
2517
|
-
def
|
|
2306
|
+
def GroupJID(self):
|
|
2307
|
+
return _whatsapp.whatsapp_Message_GroupJID_Get(self.handle)
|
|
2308
|
+
@GroupJID.setter
|
|
2309
|
+
def GroupJID(self, value):
|
|
2518
2310
|
if isinstance(value, go.GoClass):
|
|
2519
|
-
_whatsapp.
|
|
2311
|
+
_whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value.handle)
|
|
2520
2312
|
else:
|
|
2521
|
-
_whatsapp.
|
|
2313
|
+
_whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value)
|
|
2522
2314
|
@property
|
|
2523
|
-
def
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
@Name.setter
|
|
2528
|
-
def Name(self, value):
|
|
2315
|
+
def OriginJID(self):
|
|
2316
|
+
return _whatsapp.whatsapp_Message_OriginJID_Get(self.handle)
|
|
2317
|
+
@OriginJID.setter
|
|
2318
|
+
def OriginJID(self, value):
|
|
2529
2319
|
if isinstance(value, go.GoClass):
|
|
2530
|
-
_whatsapp.
|
|
2320
|
+
_whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value.handle)
|
|
2531
2321
|
else:
|
|
2532
|
-
_whatsapp.
|
|
2322
|
+
_whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value)
|
|
2533
2323
|
@property
|
|
2534
|
-
def
|
|
2535
|
-
return _whatsapp.
|
|
2536
|
-
@
|
|
2537
|
-
def
|
|
2324
|
+
def Body(self):
|
|
2325
|
+
return _whatsapp.whatsapp_Message_Body_Get(self.handle)
|
|
2326
|
+
@Body.setter
|
|
2327
|
+
def Body(self, value):
|
|
2538
2328
|
if isinstance(value, go.GoClass):
|
|
2539
|
-
_whatsapp.
|
|
2329
|
+
_whatsapp.whatsapp_Message_Body_Set(self.handle, value.handle)
|
|
2540
2330
|
else:
|
|
2541
|
-
_whatsapp.
|
|
2331
|
+
_whatsapp.whatsapp_Message_Body_Set(self.handle, value)
|
|
2542
2332
|
@property
|
|
2543
|
-
def
|
|
2544
|
-
return _whatsapp.
|
|
2545
|
-
@
|
|
2546
|
-
def
|
|
2333
|
+
def Timestamp(self):
|
|
2334
|
+
return _whatsapp.whatsapp_Message_Timestamp_Get(self.handle)
|
|
2335
|
+
@Timestamp.setter
|
|
2336
|
+
def Timestamp(self, value):
|
|
2547
2337
|
if isinstance(value, go.GoClass):
|
|
2548
|
-
_whatsapp.
|
|
2338
|
+
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value.handle)
|
|
2549
2339
|
else:
|
|
2550
|
-
_whatsapp.
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
def
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
2559
|
-
in which case a new Go object is constructed first
|
|
2560
|
-
"""
|
|
2561
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2562
|
-
self.handle = kwargs['handle']
|
|
2563
|
-
_whatsapp.IncRef(self.handle)
|
|
2564
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2565
|
-
self.handle = args[0].handle
|
|
2566
|
-
_whatsapp.IncRef(self.handle)
|
|
2340
|
+
_whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value)
|
|
2341
|
+
@property
|
|
2342
|
+
def IsCarbon(self):
|
|
2343
|
+
return _whatsapp.whatsapp_Message_IsCarbon_Get(self.handle)
|
|
2344
|
+
@IsCarbon.setter
|
|
2345
|
+
def IsCarbon(self, value):
|
|
2346
|
+
if isinstance(value, go.GoClass):
|
|
2347
|
+
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value.handle)
|
|
2567
2348
|
else:
|
|
2568
|
-
self.handle
|
|
2569
|
-
_whatsapp.IncRef(self.handle)
|
|
2570
|
-
if 0 < len(args):
|
|
2571
|
-
self.Title = args[0]
|
|
2572
|
-
if "Title" in kwargs:
|
|
2573
|
-
self.Title = kwargs["Title"]
|
|
2574
|
-
def __del__(self):
|
|
2575
|
-
_whatsapp.DecRef(self.handle)
|
|
2576
|
-
def __str__(self):
|
|
2577
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2578
|
-
sv = 'whatsapp.PollOption{'
|
|
2579
|
-
first = True
|
|
2580
|
-
for v in pr:
|
|
2581
|
-
if callable(v[1]):
|
|
2582
|
-
continue
|
|
2583
|
-
if first:
|
|
2584
|
-
first = False
|
|
2585
|
-
else:
|
|
2586
|
-
sv += ', '
|
|
2587
|
-
sv += v[0] + '=' + str(v[1])
|
|
2588
|
-
return sv + '}'
|
|
2589
|
-
def __repr__(self):
|
|
2590
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2591
|
-
sv = 'whatsapp.PollOption ( '
|
|
2592
|
-
for v in pr:
|
|
2593
|
-
if not callable(v[1]):
|
|
2594
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2595
|
-
return sv + ')'
|
|
2349
|
+
_whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value)
|
|
2596
2350
|
@property
|
|
2597
|
-
def
|
|
2598
|
-
return _whatsapp.
|
|
2599
|
-
@
|
|
2600
|
-
def
|
|
2351
|
+
def IsForwarded(self):
|
|
2352
|
+
return _whatsapp.whatsapp_Message_IsForwarded_Get(self.handle)
|
|
2353
|
+
@IsForwarded.setter
|
|
2354
|
+
def IsForwarded(self, value):
|
|
2601
2355
|
if isinstance(value, go.GoClass):
|
|
2602
|
-
_whatsapp.
|
|
2356
|
+
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value.handle)
|
|
2603
2357
|
else:
|
|
2604
|
-
_whatsapp.
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
def
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
2613
|
-
in which case a new Go object is constructed first
|
|
2614
|
-
"""
|
|
2615
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2616
|
-
self.handle = kwargs['handle']
|
|
2617
|
-
_whatsapp.IncRef(self.handle)
|
|
2618
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2619
|
-
self.handle = args[0].handle
|
|
2620
|
-
_whatsapp.IncRef(self.handle)
|
|
2358
|
+
_whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value)
|
|
2359
|
+
@property
|
|
2360
|
+
def ReplyID(self):
|
|
2361
|
+
return _whatsapp.whatsapp_Message_ReplyID_Get(self.handle)
|
|
2362
|
+
@ReplyID.setter
|
|
2363
|
+
def ReplyID(self, value):
|
|
2364
|
+
if isinstance(value, go.GoClass):
|
|
2365
|
+
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value.handle)
|
|
2621
2366
|
else:
|
|
2622
|
-
self.handle
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2367
|
+
_whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value)
|
|
2368
|
+
@property
|
|
2369
|
+
def ReplyBody(self):
|
|
2370
|
+
return _whatsapp.whatsapp_Message_ReplyBody_Get(self.handle)
|
|
2371
|
+
@ReplyBody.setter
|
|
2372
|
+
def ReplyBody(self, value):
|
|
2373
|
+
if isinstance(value, go.GoClass):
|
|
2374
|
+
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value.handle)
|
|
2375
|
+
else:
|
|
2376
|
+
_whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value)
|
|
2377
|
+
@property
|
|
2378
|
+
def Attachments(self):
|
|
2379
|
+
return Slice_whatsapp_Attachment(handle=_whatsapp.whatsapp_Message_Attachments_Get(self.handle))
|
|
2380
|
+
@Attachments.setter
|
|
2381
|
+
def Attachments(self, value):
|
|
2382
|
+
if isinstance(value, go.GoClass):
|
|
2383
|
+
_whatsapp.whatsapp_Message_Attachments_Set(self.handle, value.handle)
|
|
2384
|
+
else:
|
|
2385
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2386
|
+
@property
|
|
2387
|
+
def Preview(self):
|
|
2388
|
+
return Preview(handle=_whatsapp.whatsapp_Message_Preview_Get(self.handle))
|
|
2389
|
+
@Preview.setter
|
|
2390
|
+
def Preview(self, value):
|
|
2391
|
+
if isinstance(value, go.GoClass):
|
|
2392
|
+
_whatsapp.whatsapp_Message_Preview_Set(self.handle, value.handle)
|
|
2393
|
+
else:
|
|
2394
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2395
|
+
@property
|
|
2396
|
+
def Location(self):
|
|
2397
|
+
return Location(handle=_whatsapp.whatsapp_Message_Location_Get(self.handle))
|
|
2398
|
+
@Location.setter
|
|
2399
|
+
def Location(self, value):
|
|
2400
|
+
if isinstance(value, go.GoClass):
|
|
2401
|
+
_whatsapp.whatsapp_Message_Location_Set(self.handle, value.handle)
|
|
2402
|
+
else:
|
|
2403
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2404
|
+
@property
|
|
2405
|
+
def Poll(self):
|
|
2406
|
+
return Poll(handle=_whatsapp.whatsapp_Message_Poll_Get(self.handle))
|
|
2407
|
+
@Poll.setter
|
|
2408
|
+
def Poll(self, value):
|
|
2409
|
+
if isinstance(value, go.GoClass):
|
|
2410
|
+
_whatsapp.whatsapp_Message_Poll_Set(self.handle, value.handle)
|
|
2411
|
+
else:
|
|
2412
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2413
|
+
@property
|
|
2414
|
+
def Album(self):
|
|
2415
|
+
return Album(handle=_whatsapp.whatsapp_Message_Album_Get(self.handle))
|
|
2416
|
+
@Album.setter
|
|
2417
|
+
def Album(self, value):
|
|
2418
|
+
if isinstance(value, go.GoClass):
|
|
2419
|
+
_whatsapp.whatsapp_Message_Album_Set(self.handle, value.handle)
|
|
2420
|
+
else:
|
|
2421
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2422
|
+
@property
|
|
2423
|
+
def MentionJIDs(self):
|
|
2424
|
+
return go.Slice_string(handle=_whatsapp.whatsapp_Message_MentionJIDs_Get(self.handle))
|
|
2425
|
+
@MentionJIDs.setter
|
|
2426
|
+
def MentionJIDs(self, value):
|
|
2427
|
+
if isinstance(value, go.GoClass):
|
|
2428
|
+
_whatsapp.whatsapp_Message_MentionJIDs_Set(self.handle, value.handle)
|
|
2429
|
+
else:
|
|
2430
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2431
|
+
@property
|
|
2432
|
+
def Receipts(self):
|
|
2433
|
+
return Slice_whatsapp_Receipt(handle=_whatsapp.whatsapp_Message_Receipts_Get(self.handle))
|
|
2434
|
+
@Receipts.setter
|
|
2435
|
+
def Receipts(self, value):
|
|
2436
|
+
if isinstance(value, go.GoClass):
|
|
2437
|
+
_whatsapp.whatsapp_Message_Receipts_Set(self.handle, value.handle)
|
|
2438
|
+
else:
|
|
2439
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2440
|
+
@property
|
|
2441
|
+
def Reactions(self):
|
|
2442
|
+
return Slice_whatsapp_Message(handle=_whatsapp.whatsapp_Message_Reactions_Get(self.handle))
|
|
2443
|
+
@Reactions.setter
|
|
2444
|
+
def Reactions(self, value):
|
|
2445
|
+
if isinstance(value, go.GoClass):
|
|
2446
|
+
_whatsapp.whatsapp_Message_Reactions_Set(self.handle, value.handle)
|
|
2447
|
+
else:
|
|
2448
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2449
|
+
|
|
2450
|
+
# Python type for struct whatsapp.Attachment
|
|
2451
|
+
class Attachment(go.GoClass):
|
|
2452
|
+
"""A Attachment represents additional binary data (e.g. images, videos, documents) provided alongside\na message, for display or storage on the recepient client.\n"""
|
|
2453
|
+
def __init__(self, *args, **kwargs):
|
|
2454
|
+
"""
|
|
2455
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2456
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
2457
|
+
in which case a new Go object is constructed first
|
|
2458
|
+
"""
|
|
2459
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2460
|
+
self.handle = kwargs['handle']
|
|
2461
|
+
_whatsapp.IncRef(self.handle)
|
|
2462
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2463
|
+
self.handle = args[0].handle
|
|
2464
|
+
_whatsapp.IncRef(self.handle)
|
|
2465
|
+
else:
|
|
2466
|
+
self.handle = _whatsapp.whatsapp_Attachment_CTor()
|
|
2467
|
+
_whatsapp.IncRef(self.handle)
|
|
2468
|
+
if 0 < len(args):
|
|
2469
|
+
self.MIME = args[0]
|
|
2470
|
+
if "MIME" in kwargs:
|
|
2471
|
+
self.MIME = kwargs["MIME"]
|
|
2472
|
+
if 1 < len(args):
|
|
2473
|
+
self.Filename = args[1]
|
|
2474
|
+
if "Filename" in kwargs:
|
|
2475
|
+
self.Filename = kwargs["Filename"]
|
|
2476
|
+
if 2 < len(args):
|
|
2477
|
+
self.Caption = args[2]
|
|
2478
|
+
if "Caption" in kwargs:
|
|
2479
|
+
self.Caption = kwargs["Caption"]
|
|
2480
|
+
if 3 < len(args):
|
|
2481
|
+
self.Data = args[3]
|
|
2482
|
+
if "Data" in kwargs:
|
|
2483
|
+
self.Data = kwargs["Data"]
|
|
2644
2484
|
def __del__(self):
|
|
2645
2485
|
_whatsapp.DecRef(self.handle)
|
|
2646
2486
|
def __str__(self):
|
|
2647
2487
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2648
|
-
sv = 'whatsapp.
|
|
2488
|
+
sv = 'whatsapp.Attachment{'
|
|
2649
2489
|
first = True
|
|
2650
2490
|
for v in pr:
|
|
2651
2491
|
if callable(v[1]):
|
|
@@ -2658,60 +2498,57 @@ class Preview(go.GoClass):
|
|
|
2658
2498
|
return sv + '}'
|
|
2659
2499
|
def __repr__(self):
|
|
2660
2500
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2661
|
-
sv = 'whatsapp.
|
|
2501
|
+
sv = 'whatsapp.Attachment ( '
|
|
2662
2502
|
for v in pr:
|
|
2663
2503
|
if not callable(v[1]):
|
|
2664
2504
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2665
2505
|
return sv + ')'
|
|
2666
2506
|
@property
|
|
2667
|
-
def
|
|
2668
|
-
return _whatsapp.
|
|
2669
|
-
@
|
|
2670
|
-
def
|
|
2671
|
-
if isinstance(value, go.GoClass):
|
|
2672
|
-
_whatsapp.whatsapp_Preview_Kind_Set(self.handle, value.handle)
|
|
2673
|
-
else:
|
|
2674
|
-
_whatsapp.whatsapp_Preview_Kind_Set(self.handle, value)
|
|
2675
|
-
@property
|
|
2676
|
-
def URL(self):
|
|
2677
|
-
return _whatsapp.whatsapp_Preview_URL_Get(self.handle)
|
|
2678
|
-
@URL.setter
|
|
2679
|
-
def URL(self, value):
|
|
2507
|
+
def MIME(self):
|
|
2508
|
+
return _whatsapp.whatsapp_Attachment_MIME_Get(self.handle)
|
|
2509
|
+
@MIME.setter
|
|
2510
|
+
def MIME(self, value):
|
|
2680
2511
|
if isinstance(value, go.GoClass):
|
|
2681
|
-
_whatsapp.
|
|
2512
|
+
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value.handle)
|
|
2682
2513
|
else:
|
|
2683
|
-
_whatsapp.
|
|
2514
|
+
_whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value)
|
|
2684
2515
|
@property
|
|
2685
|
-
def
|
|
2686
|
-
return _whatsapp.
|
|
2687
|
-
@
|
|
2688
|
-
def
|
|
2516
|
+
def Filename(self):
|
|
2517
|
+
return _whatsapp.whatsapp_Attachment_Filename_Get(self.handle)
|
|
2518
|
+
@Filename.setter
|
|
2519
|
+
def Filename(self, value):
|
|
2689
2520
|
if isinstance(value, go.GoClass):
|
|
2690
|
-
_whatsapp.
|
|
2521
|
+
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value.handle)
|
|
2691
2522
|
else:
|
|
2692
|
-
_whatsapp.
|
|
2523
|
+
_whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value)
|
|
2693
2524
|
@property
|
|
2694
|
-
def
|
|
2695
|
-
return _whatsapp.
|
|
2696
|
-
@
|
|
2697
|
-
def
|
|
2525
|
+
def Caption(self):
|
|
2526
|
+
return _whatsapp.whatsapp_Attachment_Caption_Get(self.handle)
|
|
2527
|
+
@Caption.setter
|
|
2528
|
+
def Caption(self, value):
|
|
2698
2529
|
if isinstance(value, go.GoClass):
|
|
2699
|
-
_whatsapp.
|
|
2530
|
+
_whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value.handle)
|
|
2700
2531
|
else:
|
|
2701
|
-
_whatsapp.
|
|
2532
|
+
_whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value)
|
|
2702
2533
|
@property
|
|
2703
|
-
def
|
|
2704
|
-
return go.Slice_byte(handle=_whatsapp.
|
|
2705
|
-
@
|
|
2706
|
-
def
|
|
2534
|
+
def Data(self):
|
|
2535
|
+
return go.Slice_byte(handle=_whatsapp.whatsapp_Attachment_Data_Get(self.handle))
|
|
2536
|
+
@Data.setter
|
|
2537
|
+
def Data(self, value):
|
|
2707
2538
|
if isinstance(value, go.GoClass):
|
|
2708
|
-
_whatsapp.
|
|
2539
|
+
_whatsapp.whatsapp_Attachment_Data_Set(self.handle, value.handle)
|
|
2709
2540
|
else:
|
|
2710
2541
|
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2542
|
+
def GetSpec(self, ctx):
|
|
2543
|
+
"""GetSpec(object ctx) object, str
|
|
2544
|
+
|
|
2545
|
+
GetSpec returns metadata for this attachment, as derived from the underlying attachment data.
|
|
2546
|
+
"""
|
|
2547
|
+
return go.Ptr_media_Spec(handle=_whatsapp.whatsapp_Attachment_GetSpec(self.handle, ctx.handle))
|
|
2711
2548
|
|
|
2712
|
-
# Python type for struct whatsapp.
|
|
2713
|
-
class
|
|
2714
|
-
"""
|
|
2549
|
+
# Python type for struct whatsapp.Presence
|
|
2550
|
+
class Presence(go.GoClass):
|
|
2551
|
+
"""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"""
|
|
2715
2552
|
def __init__(self, *args, **kwargs):
|
|
2716
2553
|
"""
|
|
2717
2554
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2725,13 +2562,25 @@ class Session(go.GoClass):
|
|
|
2725
2562
|
self.handle = args[0].handle
|
|
2726
2563
|
_whatsapp.IncRef(self.handle)
|
|
2727
2564
|
else:
|
|
2728
|
-
self.handle = _whatsapp.
|
|
2565
|
+
self.handle = _whatsapp.whatsapp_Presence_CTor()
|
|
2729
2566
|
_whatsapp.IncRef(self.handle)
|
|
2567
|
+
if 0 < len(args):
|
|
2568
|
+
self.JID = args[0]
|
|
2569
|
+
if "JID" in kwargs:
|
|
2570
|
+
self.JID = kwargs["JID"]
|
|
2571
|
+
if 1 < len(args):
|
|
2572
|
+
self.Kind = args[1]
|
|
2573
|
+
if "Kind" in kwargs:
|
|
2574
|
+
self.Kind = kwargs["Kind"]
|
|
2575
|
+
if 2 < len(args):
|
|
2576
|
+
self.LastSeen = args[2]
|
|
2577
|
+
if "LastSeen" in kwargs:
|
|
2578
|
+
self.LastSeen = kwargs["LastSeen"]
|
|
2730
2579
|
def __del__(self):
|
|
2731
2580
|
_whatsapp.DecRef(self.handle)
|
|
2732
2581
|
def __str__(self):
|
|
2733
2582
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2734
|
-
sv = 'whatsapp.
|
|
2583
|
+
sv = 'whatsapp.Presence{'
|
|
2735
2584
|
first = True
|
|
2736
2585
|
for v in pr:
|
|
2737
2586
|
if callable(v[1]):
|
|
@@ -2744,167 +2593,292 @@ class Session(go.GoClass):
|
|
|
2744
2593
|
return sv + '}'
|
|
2745
2594
|
def __repr__(self):
|
|
2746
2595
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2747
|
-
sv = 'whatsapp.
|
|
2596
|
+
sv = 'whatsapp.Presence ( '
|
|
2748
2597
|
for v in pr:
|
|
2749
2598
|
if not callable(v[1]):
|
|
2750
2599
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2751
2600
|
return sv + ')'
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2601
|
+
@property
|
|
2602
|
+
def JID(self):
|
|
2603
|
+
return _whatsapp.whatsapp_Presence_JID_Get(self.handle)
|
|
2604
|
+
@JID.setter
|
|
2605
|
+
def JID(self, value):
|
|
2606
|
+
if isinstance(value, go.GoClass):
|
|
2607
|
+
_whatsapp.whatsapp_Presence_JID_Set(self.handle, value.handle)
|
|
2608
|
+
else:
|
|
2609
|
+
_whatsapp.whatsapp_Presence_JID_Set(self.handle, value)
|
|
2610
|
+
@property
|
|
2611
|
+
def Kind(self):
|
|
2612
|
+
return _whatsapp.whatsapp_Presence_Kind_Get(self.handle)
|
|
2613
|
+
@Kind.setter
|
|
2614
|
+
def Kind(self, value):
|
|
2615
|
+
if isinstance(value, go.GoClass):
|
|
2616
|
+
_whatsapp.whatsapp_Presence_Kind_Set(self.handle, value.handle)
|
|
2617
|
+
else:
|
|
2618
|
+
_whatsapp.whatsapp_Presence_Kind_Set(self.handle, value)
|
|
2619
|
+
@property
|
|
2620
|
+
def LastSeen(self):
|
|
2621
|
+
return _whatsapp.whatsapp_Presence_LastSeen_Get(self.handle)
|
|
2622
|
+
@LastSeen.setter
|
|
2623
|
+
def LastSeen(self, value):
|
|
2624
|
+
if isinstance(value, go.GoClass):
|
|
2625
|
+
_whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value.handle)
|
|
2626
|
+
else:
|
|
2627
|
+
_whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value)
|
|
2628
|
+
|
|
2629
|
+
# Python type for struct whatsapp.Preview
|
|
2630
|
+
class Preview(go.GoClass):
|
|
2631
|
+
"""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"""
|
|
2632
|
+
def __init__(self, *args, **kwargs):
|
|
2758
2633
|
"""
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
Logout disconnects and removes the current linked device locally and initiates a logout remotely.
|
|
2764
|
-
"""
|
|
2765
|
-
return _whatsapp.whatsapp_Session_Logout(self.handle)
|
|
2766
|
-
def Disconnect(self):
|
|
2767
|
-
"""Disconnect() str
|
|
2768
|
-
|
|
2769
|
-
Disconnects detaches the current connection to WhatsApp without removing any linked device state.
|
|
2770
|
-
"""
|
|
2771
|
-
return _whatsapp.whatsapp_Session_Disconnect(self.handle)
|
|
2772
|
-
def PairPhone(self, phone):
|
|
2773
|
-
"""PairPhone(str phone) str, str
|
|
2774
|
-
|
|
2775
|
-
PairPhone returns a one-time code from WhatsApp, used for pairing this [Session] against the
|
|
2776
|
-
user's primary device, as identified by the given phone number. This will return an error if the
|
|
2777
|
-
[Session] is already paired, or if the phone number given is empty or invalid.
|
|
2778
|
-
"""
|
|
2779
|
-
return _whatsapp.whatsapp_Session_PairPhone(self.handle, phone)
|
|
2780
|
-
def SendMessage(self, message):
|
|
2781
|
-
"""SendMessage(object message) str
|
|
2782
|
-
|
|
2783
|
-
SendMessage processes the given Message and sends a WhatsApp message for the kind and contact JID
|
|
2784
|
-
specified within. In general, different message kinds require different fields to be set; see the
|
|
2785
|
-
documentation for the [Message] type for more information.
|
|
2786
|
-
"""
|
|
2787
|
-
return _whatsapp.whatsapp_Session_SendMessage(self.handle, message.handle)
|
|
2788
|
-
def GenerateMessageID(self):
|
|
2789
|
-
"""GenerateMessageID() str
|
|
2790
|
-
|
|
2791
|
-
GenerateMessageID returns a valid, pseudo-random message ID for use in outgoing messages.
|
|
2792
|
-
"""
|
|
2793
|
-
return _whatsapp.whatsapp_Session_GenerateMessageID(self.handle)
|
|
2794
|
-
def SendChatState(self, state):
|
|
2795
|
-
"""SendChatState(object state) str
|
|
2796
|
-
|
|
2797
|
-
SendChatState sends the given chat state notification (e.g. composing message) to WhatsApp for the
|
|
2798
|
-
contact specified within.
|
|
2799
|
-
"""
|
|
2800
|
-
return _whatsapp.whatsapp_Session_SendChatState(self.handle, state.handle)
|
|
2801
|
-
def SendReceipt(self, receipt):
|
|
2802
|
-
"""SendReceipt(object receipt) str
|
|
2803
|
-
|
|
2804
|
-
SendReceipt sends a read receipt to WhatsApp for the message IDs specified within.
|
|
2805
|
-
"""
|
|
2806
|
-
return _whatsapp.whatsapp_Session_SendReceipt(self.handle, receipt.handle)
|
|
2807
|
-
def SendPresence(self, presence, statusMessage):
|
|
2808
|
-
"""SendPresence(int presence, str statusMessage) str
|
|
2809
|
-
|
|
2810
|
-
SendPresence sets the activity state and (optional) status message for the current session and
|
|
2811
|
-
user. An error is returned if setting availability fails for any reason.
|
|
2812
|
-
"""
|
|
2813
|
-
return _whatsapp.whatsapp_Session_SendPresence(self.handle, presence, statusMessage)
|
|
2814
|
-
def GetContacts(self, refresh):
|
|
2815
|
-
"""GetContacts(bool refresh) []object, str
|
|
2816
|
-
|
|
2817
|
-
GetContacts subscribes to the WhatsApp roster currently stored in the Session's internal state.
|
|
2818
|
-
If `refresh` is `true`, FetchRoster will pull application state from the remote service and
|
|
2819
|
-
synchronize any contacts found with the adapter.
|
|
2820
|
-
"""
|
|
2821
|
-
return Slice_whatsapp_Contact(handle=_whatsapp.whatsapp_Session_GetContacts(self.handle, refresh))
|
|
2822
|
-
def GetGroups(self):
|
|
2823
|
-
"""GetGroups() []object, str
|
|
2824
|
-
|
|
2825
|
-
GetGroups returns a list of all group-chats currently joined in WhatsApp, along with additional
|
|
2826
|
-
information on present participants.
|
|
2827
|
-
"""
|
|
2828
|
-
return Slice_whatsapp_Group(handle=_whatsapp.whatsapp_Session_GetGroups(self.handle))
|
|
2829
|
-
def CreateGroup(self, name, participants):
|
|
2830
|
-
"""CreateGroup(str name, []str participants) object, str
|
|
2831
|
-
|
|
2832
|
-
CreateGroup attempts to create a new WhatsApp group for the given human-readable name and
|
|
2833
|
-
participant JIDs given.
|
|
2834
|
-
"""
|
|
2835
|
-
return Group(handle=_whatsapp.whatsapp_Session_CreateGroup(self.handle, name, participants.handle))
|
|
2836
|
-
def LeaveGroup(self, resourceID):
|
|
2837
|
-
"""LeaveGroup(str resourceID) str
|
|
2838
|
-
|
|
2839
|
-
LeaveGroup attempts to remove our own user from the given WhatsApp group, for the JID given.
|
|
2840
|
-
"""
|
|
2841
|
-
return _whatsapp.whatsapp_Session_LeaveGroup(self.handle, resourceID)
|
|
2842
|
-
def GetAvatar(self, resourceID, avatarID):
|
|
2843
|
-
"""GetAvatar(str resourceID, str avatarID) object, str
|
|
2844
|
-
|
|
2845
|
-
GetAvatar fetches a profile picture for the Contact or Group JID given. If a non-empty `avatarID`
|
|
2846
|
-
is also given, GetAvatar will return an empty [Avatar] instance with no error if the remote state
|
|
2847
|
-
for the given ID has not changed.
|
|
2848
|
-
"""
|
|
2849
|
-
return Avatar(handle=_whatsapp.whatsapp_Session_GetAvatar(self.handle, resourceID, avatarID))
|
|
2850
|
-
def SetAvatar(self, resourceID, avatar):
|
|
2851
|
-
"""SetAvatar(str resourceID, []int avatar) str, str
|
|
2852
|
-
|
|
2853
|
-
SetAvatar updates the profile picture for the Contact or Group JID given; it can also update the
|
|
2854
|
-
profile picture for our own user by providing an empty JID. The unique picture ID is returned,
|
|
2855
|
-
typically used as a cache reference or in providing to future calls for [Session.GetAvatar].
|
|
2634
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2635
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
2636
|
+
in which case a new Go object is constructed first
|
|
2856
2637
|
"""
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2638
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2639
|
+
self.handle = kwargs['handle']
|
|
2640
|
+
_whatsapp.IncRef(self.handle)
|
|
2641
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2642
|
+
self.handle = args[0].handle
|
|
2643
|
+
_whatsapp.IncRef(self.handle)
|
|
2644
|
+
else:
|
|
2645
|
+
self.handle = _whatsapp.whatsapp_Preview_CTor()
|
|
2646
|
+
_whatsapp.IncRef(self.handle)
|
|
2647
|
+
if 0 < len(args):
|
|
2648
|
+
self.Kind = args[0]
|
|
2649
|
+
if "Kind" in kwargs:
|
|
2650
|
+
self.Kind = kwargs["Kind"]
|
|
2651
|
+
if 1 < len(args):
|
|
2652
|
+
self.URL = args[1]
|
|
2653
|
+
if "URL" in kwargs:
|
|
2654
|
+
self.URL = kwargs["URL"]
|
|
2655
|
+
if 2 < len(args):
|
|
2656
|
+
self.Title = args[2]
|
|
2657
|
+
if "Title" in kwargs:
|
|
2658
|
+
self.Title = kwargs["Title"]
|
|
2659
|
+
if 3 < len(args):
|
|
2660
|
+
self.Description = args[3]
|
|
2661
|
+
if "Description" in kwargs:
|
|
2662
|
+
self.Description = kwargs["Description"]
|
|
2663
|
+
if 4 < len(args):
|
|
2664
|
+
self.Thumbnail = args[4]
|
|
2665
|
+
if "Thumbnail" in kwargs:
|
|
2666
|
+
self.Thumbnail = kwargs["Thumbnail"]
|
|
2667
|
+
def __del__(self):
|
|
2668
|
+
_whatsapp.DecRef(self.handle)
|
|
2669
|
+
def __str__(self):
|
|
2670
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2671
|
+
sv = 'whatsapp.Preview{'
|
|
2672
|
+
first = True
|
|
2673
|
+
for v in pr:
|
|
2674
|
+
if callable(v[1]):
|
|
2675
|
+
continue
|
|
2676
|
+
if first:
|
|
2677
|
+
first = False
|
|
2678
|
+
else:
|
|
2679
|
+
sv += ', '
|
|
2680
|
+
sv += v[0] + '=' + str(v[1])
|
|
2681
|
+
return sv + '}'
|
|
2682
|
+
def __repr__(self):
|
|
2683
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2684
|
+
sv = 'whatsapp.Preview ( '
|
|
2685
|
+
for v in pr:
|
|
2686
|
+
if not callable(v[1]):
|
|
2687
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2688
|
+
return sv + ')'
|
|
2689
|
+
@property
|
|
2690
|
+
def Kind(self):
|
|
2691
|
+
return _whatsapp.whatsapp_Preview_Kind_Get(self.handle)
|
|
2692
|
+
@Kind.setter
|
|
2693
|
+
def Kind(self, value):
|
|
2694
|
+
if isinstance(value, go.GoClass):
|
|
2695
|
+
_whatsapp.whatsapp_Preview_Kind_Set(self.handle, value.handle)
|
|
2696
|
+
else:
|
|
2697
|
+
_whatsapp.whatsapp_Preview_Kind_Set(self.handle, value)
|
|
2698
|
+
@property
|
|
2699
|
+
def URL(self):
|
|
2700
|
+
return _whatsapp.whatsapp_Preview_URL_Get(self.handle)
|
|
2701
|
+
@URL.setter
|
|
2702
|
+
def URL(self, value):
|
|
2703
|
+
if isinstance(value, go.GoClass):
|
|
2704
|
+
_whatsapp.whatsapp_Preview_URL_Set(self.handle, value.handle)
|
|
2705
|
+
else:
|
|
2706
|
+
_whatsapp.whatsapp_Preview_URL_Set(self.handle, value)
|
|
2707
|
+
@property
|
|
2708
|
+
def Title(self):
|
|
2709
|
+
return _whatsapp.whatsapp_Preview_Title_Get(self.handle)
|
|
2710
|
+
@Title.setter
|
|
2711
|
+
def Title(self, value):
|
|
2712
|
+
if isinstance(value, go.GoClass):
|
|
2713
|
+
_whatsapp.whatsapp_Preview_Title_Set(self.handle, value.handle)
|
|
2714
|
+
else:
|
|
2715
|
+
_whatsapp.whatsapp_Preview_Title_Set(self.handle, value)
|
|
2716
|
+
@property
|
|
2717
|
+
def Description(self):
|
|
2718
|
+
return _whatsapp.whatsapp_Preview_Description_Get(self.handle)
|
|
2719
|
+
@Description.setter
|
|
2720
|
+
def Description(self, value):
|
|
2721
|
+
if isinstance(value, go.GoClass):
|
|
2722
|
+
_whatsapp.whatsapp_Preview_Description_Set(self.handle, value.handle)
|
|
2723
|
+
else:
|
|
2724
|
+
_whatsapp.whatsapp_Preview_Description_Set(self.handle, value)
|
|
2725
|
+
@property
|
|
2726
|
+
def Thumbnail(self):
|
|
2727
|
+
return go.Slice_byte(handle=_whatsapp.whatsapp_Preview_Thumbnail_Get(self.handle))
|
|
2728
|
+
@Thumbnail.setter
|
|
2729
|
+
def Thumbnail(self, value):
|
|
2730
|
+
if isinstance(value, go.GoClass):
|
|
2731
|
+
_whatsapp.whatsapp_Preview_Thumbnail_Set(self.handle, value.handle)
|
|
2732
|
+
else:
|
|
2733
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
2734
|
+
|
|
2735
|
+
# Python type for struct whatsapp.LinkedDevice
|
|
2736
|
+
class LinkedDevice(go.GoClass):
|
|
2737
|
+
"""A LinkedDevice represents a unique pairing session between the gateway and WhatsApp. It is not\nunique to the underlying \"main\" device (or phone number), as multiple linked devices may be paired\nwith any main device.\n"""
|
|
2738
|
+
def __init__(self, *args, **kwargs):
|
|
2862
2739
|
"""
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
SetGroupName updates the topic of a WhatsApp group for the Group JID given.
|
|
2740
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2741
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
2742
|
+
in which case a new Go object is constructed first
|
|
2868
2743
|
"""
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2744
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2745
|
+
self.handle = kwargs['handle']
|
|
2746
|
+
_whatsapp.IncRef(self.handle)
|
|
2747
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2748
|
+
self.handle = args[0].handle
|
|
2749
|
+
_whatsapp.IncRef(self.handle)
|
|
2750
|
+
else:
|
|
2751
|
+
self.handle = _whatsapp.whatsapp_LinkedDevice_CTor()
|
|
2752
|
+
_whatsapp.IncRef(self.handle)
|
|
2753
|
+
if 0 < len(args):
|
|
2754
|
+
self.ID = args[0]
|
|
2755
|
+
if "ID" in kwargs:
|
|
2756
|
+
self.ID = kwargs["ID"]
|
|
2757
|
+
def __del__(self):
|
|
2758
|
+
_whatsapp.DecRef(self.handle)
|
|
2759
|
+
def __str__(self):
|
|
2760
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2761
|
+
sv = 'whatsapp.LinkedDevice{'
|
|
2762
|
+
first = True
|
|
2763
|
+
for v in pr:
|
|
2764
|
+
if callable(v[1]):
|
|
2765
|
+
continue
|
|
2766
|
+
if first:
|
|
2767
|
+
first = False
|
|
2768
|
+
else:
|
|
2769
|
+
sv += ', '
|
|
2770
|
+
sv += v[0] + '=' + str(v[1])
|
|
2771
|
+
return sv + '}'
|
|
2772
|
+
def __repr__(self):
|
|
2773
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2774
|
+
sv = 'whatsapp.LinkedDevice ( '
|
|
2775
|
+
for v in pr:
|
|
2776
|
+
if not callable(v[1]):
|
|
2777
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2778
|
+
return sv + ')'
|
|
2779
|
+
@property
|
|
2780
|
+
def ID(self):
|
|
2781
|
+
"""ID is an opaque string identifying this LinkedDevice to the Session. Noted that this string
|
|
2782
|
+
is currently equivalent to a password, and needs to be protected accordingly.
|
|
2876
2783
|
"""
|
|
2877
|
-
return
|
|
2878
|
-
|
|
2879
|
-
|
|
2784
|
+
return _whatsapp.whatsapp_LinkedDevice_ID_Get(self.handle)
|
|
2785
|
+
@ID.setter
|
|
2786
|
+
def ID(self, value):
|
|
2787
|
+
if isinstance(value, go.GoClass):
|
|
2788
|
+
_whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value.handle)
|
|
2789
|
+
else:
|
|
2790
|
+
_whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value)
|
|
2791
|
+
def JID(self):
|
|
2792
|
+
"""JID() object
|
|
2880
2793
|
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
error is returned if no contact was found, but any unexpected errors will otherwise be returned
|
|
2884
|
-
directly.
|
|
2794
|
+
JID returns the WhatsApp JID corresponding to the LinkedDevice ID. Empty or invalid device IDs
|
|
2795
|
+
may return invalid JIDs, and this function does not handle errors.
|
|
2885
2796
|
"""
|
|
2886
|
-
return
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
history should then be handled as a `HistorySync` event of type `ON_DEMAND`, in the session-wide
|
|
2893
|
-
event handler. An error will be returned if requesting history fails for any reason.
|
|
2797
|
+
return go.types_JID(handle=_whatsapp.whatsapp_LinkedDevice_JID(self.handle))
|
|
2798
|
+
|
|
2799
|
+
# Python type for struct whatsapp.ChatState
|
|
2800
|
+
class ChatState(go.GoClass):
|
|
2801
|
+
"""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"""
|
|
2802
|
+
def __init__(self, *args, **kwargs):
|
|
2894
2803
|
"""
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
SetEventHandler assigns the given handler function for propagating internal events into the Python
|
|
2900
|
-
gateway. Note that the event handler function is not entirely safe to use directly, and all calls
|
|
2901
|
-
should instead be sent to the [Gateway] via its internal call channel.
|
|
2804
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
2805
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
2806
|
+
in which case a new Go object is constructed first
|
|
2902
2807
|
"""
|
|
2903
|
-
|
|
2808
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
2809
|
+
self.handle = kwargs['handle']
|
|
2810
|
+
_whatsapp.IncRef(self.handle)
|
|
2811
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
2812
|
+
self.handle = args[0].handle
|
|
2813
|
+
_whatsapp.IncRef(self.handle)
|
|
2814
|
+
else:
|
|
2815
|
+
self.handle = _whatsapp.whatsapp_ChatState_CTor()
|
|
2816
|
+
_whatsapp.IncRef(self.handle)
|
|
2817
|
+
if 0 < len(args):
|
|
2818
|
+
self.Kind = args[0]
|
|
2819
|
+
if "Kind" in kwargs:
|
|
2820
|
+
self.Kind = kwargs["Kind"]
|
|
2821
|
+
if 1 < len(args):
|
|
2822
|
+
self.JID = args[1]
|
|
2823
|
+
if "JID" in kwargs:
|
|
2824
|
+
self.JID = kwargs["JID"]
|
|
2825
|
+
if 2 < len(args):
|
|
2826
|
+
self.GroupJID = args[2]
|
|
2827
|
+
if "GroupJID" in kwargs:
|
|
2828
|
+
self.GroupJID = kwargs["GroupJID"]
|
|
2829
|
+
def __del__(self):
|
|
2830
|
+
_whatsapp.DecRef(self.handle)
|
|
2831
|
+
def __str__(self):
|
|
2832
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2833
|
+
sv = 'whatsapp.ChatState{'
|
|
2834
|
+
first = True
|
|
2835
|
+
for v in pr:
|
|
2836
|
+
if callable(v[1]):
|
|
2837
|
+
continue
|
|
2838
|
+
if first:
|
|
2839
|
+
first = False
|
|
2840
|
+
else:
|
|
2841
|
+
sv += ', '
|
|
2842
|
+
sv += v[0] + '=' + str(v[1])
|
|
2843
|
+
return sv + '}'
|
|
2844
|
+
def __repr__(self):
|
|
2845
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2846
|
+
sv = 'whatsapp.ChatState ( '
|
|
2847
|
+
for v in pr:
|
|
2848
|
+
if not callable(v[1]):
|
|
2849
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2850
|
+
return sv + ')'
|
|
2851
|
+
@property
|
|
2852
|
+
def Kind(self):
|
|
2853
|
+
return _whatsapp.whatsapp_ChatState_Kind_Get(self.handle)
|
|
2854
|
+
@Kind.setter
|
|
2855
|
+
def Kind(self, value):
|
|
2856
|
+
if isinstance(value, go.GoClass):
|
|
2857
|
+
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value.handle)
|
|
2858
|
+
else:
|
|
2859
|
+
_whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value)
|
|
2860
|
+
@property
|
|
2861
|
+
def JID(self):
|
|
2862
|
+
return _whatsapp.whatsapp_ChatState_JID_Get(self.handle)
|
|
2863
|
+
@JID.setter
|
|
2864
|
+
def JID(self, value):
|
|
2865
|
+
if isinstance(value, go.GoClass):
|
|
2866
|
+
_whatsapp.whatsapp_ChatState_JID_Set(self.handle, value.handle)
|
|
2867
|
+
else:
|
|
2868
|
+
_whatsapp.whatsapp_ChatState_JID_Set(self.handle, value)
|
|
2869
|
+
@property
|
|
2870
|
+
def GroupJID(self):
|
|
2871
|
+
return _whatsapp.whatsapp_ChatState_GroupJID_Get(self.handle)
|
|
2872
|
+
@GroupJID.setter
|
|
2873
|
+
def GroupJID(self, value):
|
|
2874
|
+
if isinstance(value, go.GoClass):
|
|
2875
|
+
_whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value.handle)
|
|
2876
|
+
else:
|
|
2877
|
+
_whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value)
|
|
2904
2878
|
|
|
2905
|
-
# Python type for struct whatsapp.
|
|
2906
|
-
class
|
|
2907
|
-
"""
|
|
2879
|
+
# Python type for struct whatsapp.Connect
|
|
2880
|
+
class Connect(go.GoClass):
|
|
2881
|
+
"""Connect represents event data related to a connection to WhatsApp being established, or failing\nto do so (based on the [Connect.Error] result).\n"""
|
|
2908
2882
|
def __init__(self, *args, **kwargs):
|
|
2909
2883
|
"""
|
|
2910
2884
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2918,25 +2892,21 @@ class Album(go.GoClass):
|
|
|
2918
2892
|
self.handle = args[0].handle
|
|
2919
2893
|
_whatsapp.IncRef(self.handle)
|
|
2920
2894
|
else:
|
|
2921
|
-
self.handle = _whatsapp.
|
|
2895
|
+
self.handle = _whatsapp.whatsapp_Connect_CTor()
|
|
2922
2896
|
_whatsapp.IncRef(self.handle)
|
|
2923
2897
|
if 0 < len(args):
|
|
2924
|
-
self.
|
|
2925
|
-
if "
|
|
2926
|
-
self.
|
|
2898
|
+
self.JID = args[0]
|
|
2899
|
+
if "JID" in kwargs:
|
|
2900
|
+
self.JID = kwargs["JID"]
|
|
2927
2901
|
if 1 < len(args):
|
|
2928
|
-
self.
|
|
2929
|
-
if "
|
|
2930
|
-
self.
|
|
2931
|
-
if 2 < len(args):
|
|
2932
|
-
self.VideoCount = args[2]
|
|
2933
|
-
if "VideoCount" in kwargs:
|
|
2934
|
-
self.VideoCount = kwargs["VideoCount"]
|
|
2902
|
+
self.Error = args[1]
|
|
2903
|
+
if "Error" in kwargs:
|
|
2904
|
+
self.Error = kwargs["Error"]
|
|
2935
2905
|
def __del__(self):
|
|
2936
2906
|
_whatsapp.DecRef(self.handle)
|
|
2937
2907
|
def __str__(self):
|
|
2938
2908
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2939
|
-
sv = 'whatsapp.
|
|
2909
|
+
sv = 'whatsapp.Connect{'
|
|
2940
2910
|
first = True
|
|
2941
2911
|
for v in pr:
|
|
2942
2912
|
if callable(v[1]):
|
|
@@ -2949,42 +2919,33 @@ class Album(go.GoClass):
|
|
|
2949
2919
|
return sv + '}'
|
|
2950
2920
|
def __repr__(self):
|
|
2951
2921
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
2952
|
-
sv = 'whatsapp.
|
|
2922
|
+
sv = 'whatsapp.Connect ( '
|
|
2953
2923
|
for v in pr:
|
|
2954
2924
|
if not callable(v[1]):
|
|
2955
2925
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
2956
2926
|
return sv + ')'
|
|
2957
2927
|
@property
|
|
2958
|
-
def
|
|
2959
|
-
return _whatsapp.
|
|
2960
|
-
@
|
|
2961
|
-
def
|
|
2962
|
-
if isinstance(value, go.GoClass):
|
|
2963
|
-
_whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value.handle)
|
|
2964
|
-
else:
|
|
2965
|
-
_whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value)
|
|
2966
|
-
@property
|
|
2967
|
-
def ImageCount(self):
|
|
2968
|
-
return _whatsapp.whatsapp_Album_ImageCount_Get(self.handle)
|
|
2969
|
-
@ImageCount.setter
|
|
2970
|
-
def ImageCount(self, value):
|
|
2928
|
+
def JID(self):
|
|
2929
|
+
return _whatsapp.whatsapp_Connect_JID_Get(self.handle)
|
|
2930
|
+
@JID.setter
|
|
2931
|
+
def JID(self, value):
|
|
2971
2932
|
if isinstance(value, go.GoClass):
|
|
2972
|
-
_whatsapp.
|
|
2933
|
+
_whatsapp.whatsapp_Connect_JID_Set(self.handle, value.handle)
|
|
2973
2934
|
else:
|
|
2974
|
-
_whatsapp.
|
|
2935
|
+
_whatsapp.whatsapp_Connect_JID_Set(self.handle, value)
|
|
2975
2936
|
@property
|
|
2976
|
-
def
|
|
2977
|
-
return _whatsapp.
|
|
2978
|
-
@
|
|
2979
|
-
def
|
|
2937
|
+
def Error(self):
|
|
2938
|
+
return _whatsapp.whatsapp_Connect_Error_Get(self.handle)
|
|
2939
|
+
@Error.setter
|
|
2940
|
+
def Error(self, value):
|
|
2980
2941
|
if isinstance(value, go.GoClass):
|
|
2981
|
-
_whatsapp.
|
|
2942
|
+
_whatsapp.whatsapp_Connect_Error_Set(self.handle, value.handle)
|
|
2982
2943
|
else:
|
|
2983
|
-
_whatsapp.
|
|
2944
|
+
_whatsapp.whatsapp_Connect_Error_Set(self.handle, value)
|
|
2984
2945
|
|
|
2985
|
-
# Python type for struct whatsapp.
|
|
2986
|
-
class
|
|
2987
|
-
"""A
|
|
2946
|
+
# Python type for struct whatsapp.Poll
|
|
2947
|
+
class Poll(go.GoClass):
|
|
2948
|
+
"""A Poll represents a multiple-choice question, on which each choice might be voted for one or more\ntimes.\n"""
|
|
2988
2949
|
def __init__(self, *args, **kwargs):
|
|
2989
2950
|
"""
|
|
2990
2951
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -2998,21 +2959,21 @@ class Avatar(go.GoClass):
|
|
|
2998
2959
|
self.handle = args[0].handle
|
|
2999
2960
|
_whatsapp.IncRef(self.handle)
|
|
3000
2961
|
else:
|
|
3001
|
-
self.handle = _whatsapp.
|
|
2962
|
+
self.handle = _whatsapp.whatsapp_Poll_CTor()
|
|
3002
2963
|
_whatsapp.IncRef(self.handle)
|
|
3003
2964
|
if 0 < len(args):
|
|
3004
|
-
self.
|
|
3005
|
-
if "
|
|
3006
|
-
self.
|
|
2965
|
+
self.Title = args[0]
|
|
2966
|
+
if "Title" in kwargs:
|
|
2967
|
+
self.Title = kwargs["Title"]
|
|
3007
2968
|
if 1 < len(args):
|
|
3008
|
-
self.
|
|
3009
|
-
if "
|
|
3010
|
-
self.
|
|
2969
|
+
self.Options = args[1]
|
|
2970
|
+
if "Options" in kwargs:
|
|
2971
|
+
self.Options = kwargs["Options"]
|
|
3011
2972
|
def __del__(self):
|
|
3012
2973
|
_whatsapp.DecRef(self.handle)
|
|
3013
2974
|
def __str__(self):
|
|
3014
2975
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3015
|
-
sv = 'whatsapp.
|
|
2976
|
+
sv = 'whatsapp.Poll{'
|
|
3016
2977
|
first = True
|
|
3017
2978
|
for v in pr:
|
|
3018
2979
|
if callable(v[1]):
|
|
@@ -3025,33 +2986,33 @@ class Avatar(go.GoClass):
|
|
|
3025
2986
|
return sv + '}'
|
|
3026
2987
|
def __repr__(self):
|
|
3027
2988
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3028
|
-
sv = 'whatsapp.
|
|
2989
|
+
sv = 'whatsapp.Poll ( '
|
|
3029
2990
|
for v in pr:
|
|
3030
2991
|
if not callable(v[1]):
|
|
3031
2992
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
3032
2993
|
return sv + ')'
|
|
3033
2994
|
@property
|
|
3034
|
-
def
|
|
3035
|
-
return _whatsapp.
|
|
3036
|
-
@
|
|
3037
|
-
def
|
|
2995
|
+
def Title(self):
|
|
2996
|
+
return _whatsapp.whatsapp_Poll_Title_Get(self.handle)
|
|
2997
|
+
@Title.setter
|
|
2998
|
+
def Title(self, value):
|
|
3038
2999
|
if isinstance(value, go.GoClass):
|
|
3039
|
-
_whatsapp.
|
|
3000
|
+
_whatsapp.whatsapp_Poll_Title_Set(self.handle, value.handle)
|
|
3040
3001
|
else:
|
|
3041
|
-
_whatsapp.
|
|
3002
|
+
_whatsapp.whatsapp_Poll_Title_Set(self.handle, value)
|
|
3042
3003
|
@property
|
|
3043
|
-
def
|
|
3044
|
-
return _whatsapp.
|
|
3045
|
-
@
|
|
3046
|
-
def
|
|
3004
|
+
def Options(self):
|
|
3005
|
+
return Slice_whatsapp_PollOption(handle=_whatsapp.whatsapp_Poll_Options_Get(self.handle))
|
|
3006
|
+
@Options.setter
|
|
3007
|
+
def Options(self, value):
|
|
3047
3008
|
if isinstance(value, go.GoClass):
|
|
3048
|
-
_whatsapp.
|
|
3009
|
+
_whatsapp.whatsapp_Poll_Options_Set(self.handle, value.handle)
|
|
3049
3010
|
else:
|
|
3050
|
-
|
|
3011
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
3051
3012
|
|
|
3052
|
-
# Python type for struct whatsapp.
|
|
3053
|
-
class
|
|
3054
|
-
"""A
|
|
3013
|
+
# Python type for struct whatsapp.Receipt
|
|
3014
|
+
class Receipt(go.GoClass):
|
|
3015
|
+
"""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"""
|
|
3055
3016
|
def __init__(self, *args, **kwargs):
|
|
3056
3017
|
"""
|
|
3057
3018
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -3065,25 +3026,37 @@ class Call(go.GoClass):
|
|
|
3065
3026
|
self.handle = args[0].handle
|
|
3066
3027
|
_whatsapp.IncRef(self.handle)
|
|
3067
3028
|
else:
|
|
3068
|
-
self.handle = _whatsapp.
|
|
3029
|
+
self.handle = _whatsapp.whatsapp_Receipt_CTor()
|
|
3069
3030
|
_whatsapp.IncRef(self.handle)
|
|
3070
3031
|
if 0 < len(args):
|
|
3071
|
-
self.
|
|
3072
|
-
if "
|
|
3073
|
-
self.
|
|
3032
|
+
self.Kind = args[0]
|
|
3033
|
+
if "Kind" in kwargs:
|
|
3034
|
+
self.Kind = kwargs["Kind"]
|
|
3074
3035
|
if 1 < len(args):
|
|
3075
|
-
self.
|
|
3036
|
+
self.MessageIDs = args[1]
|
|
3037
|
+
if "MessageIDs" in kwargs:
|
|
3038
|
+
self.MessageIDs = kwargs["MessageIDs"]
|
|
3039
|
+
if 2 < len(args):
|
|
3040
|
+
self.JID = args[2]
|
|
3076
3041
|
if "JID" in kwargs:
|
|
3077
3042
|
self.JID = kwargs["JID"]
|
|
3078
|
-
if
|
|
3079
|
-
self.
|
|
3043
|
+
if 3 < len(args):
|
|
3044
|
+
self.GroupJID = args[3]
|
|
3045
|
+
if "GroupJID" in kwargs:
|
|
3046
|
+
self.GroupJID = kwargs["GroupJID"]
|
|
3047
|
+
if 4 < len(args):
|
|
3048
|
+
self.Timestamp = args[4]
|
|
3080
3049
|
if "Timestamp" in kwargs:
|
|
3081
3050
|
self.Timestamp = kwargs["Timestamp"]
|
|
3051
|
+
if 5 < len(args):
|
|
3052
|
+
self.IsCarbon = args[5]
|
|
3053
|
+
if "IsCarbon" in kwargs:
|
|
3054
|
+
self.IsCarbon = kwargs["IsCarbon"]
|
|
3082
3055
|
def __del__(self):
|
|
3083
3056
|
_whatsapp.DecRef(self.handle)
|
|
3084
3057
|
def __str__(self):
|
|
3085
3058
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3086
|
-
sv = 'whatsapp.
|
|
3059
|
+
sv = 'whatsapp.Receipt{'
|
|
3087
3060
|
first = True
|
|
3088
3061
|
for v in pr:
|
|
3089
3062
|
if callable(v[1]):
|
|
@@ -3096,42 +3069,69 @@ class Call(go.GoClass):
|
|
|
3096
3069
|
return sv + '}'
|
|
3097
3070
|
def __repr__(self):
|
|
3098
3071
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3099
|
-
sv = 'whatsapp.
|
|
3072
|
+
sv = 'whatsapp.Receipt ( '
|
|
3100
3073
|
for v in pr:
|
|
3101
3074
|
if not callable(v[1]):
|
|
3102
3075
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
3103
3076
|
return sv + ')'
|
|
3104
3077
|
@property
|
|
3105
|
-
def
|
|
3106
|
-
return _whatsapp.
|
|
3107
|
-
@
|
|
3108
|
-
def
|
|
3078
|
+
def Kind(self):
|
|
3079
|
+
return _whatsapp.whatsapp_Receipt_Kind_Get(self.handle)
|
|
3080
|
+
@Kind.setter
|
|
3081
|
+
def Kind(self, value):
|
|
3109
3082
|
if isinstance(value, go.GoClass):
|
|
3110
|
-
_whatsapp.
|
|
3083
|
+
_whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value.handle)
|
|
3111
3084
|
else:
|
|
3112
|
-
_whatsapp.
|
|
3085
|
+
_whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value)
|
|
3086
|
+
@property
|
|
3087
|
+
def MessageIDs(self):
|
|
3088
|
+
return go.Slice_string(handle=_whatsapp.whatsapp_Receipt_MessageIDs_Get(self.handle))
|
|
3089
|
+
@MessageIDs.setter
|
|
3090
|
+
def MessageIDs(self, value):
|
|
3091
|
+
if isinstance(value, go.GoClass):
|
|
3092
|
+
_whatsapp.whatsapp_Receipt_MessageIDs_Set(self.handle, value.handle)
|
|
3093
|
+
else:
|
|
3094
|
+
raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
|
|
3113
3095
|
@property
|
|
3114
3096
|
def JID(self):
|
|
3115
|
-
return _whatsapp.
|
|
3097
|
+
return _whatsapp.whatsapp_Receipt_JID_Get(self.handle)
|
|
3116
3098
|
@JID.setter
|
|
3117
3099
|
def JID(self, value):
|
|
3118
3100
|
if isinstance(value, go.GoClass):
|
|
3119
|
-
_whatsapp.
|
|
3101
|
+
_whatsapp.whatsapp_Receipt_JID_Set(self.handle, value.handle)
|
|
3120
3102
|
else:
|
|
3121
|
-
_whatsapp.
|
|
3103
|
+
_whatsapp.whatsapp_Receipt_JID_Set(self.handle, value)
|
|
3104
|
+
@property
|
|
3105
|
+
def GroupJID(self):
|
|
3106
|
+
return _whatsapp.whatsapp_Receipt_GroupJID_Get(self.handle)
|
|
3107
|
+
@GroupJID.setter
|
|
3108
|
+
def GroupJID(self, value):
|
|
3109
|
+
if isinstance(value, go.GoClass):
|
|
3110
|
+
_whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value.handle)
|
|
3111
|
+
else:
|
|
3112
|
+
_whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value)
|
|
3122
3113
|
@property
|
|
3123
3114
|
def Timestamp(self):
|
|
3124
|
-
return _whatsapp.
|
|
3115
|
+
return _whatsapp.whatsapp_Receipt_Timestamp_Get(self.handle)
|
|
3125
3116
|
@Timestamp.setter
|
|
3126
3117
|
def Timestamp(self, value):
|
|
3127
3118
|
if isinstance(value, go.GoClass):
|
|
3128
|
-
_whatsapp.
|
|
3119
|
+
_whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value.handle)
|
|
3129
3120
|
else:
|
|
3130
|
-
_whatsapp.
|
|
3121
|
+
_whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value)
|
|
3122
|
+
@property
|
|
3123
|
+
def IsCarbon(self):
|
|
3124
|
+
return _whatsapp.whatsapp_Receipt_IsCarbon_Get(self.handle)
|
|
3125
|
+
@IsCarbon.setter
|
|
3126
|
+
def IsCarbon(self, value):
|
|
3127
|
+
if isinstance(value, go.GoClass):
|
|
3128
|
+
_whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value.handle)
|
|
3129
|
+
else:
|
|
3130
|
+
_whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value)
|
|
3131
3131
|
|
|
3132
|
-
# Python type for struct whatsapp.
|
|
3133
|
-
class
|
|
3134
|
-
"""A
|
|
3132
|
+
# Python type for struct whatsapp.Call
|
|
3133
|
+
class Call(go.GoClass):
|
|
3134
|
+
"""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"""
|
|
3135
3135
|
def __init__(self, *args, **kwargs):
|
|
3136
3136
|
"""
|
|
3137
3137
|
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
@@ -3145,25 +3145,25 @@ class GroupParticipant(go.GoClass):
|
|
|
3145
3145
|
self.handle = args[0].handle
|
|
3146
3146
|
_whatsapp.IncRef(self.handle)
|
|
3147
3147
|
else:
|
|
3148
|
-
self.handle = _whatsapp.
|
|
3148
|
+
self.handle = _whatsapp.whatsapp_Call_CTor()
|
|
3149
3149
|
_whatsapp.IncRef(self.handle)
|
|
3150
3150
|
if 0 < len(args):
|
|
3151
|
-
self.
|
|
3151
|
+
self.State = args[0]
|
|
3152
|
+
if "State" in kwargs:
|
|
3153
|
+
self.State = kwargs["State"]
|
|
3154
|
+
if 1 < len(args):
|
|
3155
|
+
self.JID = args[1]
|
|
3152
3156
|
if "JID" in kwargs:
|
|
3153
3157
|
self.JID = kwargs["JID"]
|
|
3154
|
-
if 1 < len(args):
|
|
3155
|
-
self.Affiliation = args[1]
|
|
3156
|
-
if "Affiliation" in kwargs:
|
|
3157
|
-
self.Affiliation = kwargs["Affiliation"]
|
|
3158
3158
|
if 2 < len(args):
|
|
3159
|
-
self.
|
|
3160
|
-
if "
|
|
3161
|
-
self.
|
|
3159
|
+
self.Timestamp = args[2]
|
|
3160
|
+
if "Timestamp" in kwargs:
|
|
3161
|
+
self.Timestamp = kwargs["Timestamp"]
|
|
3162
3162
|
def __del__(self):
|
|
3163
3163
|
_whatsapp.DecRef(self.handle)
|
|
3164
3164
|
def __str__(self):
|
|
3165
3165
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3166
|
-
sv = 'whatsapp.
|
|
3166
|
+
sv = 'whatsapp.Call{'
|
|
3167
3167
|
first = True
|
|
3168
3168
|
for v in pr:
|
|
3169
3169
|
if callable(v[1]):
|
|
@@ -3176,38 +3176,38 @@ class GroupParticipant(go.GoClass):
|
|
|
3176
3176
|
return sv + '}'
|
|
3177
3177
|
def __repr__(self):
|
|
3178
3178
|
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
3179
|
-
sv = 'whatsapp.
|
|
3179
|
+
sv = 'whatsapp.Call ( '
|
|
3180
3180
|
for v in pr:
|
|
3181
3181
|
if not callable(v[1]):
|
|
3182
3182
|
sv += v[0] + '=' + str(v[1]) + ', '
|
|
3183
3183
|
return sv + ')'
|
|
3184
3184
|
@property
|
|
3185
|
-
def
|
|
3186
|
-
return _whatsapp.
|
|
3187
|
-
@
|
|
3188
|
-
def
|
|
3185
|
+
def State(self):
|
|
3186
|
+
return _whatsapp.whatsapp_Call_State_Get(self.handle)
|
|
3187
|
+
@State.setter
|
|
3188
|
+
def State(self, value):
|
|
3189
3189
|
if isinstance(value, go.GoClass):
|
|
3190
|
-
_whatsapp.
|
|
3190
|
+
_whatsapp.whatsapp_Call_State_Set(self.handle, value.handle)
|
|
3191
3191
|
else:
|
|
3192
|
-
_whatsapp.
|
|
3192
|
+
_whatsapp.whatsapp_Call_State_Set(self.handle, value)
|
|
3193
3193
|
@property
|
|
3194
|
-
def
|
|
3195
|
-
return _whatsapp.
|
|
3196
|
-
@
|
|
3197
|
-
def
|
|
3194
|
+
def JID(self):
|
|
3195
|
+
return _whatsapp.whatsapp_Call_JID_Get(self.handle)
|
|
3196
|
+
@JID.setter
|
|
3197
|
+
def JID(self, value):
|
|
3198
3198
|
if isinstance(value, go.GoClass):
|
|
3199
|
-
_whatsapp.
|
|
3199
|
+
_whatsapp.whatsapp_Call_JID_Set(self.handle, value.handle)
|
|
3200
3200
|
else:
|
|
3201
|
-
_whatsapp.
|
|
3201
|
+
_whatsapp.whatsapp_Call_JID_Set(self.handle, value)
|
|
3202
3202
|
@property
|
|
3203
|
-
def
|
|
3204
|
-
return _whatsapp.
|
|
3205
|
-
@
|
|
3206
|
-
def
|
|
3203
|
+
def Timestamp(self):
|
|
3204
|
+
return _whatsapp.whatsapp_Call_Timestamp_Get(self.handle)
|
|
3205
|
+
@Timestamp.setter
|
|
3206
|
+
def Timestamp(self, value):
|
|
3207
3207
|
if isinstance(value, go.GoClass):
|
|
3208
|
-
_whatsapp.
|
|
3208
|
+
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value.handle)
|
|
3209
3209
|
else:
|
|
3210
|
-
_whatsapp.
|
|
3210
|
+
_whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value)
|
|
3211
3211
|
|
|
3212
3212
|
|
|
3213
3213
|
# ---- Slices ---
|