slidge-whatsapp 0.2.5__cp311-cp311-manylinux_2_36_aarch64.whl → 0.2.7__cp311-cp311-manylinux_2_36_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slidge-whatsapp might be problematic. Click here for more details.
- slidge_whatsapp/config.py +3 -0
- slidge_whatsapp/event.go +31 -26
- slidge_whatsapp/gateway.go +13 -9
- slidge_whatsapp/gateway.py +2 -2
- slidge_whatsapp/generated/_whatsapp.cpython-311-aarch64-linux-gnu.h +170 -170
- slidge_whatsapp/generated/_whatsapp.cpython-311-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +135 -135
- slidge_whatsapp/generated/whatsapp.c +1496 -1496
- slidge_whatsapp/generated/whatsapp.go +1137 -1137
- slidge_whatsapp/generated/whatsapp.py +1216 -1216
- slidge_whatsapp/generated/whatsapp_go.h +170 -170
- 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
|
@@ -8,8 +8,8 @@ package main
|
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
|
|
11
|
-
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.11.
|
|
12
|
-
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.11.
|
|
11
|
+
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.11.13-linux-aarch64-gnu/include/python3.11" -Wno-error -Wno-implicit-function-declaration -Wno-int-conversion
|
|
12
|
+
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.11.13-linux-aarch64-gnu/lib" "-lpython3.11" -lpthread -ldl -lutil -lm
|
|
13
13
|
|
|
14
14
|
// #define Py_LIMITED_API // need full API for PyRun*
|
|
15
15
|
#include <Python.h>
|
|
@@ -2115,1431 +2115,1385 @@ func handleFromPtr_whatsapp_Session(p interface{}) CGoHandle {
|
|
|
2115
2115
|
|
|
2116
2116
|
// ---- Structs ---
|
|
2117
2117
|
|
|
2118
|
-
// --- wrapping struct: whatsapp.
|
|
2118
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
2119
2119
|
//
|
|
2120
|
-
//export
|
|
2121
|
-
func
|
|
2122
|
-
return CGoHandle(
|
|
2120
|
+
//export whatsapp_Group_CTor
|
|
2121
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
2122
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
2123
2123
|
}
|
|
2124
2124
|
|
|
2125
|
-
//export
|
|
2126
|
-
func
|
|
2127
|
-
op :=
|
|
2128
|
-
return C.CString(op.
|
|
2125
|
+
//export whatsapp_Group_JID_Get
|
|
2126
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
2127
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2128
|
+
return C.CString(op.JID)
|
|
2129
2129
|
}
|
|
2130
2130
|
|
|
2131
|
-
//export
|
|
2132
|
-
func
|
|
2133
|
-
op :=
|
|
2134
|
-
op.
|
|
2131
|
+
//export whatsapp_Group_JID_Set
|
|
2132
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
2133
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2134
|
+
op.JID = C.GoString(val)
|
|
2135
2135
|
}
|
|
2136
2136
|
|
|
2137
|
-
//export
|
|
2138
|
-
func
|
|
2139
|
-
op :=
|
|
2137
|
+
//export whatsapp_Group_Name_Get
|
|
2138
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
2139
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2140
2140
|
return C.CString(op.Name)
|
|
2141
2141
|
}
|
|
2142
2142
|
|
|
2143
|
-
//export
|
|
2144
|
-
func
|
|
2145
|
-
op :=
|
|
2143
|
+
//export whatsapp_Group_Name_Set
|
|
2144
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
2145
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2146
2146
|
op.Name = C.GoString(val)
|
|
2147
2147
|
}
|
|
2148
2148
|
|
|
2149
|
-
//export
|
|
2150
|
-
func
|
|
2151
|
-
op :=
|
|
2152
|
-
return
|
|
2149
|
+
//export whatsapp_Group_Subject_Get
|
|
2150
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
2151
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2152
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
2153
2153
|
}
|
|
2154
2154
|
|
|
2155
|
-
//export
|
|
2156
|
-
func
|
|
2157
|
-
op :=
|
|
2158
|
-
op.
|
|
2155
|
+
//export whatsapp_Group_Subject_Set
|
|
2156
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
2157
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2158
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
2159
2159
|
}
|
|
2160
2160
|
|
|
2161
|
-
//export
|
|
2162
|
-
func
|
|
2163
|
-
op :=
|
|
2164
|
-
return C.CString(op.
|
|
2161
|
+
//export whatsapp_Group_Nickname_Get
|
|
2162
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
2163
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2164
|
+
return C.CString(op.Nickname)
|
|
2165
2165
|
}
|
|
2166
2166
|
|
|
2167
|
-
//export
|
|
2168
|
-
func
|
|
2169
|
-
op :=
|
|
2170
|
-
op.
|
|
2167
|
+
//export whatsapp_Group_Nickname_Set
|
|
2168
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
2169
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2170
|
+
op.Nickname = C.GoString(val)
|
|
2171
2171
|
}
|
|
2172
2172
|
|
|
2173
|
-
//export
|
|
2174
|
-
func
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
if __err != nil {
|
|
2178
|
-
return errorGoToPy(nil)
|
|
2179
|
-
}
|
|
2180
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
2181
|
-
|
|
2182
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2183
|
-
if __err != nil {
|
|
2184
|
-
estr := C.CString(__err.Error())
|
|
2185
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2186
|
-
return estr
|
|
2187
|
-
}
|
|
2188
|
-
return C.CString("")
|
|
2173
|
+
//export whatsapp_Group_Participants_Get
|
|
2174
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
2175
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2176
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
2189
2177
|
}
|
|
2190
2178
|
|
|
2191
|
-
//export
|
|
2192
|
-
func
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2196
|
-
if __err != nil {
|
|
2197
|
-
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
2198
|
-
}
|
|
2199
|
-
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
2200
|
-
|
|
2179
|
+
//export whatsapp_Group_Participants_Set
|
|
2180
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
2181
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2182
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
2201
2183
|
}
|
|
2202
2184
|
|
|
2203
|
-
//
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
return errorGoToPy(nil)
|
|
2209
|
-
}
|
|
2210
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
2211
|
-
|
|
2212
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2213
|
-
if __err != nil {
|
|
2214
|
-
estr := C.CString(__err.Error())
|
|
2215
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2216
|
-
return estr
|
|
2217
|
-
}
|
|
2218
|
-
return C.CString("")
|
|
2185
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
2186
|
+
//
|
|
2187
|
+
//export whatsapp_GroupParticipant_CTor
|
|
2188
|
+
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
2189
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
2219
2190
|
}
|
|
2220
2191
|
|
|
2221
|
-
//
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
2192
|
+
//export whatsapp_GroupParticipant_JID_Get
|
|
2193
|
+
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
2194
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2195
|
+
return C.CString(op.JID)
|
|
2226
2196
|
}
|
|
2227
2197
|
|
|
2228
|
-
//export
|
|
2229
|
-
func
|
|
2230
|
-
op :=
|
|
2231
|
-
|
|
2198
|
+
//export whatsapp_GroupParticipant_JID_Set
|
|
2199
|
+
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
2200
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2201
|
+
op.JID = C.GoString(val)
|
|
2232
2202
|
}
|
|
2233
2203
|
|
|
2234
|
-
//export
|
|
2235
|
-
func
|
|
2236
|
-
op :=
|
|
2237
|
-
|
|
2204
|
+
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
2205
|
+
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
2206
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2207
|
+
return C.longlong(int(op.Affiliation))
|
|
2238
2208
|
}
|
|
2239
2209
|
|
|
2240
|
-
//export
|
|
2241
|
-
func
|
|
2242
|
-
op :=
|
|
2243
|
-
|
|
2210
|
+
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
2211
|
+
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
2212
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2213
|
+
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
2244
2214
|
}
|
|
2245
2215
|
|
|
2246
|
-
//export
|
|
2247
|
-
func
|
|
2248
|
-
op :=
|
|
2249
|
-
|
|
2216
|
+
//export whatsapp_GroupParticipant_Action_Get
|
|
2217
|
+
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
2218
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2219
|
+
return C.longlong(int(op.Action))
|
|
2250
2220
|
}
|
|
2251
2221
|
|
|
2252
|
-
//export
|
|
2253
|
-
func
|
|
2254
|
-
op :=
|
|
2255
|
-
|
|
2222
|
+
//export whatsapp_GroupParticipant_Action_Set
|
|
2223
|
+
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
2224
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2225
|
+
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
2256
2226
|
}
|
|
2257
2227
|
|
|
2258
|
-
//
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2228
|
+
// --- wrapping struct: whatsapp.Location ---
|
|
2229
|
+
//
|
|
2230
|
+
//export whatsapp_Location_CTor
|
|
2231
|
+
func whatsapp_Location_CTor() CGoHandle {
|
|
2232
|
+
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
2262
2233
|
}
|
|
2263
2234
|
|
|
2264
|
-
//export
|
|
2265
|
-
func
|
|
2266
|
-
op :=
|
|
2267
|
-
return C.
|
|
2235
|
+
//export whatsapp_Location_Latitude_Get
|
|
2236
|
+
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
2237
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2238
|
+
return C.double(op.Latitude)
|
|
2268
2239
|
}
|
|
2269
2240
|
|
|
2270
|
-
//export
|
|
2271
|
-
func
|
|
2272
|
-
op :=
|
|
2273
|
-
op.
|
|
2241
|
+
//export whatsapp_Location_Latitude_Set
|
|
2242
|
+
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
2243
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2244
|
+
op.Latitude = float64(val)
|
|
2274
2245
|
}
|
|
2275
2246
|
|
|
2276
|
-
//export
|
|
2277
|
-
func
|
|
2278
|
-
op :=
|
|
2279
|
-
return C.
|
|
2247
|
+
//export whatsapp_Location_Longitude_Get
|
|
2248
|
+
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
2249
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2250
|
+
return C.double(op.Longitude)
|
|
2280
2251
|
}
|
|
2281
2252
|
|
|
2282
|
-
//export
|
|
2283
|
-
func
|
|
2284
|
-
op :=
|
|
2285
|
-
op.
|
|
2253
|
+
//export whatsapp_Location_Longitude_Set
|
|
2254
|
+
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
2255
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2256
|
+
op.Longitude = float64(val)
|
|
2286
2257
|
}
|
|
2287
2258
|
|
|
2288
|
-
//export
|
|
2289
|
-
func
|
|
2290
|
-
op :=
|
|
2291
|
-
return C.
|
|
2259
|
+
//export whatsapp_Location_Accuracy_Get
|
|
2260
|
+
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
2261
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2262
|
+
return C.longlong(op.Accuracy)
|
|
2292
2263
|
}
|
|
2293
2264
|
|
|
2294
|
-
//export
|
|
2295
|
-
func
|
|
2296
|
-
op :=
|
|
2297
|
-
op.
|
|
2265
|
+
//export whatsapp_Location_Accuracy_Set
|
|
2266
|
+
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
2267
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2268
|
+
op.Accuracy = int(val)
|
|
2298
2269
|
}
|
|
2299
2270
|
|
|
2300
|
-
//export
|
|
2301
|
-
func
|
|
2302
|
-
op :=
|
|
2303
|
-
return
|
|
2271
|
+
//export whatsapp_Location_IsLive_Get
|
|
2272
|
+
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
2273
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2274
|
+
return boolGoToPy(op.IsLive)
|
|
2304
2275
|
}
|
|
2305
2276
|
|
|
2306
|
-
//export
|
|
2307
|
-
func
|
|
2308
|
-
op :=
|
|
2309
|
-
op.
|
|
2277
|
+
//export whatsapp_Location_IsLive_Set
|
|
2278
|
+
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
2279
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2280
|
+
op.IsLive = boolPyToGo(val)
|
|
2310
2281
|
}
|
|
2311
2282
|
|
|
2312
|
-
//export
|
|
2313
|
-
func
|
|
2314
|
-
op :=
|
|
2315
|
-
return
|
|
2283
|
+
//export whatsapp_Location_Name_Get
|
|
2284
|
+
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
2285
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2286
|
+
return C.CString(op.Name)
|
|
2316
2287
|
}
|
|
2317
2288
|
|
|
2318
|
-
//export
|
|
2319
|
-
func
|
|
2320
|
-
op :=
|
|
2321
|
-
op.
|
|
2289
|
+
//export whatsapp_Location_Name_Set
|
|
2290
|
+
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
2291
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2292
|
+
op.Name = C.GoString(val)
|
|
2322
2293
|
}
|
|
2323
2294
|
|
|
2324
|
-
//export
|
|
2325
|
-
func
|
|
2326
|
-
op :=
|
|
2327
|
-
return
|
|
2295
|
+
//export whatsapp_Location_Address_Get
|
|
2296
|
+
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
2297
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2298
|
+
return C.CString(op.Address)
|
|
2328
2299
|
}
|
|
2329
2300
|
|
|
2330
|
-
//export
|
|
2331
|
-
func
|
|
2332
|
-
op :=
|
|
2333
|
-
op.
|
|
2301
|
+
//export whatsapp_Location_Address_Set
|
|
2302
|
+
func whatsapp_Location_Address_Set(handle CGoHandle, val *C.char) {
|
|
2303
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2304
|
+
op.Address = C.GoString(val)
|
|
2334
2305
|
}
|
|
2335
2306
|
|
|
2336
|
-
//export
|
|
2337
|
-
func
|
|
2338
|
-
op :=
|
|
2339
|
-
return C.CString(op.
|
|
2307
|
+
//export whatsapp_Location_URL_Get
|
|
2308
|
+
func whatsapp_Location_URL_Get(handle CGoHandle) *C.char {
|
|
2309
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2310
|
+
return C.CString(op.URL)
|
|
2340
2311
|
}
|
|
2341
2312
|
|
|
2342
|
-
//export
|
|
2343
|
-
func
|
|
2344
|
-
op :=
|
|
2345
|
-
op.
|
|
2313
|
+
//export whatsapp_Location_URL_Set
|
|
2314
|
+
func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
2315
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2316
|
+
op.URL = C.GoString(val)
|
|
2346
2317
|
}
|
|
2347
2318
|
|
|
2348
|
-
//
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2319
|
+
// --- wrapping struct: whatsapp.Session ---
|
|
2320
|
+
//
|
|
2321
|
+
//export whatsapp_Session_CTor
|
|
2322
|
+
func whatsapp_Session_CTor() CGoHandle {
|
|
2323
|
+
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
2352
2324
|
}
|
|
2353
2325
|
|
|
2354
|
-
//export
|
|
2355
|
-
func
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2326
|
+
//export whatsapp_Session_Login
|
|
2327
|
+
func whatsapp_Session_Login(_handle CGoHandle) *C.char {
|
|
2328
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2329
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2330
|
+
if __err != nil {
|
|
2331
|
+
return errorGoToPy(nil)
|
|
2332
|
+
}
|
|
2333
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
2359
2334
|
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2335
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2336
|
+
if __err != nil {
|
|
2337
|
+
estr := C.CString(__err.Error())
|
|
2338
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2339
|
+
return estr
|
|
2340
|
+
}
|
|
2341
|
+
return C.CString("")
|
|
2364
2342
|
}
|
|
2365
2343
|
|
|
2366
|
-
//export
|
|
2367
|
-
func
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2344
|
+
//export whatsapp_Session_Logout
|
|
2345
|
+
func whatsapp_Session_Logout(_handle CGoHandle) *C.char {
|
|
2346
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2347
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2348
|
+
if __err != nil {
|
|
2349
|
+
return errorGoToPy(nil)
|
|
2350
|
+
}
|
|
2351
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
2371
2352
|
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2353
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2354
|
+
if __err != nil {
|
|
2355
|
+
estr := C.CString(__err.Error())
|
|
2356
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2357
|
+
return estr
|
|
2358
|
+
}
|
|
2359
|
+
return C.CString("")
|
|
2376
2360
|
}
|
|
2377
2361
|
|
|
2378
|
-
//export
|
|
2379
|
-
func
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2362
|
+
//export whatsapp_Session_Disconnect
|
|
2363
|
+
func whatsapp_Session_Disconnect(_handle CGoHandle) *C.char {
|
|
2364
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2365
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2366
|
+
if __err != nil {
|
|
2367
|
+
return errorGoToPy(nil)
|
|
2368
|
+
}
|
|
2369
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
2383
2370
|
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2371
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2372
|
+
if __err != nil {
|
|
2373
|
+
estr := C.CString(__err.Error())
|
|
2374
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2375
|
+
return estr
|
|
2376
|
+
}
|
|
2377
|
+
return C.CString("")
|
|
2388
2378
|
}
|
|
2389
2379
|
|
|
2390
|
-
//export
|
|
2391
|
-
func
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2380
|
+
//export whatsapp_Session_PairPhone
|
|
2381
|
+
func whatsapp_Session_PairPhone(_handle CGoHandle, phone *C.char) *C.char {
|
|
2382
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2383
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2384
|
+
if __err != nil {
|
|
2385
|
+
return C.CString("")
|
|
2386
|
+
}
|
|
2387
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
2395
2388
|
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2389
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2390
|
+
if __err != nil {
|
|
2391
|
+
estr := C.CString(__err.Error())
|
|
2392
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2393
|
+
C.free(unsafe.Pointer(estr))
|
|
2394
|
+
return C.CString("")
|
|
2395
|
+
}
|
|
2396
|
+
return C.CString(cret)
|
|
2400
2397
|
}
|
|
2401
2398
|
|
|
2402
|
-
//export
|
|
2403
|
-
func
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2399
|
+
//export whatsapp_Session_SendMessage
|
|
2400
|
+
func whatsapp_Session_SendMessage(_handle CGoHandle, message CGoHandle) *C.char {
|
|
2401
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2402
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2403
|
+
if __err != nil {
|
|
2404
|
+
return errorGoToPy(nil)
|
|
2405
|
+
}
|
|
2406
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
2407
2407
|
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2408
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2409
|
+
if __err != nil {
|
|
2410
|
+
estr := C.CString(__err.Error())
|
|
2411
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2412
|
+
return estr
|
|
2413
|
+
}
|
|
2414
|
+
return C.CString("")
|
|
2412
2415
|
}
|
|
2413
2416
|
|
|
2414
|
-
//export
|
|
2415
|
-
func
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2417
|
+
//export whatsapp_Session_GenerateMessageID
|
|
2418
|
+
func whatsapp_Session_GenerateMessageID(_handle CGoHandle) *C.char {
|
|
2419
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2420
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2421
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2422
|
+
if __err != nil {
|
|
2423
|
+
return C.CString("")
|
|
2424
|
+
}
|
|
2425
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
2419
2426
|
|
|
2420
|
-
//export whatsapp_Message_MentionJIDs_Get
|
|
2421
|
-
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
2422
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2423
|
-
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
2424
2427
|
}
|
|
2425
2428
|
|
|
2426
|
-
//export
|
|
2427
|
-
func
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2429
|
+
//export whatsapp_Session_SendChatState
|
|
2430
|
+
func whatsapp_Session_SendChatState(_handle CGoHandle, state CGoHandle) *C.char {
|
|
2431
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2432
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2433
|
+
if __err != nil {
|
|
2434
|
+
return errorGoToPy(nil)
|
|
2435
|
+
}
|
|
2436
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
2431
2437
|
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2438
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2439
|
+
if __err != nil {
|
|
2440
|
+
estr := C.CString(__err.Error())
|
|
2441
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2442
|
+
return estr
|
|
2443
|
+
}
|
|
2444
|
+
return C.CString("")
|
|
2436
2445
|
}
|
|
2437
2446
|
|
|
2438
|
-
//export
|
|
2439
|
-
func
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2447
|
+
//export whatsapp_Session_SendReceipt
|
|
2448
|
+
func whatsapp_Session_SendReceipt(_handle CGoHandle, receipt CGoHandle) *C.char {
|
|
2449
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2450
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2451
|
+
if __err != nil {
|
|
2452
|
+
return errorGoToPy(nil)
|
|
2453
|
+
}
|
|
2454
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
2443
2455
|
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2456
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2457
|
+
if __err != nil {
|
|
2458
|
+
estr := C.CString(__err.Error())
|
|
2459
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2460
|
+
return estr
|
|
2461
|
+
}
|
|
2462
|
+
return C.CString("")
|
|
2448
2463
|
}
|
|
2449
2464
|
|
|
2450
|
-
//export
|
|
2451
|
-
func
|
|
2452
|
-
|
|
2453
|
-
|
|
2465
|
+
//export whatsapp_Session_SendPresence
|
|
2466
|
+
func whatsapp_Session_SendPresence(_handle CGoHandle, presence C.longlong, statusMessage *C.char) *C.char {
|
|
2467
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2468
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2469
|
+
if __err != nil {
|
|
2470
|
+
return errorGoToPy(nil)
|
|
2471
|
+
}
|
|
2472
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
2473
|
+
|
|
2474
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2475
|
+
if __err != nil {
|
|
2476
|
+
estr := C.CString(__err.Error())
|
|
2477
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2478
|
+
return estr
|
|
2479
|
+
}
|
|
2480
|
+
return C.CString("")
|
|
2454
2481
|
}
|
|
2455
2482
|
|
|
2456
|
-
//
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
func whatsapp_Poll_Title_Get(handle CGoHandle) *C.char {
|
|
2465
|
-
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
2466
|
-
return C.CString(op.Title)
|
|
2467
|
-
}
|
|
2483
|
+
//export whatsapp_Session_GetContacts
|
|
2484
|
+
func whatsapp_Session_GetContacts(_handle CGoHandle, refresh C.char) CGoHandle {
|
|
2485
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2486
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2487
|
+
if __err != nil {
|
|
2488
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2489
|
+
}
|
|
2490
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
2468
2491
|
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2492
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2493
|
+
if __err != nil {
|
|
2494
|
+
estr := C.CString(__err.Error())
|
|
2495
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2496
|
+
C.free(unsafe.Pointer(estr))
|
|
2497
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2498
|
+
}
|
|
2499
|
+
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
2473
2500
|
}
|
|
2474
2501
|
|
|
2475
|
-
//export
|
|
2476
|
-
func
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2502
|
+
//export whatsapp_Session_GetGroups
|
|
2503
|
+
func whatsapp_Session_GetGroups(_handle CGoHandle) CGoHandle {
|
|
2504
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2505
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2506
|
+
if __err != nil {
|
|
2507
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2508
|
+
}
|
|
2509
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
2480
2510
|
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2511
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2512
|
+
if __err != nil {
|
|
2513
|
+
estr := C.CString(__err.Error())
|
|
2514
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2515
|
+
C.free(unsafe.Pointer(estr))
|
|
2516
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2517
|
+
}
|
|
2518
|
+
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
2485
2519
|
}
|
|
2486
2520
|
|
|
2487
|
-
//
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2521
|
+
//export whatsapp_Session_CreateGroup
|
|
2522
|
+
func whatsapp_Session_CreateGroup(_handle CGoHandle, name *C.char, participants CGoHandle) CGoHandle {
|
|
2523
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2524
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2525
|
+
if __err != nil {
|
|
2526
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2527
|
+
}
|
|
2528
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
2493
2529
|
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2530
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2531
|
+
if __err != nil {
|
|
2532
|
+
estr := C.CString(__err.Error())
|
|
2533
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2534
|
+
C.free(unsafe.Pointer(estr))
|
|
2535
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2536
|
+
}
|
|
2537
|
+
return handleFromPtr_whatsapp_Group(&cret)
|
|
2498
2538
|
}
|
|
2499
2539
|
|
|
2500
|
-
//export
|
|
2501
|
-
func
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2540
|
+
//export whatsapp_Session_LeaveGroup
|
|
2541
|
+
func whatsapp_Session_LeaveGroup(_handle CGoHandle, resourceID *C.char) *C.char {
|
|
2542
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2543
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2544
|
+
if __err != nil {
|
|
2545
|
+
return errorGoToPy(nil)
|
|
2546
|
+
}
|
|
2547
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
2505
2548
|
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2549
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2550
|
+
if __err != nil {
|
|
2551
|
+
estr := C.CString(__err.Error())
|
|
2552
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2553
|
+
return estr
|
|
2554
|
+
}
|
|
2555
|
+
return C.CString("")
|
|
2510
2556
|
}
|
|
2511
2557
|
|
|
2512
|
-
//export
|
|
2513
|
-
func
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2558
|
+
//export whatsapp_Session_GetAvatar
|
|
2559
|
+
func whatsapp_Session_GetAvatar(_handle CGoHandle, resourceID *C.char, avatarID *C.char) CGoHandle {
|
|
2560
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2561
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2562
|
+
if __err != nil {
|
|
2563
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2564
|
+
}
|
|
2565
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
2517
2566
|
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2567
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2568
|
+
if __err != nil {
|
|
2569
|
+
estr := C.CString(__err.Error())
|
|
2570
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2571
|
+
C.free(unsafe.Pointer(estr))
|
|
2572
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2573
|
+
}
|
|
2574
|
+
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
2522
2575
|
}
|
|
2523
2576
|
|
|
2524
|
-
//export
|
|
2525
|
-
func
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2577
|
+
//export whatsapp_Session_SetAvatar
|
|
2578
|
+
func whatsapp_Session_SetAvatar(_handle CGoHandle, resourceID *C.char, avatar CGoHandle) *C.char {
|
|
2579
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2580
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2581
|
+
if __err != nil {
|
|
2582
|
+
return C.CString("")
|
|
2583
|
+
}
|
|
2584
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
2529
2585
|
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2586
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2587
|
+
if __err != nil {
|
|
2588
|
+
estr := C.CString(__err.Error())
|
|
2589
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2590
|
+
C.free(unsafe.Pointer(estr))
|
|
2591
|
+
return C.CString("")
|
|
2592
|
+
}
|
|
2593
|
+
return C.CString(cret)
|
|
2535
2594
|
}
|
|
2536
2595
|
|
|
2537
|
-
//export
|
|
2538
|
-
func
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2596
|
+
//export whatsapp_Session_SetGroupName
|
|
2597
|
+
func whatsapp_Session_SetGroupName(_handle CGoHandle, resourceID *C.char, name *C.char) *C.char {
|
|
2598
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2599
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2600
|
+
if __err != nil {
|
|
2601
|
+
return errorGoToPy(nil)
|
|
2602
|
+
}
|
|
2603
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
2542
2604
|
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2605
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2606
|
+
if __err != nil {
|
|
2607
|
+
estr := C.CString(__err.Error())
|
|
2608
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2609
|
+
return estr
|
|
2610
|
+
}
|
|
2611
|
+
return C.CString("")
|
|
2547
2612
|
}
|
|
2548
2613
|
|
|
2549
|
-
//export
|
|
2550
|
-
func
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2614
|
+
//export whatsapp_Session_SetGroupTopic
|
|
2615
|
+
func whatsapp_Session_SetGroupTopic(_handle CGoHandle, resourceID *C.char, topic *C.char) *C.char {
|
|
2616
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2617
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2618
|
+
if __err != nil {
|
|
2619
|
+
return errorGoToPy(nil)
|
|
2620
|
+
}
|
|
2621
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
2554
2622
|
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2623
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2624
|
+
if __err != nil {
|
|
2625
|
+
estr := C.CString(__err.Error())
|
|
2626
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2627
|
+
return estr
|
|
2628
|
+
}
|
|
2629
|
+
return C.CString("")
|
|
2559
2630
|
}
|
|
2560
2631
|
|
|
2561
|
-
//export
|
|
2562
|
-
func
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2632
|
+
//export whatsapp_Session_UpdateGroupParticipants
|
|
2633
|
+
func whatsapp_Session_UpdateGroupParticipants(_handle CGoHandle, resourceID *C.char, participants CGoHandle) CGoHandle {
|
|
2634
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2635
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2636
|
+
if __err != nil {
|
|
2637
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2638
|
+
}
|
|
2639
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
2566
2640
|
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2641
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2642
|
+
if __err != nil {
|
|
2643
|
+
estr := C.CString(__err.Error())
|
|
2644
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2645
|
+
C.free(unsafe.Pointer(estr))
|
|
2646
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2647
|
+
}
|
|
2648
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
2571
2649
|
}
|
|
2572
2650
|
|
|
2573
|
-
//
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2651
|
+
//export whatsapp_Session_FindContact
|
|
2652
|
+
func whatsapp_Session_FindContact(_handle CGoHandle, phone *C.char) CGoHandle {
|
|
2653
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2654
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2655
|
+
if __err != nil {
|
|
2656
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2657
|
+
}
|
|
2658
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
2579
2659
|
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2660
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2661
|
+
if __err != nil {
|
|
2662
|
+
estr := C.CString(__err.Error())
|
|
2663
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2664
|
+
C.free(unsafe.Pointer(estr))
|
|
2665
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2666
|
+
}
|
|
2667
|
+
return handleFromPtr_whatsapp_Contact(&cret)
|
|
2584
2668
|
}
|
|
2585
2669
|
|
|
2586
|
-
//export
|
|
2587
|
-
func
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2670
|
+
//export whatsapp_Session_RequestMessageHistory
|
|
2671
|
+
func whatsapp_Session_RequestMessageHistory(_handle CGoHandle, resourceID *C.char, oldestMessage CGoHandle) *C.char {
|
|
2672
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2673
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2674
|
+
if __err != nil {
|
|
2675
|
+
return errorGoToPy(nil)
|
|
2676
|
+
}
|
|
2677
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
2591
2678
|
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2679
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2680
|
+
if __err != nil {
|
|
2681
|
+
estr := C.CString(__err.Error())
|
|
2682
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2683
|
+
return estr
|
|
2684
|
+
}
|
|
2685
|
+
return C.CString("")
|
|
2596
2686
|
}
|
|
2597
2687
|
|
|
2598
|
-
//export
|
|
2599
|
-
func
|
|
2600
|
-
|
|
2601
|
-
|
|
2688
|
+
//export whatsapp_Session_SetEventHandler
|
|
2689
|
+
func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.char) {
|
|
2690
|
+
_fun_arg := h
|
|
2691
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2692
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2693
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2694
|
+
if __err != nil {
|
|
2695
|
+
return
|
|
2696
|
+
}
|
|
2697
|
+
if boolPyToGo(goRun) {
|
|
2698
|
+
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2699
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2700
|
+
return
|
|
2701
|
+
}
|
|
2702
|
+
_gstate := C.PyGILState_Ensure()
|
|
2703
|
+
_fcargs := C.PyTuple_New(2)
|
|
2704
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2705
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2706
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2707
|
+
C.gopy_decref(_fcargs)
|
|
2708
|
+
C.gopy_err_handle()
|
|
2709
|
+
C.PyGILState_Release(_gstate)
|
|
2710
|
+
})
|
|
2711
|
+
} else {
|
|
2712
|
+
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2713
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2714
|
+
return
|
|
2715
|
+
}
|
|
2716
|
+
_gstate := C.PyGILState_Ensure()
|
|
2717
|
+
_fcargs := C.PyTuple_New(2)
|
|
2718
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2719
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2720
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2721
|
+
C.gopy_decref(_fcargs)
|
|
2722
|
+
C.gopy_err_handle()
|
|
2723
|
+
C.PyGILState_Release(_gstate)
|
|
2724
|
+
})
|
|
2725
|
+
}
|
|
2602
2726
|
}
|
|
2603
2727
|
|
|
2604
|
-
// --- wrapping struct: whatsapp.
|
|
2728
|
+
// --- wrapping struct: whatsapp.Album ---
|
|
2605
2729
|
//
|
|
2606
|
-
//export
|
|
2607
|
-
func
|
|
2608
|
-
return CGoHandle(
|
|
2730
|
+
//export whatsapp_Album_CTor
|
|
2731
|
+
func whatsapp_Album_CTor() CGoHandle {
|
|
2732
|
+
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
2609
2733
|
}
|
|
2610
2734
|
|
|
2611
|
-
//export
|
|
2612
|
-
func
|
|
2613
|
-
op :=
|
|
2614
|
-
return
|
|
2735
|
+
//export whatsapp_Album_IsAlbum_Get
|
|
2736
|
+
func whatsapp_Album_IsAlbum_Get(handle CGoHandle) C.char {
|
|
2737
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2738
|
+
return boolGoToPy(op.IsAlbum)
|
|
2615
2739
|
}
|
|
2616
2740
|
|
|
2617
|
-
//export
|
|
2618
|
-
func
|
|
2619
|
-
op :=
|
|
2620
|
-
op.
|
|
2741
|
+
//export whatsapp_Album_IsAlbum_Set
|
|
2742
|
+
func whatsapp_Album_IsAlbum_Set(handle CGoHandle, val C.char) {
|
|
2743
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2744
|
+
op.IsAlbum = boolPyToGo(val)
|
|
2621
2745
|
}
|
|
2622
2746
|
|
|
2623
|
-
//export
|
|
2624
|
-
func
|
|
2625
|
-
op :=
|
|
2626
|
-
return C.
|
|
2747
|
+
//export whatsapp_Album_ImageCount_Get
|
|
2748
|
+
func whatsapp_Album_ImageCount_Get(handle CGoHandle) C.longlong {
|
|
2749
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2750
|
+
return C.longlong(op.ImageCount)
|
|
2627
2751
|
}
|
|
2628
2752
|
|
|
2629
|
-
//export
|
|
2630
|
-
func
|
|
2631
|
-
op :=
|
|
2632
|
-
op.
|
|
2753
|
+
//export whatsapp_Album_ImageCount_Set
|
|
2754
|
+
func whatsapp_Album_ImageCount_Set(handle CGoHandle, val C.longlong) {
|
|
2755
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2756
|
+
op.ImageCount = int(val)
|
|
2633
2757
|
}
|
|
2634
2758
|
|
|
2635
|
-
//export
|
|
2636
|
-
func
|
|
2637
|
-
op :=
|
|
2638
|
-
return
|
|
2759
|
+
//export whatsapp_Album_VideoCount_Get
|
|
2760
|
+
func whatsapp_Album_VideoCount_Get(handle CGoHandle) C.longlong {
|
|
2761
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2762
|
+
return C.longlong(op.VideoCount)
|
|
2639
2763
|
}
|
|
2640
2764
|
|
|
2641
|
-
//export
|
|
2642
|
-
func
|
|
2643
|
-
op :=
|
|
2644
|
-
op.
|
|
2765
|
+
//export whatsapp_Album_VideoCount_Set
|
|
2766
|
+
func whatsapp_Album_VideoCount_Set(handle CGoHandle, val C.longlong) {
|
|
2767
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2768
|
+
op.VideoCount = int(val)
|
|
2645
2769
|
}
|
|
2646
2770
|
|
|
2647
|
-
//
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2771
|
+
// --- wrapping struct: whatsapp.Gateway ---
|
|
2772
|
+
//
|
|
2773
|
+
//export whatsapp_Gateway_CTor
|
|
2774
|
+
func whatsapp_Gateway_CTor() CGoHandle {
|
|
2775
|
+
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
2651
2776
|
}
|
|
2652
2777
|
|
|
2653
|
-
//export
|
|
2654
|
-
func
|
|
2655
|
-
op :=
|
|
2656
|
-
op.
|
|
2778
|
+
//export whatsapp_Gateway_DBPath_Get
|
|
2779
|
+
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
2780
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2781
|
+
return C.CString(op.DBPath)
|
|
2657
2782
|
}
|
|
2658
2783
|
|
|
2659
|
-
//export
|
|
2660
|
-
func
|
|
2661
|
-
op :=
|
|
2662
|
-
|
|
2784
|
+
//export whatsapp_Gateway_DBPath_Set
|
|
2785
|
+
func whatsapp_Gateway_DBPath_Set(handle CGoHandle, val *C.char) {
|
|
2786
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2787
|
+
op.DBPath = C.GoString(val)
|
|
2663
2788
|
}
|
|
2664
2789
|
|
|
2665
|
-
//export
|
|
2666
|
-
func
|
|
2667
|
-
op :=
|
|
2668
|
-
op.
|
|
2790
|
+
//export whatsapp_Gateway_Name_Get
|
|
2791
|
+
func whatsapp_Gateway_Name_Get(handle CGoHandle) *C.char {
|
|
2792
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2793
|
+
return C.CString(op.Name)
|
|
2669
2794
|
}
|
|
2670
2795
|
|
|
2671
|
-
//export
|
|
2672
|
-
func
|
|
2673
|
-
op :=
|
|
2674
|
-
|
|
2796
|
+
//export whatsapp_Gateway_Name_Set
|
|
2797
|
+
func whatsapp_Gateway_Name_Set(handle CGoHandle, val *C.char) {
|
|
2798
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2799
|
+
op.Name = C.GoString(val)
|
|
2675
2800
|
}
|
|
2676
2801
|
|
|
2677
|
-
//export
|
|
2678
|
-
func
|
|
2679
|
-
op :=
|
|
2680
|
-
op.
|
|
2802
|
+
//export whatsapp_Gateway_LogLevel_Get
|
|
2803
|
+
func whatsapp_Gateway_LogLevel_Get(handle CGoHandle) *C.char {
|
|
2804
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2805
|
+
return C.CString(op.LogLevel)
|
|
2681
2806
|
}
|
|
2682
2807
|
|
|
2683
|
-
//export
|
|
2684
|
-
func
|
|
2685
|
-
op :=
|
|
2686
|
-
|
|
2808
|
+
//export whatsapp_Gateway_LogLevel_Set
|
|
2809
|
+
func whatsapp_Gateway_LogLevel_Set(handle CGoHandle, val *C.char) {
|
|
2810
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2811
|
+
op.LogLevel = C.GoString(val)
|
|
2687
2812
|
}
|
|
2688
2813
|
|
|
2689
|
-
//export
|
|
2690
|
-
func
|
|
2691
|
-
op :=
|
|
2692
|
-
op.
|
|
2814
|
+
//export whatsapp_Gateway_TempDir_Get
|
|
2815
|
+
func whatsapp_Gateway_TempDir_Get(handle CGoHandle) *C.char {
|
|
2816
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2817
|
+
return C.CString(op.TempDir)
|
|
2693
2818
|
}
|
|
2694
2819
|
|
|
2695
|
-
//export
|
|
2696
|
-
func
|
|
2697
|
-
op :=
|
|
2698
|
-
|
|
2820
|
+
//export whatsapp_Gateway_TempDir_Set
|
|
2821
|
+
func whatsapp_Gateway_TempDir_Set(handle CGoHandle, val *C.char) {
|
|
2822
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2823
|
+
op.TempDir = C.GoString(val)
|
|
2699
2824
|
}
|
|
2700
2825
|
|
|
2701
|
-
//export
|
|
2702
|
-
func
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2826
|
+
//export whatsapp_Gateway_Init
|
|
2827
|
+
func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
2828
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2829
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2830
|
+
if __err != nil {
|
|
2831
|
+
return errorGoToPy(nil)
|
|
2832
|
+
}
|
|
2833
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
2706
2834
|
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2835
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2836
|
+
if __err != nil {
|
|
2837
|
+
estr := C.CString(__err.Error())
|
|
2838
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2839
|
+
return estr
|
|
2840
|
+
}
|
|
2841
|
+
return C.CString("")
|
|
2711
2842
|
}
|
|
2712
2843
|
|
|
2713
|
-
//export
|
|
2714
|
-
func
|
|
2715
|
-
|
|
2716
|
-
|
|
2844
|
+
//export whatsapp_Gateway_NewSession
|
|
2845
|
+
func whatsapp_Gateway_NewSession(_handle CGoHandle, device CGoHandle) CGoHandle {
|
|
2846
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2847
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2848
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2849
|
+
if __err != nil {
|
|
2850
|
+
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
2851
|
+
}
|
|
2852
|
+
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
2853
|
+
|
|
2717
2854
|
}
|
|
2718
2855
|
|
|
2719
|
-
//export
|
|
2720
|
-
func
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2856
|
+
//export whatsapp_Gateway_CleanupSession
|
|
2857
|
+
func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.char {
|
|
2858
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2859
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2860
|
+
if __err != nil {
|
|
2861
|
+
return errorGoToPy(nil)
|
|
2862
|
+
}
|
|
2863
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
2724
2864
|
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2865
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2866
|
+
if __err != nil {
|
|
2867
|
+
estr := C.CString(__err.Error())
|
|
2868
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2869
|
+
return estr
|
|
2870
|
+
}
|
|
2871
|
+
return C.CString("")
|
|
2729
2872
|
}
|
|
2730
2873
|
|
|
2731
|
-
// --- wrapping struct: whatsapp.
|
|
2874
|
+
// --- wrapping struct: whatsapp.Preview ---
|
|
2732
2875
|
//
|
|
2733
|
-
//export
|
|
2734
|
-
func
|
|
2735
|
-
return CGoHandle(
|
|
2876
|
+
//export whatsapp_Preview_CTor
|
|
2877
|
+
func whatsapp_Preview_CTor() CGoHandle {
|
|
2878
|
+
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
2736
2879
|
}
|
|
2737
2880
|
|
|
2738
|
-
//export
|
|
2739
|
-
func
|
|
2740
|
-
op :=
|
|
2741
|
-
return C.
|
|
2881
|
+
//export whatsapp_Preview_Kind_Get
|
|
2882
|
+
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
2883
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2884
|
+
return C.longlong(int(op.Kind))
|
|
2742
2885
|
}
|
|
2743
2886
|
|
|
2744
|
-
//export
|
|
2745
|
-
func
|
|
2746
|
-
op :=
|
|
2747
|
-
op.
|
|
2887
|
+
//export whatsapp_Preview_Kind_Set
|
|
2888
|
+
func whatsapp_Preview_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2889
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2890
|
+
op.Kind = whatsapp.PreviewKind(int(val))
|
|
2748
2891
|
}
|
|
2749
2892
|
|
|
2750
|
-
//export
|
|
2751
|
-
func
|
|
2752
|
-
op :=
|
|
2753
|
-
return C.CString(op.
|
|
2893
|
+
//export whatsapp_Preview_URL_Get
|
|
2894
|
+
func whatsapp_Preview_URL_Get(handle CGoHandle) *C.char {
|
|
2895
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2896
|
+
return C.CString(op.URL)
|
|
2754
2897
|
}
|
|
2755
2898
|
|
|
2756
|
-
//export
|
|
2757
|
-
func
|
|
2758
|
-
op :=
|
|
2759
|
-
op.
|
|
2899
|
+
//export whatsapp_Preview_URL_Set
|
|
2900
|
+
func whatsapp_Preview_URL_Set(handle CGoHandle, val *C.char) {
|
|
2901
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2902
|
+
op.URL = C.GoString(val)
|
|
2760
2903
|
}
|
|
2761
2904
|
|
|
2762
|
-
//export
|
|
2763
|
-
func
|
|
2764
|
-
op :=
|
|
2765
|
-
return
|
|
2905
|
+
//export whatsapp_Preview_Title_Get
|
|
2906
|
+
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
2907
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2908
|
+
return C.CString(op.Title)
|
|
2766
2909
|
}
|
|
2767
2910
|
|
|
2768
|
-
//export
|
|
2769
|
-
func
|
|
2770
|
-
op :=
|
|
2771
|
-
op.
|
|
2911
|
+
//export whatsapp_Preview_Title_Set
|
|
2912
|
+
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
2913
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2914
|
+
op.Title = C.GoString(val)
|
|
2772
2915
|
}
|
|
2773
2916
|
|
|
2774
|
-
//export
|
|
2775
|
-
func
|
|
2776
|
-
op :=
|
|
2777
|
-
return C.CString(op.
|
|
2917
|
+
//export whatsapp_Preview_Description_Get
|
|
2918
|
+
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
2919
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2920
|
+
return C.CString(op.Description)
|
|
2778
2921
|
}
|
|
2779
2922
|
|
|
2780
|
-
//export
|
|
2781
|
-
func
|
|
2782
|
-
op :=
|
|
2783
|
-
op.
|
|
2923
|
+
//export whatsapp_Preview_Description_Set
|
|
2924
|
+
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
2925
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2926
|
+
op.Description = C.GoString(val)
|
|
2784
2927
|
}
|
|
2785
2928
|
|
|
2786
|
-
//export
|
|
2787
|
-
func
|
|
2788
|
-
op :=
|
|
2789
|
-
return
|
|
2929
|
+
//export whatsapp_Preview_Thumbnail_Get
|
|
2930
|
+
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
2931
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2932
|
+
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
2790
2933
|
}
|
|
2791
2934
|
|
|
2792
|
-
//export
|
|
2793
|
-
func
|
|
2794
|
-
op :=
|
|
2795
|
-
op.
|
|
2935
|
+
//export whatsapp_Preview_Thumbnail_Set
|
|
2936
|
+
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
2937
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2938
|
+
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
2796
2939
|
}
|
|
2797
2940
|
|
|
2798
|
-
// --- wrapping struct: whatsapp.
|
|
2941
|
+
// --- wrapping struct: whatsapp.ChatState ---
|
|
2799
2942
|
//
|
|
2800
|
-
//export
|
|
2801
|
-
func
|
|
2802
|
-
return CGoHandle(
|
|
2943
|
+
//export whatsapp_ChatState_CTor
|
|
2944
|
+
func whatsapp_ChatState_CTor() CGoHandle {
|
|
2945
|
+
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
2803
2946
|
}
|
|
2804
2947
|
|
|
2805
|
-
//export
|
|
2806
|
-
func
|
|
2807
|
-
op :=
|
|
2808
|
-
return C.
|
|
2948
|
+
//export whatsapp_ChatState_Kind_Get
|
|
2949
|
+
func whatsapp_ChatState_Kind_Get(handle CGoHandle) C.longlong {
|
|
2950
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2951
|
+
return C.longlong(int(op.Kind))
|
|
2809
2952
|
}
|
|
2810
2953
|
|
|
2811
|
-
//export
|
|
2812
|
-
func
|
|
2813
|
-
op :=
|
|
2814
|
-
op.
|
|
2954
|
+
//export whatsapp_ChatState_Kind_Set
|
|
2955
|
+
func whatsapp_ChatState_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2956
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2957
|
+
op.Kind = whatsapp.ChatStateKind(int(val))
|
|
2815
2958
|
}
|
|
2816
2959
|
|
|
2817
|
-
//export
|
|
2818
|
-
func
|
|
2819
|
-
op :=
|
|
2820
|
-
return C.
|
|
2960
|
+
//export whatsapp_ChatState_JID_Get
|
|
2961
|
+
func whatsapp_ChatState_JID_Get(handle CGoHandle) *C.char {
|
|
2962
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2963
|
+
return C.CString(op.JID)
|
|
2821
2964
|
}
|
|
2822
2965
|
|
|
2823
|
-
//export
|
|
2824
|
-
func
|
|
2825
|
-
op :=
|
|
2826
|
-
op.
|
|
2966
|
+
//export whatsapp_ChatState_JID_Set
|
|
2967
|
+
func whatsapp_ChatState_JID_Set(handle CGoHandle, val *C.char) {
|
|
2968
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2969
|
+
op.JID = C.GoString(val)
|
|
2827
2970
|
}
|
|
2828
2971
|
|
|
2829
|
-
//export
|
|
2830
|
-
func
|
|
2831
|
-
op :=
|
|
2832
|
-
return C.
|
|
2972
|
+
//export whatsapp_ChatState_GroupJID_Get
|
|
2973
|
+
func whatsapp_ChatState_GroupJID_Get(handle CGoHandle) *C.char {
|
|
2974
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2975
|
+
return C.CString(op.GroupJID)
|
|
2833
2976
|
}
|
|
2834
2977
|
|
|
2835
|
-
//export
|
|
2836
|
-
func
|
|
2837
|
-
op :=
|
|
2838
|
-
op.
|
|
2978
|
+
//export whatsapp_ChatState_GroupJID_Set
|
|
2979
|
+
func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
2980
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2981
|
+
op.GroupJID = C.GoString(val)
|
|
2839
2982
|
}
|
|
2840
2983
|
|
|
2841
|
-
// --- wrapping struct: whatsapp.
|
|
2984
|
+
// --- wrapping struct: whatsapp.Presence ---
|
|
2842
2985
|
//
|
|
2843
|
-
//export
|
|
2844
|
-
func
|
|
2845
|
-
return CGoHandle(
|
|
2846
|
-
}
|
|
2847
|
-
|
|
2848
|
-
//export whatsapp_Location_Latitude_Get
|
|
2849
|
-
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
2850
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2851
|
-
return C.double(op.Latitude)
|
|
2852
|
-
}
|
|
2853
|
-
|
|
2854
|
-
//export whatsapp_Location_Latitude_Set
|
|
2855
|
-
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
2856
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2857
|
-
op.Latitude = float64(val)
|
|
2858
|
-
}
|
|
2859
|
-
|
|
2860
|
-
//export whatsapp_Location_Longitude_Get
|
|
2861
|
-
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
2862
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2863
|
-
return C.double(op.Longitude)
|
|
2986
|
+
//export whatsapp_Presence_CTor
|
|
2987
|
+
func whatsapp_Presence_CTor() CGoHandle {
|
|
2988
|
+
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
2864
2989
|
}
|
|
2865
2990
|
|
|
2866
|
-
//export
|
|
2867
|
-
func
|
|
2868
|
-
op :=
|
|
2869
|
-
op.
|
|
2991
|
+
//export whatsapp_Presence_JID_Get
|
|
2992
|
+
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
2993
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2994
|
+
return C.CString(op.JID)
|
|
2870
2995
|
}
|
|
2871
2996
|
|
|
2872
|
-
//export
|
|
2873
|
-
func
|
|
2874
|
-
op :=
|
|
2875
|
-
|
|
2997
|
+
//export whatsapp_Presence_JID_Set
|
|
2998
|
+
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
2999
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3000
|
+
op.JID = C.GoString(val)
|
|
2876
3001
|
}
|
|
2877
3002
|
|
|
2878
|
-
//export
|
|
2879
|
-
func
|
|
2880
|
-
op :=
|
|
2881
|
-
|
|
3003
|
+
//export whatsapp_Presence_Kind_Get
|
|
3004
|
+
func whatsapp_Presence_Kind_Get(handle CGoHandle) C.longlong {
|
|
3005
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3006
|
+
return C.longlong(int(op.Kind))
|
|
2882
3007
|
}
|
|
2883
3008
|
|
|
2884
|
-
//export
|
|
2885
|
-
func
|
|
2886
|
-
op :=
|
|
2887
|
-
|
|
3009
|
+
//export whatsapp_Presence_Kind_Set
|
|
3010
|
+
func whatsapp_Presence_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3011
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3012
|
+
op.Kind = whatsapp.PresenceKind(int(val))
|
|
2888
3013
|
}
|
|
2889
3014
|
|
|
2890
|
-
//export
|
|
2891
|
-
func
|
|
2892
|
-
op :=
|
|
2893
|
-
op.
|
|
3015
|
+
//export whatsapp_Presence_LastSeen_Get
|
|
3016
|
+
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
3017
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3018
|
+
return C.longlong(op.LastSeen)
|
|
2894
3019
|
}
|
|
2895
3020
|
|
|
2896
|
-
//export
|
|
2897
|
-
func
|
|
2898
|
-
op :=
|
|
2899
|
-
|
|
3021
|
+
//export whatsapp_Presence_LastSeen_Set
|
|
3022
|
+
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
3023
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3024
|
+
op.LastSeen = int64(val)
|
|
2900
3025
|
}
|
|
2901
3026
|
|
|
2902
|
-
//
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
3027
|
+
// --- wrapping struct: whatsapp.Connect ---
|
|
3028
|
+
//
|
|
3029
|
+
//export whatsapp_Connect_CTor
|
|
3030
|
+
func whatsapp_Connect_CTor() CGoHandle {
|
|
3031
|
+
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
2906
3032
|
}
|
|
2907
3033
|
|
|
2908
|
-
//export
|
|
2909
|
-
func
|
|
2910
|
-
op :=
|
|
2911
|
-
return C.CString(op.
|
|
3034
|
+
//export whatsapp_Connect_JID_Get
|
|
3035
|
+
func whatsapp_Connect_JID_Get(handle CGoHandle) *C.char {
|
|
3036
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3037
|
+
return C.CString(op.JID)
|
|
2912
3038
|
}
|
|
2913
3039
|
|
|
2914
|
-
//export
|
|
2915
|
-
func
|
|
2916
|
-
op :=
|
|
2917
|
-
op.
|
|
3040
|
+
//export whatsapp_Connect_JID_Set
|
|
3041
|
+
func whatsapp_Connect_JID_Set(handle CGoHandle, val *C.char) {
|
|
3042
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3043
|
+
op.JID = C.GoString(val)
|
|
2918
3044
|
}
|
|
2919
3045
|
|
|
2920
|
-
//export
|
|
2921
|
-
func
|
|
2922
|
-
op :=
|
|
2923
|
-
return C.CString(op.
|
|
3046
|
+
//export whatsapp_Connect_Error_Get
|
|
3047
|
+
func whatsapp_Connect_Error_Get(handle CGoHandle) *C.char {
|
|
3048
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3049
|
+
return C.CString(op.Error)
|
|
2924
3050
|
}
|
|
2925
3051
|
|
|
2926
|
-
//export
|
|
2927
|
-
func
|
|
2928
|
-
op :=
|
|
2929
|
-
op.
|
|
3052
|
+
//export whatsapp_Connect_Error_Set
|
|
3053
|
+
func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
3054
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3055
|
+
op.Error = C.GoString(val)
|
|
2930
3056
|
}
|
|
2931
3057
|
|
|
2932
|
-
// --- wrapping struct: whatsapp.
|
|
3058
|
+
// --- wrapping struct: whatsapp.EventPayload ---
|
|
2933
3059
|
//
|
|
2934
|
-
//export
|
|
2935
|
-
func
|
|
2936
|
-
return CGoHandle(
|
|
3060
|
+
//export whatsapp_EventPayload_CTor
|
|
3061
|
+
func whatsapp_EventPayload_CTor() CGoHandle {
|
|
3062
|
+
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
2937
3063
|
}
|
|
2938
3064
|
|
|
2939
|
-
//export
|
|
2940
|
-
func
|
|
2941
|
-
op :=
|
|
2942
|
-
return C.CString(op.
|
|
3065
|
+
//export whatsapp_EventPayload_QRCode_Get
|
|
3066
|
+
func whatsapp_EventPayload_QRCode_Get(handle CGoHandle) *C.char {
|
|
3067
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3068
|
+
return C.CString(op.QRCode)
|
|
2943
3069
|
}
|
|
2944
3070
|
|
|
2945
|
-
//export
|
|
2946
|
-
func
|
|
2947
|
-
op :=
|
|
2948
|
-
op.
|
|
3071
|
+
//export whatsapp_EventPayload_QRCode_Set
|
|
3072
|
+
func whatsapp_EventPayload_QRCode_Set(handle CGoHandle, val *C.char) {
|
|
3073
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3074
|
+
op.QRCode = C.GoString(val)
|
|
2949
3075
|
}
|
|
2950
3076
|
|
|
2951
|
-
//
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
3077
|
+
//export whatsapp_EventPayload_PairDeviceID_Get
|
|
3078
|
+
func whatsapp_EventPayload_PairDeviceID_Get(handle CGoHandle) *C.char {
|
|
3079
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3080
|
+
return C.CString(op.PairDeviceID)
|
|
2956
3081
|
}
|
|
2957
3082
|
|
|
2958
|
-
//export
|
|
2959
|
-
func
|
|
2960
|
-
op :=
|
|
2961
|
-
|
|
3083
|
+
//export whatsapp_EventPayload_PairDeviceID_Set
|
|
3084
|
+
func whatsapp_EventPayload_PairDeviceID_Set(handle CGoHandle, val *C.char) {
|
|
3085
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3086
|
+
op.PairDeviceID = C.GoString(val)
|
|
2962
3087
|
}
|
|
2963
3088
|
|
|
2964
|
-
//export
|
|
2965
|
-
func
|
|
2966
|
-
op :=
|
|
2967
|
-
op.
|
|
3089
|
+
//export whatsapp_EventPayload_Connect_Get
|
|
3090
|
+
func whatsapp_EventPayload_Connect_Get(handle CGoHandle) CGoHandle {
|
|
3091
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3092
|
+
return handleFromPtr_whatsapp_Connect(&op.Connect)
|
|
2968
3093
|
}
|
|
2969
3094
|
|
|
2970
|
-
//export
|
|
2971
|
-
func
|
|
2972
|
-
op :=
|
|
2973
|
-
|
|
3095
|
+
//export whatsapp_EventPayload_Connect_Set
|
|
3096
|
+
func whatsapp_EventPayload_Connect_Set(handle CGoHandle, val CGoHandle) {
|
|
3097
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3098
|
+
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
2974
3099
|
}
|
|
2975
3100
|
|
|
2976
|
-
//export
|
|
2977
|
-
func
|
|
2978
|
-
op :=
|
|
2979
|
-
op.
|
|
3101
|
+
//export whatsapp_EventPayload_Contact_Get
|
|
3102
|
+
func whatsapp_EventPayload_Contact_Get(handle CGoHandle) CGoHandle {
|
|
3103
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3104
|
+
return handleFromPtr_whatsapp_Contact(&op.Contact)
|
|
2980
3105
|
}
|
|
2981
3106
|
|
|
2982
|
-
//export
|
|
2983
|
-
func
|
|
2984
|
-
op :=
|
|
2985
|
-
|
|
3107
|
+
//export whatsapp_EventPayload_Contact_Set
|
|
3108
|
+
func whatsapp_EventPayload_Contact_Set(handle CGoHandle, val CGoHandle) {
|
|
3109
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3110
|
+
op.Contact = *ptrFromHandle_whatsapp_Contact(val)
|
|
2986
3111
|
}
|
|
2987
3112
|
|
|
2988
|
-
//export
|
|
2989
|
-
func
|
|
2990
|
-
op :=
|
|
2991
|
-
op.
|
|
3113
|
+
//export whatsapp_EventPayload_Presence_Get
|
|
3114
|
+
func whatsapp_EventPayload_Presence_Get(handle CGoHandle) CGoHandle {
|
|
3115
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3116
|
+
return handleFromPtr_whatsapp_Presence(&op.Presence)
|
|
2992
3117
|
}
|
|
2993
3118
|
|
|
2994
|
-
//export
|
|
2995
|
-
func
|
|
2996
|
-
op :=
|
|
2997
|
-
|
|
3119
|
+
//export whatsapp_EventPayload_Presence_Set
|
|
3120
|
+
func whatsapp_EventPayload_Presence_Set(handle CGoHandle, val CGoHandle) {
|
|
3121
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3122
|
+
op.Presence = *ptrFromHandle_whatsapp_Presence(val)
|
|
2998
3123
|
}
|
|
2999
3124
|
|
|
3000
|
-
//export
|
|
3001
|
-
func
|
|
3002
|
-
op :=
|
|
3003
|
-
op.
|
|
3125
|
+
//export whatsapp_EventPayload_Message_Get
|
|
3126
|
+
func whatsapp_EventPayload_Message_Get(handle CGoHandle) CGoHandle {
|
|
3127
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3128
|
+
return handleFromPtr_whatsapp_Message(&op.Message)
|
|
3004
3129
|
}
|
|
3005
3130
|
|
|
3006
|
-
//export
|
|
3007
|
-
func
|
|
3008
|
-
op :=
|
|
3009
|
-
|
|
3131
|
+
//export whatsapp_EventPayload_Message_Set
|
|
3132
|
+
func whatsapp_EventPayload_Message_Set(handle CGoHandle, val CGoHandle) {
|
|
3133
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3134
|
+
op.Message = *ptrFromHandle_whatsapp_Message(val)
|
|
3010
3135
|
}
|
|
3011
3136
|
|
|
3012
|
-
//export
|
|
3013
|
-
func
|
|
3014
|
-
op :=
|
|
3015
|
-
op.
|
|
3137
|
+
//export whatsapp_EventPayload_ChatState_Get
|
|
3138
|
+
func whatsapp_EventPayload_ChatState_Get(handle CGoHandle) CGoHandle {
|
|
3139
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3140
|
+
return handleFromPtr_whatsapp_ChatState(&op.ChatState)
|
|
3016
3141
|
}
|
|
3017
3142
|
|
|
3018
|
-
//export
|
|
3019
|
-
func
|
|
3020
|
-
op :=
|
|
3021
|
-
|
|
3143
|
+
//export whatsapp_EventPayload_ChatState_Set
|
|
3144
|
+
func whatsapp_EventPayload_ChatState_Set(handle CGoHandle, val CGoHandle) {
|
|
3145
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3146
|
+
op.ChatState = *ptrFromHandle_whatsapp_ChatState(val)
|
|
3022
3147
|
}
|
|
3023
3148
|
|
|
3024
|
-
//export
|
|
3025
|
-
func
|
|
3026
|
-
op :=
|
|
3027
|
-
op.
|
|
3149
|
+
//export whatsapp_EventPayload_Receipt_Get
|
|
3150
|
+
func whatsapp_EventPayload_Receipt_Get(handle CGoHandle) CGoHandle {
|
|
3151
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3152
|
+
return handleFromPtr_whatsapp_Receipt(&op.Receipt)
|
|
3028
3153
|
}
|
|
3029
3154
|
|
|
3030
|
-
//
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
3155
|
+
//export whatsapp_EventPayload_Receipt_Set
|
|
3156
|
+
func whatsapp_EventPayload_Receipt_Set(handle CGoHandle, val CGoHandle) {
|
|
3157
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3158
|
+
op.Receipt = *ptrFromHandle_whatsapp_Receipt(val)
|
|
3035
3159
|
}
|
|
3036
3160
|
|
|
3037
|
-
//export
|
|
3038
|
-
func
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
if __err != nil {
|
|
3042
|
-
return errorGoToPy(nil)
|
|
3043
|
-
}
|
|
3044
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
3045
|
-
|
|
3046
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3047
|
-
if __err != nil {
|
|
3048
|
-
estr := C.CString(__err.Error())
|
|
3049
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3050
|
-
return estr
|
|
3051
|
-
}
|
|
3052
|
-
return C.CString("")
|
|
3161
|
+
//export whatsapp_EventPayload_Group_Get
|
|
3162
|
+
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
3163
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3164
|
+
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
3053
3165
|
}
|
|
3054
3166
|
|
|
3055
|
-
//export
|
|
3056
|
-
func
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
return errorGoToPy(nil)
|
|
3061
|
-
}
|
|
3062
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
3167
|
+
//export whatsapp_EventPayload_Group_Set
|
|
3168
|
+
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
3169
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3170
|
+
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
3171
|
+
}
|
|
3063
3172
|
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
return estr
|
|
3069
|
-
}
|
|
3070
|
-
return C.CString("")
|
|
3173
|
+
//export whatsapp_EventPayload_Call_Get
|
|
3174
|
+
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
3175
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3176
|
+
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
3071
3177
|
}
|
|
3072
3178
|
|
|
3073
|
-
//export
|
|
3074
|
-
func
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
return errorGoToPy(nil)
|
|
3079
|
-
}
|
|
3080
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
3179
|
+
//export whatsapp_EventPayload_Call_Set
|
|
3180
|
+
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
3181
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
3182
|
+
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
3183
|
+
}
|
|
3081
3184
|
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
}
|
|
3088
|
-
return C.CString("")
|
|
3185
|
+
// --- wrapping struct: whatsapp.Message ---
|
|
3186
|
+
//
|
|
3187
|
+
//export whatsapp_Message_CTor
|
|
3188
|
+
func whatsapp_Message_CTor() CGoHandle {
|
|
3189
|
+
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
3089
3190
|
}
|
|
3090
3191
|
|
|
3091
|
-
//export
|
|
3092
|
-
func
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
return C.CString("")
|
|
3097
|
-
}
|
|
3098
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
3192
|
+
//export whatsapp_Message_Kind_Get
|
|
3193
|
+
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
3194
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3195
|
+
return C.longlong(int(op.Kind))
|
|
3196
|
+
}
|
|
3099
3197
|
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
C.free(unsafe.Pointer(estr))
|
|
3105
|
-
return C.CString("")
|
|
3106
|
-
}
|
|
3107
|
-
return C.CString(cret)
|
|
3198
|
+
//export whatsapp_Message_Kind_Set
|
|
3199
|
+
func whatsapp_Message_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3200
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3201
|
+
op.Kind = whatsapp.MessageKind(int(val))
|
|
3108
3202
|
}
|
|
3109
3203
|
|
|
3110
|
-
//export
|
|
3111
|
-
func
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
return errorGoToPy(nil)
|
|
3116
|
-
}
|
|
3117
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
3204
|
+
//export whatsapp_Message_ID_Get
|
|
3205
|
+
func whatsapp_Message_ID_Get(handle CGoHandle) *C.char {
|
|
3206
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3207
|
+
return C.CString(op.ID)
|
|
3208
|
+
}
|
|
3118
3209
|
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
return estr
|
|
3124
|
-
}
|
|
3125
|
-
return C.CString("")
|
|
3210
|
+
//export whatsapp_Message_ID_Set
|
|
3211
|
+
func whatsapp_Message_ID_Set(handle CGoHandle, val *C.char) {
|
|
3212
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3213
|
+
op.ID = C.GoString(val)
|
|
3126
3214
|
}
|
|
3127
3215
|
|
|
3128
|
-
//export
|
|
3129
|
-
func
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
if __err != nil {
|
|
3134
|
-
return C.CString("")
|
|
3135
|
-
}
|
|
3136
|
-
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
3216
|
+
//export whatsapp_Message_JID_Get
|
|
3217
|
+
func whatsapp_Message_JID_Get(handle CGoHandle) *C.char {
|
|
3218
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3219
|
+
return C.CString(op.JID)
|
|
3220
|
+
}
|
|
3137
3221
|
|
|
3222
|
+
//export whatsapp_Message_JID_Set
|
|
3223
|
+
func whatsapp_Message_JID_Set(handle CGoHandle, val *C.char) {
|
|
3224
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3225
|
+
op.JID = C.GoString(val)
|
|
3138
3226
|
}
|
|
3139
3227
|
|
|
3140
|
-
//export
|
|
3141
|
-
func
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
return errorGoToPy(nil)
|
|
3146
|
-
}
|
|
3147
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
3228
|
+
//export whatsapp_Message_GroupJID_Get
|
|
3229
|
+
func whatsapp_Message_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3230
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3231
|
+
return C.CString(op.GroupJID)
|
|
3232
|
+
}
|
|
3148
3233
|
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
return estr
|
|
3154
|
-
}
|
|
3155
|
-
return C.CString("")
|
|
3234
|
+
//export whatsapp_Message_GroupJID_Set
|
|
3235
|
+
func whatsapp_Message_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3236
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3237
|
+
op.GroupJID = C.GoString(val)
|
|
3156
3238
|
}
|
|
3157
3239
|
|
|
3158
|
-
//export
|
|
3159
|
-
func
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
return errorGoToPy(nil)
|
|
3164
|
-
}
|
|
3165
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
3240
|
+
//export whatsapp_Message_OriginJID_Get
|
|
3241
|
+
func whatsapp_Message_OriginJID_Get(handle CGoHandle) *C.char {
|
|
3242
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3243
|
+
return C.CString(op.OriginJID)
|
|
3244
|
+
}
|
|
3166
3245
|
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
return estr
|
|
3172
|
-
}
|
|
3173
|
-
return C.CString("")
|
|
3246
|
+
//export whatsapp_Message_OriginJID_Set
|
|
3247
|
+
func whatsapp_Message_OriginJID_Set(handle CGoHandle, val *C.char) {
|
|
3248
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3249
|
+
op.OriginJID = C.GoString(val)
|
|
3174
3250
|
}
|
|
3175
3251
|
|
|
3176
|
-
//export
|
|
3177
|
-
func
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
return errorGoToPy(nil)
|
|
3182
|
-
}
|
|
3183
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
3252
|
+
//export whatsapp_Message_Body_Get
|
|
3253
|
+
func whatsapp_Message_Body_Get(handle CGoHandle) *C.char {
|
|
3254
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3255
|
+
return C.CString(op.Body)
|
|
3256
|
+
}
|
|
3184
3257
|
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
return estr
|
|
3190
|
-
}
|
|
3191
|
-
return C.CString("")
|
|
3258
|
+
//export whatsapp_Message_Body_Set
|
|
3259
|
+
func whatsapp_Message_Body_Set(handle CGoHandle, val *C.char) {
|
|
3260
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3261
|
+
op.Body = C.GoString(val)
|
|
3192
3262
|
}
|
|
3193
3263
|
|
|
3194
|
-
//export
|
|
3195
|
-
func
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3200
|
-
}
|
|
3201
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
3264
|
+
//export whatsapp_Message_Timestamp_Get
|
|
3265
|
+
func whatsapp_Message_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3266
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3267
|
+
return C.longlong(op.Timestamp)
|
|
3268
|
+
}
|
|
3202
3269
|
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
C.free(unsafe.Pointer(estr))
|
|
3208
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3209
|
-
}
|
|
3210
|
-
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
3270
|
+
//export whatsapp_Message_Timestamp_Set
|
|
3271
|
+
func whatsapp_Message_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3272
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3273
|
+
op.Timestamp = int64(val)
|
|
3211
3274
|
}
|
|
3212
3275
|
|
|
3213
|
-
//export
|
|
3214
|
-
func
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3219
|
-
}
|
|
3220
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
3276
|
+
//export whatsapp_Message_IsCarbon_Get
|
|
3277
|
+
func whatsapp_Message_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3278
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3279
|
+
return boolGoToPy(op.IsCarbon)
|
|
3280
|
+
}
|
|
3221
3281
|
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
C.free(unsafe.Pointer(estr))
|
|
3227
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3228
|
-
}
|
|
3229
|
-
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
3282
|
+
//export whatsapp_Message_IsCarbon_Set
|
|
3283
|
+
func whatsapp_Message_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3284
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3285
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3230
3286
|
}
|
|
3231
3287
|
|
|
3232
|
-
//export
|
|
3233
|
-
func
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
3238
|
-
}
|
|
3239
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
3288
|
+
//export whatsapp_Message_IsForwarded_Get
|
|
3289
|
+
func whatsapp_Message_IsForwarded_Get(handle CGoHandle) C.char {
|
|
3290
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3291
|
+
return boolGoToPy(op.IsForwarded)
|
|
3292
|
+
}
|
|
3240
3293
|
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
C.free(unsafe.Pointer(estr))
|
|
3246
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
3247
|
-
}
|
|
3248
|
-
return handleFromPtr_whatsapp_Group(&cret)
|
|
3294
|
+
//export whatsapp_Message_IsForwarded_Set
|
|
3295
|
+
func whatsapp_Message_IsForwarded_Set(handle CGoHandle, val C.char) {
|
|
3296
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3297
|
+
op.IsForwarded = boolPyToGo(val)
|
|
3249
3298
|
}
|
|
3250
3299
|
|
|
3251
|
-
//export
|
|
3252
|
-
func
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
return errorGoToPy(nil)
|
|
3257
|
-
}
|
|
3258
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
3300
|
+
//export whatsapp_Message_ReplyID_Get
|
|
3301
|
+
func whatsapp_Message_ReplyID_Get(handle CGoHandle) *C.char {
|
|
3302
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3303
|
+
return C.CString(op.ReplyID)
|
|
3304
|
+
}
|
|
3259
3305
|
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
return estr
|
|
3265
|
-
}
|
|
3266
|
-
return C.CString("")
|
|
3306
|
+
//export whatsapp_Message_ReplyID_Set
|
|
3307
|
+
func whatsapp_Message_ReplyID_Set(handle CGoHandle, val *C.char) {
|
|
3308
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3309
|
+
op.ReplyID = C.GoString(val)
|
|
3267
3310
|
}
|
|
3268
3311
|
|
|
3269
|
-
//export
|
|
3270
|
-
func
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3275
|
-
}
|
|
3276
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
3312
|
+
//export whatsapp_Message_ReplyBody_Get
|
|
3313
|
+
func whatsapp_Message_ReplyBody_Get(handle CGoHandle) *C.char {
|
|
3314
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3315
|
+
return C.CString(op.ReplyBody)
|
|
3316
|
+
}
|
|
3277
3317
|
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3318
|
+
//export whatsapp_Message_ReplyBody_Set
|
|
3319
|
+
func whatsapp_Message_ReplyBody_Set(handle CGoHandle, val *C.char) {
|
|
3320
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3321
|
+
op.ReplyBody = C.GoString(val)
|
|
3322
|
+
}
|
|
3323
|
+
|
|
3324
|
+
//export whatsapp_Message_Attachments_Get
|
|
3325
|
+
func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
3326
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3327
|
+
return handleFromPtr_Slice_whatsapp_Attachment(&op.Attachments)
|
|
3286
3328
|
}
|
|
3287
3329
|
|
|
3288
|
-
//export
|
|
3289
|
-
func
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
if __err != nil {
|
|
3293
|
-
return C.CString("")
|
|
3294
|
-
}
|
|
3295
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
3296
|
-
|
|
3297
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3298
|
-
if __err != nil {
|
|
3299
|
-
estr := C.CString(__err.Error())
|
|
3300
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3301
|
-
C.free(unsafe.Pointer(estr))
|
|
3302
|
-
return C.CString("")
|
|
3303
|
-
}
|
|
3304
|
-
return C.CString(cret)
|
|
3330
|
+
//export whatsapp_Message_Attachments_Set
|
|
3331
|
+
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
3332
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3333
|
+
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
3305
3334
|
}
|
|
3306
3335
|
|
|
3307
|
-
//export
|
|
3308
|
-
func
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
return errorGoToPy(nil)
|
|
3313
|
-
}
|
|
3314
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
3336
|
+
//export whatsapp_Message_Preview_Get
|
|
3337
|
+
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
3338
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3339
|
+
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
3340
|
+
}
|
|
3315
3341
|
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
return estr
|
|
3321
|
-
}
|
|
3322
|
-
return C.CString("")
|
|
3342
|
+
//export whatsapp_Message_Preview_Set
|
|
3343
|
+
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
3344
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3345
|
+
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
3323
3346
|
}
|
|
3324
3347
|
|
|
3325
|
-
//export
|
|
3326
|
-
func
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
return errorGoToPy(nil)
|
|
3331
|
-
}
|
|
3332
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
3348
|
+
//export whatsapp_Message_Location_Get
|
|
3349
|
+
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
3350
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3351
|
+
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
3352
|
+
}
|
|
3333
3353
|
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
return estr
|
|
3339
|
-
}
|
|
3340
|
-
return C.CString("")
|
|
3354
|
+
//export whatsapp_Message_Location_Set
|
|
3355
|
+
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
3356
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3357
|
+
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
3341
3358
|
}
|
|
3342
3359
|
|
|
3343
|
-
//export
|
|
3344
|
-
func
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3349
|
-
}
|
|
3350
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
3360
|
+
//export whatsapp_Message_Poll_Get
|
|
3361
|
+
func whatsapp_Message_Poll_Get(handle CGoHandle) CGoHandle {
|
|
3362
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3363
|
+
return handleFromPtr_whatsapp_Poll(&op.Poll)
|
|
3364
|
+
}
|
|
3351
3365
|
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
C.free(unsafe.Pointer(estr))
|
|
3357
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3358
|
-
}
|
|
3359
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
3366
|
+
//export whatsapp_Message_Poll_Set
|
|
3367
|
+
func whatsapp_Message_Poll_Set(handle CGoHandle, val CGoHandle) {
|
|
3368
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3369
|
+
op.Poll = *ptrFromHandle_whatsapp_Poll(val)
|
|
3360
3370
|
}
|
|
3361
3371
|
|
|
3362
|
-
//export
|
|
3363
|
-
func
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
3368
|
-
}
|
|
3369
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
3372
|
+
//export whatsapp_Message_Album_Get
|
|
3373
|
+
func whatsapp_Message_Album_Get(handle CGoHandle) CGoHandle {
|
|
3374
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3375
|
+
return handleFromPtr_whatsapp_Album(&op.Album)
|
|
3376
|
+
}
|
|
3370
3377
|
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
C.free(unsafe.Pointer(estr))
|
|
3376
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
3377
|
-
}
|
|
3378
|
-
return handleFromPtr_whatsapp_Contact(&cret)
|
|
3378
|
+
//export whatsapp_Message_Album_Set
|
|
3379
|
+
func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
3380
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3381
|
+
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
3379
3382
|
}
|
|
3380
3383
|
|
|
3381
|
-
//export
|
|
3382
|
-
func
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
return errorGoToPy(nil)
|
|
3387
|
-
}
|
|
3388
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
3384
|
+
//export whatsapp_Message_MentionJIDs_Get
|
|
3385
|
+
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
3386
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3387
|
+
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
3388
|
+
}
|
|
3389
3389
|
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
return estr
|
|
3395
|
-
}
|
|
3396
|
-
return C.CString("")
|
|
3390
|
+
//export whatsapp_Message_MentionJIDs_Set
|
|
3391
|
+
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3392
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3393
|
+
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
3397
3394
|
}
|
|
3398
3395
|
|
|
3399
|
-
//export
|
|
3400
|
-
func
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3404
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3405
|
-
if __err != nil {
|
|
3406
|
-
return
|
|
3407
|
-
}
|
|
3408
|
-
if boolPyToGo(goRun) {
|
|
3409
|
-
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3410
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3411
|
-
return
|
|
3412
|
-
}
|
|
3413
|
-
_gstate := C.PyGILState_Ensure()
|
|
3414
|
-
_fcargs := C.PyTuple_New(2)
|
|
3415
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3416
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3417
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3418
|
-
C.gopy_decref(_fcargs)
|
|
3419
|
-
C.gopy_err_handle()
|
|
3420
|
-
C.PyGILState_Release(_gstate)
|
|
3421
|
-
})
|
|
3422
|
-
} else {
|
|
3423
|
-
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3424
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3425
|
-
return
|
|
3426
|
-
}
|
|
3427
|
-
_gstate := C.PyGILState_Ensure()
|
|
3428
|
-
_fcargs := C.PyTuple_New(2)
|
|
3429
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3430
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3431
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3432
|
-
C.gopy_decref(_fcargs)
|
|
3433
|
-
C.gopy_err_handle()
|
|
3434
|
-
C.PyGILState_Release(_gstate)
|
|
3435
|
-
})
|
|
3436
|
-
}
|
|
3396
|
+
//export whatsapp_Message_Receipts_Get
|
|
3397
|
+
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
3398
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3399
|
+
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
3437
3400
|
}
|
|
3438
3401
|
|
|
3439
|
-
//
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
3402
|
+
//export whatsapp_Message_Receipts_Set
|
|
3403
|
+
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
3404
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3405
|
+
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
3444
3406
|
}
|
|
3445
3407
|
|
|
3446
|
-
//export
|
|
3447
|
-
func
|
|
3448
|
-
op :=
|
|
3449
|
-
return
|
|
3408
|
+
//export whatsapp_Message_Reactions_Get
|
|
3409
|
+
func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
3410
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3411
|
+
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
3450
3412
|
}
|
|
3451
3413
|
|
|
3452
|
-
//export
|
|
3453
|
-
func
|
|
3454
|
-
op :=
|
|
3455
|
-
op.
|
|
3414
|
+
//export whatsapp_Message_Reactions_Set
|
|
3415
|
+
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
3416
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3417
|
+
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3456
3418
|
}
|
|
3457
3419
|
|
|
3458
|
-
//
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3420
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
3421
|
+
//
|
|
3422
|
+
//export whatsapp_Receipt_CTor
|
|
3423
|
+
func whatsapp_Receipt_CTor() CGoHandle {
|
|
3424
|
+
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
3462
3425
|
}
|
|
3463
3426
|
|
|
3464
|
-
//export
|
|
3465
|
-
func
|
|
3466
|
-
op :=
|
|
3467
|
-
|
|
3427
|
+
//export whatsapp_Receipt_Kind_Get
|
|
3428
|
+
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3429
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3430
|
+
return C.longlong(int(op.Kind))
|
|
3468
3431
|
}
|
|
3469
3432
|
|
|
3470
|
-
//export
|
|
3471
|
-
func
|
|
3472
|
-
op :=
|
|
3473
|
-
|
|
3433
|
+
//export whatsapp_Receipt_Kind_Set
|
|
3434
|
+
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3435
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3436
|
+
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
3474
3437
|
}
|
|
3475
3438
|
|
|
3476
|
-
//export
|
|
3477
|
-
func
|
|
3478
|
-
op :=
|
|
3479
|
-
op.
|
|
3439
|
+
//export whatsapp_Receipt_MessageIDs_Get
|
|
3440
|
+
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
3441
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3442
|
+
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
3480
3443
|
}
|
|
3481
3444
|
|
|
3482
|
-
//
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
3445
|
+
//export whatsapp_Receipt_MessageIDs_Set
|
|
3446
|
+
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3447
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3448
|
+
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
3487
3449
|
}
|
|
3488
3450
|
|
|
3489
|
-
//export
|
|
3490
|
-
func
|
|
3491
|
-
op :=
|
|
3451
|
+
//export whatsapp_Receipt_JID_Get
|
|
3452
|
+
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
3453
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3492
3454
|
return C.CString(op.JID)
|
|
3493
3455
|
}
|
|
3494
3456
|
|
|
3495
|
-
//export
|
|
3496
|
-
func
|
|
3497
|
-
op :=
|
|
3457
|
+
//export whatsapp_Receipt_JID_Set
|
|
3458
|
+
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
3459
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3498
3460
|
op.JID = C.GoString(val)
|
|
3499
3461
|
}
|
|
3500
3462
|
|
|
3501
|
-
//export
|
|
3502
|
-
func
|
|
3503
|
-
op :=
|
|
3504
|
-
return C.CString(op.
|
|
3463
|
+
//export whatsapp_Receipt_GroupJID_Get
|
|
3464
|
+
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3465
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3466
|
+
return C.CString(op.GroupJID)
|
|
3505
3467
|
}
|
|
3506
3468
|
|
|
3507
|
-
//export
|
|
3508
|
-
func
|
|
3509
|
-
op :=
|
|
3510
|
-
op.
|
|
3469
|
+
//export whatsapp_Receipt_GroupJID_Set
|
|
3470
|
+
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3471
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3472
|
+
op.GroupJID = C.GoString(val)
|
|
3511
3473
|
}
|
|
3512
3474
|
|
|
3513
|
-
//
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
3475
|
+
//export whatsapp_Receipt_Timestamp_Get
|
|
3476
|
+
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3477
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3478
|
+
return C.longlong(op.Timestamp)
|
|
3518
3479
|
}
|
|
3519
3480
|
|
|
3520
|
-
//export
|
|
3521
|
-
func
|
|
3522
|
-
op :=
|
|
3523
|
-
|
|
3481
|
+
//export whatsapp_Receipt_Timestamp_Set
|
|
3482
|
+
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3483
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3484
|
+
op.Timestamp = int64(val)
|
|
3524
3485
|
}
|
|
3525
3486
|
|
|
3526
|
-
//export
|
|
3527
|
-
func
|
|
3528
|
-
op :=
|
|
3529
|
-
op.
|
|
3487
|
+
//export whatsapp_Receipt_IsCarbon_Get
|
|
3488
|
+
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3489
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3490
|
+
return boolGoToPy(op.IsCarbon)
|
|
3530
3491
|
}
|
|
3531
3492
|
|
|
3532
|
-
//export
|
|
3533
|
-
func
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
3537
|
-
if __err != nil {
|
|
3538
|
-
return handleFromPtr_types_JID(nil)
|
|
3539
|
-
}
|
|
3540
|
-
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3541
|
-
|
|
3542
|
-
return handleFromPtr_types_JID(&cret)
|
|
3493
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
3494
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3495
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3496
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3543
3497
|
}
|
|
3544
3498
|
|
|
3545
3499
|
// --- wrapping struct: whatsapp.Attachment ---
|
|
@@ -3616,37 +3570,6 @@ func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
|
3616
3570
|
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3617
3571
|
}
|
|
3618
3572
|
|
|
3619
|
-
// --- wrapping struct: whatsapp.Avatar ---
|
|
3620
|
-
//
|
|
3621
|
-
//export whatsapp_Avatar_CTor
|
|
3622
|
-
func whatsapp_Avatar_CTor() CGoHandle {
|
|
3623
|
-
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
3624
|
-
}
|
|
3625
|
-
|
|
3626
|
-
//export whatsapp_Avatar_ID_Get
|
|
3627
|
-
func whatsapp_Avatar_ID_Get(handle CGoHandle) *C.char {
|
|
3628
|
-
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3629
|
-
return C.CString(op.ID)
|
|
3630
|
-
}
|
|
3631
|
-
|
|
3632
|
-
//export whatsapp_Avatar_ID_Set
|
|
3633
|
-
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
3634
|
-
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3635
|
-
op.ID = C.GoString(val)
|
|
3636
|
-
}
|
|
3637
|
-
|
|
3638
|
-
//export whatsapp_Avatar_URL_Get
|
|
3639
|
-
func whatsapp_Avatar_URL_Get(handle CGoHandle) *C.char {
|
|
3640
|
-
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3641
|
-
return C.CString(op.URL)
|
|
3642
|
-
}
|
|
3643
|
-
|
|
3644
|
-
//export whatsapp_Avatar_URL_Set
|
|
3645
|
-
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
3646
|
-
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3647
|
-
op.URL = C.GoString(val)
|
|
3648
|
-
}
|
|
3649
|
-
|
|
3650
3573
|
// --- wrapping struct: whatsapp.Call ---
|
|
3651
3574
|
//
|
|
3652
3575
|
//export whatsapp_Call_CTor
|
|
@@ -3733,71 +3656,148 @@ func whatsapp_GroupSubject_SetByJID_Set(handle CGoHandle, val *C.char) {
|
|
|
3733
3656
|
op.SetByJID = C.GoString(val)
|
|
3734
3657
|
}
|
|
3735
3658
|
|
|
3736
|
-
// --- wrapping struct: whatsapp.
|
|
3659
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
3737
3660
|
//
|
|
3738
|
-
//export
|
|
3739
|
-
func
|
|
3740
|
-
return CGoHandle(
|
|
3661
|
+
//export whatsapp_LinkedDevice_CTor
|
|
3662
|
+
func whatsapp_LinkedDevice_CTor() CGoHandle {
|
|
3663
|
+
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
3741
3664
|
}
|
|
3742
3665
|
|
|
3743
|
-
//export
|
|
3744
|
-
func
|
|
3745
|
-
op :=
|
|
3746
|
-
return C.
|
|
3666
|
+
//export whatsapp_LinkedDevice_ID_Get
|
|
3667
|
+
func whatsapp_LinkedDevice_ID_Get(handle CGoHandle) *C.char {
|
|
3668
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3669
|
+
return C.CString(op.ID)
|
|
3747
3670
|
}
|
|
3748
3671
|
|
|
3749
|
-
//export
|
|
3750
|
-
func
|
|
3751
|
-
op :=
|
|
3752
|
-
op.
|
|
3672
|
+
//export whatsapp_LinkedDevice_ID_Set
|
|
3673
|
+
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
3674
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3675
|
+
op.ID = C.GoString(val)
|
|
3753
3676
|
}
|
|
3754
3677
|
|
|
3755
|
-
//export
|
|
3756
|
-
func
|
|
3757
|
-
|
|
3758
|
-
|
|
3678
|
+
//export whatsapp_LinkedDevice_JID
|
|
3679
|
+
func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
3680
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3681
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3682
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
3683
|
+
if __err != nil {
|
|
3684
|
+
return handleFromPtr_types_JID(nil)
|
|
3685
|
+
}
|
|
3686
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3687
|
+
|
|
3688
|
+
return handleFromPtr_types_JID(&cret)
|
|
3759
3689
|
}
|
|
3760
3690
|
|
|
3761
|
-
//
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3691
|
+
// --- wrapping struct: whatsapp.Poll ---
|
|
3692
|
+
//
|
|
3693
|
+
//export whatsapp_Poll_CTor
|
|
3694
|
+
func whatsapp_Poll_CTor() CGoHandle {
|
|
3695
|
+
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
3765
3696
|
}
|
|
3766
3697
|
|
|
3767
|
-
//export
|
|
3768
|
-
func
|
|
3769
|
-
op :=
|
|
3698
|
+
//export whatsapp_Poll_Title_Get
|
|
3699
|
+
func whatsapp_Poll_Title_Get(handle CGoHandle) *C.char {
|
|
3700
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3770
3701
|
return C.CString(op.Title)
|
|
3771
3702
|
}
|
|
3772
3703
|
|
|
3773
|
-
//export
|
|
3774
|
-
func
|
|
3775
|
-
op :=
|
|
3704
|
+
//export whatsapp_Poll_Title_Set
|
|
3705
|
+
func whatsapp_Poll_Title_Set(handle CGoHandle, val *C.char) {
|
|
3706
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3776
3707
|
op.Title = C.GoString(val)
|
|
3777
3708
|
}
|
|
3778
3709
|
|
|
3779
|
-
//export
|
|
3780
|
-
func
|
|
3781
|
-
op :=
|
|
3782
|
-
return
|
|
3710
|
+
//export whatsapp_Poll_Options_Get
|
|
3711
|
+
func whatsapp_Poll_Options_Get(handle CGoHandle) CGoHandle {
|
|
3712
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3713
|
+
return handleFromPtr_Slice_whatsapp_PollOption(&op.Options)
|
|
3783
3714
|
}
|
|
3784
3715
|
|
|
3785
|
-
//export
|
|
3786
|
-
func
|
|
3787
|
-
op :=
|
|
3788
|
-
op.
|
|
3716
|
+
//export whatsapp_Poll_Options_Set
|
|
3717
|
+
func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
3718
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3719
|
+
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
3789
3720
|
}
|
|
3790
3721
|
|
|
3791
|
-
//
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3722
|
+
// --- wrapping struct: whatsapp.PollOption ---
|
|
3723
|
+
//
|
|
3724
|
+
//export whatsapp_PollOption_CTor
|
|
3725
|
+
func whatsapp_PollOption_CTor() CGoHandle {
|
|
3726
|
+
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
3795
3727
|
}
|
|
3796
3728
|
|
|
3797
|
-
//export
|
|
3798
|
-
func
|
|
3799
|
-
op :=
|
|
3800
|
-
op.
|
|
3729
|
+
//export whatsapp_PollOption_Title_Get
|
|
3730
|
+
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
3731
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3732
|
+
return C.CString(op.Title)
|
|
3733
|
+
}
|
|
3734
|
+
|
|
3735
|
+
//export whatsapp_PollOption_Title_Set
|
|
3736
|
+
func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
3737
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3738
|
+
op.Title = C.GoString(val)
|
|
3739
|
+
}
|
|
3740
|
+
|
|
3741
|
+
// --- wrapping struct: whatsapp.Avatar ---
|
|
3742
|
+
//
|
|
3743
|
+
//export whatsapp_Avatar_CTor
|
|
3744
|
+
func whatsapp_Avatar_CTor() CGoHandle {
|
|
3745
|
+
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
3746
|
+
}
|
|
3747
|
+
|
|
3748
|
+
//export whatsapp_Avatar_ID_Get
|
|
3749
|
+
func whatsapp_Avatar_ID_Get(handle CGoHandle) *C.char {
|
|
3750
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3751
|
+
return C.CString(op.ID)
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3754
|
+
//export whatsapp_Avatar_ID_Set
|
|
3755
|
+
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
3756
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3757
|
+
op.ID = C.GoString(val)
|
|
3758
|
+
}
|
|
3759
|
+
|
|
3760
|
+
//export whatsapp_Avatar_URL_Get
|
|
3761
|
+
func whatsapp_Avatar_URL_Get(handle CGoHandle) *C.char {
|
|
3762
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3763
|
+
return C.CString(op.URL)
|
|
3764
|
+
}
|
|
3765
|
+
|
|
3766
|
+
//export whatsapp_Avatar_URL_Set
|
|
3767
|
+
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
3768
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3769
|
+
op.URL = C.GoString(val)
|
|
3770
|
+
}
|
|
3771
|
+
|
|
3772
|
+
// --- wrapping struct: whatsapp.Contact ---
|
|
3773
|
+
//
|
|
3774
|
+
//export whatsapp_Contact_CTor
|
|
3775
|
+
func whatsapp_Contact_CTor() CGoHandle {
|
|
3776
|
+
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
3777
|
+
}
|
|
3778
|
+
|
|
3779
|
+
//export whatsapp_Contact_JID_Get
|
|
3780
|
+
func whatsapp_Contact_JID_Get(handle CGoHandle) *C.char {
|
|
3781
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3782
|
+
return C.CString(op.JID)
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
//export whatsapp_Contact_JID_Set
|
|
3786
|
+
func whatsapp_Contact_JID_Set(handle CGoHandle, val *C.char) {
|
|
3787
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3788
|
+
op.JID = C.GoString(val)
|
|
3789
|
+
}
|
|
3790
|
+
|
|
3791
|
+
//export whatsapp_Contact_Name_Get
|
|
3792
|
+
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
3793
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3794
|
+
return C.CString(op.Name)
|
|
3795
|
+
}
|
|
3796
|
+
|
|
3797
|
+
//export whatsapp_Contact_Name_Set
|
|
3798
|
+
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
3799
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3800
|
+
op.Name = C.GoString(val)
|
|
3801
3801
|
}
|
|
3802
3802
|
|
|
3803
3803
|
// ---- Slices ---
|