slidge-whatsapp 0.2.5__cp312-cp312-manylinux_2_36_aarch64.whl → 0.2.7__cp312-cp312-manylinux_2_36_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slidge-whatsapp might be problematic. Click here for more details.
- slidge_whatsapp/config.py +3 -0
- slidge_whatsapp/event.go +31 -26
- slidge_whatsapp/gateway.go +13 -9
- slidge_whatsapp/gateway.py +2 -2
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.h +183 -183
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +148 -148
- slidge_whatsapp/generated/whatsapp.c +1490 -1490
- slidge_whatsapp/generated/whatsapp.go +1217 -1217
- slidge_whatsapp/generated/whatsapp.py +1210 -1210
- slidge_whatsapp/generated/whatsapp_go.h +183 -183
- slidge_whatsapp/go.mod +15 -12
- slidge_whatsapp/go.sum +35 -29
- slidge_whatsapp/media/media.go +21 -11
- slidge_whatsapp/session.go +73 -66
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn.go +4 -4
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_darwin.go +0 -5
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_libinit.go +3 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols.go +40 -20
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/CHANGELOG.md +14 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/ffi.go +2 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/fun.go +10 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_unix.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_windows.go +1 -1
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +2 -7
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/callback.go +2 -1
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +8510 -5090
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +344 -150
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3.go +57 -23
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.c +4 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.go +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/.gitignore +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/LICENSE +202 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/README.md +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid.go +35 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_gccgo.go +26 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.3.c +23 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.3.go +22 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.4.go +35 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.4.s +18 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.5.go +28 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.5.s +44 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_slow.go +24 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_gccgo_go1.8.go +17 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.23.go +38 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.5.go +57 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.6.go +43 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.9.go +37 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/CONTRIBUTING.md +43 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/README.md +31 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/console.go +20 -5
- slidge_whatsapp/vendor/github.com/rs/zerolog/log/log.go +131 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/log.go +1 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/sampler.go +4 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/writer.go +9 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupCipher.go +17 -6
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupSessionBuilder.go +17 -7
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/store/SenderKeyStore.go +4 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/chain/ChainKey.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/identity/IdentityKey.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/logger/DefaultLogger.go +2 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/FingerprintProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/LocalStorageProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/WhisperTextProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/session/Session.go +41 -17
- slidge_whatsapp/vendor/go.mau.fi/libsignal/session/SessionCipher.go +64 -30
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/IdentityKeyStore.go +5 -3
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/MessageKeyStore.go +6 -4
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/PreKeyStore.go +6 -4
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SessionStore.go +8 -6
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SignedPreKeyStore.go +7 -5
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/connlog.go +257 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/database.go +309 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/iter.go +233 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/json.go +47 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/log.go +129 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/massinsert.go +164 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/queryhelper.go +137 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/reflectscan.go +30 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/transaction.go +180 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/upgrades.go +250 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/upgradetable.go +331 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exerrors/dualerror.go +33 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exerrors/must.go +23 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/cors.go +32 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/handleerrors.go +64 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/json.go +36 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/middleware.go +30 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/networkerror.go +37 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exstrings/stringutil.go +76 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +88 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/returnonce.go +25 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/ringbuffer.go +139 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/syncmap.go +94 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/syncset.go +136 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/callermarshal.go +28 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/defaults.go +32 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/generics.go +45 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/writer.go +81 -0
- slidge_whatsapp/vendor/go.mau.fi/util/ptr/ptr.go +43 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +27 -26
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/encode.go +4 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/keys.go +5 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +27 -25
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +40 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/encoder.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/broadcast.go +5 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +119 -37
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +29 -11
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download-to-file.go +63 -30
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +74 -34
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +61 -31
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +188 -152
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaconn.go +5 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaretry.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +444 -135
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +118 -31
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +78 -42
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +7 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair.go +42 -18
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/prekeys.go +9 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/privacysettings.go +10 -11
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/extra.go +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.pb.go +983 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.proto +85 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.pb.go +197 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.proto +13 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.pb.go +279 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.proto +21 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.pb.go +137 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.proto +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.pb.go +313 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.proto +27 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.pb.go +1299 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.proto +112 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.pb.go +514 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.proto +47 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.pb.go +123 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.proto +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.pb.go +720 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.proto +59 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.pb.go +365 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.proto +33 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.pb.go +1238 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.proto +105 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.go +39 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.go +354 -175
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.proto +5 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.go +170 -15
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.proto +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.go +29 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.go +13 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.go +344 -31
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.proto +26 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/{WAWebProtobufsCompanionReg.pb.go → WACompanionReg.pb.go} +184 -89
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/{WAWebProtobufsCompanionReg.proto → WACompanionReg.proto} +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.go +173 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.go +78 -16
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.proto +5 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +7428 -2151
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +373 -44
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +456 -135
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +14 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.pb.go +198 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.proto +14 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.go +162 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.go +32 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.go +192 -52
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.proto +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.go +60 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/extra.go +7 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.go +39 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.go +61 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.pb.go +800 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.proto +72 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +1344 -438
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +52 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.go +27 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.go +59 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +382 -78
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +563 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +25 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingfields.json +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingtoken.go +176 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +39 -21
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +261 -75
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +28 -16
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +3 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +85 -43
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/signal.go +75 -88
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/container.go +86 -65
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/lidmap.go +186 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +291 -167
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/00-latest-schema.sql +155 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/03-message-secrets.sql +11 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/04-privacy-tokens.sql +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/05-account-jid-format.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/06-facebook-uuid.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/07-account-lid.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/08-lid-mapping.sql +5 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/09-decryption-buffer.sql +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/10-chat-db-lid-migration-ts.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/upgrades.go +22 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +107 -56
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/botmap.go +210 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +13 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/group.go +15 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +7 -8
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/message.go +18 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/update.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/upload.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +47 -29
- slidge_whatsapp/vendor/golang.org/x/exp/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/exp/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/exp/constraints/constraints.go +54 -0
- slidge_whatsapp/vendor/golang.org/x/net/http/httpguts/guts.go +50 -0
- slidge_whatsapp/vendor/golang.org/x/net/http/httpguts/httplex.go +347 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/.gitignore +2 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/ascii.go +53 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/ciphers.go +641 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/client_conn_pool.go +311 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/config.go +122 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_go124.go +61 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_pre_go124.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/databuffer.go +149 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/errors.go +145 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/flow.go +120 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/frame.go +1702 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/gotrack.go +170 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/encode.go +245 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/hpack.go +523 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/huffman.go +226 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/static_table.go +188 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/tables.go +403 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/http2.go +432 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/pipe.go +184 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/server.go +3350 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/timer.go +20 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/transport.go +3287 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/unencrypted.go +32 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/write.go +381 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched.go +251 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_priority.go +451 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_random.go +77 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_roundrobin.go +119 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/go118.go +13 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/idna10.0.0.go +769 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/idna9.0.0.go +717 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/pre_go118.go +11 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/punycode.go +217 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables10.0.0.go +4559 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables11.0.0.go +4653 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables12.0.0.go +4733 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables13.0.0.go +4959 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables15.0.0.go +5144 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables9.0.0.go +4486 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie.go +51 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie12.0.0.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie13.0.0.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trieval.go +119 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/ascii.go +53 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/headermap.go +115 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/request.go +467 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin.go +148 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux.go +16 -26
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +84 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +84 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/security_windows.go +44 -5
- slidge_whatsapp/vendor/golang.org/x/sys/windows/syscall_windows.go +4 -2
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +239 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +9 -0
- slidge_whatsapp/vendor/golang.org/x/text/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/text/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule.go +336 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go +11 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go +14 -0
- slidge_whatsapp/vendor/golang.org/x/text/transform/transform.go +709 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/bidi.go +359 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/bracket.go +335 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/core.go +1071 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/prop.go +206 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables10.0.0.go +1815 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go +1887 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go +1923 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go +1955 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables15.0.0.go +2042 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables9.0.0.go +1781 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/trieval.go +48 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/composition.go +512 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/forminfo.go +279 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/input.go +109 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/iter.go +458 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/normalize.go +610 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/readwriter.go +125 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables10.0.0.go +7657 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go +7693 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go +7710 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go +7760 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables15.0.0.go +7907 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables9.0.0.go +7637 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/transform.go +88 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/trie.go +54 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb +0 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +3 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +16 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/{strings_unsafe_go121.go → strings_unsafe.go} +0 -2
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +1 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/merge.go +6 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +2 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/{value_unsafe_go121.go → value_unsafe.go} +0 -2
- slidge_whatsapp/vendor/modules.txt +52 -13
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.7.dist-info}/METADATA +1 -1
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.7.dist-info}/RECORD +330 -184
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.7.dist-info}/WHEEL +1 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/CNAME +0 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/_config.yml +0 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.raw +0 -23
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.raw +0 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrade.go +0 -296
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go +0 -94
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go +0 -98
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.7.dist-info}/LICENSE +0 -0
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.7.dist-info}/entry_points.txt +0 -0
|
@@ -8,8 +8,8 @@ package main
|
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
|
|
11
|
-
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.12.
|
|
12
|
-
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.12.
|
|
11
|
+
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.12.11-linux-aarch64-gnu/include/python3.12" -Wno-error -Wno-implicit-function-declaration -Wno-int-conversion
|
|
12
|
+
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.12.11-linux-aarch64-gnu/lib" "-lpython3.12" -lpthread -ldl -lutil -lm
|
|
13
13
|
|
|
14
14
|
// #define Py_LIMITED_API // need full API for PyRun*
|
|
15
15
|
#include <Python.h>
|
|
@@ -2115,1053 +2115,1363 @@ func handleFromPtr_whatsapp_Session(p interface{}) CGoHandle {
|
|
|
2115
2115
|
|
|
2116
2116
|
// ---- Structs ---
|
|
2117
2117
|
|
|
2118
|
-
// --- wrapping struct: whatsapp.
|
|
2118
|
+
// --- wrapping struct: whatsapp.Gateway ---
|
|
2119
2119
|
//
|
|
2120
|
-
//export
|
|
2121
|
-
func
|
|
2122
|
-
return CGoHandle(
|
|
2120
|
+
//export whatsapp_Gateway_CTor
|
|
2121
|
+
func whatsapp_Gateway_CTor() CGoHandle {
|
|
2122
|
+
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
2123
2123
|
}
|
|
2124
2124
|
|
|
2125
|
-
//export
|
|
2126
|
-
func
|
|
2127
|
-
op :=
|
|
2128
|
-
return C.CString(op.
|
|
2125
|
+
//export whatsapp_Gateway_DBPath_Get
|
|
2126
|
+
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
2127
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2128
|
+
return C.CString(op.DBPath)
|
|
2129
2129
|
}
|
|
2130
2130
|
|
|
2131
|
-
//export
|
|
2132
|
-
func
|
|
2133
|
-
op :=
|
|
2134
|
-
op.
|
|
2131
|
+
//export whatsapp_Gateway_DBPath_Set
|
|
2132
|
+
func whatsapp_Gateway_DBPath_Set(handle CGoHandle, val *C.char) {
|
|
2133
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2134
|
+
op.DBPath = C.GoString(val)
|
|
2135
2135
|
}
|
|
2136
2136
|
|
|
2137
|
-
//export
|
|
2138
|
-
func
|
|
2139
|
-
op :=
|
|
2140
|
-
return C.
|
|
2137
|
+
//export whatsapp_Gateway_Name_Get
|
|
2138
|
+
func whatsapp_Gateway_Name_Get(handle CGoHandle) *C.char {
|
|
2139
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2140
|
+
return C.CString(op.Name)
|
|
2141
2141
|
}
|
|
2142
2142
|
|
|
2143
|
-
//export
|
|
2144
|
-
func
|
|
2145
|
-
op :=
|
|
2146
|
-
op.
|
|
2143
|
+
//export whatsapp_Gateway_Name_Set
|
|
2144
|
+
func whatsapp_Gateway_Name_Set(handle CGoHandle, val *C.char) {
|
|
2145
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2146
|
+
op.Name = C.GoString(val)
|
|
2147
2147
|
}
|
|
2148
2148
|
|
|
2149
|
-
//export
|
|
2150
|
-
func
|
|
2151
|
-
op :=
|
|
2152
|
-
return C.CString(op.
|
|
2149
|
+
//export whatsapp_Gateway_LogLevel_Get
|
|
2150
|
+
func whatsapp_Gateway_LogLevel_Get(handle CGoHandle) *C.char {
|
|
2151
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2152
|
+
return C.CString(op.LogLevel)
|
|
2153
2153
|
}
|
|
2154
2154
|
|
|
2155
|
-
//export
|
|
2156
|
-
func
|
|
2157
|
-
op :=
|
|
2158
|
-
op.
|
|
2155
|
+
//export whatsapp_Gateway_LogLevel_Set
|
|
2156
|
+
func whatsapp_Gateway_LogLevel_Set(handle CGoHandle, val *C.char) {
|
|
2157
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2158
|
+
op.LogLevel = C.GoString(val)
|
|
2159
2159
|
}
|
|
2160
2160
|
|
|
2161
|
-
//
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
2161
|
+
//export whatsapp_Gateway_TempDir_Get
|
|
2162
|
+
func whatsapp_Gateway_TempDir_Get(handle CGoHandle) *C.char {
|
|
2163
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2164
|
+
return C.CString(op.TempDir)
|
|
2166
2165
|
}
|
|
2167
2166
|
|
|
2168
|
-
//export
|
|
2169
|
-
func
|
|
2170
|
-
op :=
|
|
2171
|
-
|
|
2167
|
+
//export whatsapp_Gateway_TempDir_Set
|
|
2168
|
+
func whatsapp_Gateway_TempDir_Set(handle CGoHandle, val *C.char) {
|
|
2169
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2170
|
+
op.TempDir = C.GoString(val)
|
|
2172
2171
|
}
|
|
2173
2172
|
|
|
2174
|
-
//export
|
|
2175
|
-
func
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2173
|
+
//export whatsapp_Gateway_Init
|
|
2174
|
+
func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
2175
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2176
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2177
|
+
if __err != nil {
|
|
2178
|
+
return errorGoToPy(nil)
|
|
2179
|
+
}
|
|
2180
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
2179
2181
|
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
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("")
|
|
2184
2189
|
}
|
|
2185
2190
|
|
|
2186
|
-
//export
|
|
2187
|
-
func
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
+
//export whatsapp_Gateway_NewSession
|
|
2192
|
+
func whatsapp_Gateway_NewSession(_handle CGoHandle, device CGoHandle) CGoHandle {
|
|
2193
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2194
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
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)))
|
|
2191
2200
|
|
|
2192
|
-
//export whatsapp_Message_JID_Get
|
|
2193
|
-
func whatsapp_Message_JID_Get(handle CGoHandle) *C.char {
|
|
2194
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2195
|
-
return C.CString(op.JID)
|
|
2196
2201
|
}
|
|
2197
2202
|
|
|
2198
|
-
//export
|
|
2199
|
-
func
|
|
2200
|
-
|
|
2201
|
-
|
|
2203
|
+
//export whatsapp_Gateway_CleanupSession
|
|
2204
|
+
func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.char {
|
|
2205
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2206
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2207
|
+
if __err != nil {
|
|
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("")
|
|
2202
2219
|
}
|
|
2203
2220
|
|
|
2204
|
-
//
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2221
|
+
// --- wrapping struct: whatsapp.Location ---
|
|
2222
|
+
//
|
|
2223
|
+
//export whatsapp_Location_CTor
|
|
2224
|
+
func whatsapp_Location_CTor() CGoHandle {
|
|
2225
|
+
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
2208
2226
|
}
|
|
2209
2227
|
|
|
2210
|
-
//export
|
|
2211
|
-
func
|
|
2212
|
-
op :=
|
|
2213
|
-
|
|
2228
|
+
//export whatsapp_Location_Latitude_Get
|
|
2229
|
+
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
2230
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2231
|
+
return C.double(op.Latitude)
|
|
2214
2232
|
}
|
|
2215
2233
|
|
|
2216
|
-
//export
|
|
2217
|
-
func
|
|
2218
|
-
op :=
|
|
2219
|
-
|
|
2234
|
+
//export whatsapp_Location_Latitude_Set
|
|
2235
|
+
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
2236
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2237
|
+
op.Latitude = float64(val)
|
|
2220
2238
|
}
|
|
2221
2239
|
|
|
2222
|
-
//export
|
|
2223
|
-
func
|
|
2224
|
-
op :=
|
|
2225
|
-
|
|
2240
|
+
//export whatsapp_Location_Longitude_Get
|
|
2241
|
+
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
2242
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2243
|
+
return C.double(op.Longitude)
|
|
2226
2244
|
}
|
|
2227
2245
|
|
|
2228
|
-
//export
|
|
2229
|
-
func
|
|
2230
|
-
op :=
|
|
2231
|
-
|
|
2246
|
+
//export whatsapp_Location_Longitude_Set
|
|
2247
|
+
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
2248
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2249
|
+
op.Longitude = float64(val)
|
|
2232
2250
|
}
|
|
2233
2251
|
|
|
2234
|
-
//export
|
|
2235
|
-
func
|
|
2236
|
-
op :=
|
|
2237
|
-
|
|
2252
|
+
//export whatsapp_Location_Accuracy_Get
|
|
2253
|
+
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
2254
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2255
|
+
return C.longlong(op.Accuracy)
|
|
2238
2256
|
}
|
|
2239
2257
|
|
|
2240
|
-
//export
|
|
2241
|
-
func
|
|
2242
|
-
op :=
|
|
2243
|
-
|
|
2258
|
+
//export whatsapp_Location_Accuracy_Set
|
|
2259
|
+
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
2260
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2261
|
+
op.Accuracy = int(val)
|
|
2244
2262
|
}
|
|
2245
2263
|
|
|
2246
|
-
//export
|
|
2247
|
-
func
|
|
2248
|
-
op :=
|
|
2249
|
-
op.
|
|
2264
|
+
//export whatsapp_Location_IsLive_Get
|
|
2265
|
+
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
2266
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2267
|
+
return boolGoToPy(op.IsLive)
|
|
2250
2268
|
}
|
|
2251
2269
|
|
|
2252
|
-
//export
|
|
2253
|
-
func
|
|
2254
|
-
op :=
|
|
2255
|
-
|
|
2270
|
+
//export whatsapp_Location_IsLive_Set
|
|
2271
|
+
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
2272
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2273
|
+
op.IsLive = boolPyToGo(val)
|
|
2256
2274
|
}
|
|
2257
2275
|
|
|
2258
|
-
//export
|
|
2259
|
-
func
|
|
2260
|
-
op :=
|
|
2261
|
-
op.
|
|
2276
|
+
//export whatsapp_Location_Name_Get
|
|
2277
|
+
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
2278
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2279
|
+
return C.CString(op.Name)
|
|
2262
2280
|
}
|
|
2263
2281
|
|
|
2264
|
-
//export
|
|
2265
|
-
func
|
|
2266
|
-
op :=
|
|
2267
|
-
|
|
2282
|
+
//export whatsapp_Location_Name_Set
|
|
2283
|
+
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
2284
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2285
|
+
op.Name = C.GoString(val)
|
|
2268
2286
|
}
|
|
2269
2287
|
|
|
2270
|
-
//export
|
|
2271
|
-
func
|
|
2272
|
-
op :=
|
|
2273
|
-
op.
|
|
2288
|
+
//export whatsapp_Location_Address_Get
|
|
2289
|
+
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
2290
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2291
|
+
return C.CString(op.Address)
|
|
2274
2292
|
}
|
|
2275
2293
|
|
|
2276
|
-
//export
|
|
2277
|
-
func
|
|
2278
|
-
op :=
|
|
2279
|
-
|
|
2294
|
+
//export whatsapp_Location_Address_Set
|
|
2295
|
+
func whatsapp_Location_Address_Set(handle CGoHandle, val *C.char) {
|
|
2296
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2297
|
+
op.Address = C.GoString(val)
|
|
2280
2298
|
}
|
|
2281
2299
|
|
|
2282
|
-
//export
|
|
2283
|
-
func
|
|
2284
|
-
op :=
|
|
2285
|
-
|
|
2300
|
+
//export whatsapp_Location_URL_Get
|
|
2301
|
+
func whatsapp_Location_URL_Get(handle CGoHandle) *C.char {
|
|
2302
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2303
|
+
return C.CString(op.URL)
|
|
2286
2304
|
}
|
|
2287
2305
|
|
|
2288
|
-
//export
|
|
2289
|
-
func
|
|
2290
|
-
op :=
|
|
2291
|
-
|
|
2306
|
+
//export whatsapp_Location_URL_Set
|
|
2307
|
+
func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
2308
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2309
|
+
op.URL = C.GoString(val)
|
|
2292
2310
|
}
|
|
2293
2311
|
|
|
2294
|
-
//
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
}
|
|
2299
|
-
|
|
2300
|
-
//export whatsapp_Message_Attachments_Get
|
|
2301
|
-
func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
2302
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2303
|
-
return handleFromPtr_Slice_whatsapp_Attachment(&op.Attachments)
|
|
2312
|
+
// --- wrapping struct: whatsapp.PollOption ---
|
|
2313
|
+
//
|
|
2314
|
+
//export whatsapp_PollOption_CTor
|
|
2315
|
+
func whatsapp_PollOption_CTor() CGoHandle {
|
|
2316
|
+
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
2304
2317
|
}
|
|
2305
2318
|
|
|
2306
|
-
//export
|
|
2307
|
-
func
|
|
2308
|
-
op :=
|
|
2309
|
-
op.
|
|
2319
|
+
//export whatsapp_PollOption_Title_Get
|
|
2320
|
+
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
2321
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
2322
|
+
return C.CString(op.Title)
|
|
2310
2323
|
}
|
|
2311
2324
|
|
|
2312
|
-
//export
|
|
2313
|
-
func
|
|
2314
|
-
op :=
|
|
2315
|
-
|
|
2325
|
+
//export whatsapp_PollOption_Title_Set
|
|
2326
|
+
func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
2327
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
2328
|
+
op.Title = C.GoString(val)
|
|
2316
2329
|
}
|
|
2317
2330
|
|
|
2318
|
-
//
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2331
|
+
// --- wrapping struct: whatsapp.Session ---
|
|
2332
|
+
//
|
|
2333
|
+
//export whatsapp_Session_CTor
|
|
2334
|
+
func whatsapp_Session_CTor() CGoHandle {
|
|
2335
|
+
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
2322
2336
|
}
|
|
2323
2337
|
|
|
2324
|
-
//export
|
|
2325
|
-
func
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2338
|
+
//export whatsapp_Session_Login
|
|
2339
|
+
func whatsapp_Session_Login(_handle CGoHandle) *C.char {
|
|
2340
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2341
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2342
|
+
if __err != nil {
|
|
2343
|
+
return errorGoToPy(nil)
|
|
2344
|
+
}
|
|
2345
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
2329
2346
|
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2347
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2348
|
+
if __err != nil {
|
|
2349
|
+
estr := C.CString(__err.Error())
|
|
2350
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2351
|
+
return estr
|
|
2352
|
+
}
|
|
2353
|
+
return C.CString("")
|
|
2334
2354
|
}
|
|
2335
2355
|
|
|
2336
|
-
//export
|
|
2337
|
-
func
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2356
|
+
//export whatsapp_Session_Logout
|
|
2357
|
+
func whatsapp_Session_Logout(_handle CGoHandle) *C.char {
|
|
2358
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2359
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2360
|
+
if __err != nil {
|
|
2361
|
+
return errorGoToPy(nil)
|
|
2362
|
+
}
|
|
2363
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
2341
2364
|
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2365
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2366
|
+
if __err != nil {
|
|
2367
|
+
estr := C.CString(__err.Error())
|
|
2368
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2369
|
+
return estr
|
|
2370
|
+
}
|
|
2371
|
+
return C.CString("")
|
|
2346
2372
|
}
|
|
2347
2373
|
|
|
2348
|
-
//export
|
|
2349
|
-
func
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2374
|
+
//export whatsapp_Session_Disconnect
|
|
2375
|
+
func whatsapp_Session_Disconnect(_handle CGoHandle) *C.char {
|
|
2376
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2377
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2378
|
+
if __err != nil {
|
|
2379
|
+
return errorGoToPy(nil)
|
|
2380
|
+
}
|
|
2381
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
2353
2382
|
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2383
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2384
|
+
if __err != nil {
|
|
2385
|
+
estr := C.CString(__err.Error())
|
|
2386
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2387
|
+
return estr
|
|
2388
|
+
}
|
|
2389
|
+
return C.CString("")
|
|
2358
2390
|
}
|
|
2359
2391
|
|
|
2360
|
-
//export
|
|
2361
|
-
func
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2392
|
+
//export whatsapp_Session_PairPhone
|
|
2393
|
+
func whatsapp_Session_PairPhone(_handle CGoHandle, phone *C.char) *C.char {
|
|
2394
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2395
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2396
|
+
if __err != nil {
|
|
2397
|
+
return C.CString("")
|
|
2398
|
+
}
|
|
2399
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
2365
2400
|
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2401
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2402
|
+
if __err != nil {
|
|
2403
|
+
estr := C.CString(__err.Error())
|
|
2404
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2405
|
+
C.free(unsafe.Pointer(estr))
|
|
2406
|
+
return C.CString("")
|
|
2407
|
+
}
|
|
2408
|
+
return C.CString(cret)
|
|
2370
2409
|
}
|
|
2371
2410
|
|
|
2372
|
-
//export
|
|
2373
|
-
func
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2411
|
+
//export whatsapp_Session_SendMessage
|
|
2412
|
+
func whatsapp_Session_SendMessage(_handle CGoHandle, message CGoHandle) *C.char {
|
|
2413
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2414
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2415
|
+
if __err != nil {
|
|
2416
|
+
return errorGoToPy(nil)
|
|
2417
|
+
}
|
|
2418
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
2377
2419
|
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2420
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2421
|
+
if __err != nil {
|
|
2422
|
+
estr := C.CString(__err.Error())
|
|
2423
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2424
|
+
return estr
|
|
2425
|
+
}
|
|
2426
|
+
return C.CString("")
|
|
2382
2427
|
}
|
|
2383
2428
|
|
|
2384
|
-
//export
|
|
2385
|
-
func
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2429
|
+
//export whatsapp_Session_GenerateMessageID
|
|
2430
|
+
func whatsapp_Session_GenerateMessageID(_handle CGoHandle) *C.char {
|
|
2431
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2432
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2433
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2434
|
+
if __err != nil {
|
|
2435
|
+
return C.CString("")
|
|
2436
|
+
}
|
|
2437
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
2389
2438
|
|
|
2390
|
-
//export whatsapp_Message_Reactions_Set
|
|
2391
|
-
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
2392
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2393
|
-
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
2394
2439
|
}
|
|
2395
2440
|
|
|
2396
|
-
//
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2441
|
+
//export whatsapp_Session_SendChatState
|
|
2442
|
+
func whatsapp_Session_SendChatState(_handle CGoHandle, state CGoHandle) *C.char {
|
|
2443
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2444
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2445
|
+
if __err != nil {
|
|
2446
|
+
return errorGoToPy(nil)
|
|
2447
|
+
}
|
|
2448
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
2402
2449
|
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2450
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2451
|
+
if __err != nil {
|
|
2452
|
+
estr := C.CString(__err.Error())
|
|
2453
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2454
|
+
return estr
|
|
2455
|
+
}
|
|
2456
|
+
return C.CString("")
|
|
2407
2457
|
}
|
|
2408
2458
|
|
|
2409
|
-
//export
|
|
2410
|
-
func
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2459
|
+
//export whatsapp_Session_SendReceipt
|
|
2460
|
+
func whatsapp_Session_SendReceipt(_handle CGoHandle, receipt CGoHandle) *C.char {
|
|
2461
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2462
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2463
|
+
if __err != nil {
|
|
2464
|
+
return errorGoToPy(nil)
|
|
2465
|
+
}
|
|
2466
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
2414
2467
|
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2468
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2469
|
+
if __err != nil {
|
|
2470
|
+
estr := C.CString(__err.Error())
|
|
2471
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2472
|
+
return estr
|
|
2473
|
+
}
|
|
2474
|
+
return C.CString("")
|
|
2419
2475
|
}
|
|
2420
2476
|
|
|
2421
|
-
//export
|
|
2422
|
-
func
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2477
|
+
//export whatsapp_Session_SendPresence
|
|
2478
|
+
func whatsapp_Session_SendPresence(_handle CGoHandle, presence C.longlong, statusMessage *C.char) *C.char {
|
|
2479
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2480
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2481
|
+
if __err != nil {
|
|
2482
|
+
return errorGoToPy(nil)
|
|
2483
|
+
}
|
|
2484
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
2426
2485
|
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2486
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2487
|
+
if __err != nil {
|
|
2488
|
+
estr := C.CString(__err.Error())
|
|
2489
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2490
|
+
return estr
|
|
2491
|
+
}
|
|
2492
|
+
return C.CString("")
|
|
2432
2493
|
}
|
|
2433
2494
|
|
|
2434
|
-
//export
|
|
2435
|
-
func
|
|
2436
|
-
|
|
2437
|
-
|
|
2495
|
+
//export whatsapp_Session_GetContacts
|
|
2496
|
+
func whatsapp_Session_GetContacts(_handle CGoHandle, refresh C.char) CGoHandle {
|
|
2497
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2498
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2499
|
+
if __err != nil {
|
|
2500
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2501
|
+
}
|
|
2502
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
2503
|
+
|
|
2504
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2505
|
+
if __err != nil {
|
|
2506
|
+
estr := C.CString(__err.Error())
|
|
2507
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2508
|
+
C.free(unsafe.Pointer(estr))
|
|
2509
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2510
|
+
}
|
|
2511
|
+
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
2438
2512
|
}
|
|
2439
2513
|
|
|
2440
|
-
//export
|
|
2441
|
-
func
|
|
2442
|
-
|
|
2443
|
-
|
|
2514
|
+
//export whatsapp_Session_GetGroups
|
|
2515
|
+
func whatsapp_Session_GetGroups(_handle CGoHandle) CGoHandle {
|
|
2516
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2517
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2518
|
+
if __err != nil {
|
|
2519
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2520
|
+
}
|
|
2521
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
2522
|
+
|
|
2523
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2524
|
+
if __err != nil {
|
|
2525
|
+
estr := C.CString(__err.Error())
|
|
2526
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2527
|
+
C.free(unsafe.Pointer(estr))
|
|
2528
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2529
|
+
}
|
|
2530
|
+
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
2444
2531
|
}
|
|
2445
2532
|
|
|
2446
|
-
//export
|
|
2447
|
-
func
|
|
2448
|
-
|
|
2449
|
-
|
|
2533
|
+
//export whatsapp_Session_CreateGroup
|
|
2534
|
+
func whatsapp_Session_CreateGroup(_handle CGoHandle, name *C.char, participants CGoHandle) CGoHandle {
|
|
2535
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2536
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2537
|
+
if __err != nil {
|
|
2538
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2539
|
+
}
|
|
2540
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
2541
|
+
|
|
2542
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2543
|
+
if __err != nil {
|
|
2544
|
+
estr := C.CString(__err.Error())
|
|
2545
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2546
|
+
C.free(unsafe.Pointer(estr))
|
|
2547
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2548
|
+
}
|
|
2549
|
+
return handleFromPtr_whatsapp_Group(&cret)
|
|
2450
2550
|
}
|
|
2451
2551
|
|
|
2452
|
-
//export
|
|
2453
|
-
func
|
|
2454
|
-
|
|
2455
|
-
|
|
2552
|
+
//export whatsapp_Session_LeaveGroup
|
|
2553
|
+
func whatsapp_Session_LeaveGroup(_handle CGoHandle, resourceID *C.char) *C.char {
|
|
2554
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2555
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2556
|
+
if __err != nil {
|
|
2557
|
+
return errorGoToPy(nil)
|
|
2558
|
+
}
|
|
2559
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
2560
|
+
|
|
2561
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2562
|
+
if __err != nil {
|
|
2563
|
+
estr := C.CString(__err.Error())
|
|
2564
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2565
|
+
return estr
|
|
2566
|
+
}
|
|
2567
|
+
return C.CString("")
|
|
2456
2568
|
}
|
|
2457
2569
|
|
|
2458
|
-
//export
|
|
2459
|
-
func
|
|
2460
|
-
|
|
2461
|
-
|
|
2570
|
+
//export whatsapp_Session_GetAvatar
|
|
2571
|
+
func whatsapp_Session_GetAvatar(_handle CGoHandle, resourceID *C.char, avatarID *C.char) CGoHandle {
|
|
2572
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2573
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2574
|
+
if __err != nil {
|
|
2575
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2576
|
+
}
|
|
2577
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
2578
|
+
|
|
2579
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2580
|
+
if __err != nil {
|
|
2581
|
+
estr := C.CString(__err.Error())
|
|
2582
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2583
|
+
C.free(unsafe.Pointer(estr))
|
|
2584
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2585
|
+
}
|
|
2586
|
+
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
2462
2587
|
}
|
|
2463
2588
|
|
|
2464
|
-
//export
|
|
2465
|
-
func
|
|
2466
|
-
|
|
2467
|
-
|
|
2589
|
+
//export whatsapp_Session_SetAvatar
|
|
2590
|
+
func whatsapp_Session_SetAvatar(_handle CGoHandle, resourceID *C.char, avatar CGoHandle) *C.char {
|
|
2591
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2592
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2593
|
+
if __err != nil {
|
|
2594
|
+
return C.CString("")
|
|
2595
|
+
}
|
|
2596
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
2597
|
+
|
|
2598
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2599
|
+
if __err != nil {
|
|
2600
|
+
estr := C.CString(__err.Error())
|
|
2601
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2602
|
+
C.free(unsafe.Pointer(estr))
|
|
2603
|
+
return C.CString("")
|
|
2604
|
+
}
|
|
2605
|
+
return C.CString(cret)
|
|
2468
2606
|
}
|
|
2469
2607
|
|
|
2470
|
-
//export
|
|
2471
|
-
func
|
|
2472
|
-
|
|
2473
|
-
|
|
2608
|
+
//export whatsapp_Session_SetGroupName
|
|
2609
|
+
func whatsapp_Session_SetGroupName(_handle CGoHandle, resourceID *C.char, name *C.char) *C.char {
|
|
2610
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2611
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2612
|
+
if __err != nil {
|
|
2613
|
+
return errorGoToPy(nil)
|
|
2614
|
+
}
|
|
2615
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
2616
|
+
|
|
2617
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2618
|
+
if __err != nil {
|
|
2619
|
+
estr := C.CString(__err.Error())
|
|
2620
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2621
|
+
return estr
|
|
2622
|
+
}
|
|
2623
|
+
return C.CString("")
|
|
2474
2624
|
}
|
|
2475
2625
|
|
|
2476
|
-
//export
|
|
2477
|
-
func
|
|
2478
|
-
|
|
2479
|
-
|
|
2626
|
+
//export whatsapp_Session_SetGroupTopic
|
|
2627
|
+
func whatsapp_Session_SetGroupTopic(_handle CGoHandle, resourceID *C.char, topic *C.char) *C.char {
|
|
2628
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2629
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2630
|
+
if __err != nil {
|
|
2631
|
+
return errorGoToPy(nil)
|
|
2632
|
+
}
|
|
2633
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
2634
|
+
|
|
2635
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2636
|
+
if __err != nil {
|
|
2637
|
+
estr := C.CString(__err.Error())
|
|
2638
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2639
|
+
return estr
|
|
2640
|
+
}
|
|
2641
|
+
return C.CString("")
|
|
2480
2642
|
}
|
|
2481
2643
|
|
|
2482
|
-
//export
|
|
2483
|
-
func
|
|
2484
|
-
|
|
2485
|
-
|
|
2644
|
+
//export whatsapp_Session_UpdateGroupParticipants
|
|
2645
|
+
func whatsapp_Session_UpdateGroupParticipants(_handle CGoHandle, resourceID *C.char, participants CGoHandle) CGoHandle {
|
|
2646
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2647
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2648
|
+
if __err != nil {
|
|
2649
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2650
|
+
}
|
|
2651
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
2652
|
+
|
|
2653
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2654
|
+
if __err != nil {
|
|
2655
|
+
estr := C.CString(__err.Error())
|
|
2656
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2657
|
+
C.free(unsafe.Pointer(estr))
|
|
2658
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2659
|
+
}
|
|
2660
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
2486
2661
|
}
|
|
2487
2662
|
|
|
2488
|
-
//export
|
|
2489
|
-
func
|
|
2490
|
-
|
|
2491
|
-
|
|
2663
|
+
//export whatsapp_Session_FindContact
|
|
2664
|
+
func whatsapp_Session_FindContact(_handle CGoHandle, phone *C.char) CGoHandle {
|
|
2665
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2666
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2667
|
+
if __err != nil {
|
|
2668
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2669
|
+
}
|
|
2670
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
2671
|
+
|
|
2672
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2673
|
+
if __err != nil {
|
|
2674
|
+
estr := C.CString(__err.Error())
|
|
2675
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2676
|
+
C.free(unsafe.Pointer(estr))
|
|
2677
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2678
|
+
}
|
|
2679
|
+
return handleFromPtr_whatsapp_Contact(&cret)
|
|
2492
2680
|
}
|
|
2493
2681
|
|
|
2494
|
-
//
|
|
2682
|
+
//export whatsapp_Session_RequestMessageHistory
|
|
2683
|
+
func whatsapp_Session_RequestMessageHistory(_handle CGoHandle, resourceID *C.char, oldestMessage CGoHandle) *C.char {
|
|
2684
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2685
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2686
|
+
if __err != nil {
|
|
2687
|
+
return errorGoToPy(nil)
|
|
2688
|
+
}
|
|
2689
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
2690
|
+
|
|
2691
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2692
|
+
if __err != nil {
|
|
2693
|
+
estr := C.CString(__err.Error())
|
|
2694
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2695
|
+
return estr
|
|
2696
|
+
}
|
|
2697
|
+
return C.CString("")
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
//export whatsapp_Session_SetEventHandler
|
|
2701
|
+
func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.char) {
|
|
2702
|
+
_fun_arg := h
|
|
2703
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2704
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2705
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2706
|
+
if __err != nil {
|
|
2707
|
+
return
|
|
2708
|
+
}
|
|
2709
|
+
if boolPyToGo(goRun) {
|
|
2710
|
+
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2711
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2712
|
+
return
|
|
2713
|
+
}
|
|
2714
|
+
_gstate := C.PyGILState_Ensure()
|
|
2715
|
+
_fcargs := C.PyTuple_New(2)
|
|
2716
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2717
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2718
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2719
|
+
C.gopy_decref(_fcargs)
|
|
2720
|
+
C.gopy_err_handle()
|
|
2721
|
+
C.PyGILState_Release(_gstate)
|
|
2722
|
+
})
|
|
2723
|
+
} else {
|
|
2724
|
+
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2725
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2726
|
+
return
|
|
2727
|
+
}
|
|
2728
|
+
_gstate := C.PyGILState_Ensure()
|
|
2729
|
+
_fcargs := C.PyTuple_New(2)
|
|
2730
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2731
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2732
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2733
|
+
C.gopy_decref(_fcargs)
|
|
2734
|
+
C.gopy_err_handle()
|
|
2735
|
+
C.PyGILState_Release(_gstate)
|
|
2736
|
+
})
|
|
2737
|
+
}
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
// --- wrapping struct: whatsapp.Album ---
|
|
2495
2741
|
//
|
|
2496
|
-
//export
|
|
2497
|
-
func
|
|
2498
|
-
return CGoHandle(
|
|
2742
|
+
//export whatsapp_Album_CTor
|
|
2743
|
+
func whatsapp_Album_CTor() CGoHandle {
|
|
2744
|
+
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
2499
2745
|
}
|
|
2500
2746
|
|
|
2501
|
-
//export
|
|
2502
|
-
func
|
|
2503
|
-
op :=
|
|
2747
|
+
//export whatsapp_Album_IsAlbum_Get
|
|
2748
|
+
func whatsapp_Album_IsAlbum_Get(handle CGoHandle) C.char {
|
|
2749
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2750
|
+
return boolGoToPy(op.IsAlbum)
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
//export whatsapp_Album_IsAlbum_Set
|
|
2754
|
+
func whatsapp_Album_IsAlbum_Set(handle CGoHandle, val C.char) {
|
|
2755
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2756
|
+
op.IsAlbum = boolPyToGo(val)
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
//export whatsapp_Album_ImageCount_Get
|
|
2760
|
+
func whatsapp_Album_ImageCount_Get(handle CGoHandle) C.longlong {
|
|
2761
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2762
|
+
return C.longlong(op.ImageCount)
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
//export whatsapp_Album_ImageCount_Set
|
|
2766
|
+
func whatsapp_Album_ImageCount_Set(handle CGoHandle, val C.longlong) {
|
|
2767
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2768
|
+
op.ImageCount = int(val)
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
//export whatsapp_Album_VideoCount_Get
|
|
2772
|
+
func whatsapp_Album_VideoCount_Get(handle CGoHandle) C.longlong {
|
|
2773
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2774
|
+
return C.longlong(op.VideoCount)
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2777
|
+
//export whatsapp_Album_VideoCount_Set
|
|
2778
|
+
func whatsapp_Album_VideoCount_Set(handle CGoHandle, val C.longlong) {
|
|
2779
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2780
|
+
op.VideoCount = int(val)
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2783
|
+
// --- wrapping struct: whatsapp.Avatar ---
|
|
2784
|
+
//
|
|
2785
|
+
//export whatsapp_Avatar_CTor
|
|
2786
|
+
func whatsapp_Avatar_CTor() CGoHandle {
|
|
2787
|
+
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
//export whatsapp_Avatar_ID_Get
|
|
2791
|
+
func whatsapp_Avatar_ID_Get(handle CGoHandle) *C.char {
|
|
2792
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2504
2793
|
return C.CString(op.ID)
|
|
2505
2794
|
}
|
|
2506
2795
|
|
|
2507
|
-
//export
|
|
2508
|
-
func
|
|
2509
|
-
op :=
|
|
2796
|
+
//export whatsapp_Avatar_ID_Set
|
|
2797
|
+
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
2798
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2510
2799
|
op.ID = C.GoString(val)
|
|
2511
2800
|
}
|
|
2512
2801
|
|
|
2513
|
-
//export
|
|
2514
|
-
func
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
if __err != nil {
|
|
2519
|
-
return handleFromPtr_types_JID(nil)
|
|
2520
|
-
}
|
|
2521
|
-
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
2802
|
+
//export whatsapp_Avatar_URL_Get
|
|
2803
|
+
func whatsapp_Avatar_URL_Get(handle CGoHandle) *C.char {
|
|
2804
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2805
|
+
return C.CString(op.URL)
|
|
2806
|
+
}
|
|
2522
2807
|
|
|
2523
|
-
|
|
2808
|
+
//export whatsapp_Avatar_URL_Set
|
|
2809
|
+
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
2810
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2811
|
+
op.URL = C.GoString(val)
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
// --- wrapping struct: whatsapp.Contact ---
|
|
2815
|
+
//
|
|
2816
|
+
//export whatsapp_Contact_CTor
|
|
2817
|
+
func whatsapp_Contact_CTor() CGoHandle {
|
|
2818
|
+
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
2819
|
+
}
|
|
2820
|
+
|
|
2821
|
+
//export whatsapp_Contact_JID_Get
|
|
2822
|
+
func whatsapp_Contact_JID_Get(handle CGoHandle) *C.char {
|
|
2823
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2824
|
+
return C.CString(op.JID)
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
//export whatsapp_Contact_JID_Set
|
|
2828
|
+
func whatsapp_Contact_JID_Set(handle CGoHandle, val *C.char) {
|
|
2829
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2830
|
+
op.JID = C.GoString(val)
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
//export whatsapp_Contact_Name_Get
|
|
2834
|
+
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
2835
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2836
|
+
return C.CString(op.Name)
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
//export whatsapp_Contact_Name_Set
|
|
2840
|
+
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
2841
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2842
|
+
op.Name = C.GoString(val)
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
// --- wrapping struct: whatsapp.EventPayload ---
|
|
2846
|
+
//
|
|
2847
|
+
//export whatsapp_EventPayload_CTor
|
|
2848
|
+
func whatsapp_EventPayload_CTor() CGoHandle {
|
|
2849
|
+
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
2524
2850
|
}
|
|
2525
2851
|
|
|
2526
|
-
//
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
2852
|
+
//export whatsapp_EventPayload_QRCode_Get
|
|
2853
|
+
func whatsapp_EventPayload_QRCode_Get(handle CGoHandle) *C.char {
|
|
2854
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2855
|
+
return C.CString(op.QRCode)
|
|
2531
2856
|
}
|
|
2532
2857
|
|
|
2533
|
-
//export
|
|
2534
|
-
func
|
|
2535
|
-
op :=
|
|
2536
|
-
|
|
2858
|
+
//export whatsapp_EventPayload_QRCode_Set
|
|
2859
|
+
func whatsapp_EventPayload_QRCode_Set(handle CGoHandle, val *C.char) {
|
|
2860
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2861
|
+
op.QRCode = C.GoString(val)
|
|
2537
2862
|
}
|
|
2538
2863
|
|
|
2539
|
-
//export
|
|
2540
|
-
func
|
|
2541
|
-
op :=
|
|
2542
|
-
|
|
2864
|
+
//export whatsapp_EventPayload_PairDeviceID_Get
|
|
2865
|
+
func whatsapp_EventPayload_PairDeviceID_Get(handle CGoHandle) *C.char {
|
|
2866
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2867
|
+
return C.CString(op.PairDeviceID)
|
|
2543
2868
|
}
|
|
2544
2869
|
|
|
2545
|
-
//export
|
|
2546
|
-
func
|
|
2547
|
-
op :=
|
|
2548
|
-
|
|
2870
|
+
//export whatsapp_EventPayload_PairDeviceID_Set
|
|
2871
|
+
func whatsapp_EventPayload_PairDeviceID_Set(handle CGoHandle, val *C.char) {
|
|
2872
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2873
|
+
op.PairDeviceID = C.GoString(val)
|
|
2549
2874
|
}
|
|
2550
2875
|
|
|
2551
|
-
//export
|
|
2552
|
-
func
|
|
2553
|
-
op :=
|
|
2554
|
-
op.
|
|
2876
|
+
//export whatsapp_EventPayload_Connect_Get
|
|
2877
|
+
func whatsapp_EventPayload_Connect_Get(handle CGoHandle) CGoHandle {
|
|
2878
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2879
|
+
return handleFromPtr_whatsapp_Connect(&op.Connect)
|
|
2555
2880
|
}
|
|
2556
2881
|
|
|
2557
|
-
//export
|
|
2558
|
-
func
|
|
2559
|
-
op :=
|
|
2560
|
-
|
|
2882
|
+
//export whatsapp_EventPayload_Connect_Set
|
|
2883
|
+
func whatsapp_EventPayload_Connect_Set(handle CGoHandle, val CGoHandle) {
|
|
2884
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2885
|
+
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
2561
2886
|
}
|
|
2562
2887
|
|
|
2563
|
-
//export
|
|
2564
|
-
func
|
|
2565
|
-
op :=
|
|
2566
|
-
op.
|
|
2888
|
+
//export whatsapp_EventPayload_Contact_Get
|
|
2889
|
+
func whatsapp_EventPayload_Contact_Get(handle CGoHandle) CGoHandle {
|
|
2890
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2891
|
+
return handleFromPtr_whatsapp_Contact(&op.Contact)
|
|
2567
2892
|
}
|
|
2568
2893
|
|
|
2569
|
-
//
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
2894
|
+
//export whatsapp_EventPayload_Contact_Set
|
|
2895
|
+
func whatsapp_EventPayload_Contact_Set(handle CGoHandle, val CGoHandle) {
|
|
2896
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2897
|
+
op.Contact = *ptrFromHandle_whatsapp_Contact(val)
|
|
2574
2898
|
}
|
|
2575
2899
|
|
|
2576
|
-
//export
|
|
2577
|
-
func
|
|
2578
|
-
op :=
|
|
2579
|
-
return
|
|
2900
|
+
//export whatsapp_EventPayload_Presence_Get
|
|
2901
|
+
func whatsapp_EventPayload_Presence_Get(handle CGoHandle) CGoHandle {
|
|
2902
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2903
|
+
return handleFromPtr_whatsapp_Presence(&op.Presence)
|
|
2580
2904
|
}
|
|
2581
2905
|
|
|
2582
|
-
//export
|
|
2583
|
-
func
|
|
2584
|
-
op :=
|
|
2585
|
-
op.
|
|
2906
|
+
//export whatsapp_EventPayload_Presence_Set
|
|
2907
|
+
func whatsapp_EventPayload_Presence_Set(handle CGoHandle, val CGoHandle) {
|
|
2908
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2909
|
+
op.Presence = *ptrFromHandle_whatsapp_Presence(val)
|
|
2586
2910
|
}
|
|
2587
2911
|
|
|
2588
|
-
//export
|
|
2589
|
-
func
|
|
2590
|
-
op :=
|
|
2591
|
-
return
|
|
2912
|
+
//export whatsapp_EventPayload_Message_Get
|
|
2913
|
+
func whatsapp_EventPayload_Message_Get(handle CGoHandle) CGoHandle {
|
|
2914
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2915
|
+
return handleFromPtr_whatsapp_Message(&op.Message)
|
|
2592
2916
|
}
|
|
2593
2917
|
|
|
2594
|
-
//export
|
|
2595
|
-
func
|
|
2596
|
-
op :=
|
|
2597
|
-
op.
|
|
2918
|
+
//export whatsapp_EventPayload_Message_Set
|
|
2919
|
+
func whatsapp_EventPayload_Message_Set(handle CGoHandle, val CGoHandle) {
|
|
2920
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2921
|
+
op.Message = *ptrFromHandle_whatsapp_Message(val)
|
|
2598
2922
|
}
|
|
2599
2923
|
|
|
2600
|
-
//export
|
|
2601
|
-
func
|
|
2602
|
-
op :=
|
|
2603
|
-
return
|
|
2924
|
+
//export whatsapp_EventPayload_ChatState_Get
|
|
2925
|
+
func whatsapp_EventPayload_ChatState_Get(handle CGoHandle) CGoHandle {
|
|
2926
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2927
|
+
return handleFromPtr_whatsapp_ChatState(&op.ChatState)
|
|
2604
2928
|
}
|
|
2605
2929
|
|
|
2606
|
-
//export
|
|
2607
|
-
func
|
|
2608
|
-
op :=
|
|
2609
|
-
op.
|
|
2930
|
+
//export whatsapp_EventPayload_ChatState_Set
|
|
2931
|
+
func whatsapp_EventPayload_ChatState_Set(handle CGoHandle, val CGoHandle) {
|
|
2932
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2933
|
+
op.ChatState = *ptrFromHandle_whatsapp_ChatState(val)
|
|
2610
2934
|
}
|
|
2611
2935
|
|
|
2612
|
-
//export
|
|
2613
|
-
func
|
|
2614
|
-
op :=
|
|
2615
|
-
return
|
|
2936
|
+
//export whatsapp_EventPayload_Receipt_Get
|
|
2937
|
+
func whatsapp_EventPayload_Receipt_Get(handle CGoHandle) CGoHandle {
|
|
2938
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2939
|
+
return handleFromPtr_whatsapp_Receipt(&op.Receipt)
|
|
2616
2940
|
}
|
|
2617
2941
|
|
|
2618
|
-
//export
|
|
2619
|
-
func
|
|
2620
|
-
op :=
|
|
2621
|
-
op.
|
|
2942
|
+
//export whatsapp_EventPayload_Receipt_Set
|
|
2943
|
+
func whatsapp_EventPayload_Receipt_Set(handle CGoHandle, val CGoHandle) {
|
|
2944
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2945
|
+
op.Receipt = *ptrFromHandle_whatsapp_Receipt(val)
|
|
2622
2946
|
}
|
|
2623
2947
|
|
|
2624
|
-
//export
|
|
2625
|
-
func
|
|
2626
|
-
op :=
|
|
2627
|
-
return
|
|
2948
|
+
//export whatsapp_EventPayload_Group_Get
|
|
2949
|
+
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
2950
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2951
|
+
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
2628
2952
|
}
|
|
2629
2953
|
|
|
2630
|
-
//export
|
|
2631
|
-
func
|
|
2632
|
-
op :=
|
|
2633
|
-
op.
|
|
2954
|
+
//export whatsapp_EventPayload_Group_Set
|
|
2955
|
+
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
2956
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2957
|
+
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
2634
2958
|
}
|
|
2635
2959
|
|
|
2636
|
-
//export
|
|
2637
|
-
func
|
|
2638
|
-
op :=
|
|
2639
|
-
return
|
|
2960
|
+
//export whatsapp_EventPayload_Call_Get
|
|
2961
|
+
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
2962
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2963
|
+
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
2640
2964
|
}
|
|
2641
2965
|
|
|
2642
|
-
//export
|
|
2643
|
-
func
|
|
2644
|
-
op :=
|
|
2645
|
-
op.
|
|
2966
|
+
//export whatsapp_EventPayload_Call_Set
|
|
2967
|
+
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
2968
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2969
|
+
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2646
2970
|
}
|
|
2647
2971
|
|
|
2648
|
-
// --- wrapping struct: whatsapp.
|
|
2972
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
2649
2973
|
//
|
|
2650
|
-
//export
|
|
2651
|
-
func
|
|
2652
|
-
return CGoHandle(
|
|
2974
|
+
//export whatsapp_Group_CTor
|
|
2975
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
2976
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
2653
2977
|
}
|
|
2654
2978
|
|
|
2655
|
-
//export
|
|
2656
|
-
func
|
|
2657
|
-
op :=
|
|
2658
|
-
return C.CString(op.
|
|
2979
|
+
//export whatsapp_Group_JID_Get
|
|
2980
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
2981
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2982
|
+
return C.CString(op.JID)
|
|
2659
2983
|
}
|
|
2660
2984
|
|
|
2661
|
-
//export
|
|
2662
|
-
func
|
|
2663
|
-
op :=
|
|
2664
|
-
op.
|
|
2985
|
+
//export whatsapp_Group_JID_Set
|
|
2986
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
2987
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2988
|
+
op.JID = C.GoString(val)
|
|
2665
2989
|
}
|
|
2666
2990
|
|
|
2667
|
-
//export
|
|
2668
|
-
func
|
|
2669
|
-
op :=
|
|
2670
|
-
return C.CString(op.
|
|
2991
|
+
//export whatsapp_Group_Name_Get
|
|
2992
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
2993
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2994
|
+
return C.CString(op.Name)
|
|
2671
2995
|
}
|
|
2672
2996
|
|
|
2673
|
-
//export
|
|
2674
|
-
func
|
|
2675
|
-
op :=
|
|
2676
|
-
op.
|
|
2997
|
+
//export whatsapp_Group_Name_Set
|
|
2998
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
2999
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3000
|
+
op.Name = C.GoString(val)
|
|
2677
3001
|
}
|
|
2678
3002
|
|
|
2679
|
-
//export
|
|
2680
|
-
func
|
|
2681
|
-
op :=
|
|
2682
|
-
return
|
|
3003
|
+
//export whatsapp_Group_Subject_Get
|
|
3004
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
3005
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3006
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
2683
3007
|
}
|
|
2684
3008
|
|
|
2685
|
-
//export
|
|
2686
|
-
func
|
|
2687
|
-
op :=
|
|
2688
|
-
op.
|
|
3009
|
+
//export whatsapp_Group_Subject_Set
|
|
3010
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
3011
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3012
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
2689
3013
|
}
|
|
2690
3014
|
|
|
2691
|
-
//export
|
|
2692
|
-
func
|
|
2693
|
-
op :=
|
|
2694
|
-
return
|
|
3015
|
+
//export whatsapp_Group_Nickname_Get
|
|
3016
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
3017
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3018
|
+
return C.CString(op.Nickname)
|
|
2695
3019
|
}
|
|
2696
3020
|
|
|
2697
|
-
//export
|
|
2698
|
-
func
|
|
2699
|
-
op :=
|
|
2700
|
-
op.
|
|
3021
|
+
//export whatsapp_Group_Nickname_Set
|
|
3022
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
3023
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3024
|
+
op.Nickname = C.GoString(val)
|
|
2701
3025
|
}
|
|
2702
3026
|
|
|
2703
|
-
//export
|
|
2704
|
-
func
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
if __err != nil {
|
|
2714
|
-
estr := C.CString(__err.Error())
|
|
2715
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2716
|
-
C.free(unsafe.Pointer(estr))
|
|
2717
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2718
|
-
}
|
|
2719
|
-
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3027
|
+
//export whatsapp_Group_Participants_Get
|
|
3028
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
3029
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3030
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
//export whatsapp_Group_Participants_Set
|
|
3034
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
3035
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3036
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
2720
3037
|
}
|
|
2721
3038
|
|
|
2722
|
-
// --- wrapping struct: whatsapp.
|
|
3039
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
2723
3040
|
//
|
|
2724
|
-
//export
|
|
2725
|
-
func
|
|
2726
|
-
return CGoHandle(
|
|
3041
|
+
//export whatsapp_GroupParticipant_CTor
|
|
3042
|
+
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
3043
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
2727
3044
|
}
|
|
2728
3045
|
|
|
2729
|
-
//export
|
|
2730
|
-
func
|
|
2731
|
-
op :=
|
|
3046
|
+
//export whatsapp_GroupParticipant_JID_Get
|
|
3047
|
+
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
3048
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2732
3049
|
return C.CString(op.JID)
|
|
2733
3050
|
}
|
|
2734
3051
|
|
|
2735
|
-
//export
|
|
2736
|
-
func
|
|
2737
|
-
op :=
|
|
3052
|
+
//export whatsapp_GroupParticipant_JID_Set
|
|
3053
|
+
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
3054
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2738
3055
|
op.JID = C.GoString(val)
|
|
2739
3056
|
}
|
|
2740
3057
|
|
|
2741
|
-
//export
|
|
2742
|
-
func
|
|
2743
|
-
op :=
|
|
2744
|
-
return C.
|
|
3058
|
+
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
3059
|
+
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
3060
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3061
|
+
return C.longlong(int(op.Affiliation))
|
|
2745
3062
|
}
|
|
2746
3063
|
|
|
2747
|
-
//export
|
|
2748
|
-
func
|
|
2749
|
-
op :=
|
|
2750
|
-
op.
|
|
3064
|
+
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
3065
|
+
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
3066
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3067
|
+
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
2751
3068
|
}
|
|
2752
3069
|
|
|
2753
|
-
//
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
3070
|
+
//export whatsapp_GroupParticipant_Action_Get
|
|
3071
|
+
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
3072
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3073
|
+
return C.longlong(int(op.Action))
|
|
2758
3074
|
}
|
|
2759
3075
|
|
|
2760
|
-
//export
|
|
2761
|
-
func
|
|
2762
|
-
op :=
|
|
2763
|
-
|
|
3076
|
+
//export whatsapp_GroupParticipant_Action_Set
|
|
3077
|
+
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
3078
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3079
|
+
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
2764
3080
|
}
|
|
2765
3081
|
|
|
2766
|
-
//
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
3082
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
3083
|
+
//
|
|
3084
|
+
//export whatsapp_GroupSubject_CTor
|
|
3085
|
+
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
3086
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
2770
3087
|
}
|
|
2771
3088
|
|
|
2772
|
-
//export
|
|
2773
|
-
func
|
|
2774
|
-
op :=
|
|
2775
|
-
return C.CString(op.
|
|
3089
|
+
//export whatsapp_GroupSubject_Subject_Get
|
|
3090
|
+
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
3091
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3092
|
+
return C.CString(op.Subject)
|
|
2776
3093
|
}
|
|
2777
3094
|
|
|
2778
|
-
//export
|
|
2779
|
-
func
|
|
2780
|
-
op :=
|
|
2781
|
-
op.
|
|
3095
|
+
//export whatsapp_GroupSubject_Subject_Set
|
|
3096
|
+
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
3097
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3098
|
+
op.Subject = C.GoString(val)
|
|
2782
3099
|
}
|
|
2783
3100
|
|
|
2784
|
-
//export
|
|
2785
|
-
func
|
|
2786
|
-
op :=
|
|
2787
|
-
return
|
|
3101
|
+
//export whatsapp_GroupSubject_SetAt_Get
|
|
3102
|
+
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
3103
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3104
|
+
return C.longlong(op.SetAt)
|
|
2788
3105
|
}
|
|
2789
3106
|
|
|
2790
|
-
//export
|
|
2791
|
-
func
|
|
2792
|
-
op :=
|
|
2793
|
-
op.
|
|
3107
|
+
//export whatsapp_GroupSubject_SetAt_Set
|
|
3108
|
+
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
3109
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3110
|
+
op.SetAt = int64(val)
|
|
2794
3111
|
}
|
|
2795
3112
|
|
|
2796
|
-
//export
|
|
2797
|
-
func
|
|
2798
|
-
op :=
|
|
2799
|
-
return
|
|
3113
|
+
//export whatsapp_GroupSubject_SetByJID_Get
|
|
3114
|
+
func whatsapp_GroupSubject_SetByJID_Get(handle CGoHandle) *C.char {
|
|
3115
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3116
|
+
return C.CString(op.SetByJID)
|
|
2800
3117
|
}
|
|
2801
3118
|
|
|
2802
|
-
//export
|
|
2803
|
-
func
|
|
2804
|
-
op :=
|
|
2805
|
-
op.
|
|
3119
|
+
//export whatsapp_GroupSubject_SetByJID_Set
|
|
3120
|
+
func whatsapp_GroupSubject_SetByJID_Set(handle CGoHandle, val *C.char) {
|
|
3121
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3122
|
+
op.SetByJID = C.GoString(val)
|
|
2806
3123
|
}
|
|
2807
3124
|
|
|
2808
|
-
//
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
3125
|
+
// --- wrapping struct: whatsapp.Message ---
|
|
3126
|
+
//
|
|
3127
|
+
//export whatsapp_Message_CTor
|
|
3128
|
+
func whatsapp_Message_CTor() CGoHandle {
|
|
3129
|
+
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
2812
3130
|
}
|
|
2813
3131
|
|
|
2814
|
-
//export
|
|
2815
|
-
func
|
|
2816
|
-
op :=
|
|
2817
|
-
op.
|
|
3132
|
+
//export whatsapp_Message_Kind_Get
|
|
3133
|
+
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
3134
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3135
|
+
return C.longlong(int(op.Kind))
|
|
2818
3136
|
}
|
|
2819
3137
|
|
|
2820
|
-
//export
|
|
2821
|
-
func
|
|
2822
|
-
op :=
|
|
2823
|
-
|
|
3138
|
+
//export whatsapp_Message_Kind_Set
|
|
3139
|
+
func whatsapp_Message_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3140
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3141
|
+
op.Kind = whatsapp.MessageKind(int(val))
|
|
2824
3142
|
}
|
|
2825
3143
|
|
|
2826
|
-
//export
|
|
2827
|
-
func
|
|
2828
|
-
op :=
|
|
2829
|
-
op.
|
|
3144
|
+
//export whatsapp_Message_ID_Get
|
|
3145
|
+
func whatsapp_Message_ID_Get(handle CGoHandle) *C.char {
|
|
3146
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3147
|
+
return C.CString(op.ID)
|
|
2830
3148
|
}
|
|
2831
3149
|
|
|
2832
|
-
//export
|
|
2833
|
-
func
|
|
2834
|
-
op :=
|
|
2835
|
-
|
|
3150
|
+
//export whatsapp_Message_ID_Set
|
|
3151
|
+
func whatsapp_Message_ID_Set(handle CGoHandle, val *C.char) {
|
|
3152
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3153
|
+
op.ID = C.GoString(val)
|
|
2836
3154
|
}
|
|
2837
3155
|
|
|
2838
|
-
//export
|
|
2839
|
-
func
|
|
2840
|
-
op :=
|
|
2841
|
-
op.
|
|
3156
|
+
//export whatsapp_Message_JID_Get
|
|
3157
|
+
func whatsapp_Message_JID_Get(handle CGoHandle) *C.char {
|
|
3158
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3159
|
+
return C.CString(op.JID)
|
|
2842
3160
|
}
|
|
2843
3161
|
|
|
2844
|
-
//export
|
|
2845
|
-
func
|
|
2846
|
-
op :=
|
|
2847
|
-
|
|
3162
|
+
//export whatsapp_Message_JID_Set
|
|
3163
|
+
func whatsapp_Message_JID_Set(handle CGoHandle, val *C.char) {
|
|
3164
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3165
|
+
op.JID = C.GoString(val)
|
|
2848
3166
|
}
|
|
2849
3167
|
|
|
2850
|
-
//export
|
|
2851
|
-
func
|
|
2852
|
-
op :=
|
|
2853
|
-
op.
|
|
3168
|
+
//export whatsapp_Message_GroupJID_Get
|
|
3169
|
+
func whatsapp_Message_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3170
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3171
|
+
return C.CString(op.GroupJID)
|
|
2854
3172
|
}
|
|
2855
3173
|
|
|
2856
|
-
//export
|
|
2857
|
-
func
|
|
2858
|
-
op :=
|
|
2859
|
-
|
|
3174
|
+
//export whatsapp_Message_GroupJID_Set
|
|
3175
|
+
func whatsapp_Message_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3176
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3177
|
+
op.GroupJID = C.GoString(val)
|
|
2860
3178
|
}
|
|
2861
3179
|
|
|
2862
|
-
//export
|
|
2863
|
-
func
|
|
2864
|
-
op :=
|
|
2865
|
-
op.
|
|
3180
|
+
//export whatsapp_Message_OriginJID_Get
|
|
3181
|
+
func whatsapp_Message_OriginJID_Get(handle CGoHandle) *C.char {
|
|
3182
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3183
|
+
return C.CString(op.OriginJID)
|
|
2866
3184
|
}
|
|
2867
3185
|
|
|
2868
|
-
//export
|
|
2869
|
-
func
|
|
2870
|
-
op :=
|
|
2871
|
-
|
|
3186
|
+
//export whatsapp_Message_OriginJID_Set
|
|
3187
|
+
func whatsapp_Message_OriginJID_Set(handle CGoHandle, val *C.char) {
|
|
3188
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3189
|
+
op.OriginJID = C.GoString(val)
|
|
2872
3190
|
}
|
|
2873
3191
|
|
|
2874
|
-
//export
|
|
2875
|
-
func
|
|
2876
|
-
op :=
|
|
2877
|
-
op.
|
|
3192
|
+
//export whatsapp_Message_Body_Get
|
|
3193
|
+
func whatsapp_Message_Body_Get(handle CGoHandle) *C.char {
|
|
3194
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3195
|
+
return C.CString(op.Body)
|
|
2878
3196
|
}
|
|
2879
3197
|
|
|
2880
|
-
//
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
3198
|
+
//export whatsapp_Message_Body_Set
|
|
3199
|
+
func whatsapp_Message_Body_Set(handle CGoHandle, val *C.char) {
|
|
3200
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3201
|
+
op.Body = C.GoString(val)
|
|
2885
3202
|
}
|
|
2886
3203
|
|
|
2887
|
-
//export
|
|
2888
|
-
func
|
|
2889
|
-
op :=
|
|
2890
|
-
return C.
|
|
3204
|
+
//export whatsapp_Message_Timestamp_Get
|
|
3205
|
+
func whatsapp_Message_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3206
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3207
|
+
return C.longlong(op.Timestamp)
|
|
2891
3208
|
}
|
|
2892
3209
|
|
|
2893
|
-
//export
|
|
2894
|
-
func
|
|
2895
|
-
op :=
|
|
2896
|
-
op.
|
|
3210
|
+
//export whatsapp_Message_Timestamp_Set
|
|
3211
|
+
func whatsapp_Message_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3212
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3213
|
+
op.Timestamp = int64(val)
|
|
2897
3214
|
}
|
|
2898
3215
|
|
|
2899
|
-
//export
|
|
2900
|
-
func
|
|
2901
|
-
op :=
|
|
2902
|
-
return
|
|
3216
|
+
//export whatsapp_Message_IsCarbon_Get
|
|
3217
|
+
func whatsapp_Message_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3218
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3219
|
+
return boolGoToPy(op.IsCarbon)
|
|
2903
3220
|
}
|
|
2904
3221
|
|
|
2905
|
-
//export
|
|
2906
|
-
func
|
|
2907
|
-
op :=
|
|
2908
|
-
op.
|
|
3222
|
+
//export whatsapp_Message_IsCarbon_Set
|
|
3223
|
+
func whatsapp_Message_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3224
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3225
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3226
|
+
}
|
|
3227
|
+
|
|
3228
|
+
//export whatsapp_Message_IsForwarded_Get
|
|
3229
|
+
func whatsapp_Message_IsForwarded_Get(handle CGoHandle) C.char {
|
|
3230
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3231
|
+
return boolGoToPy(op.IsForwarded)
|
|
2909
3232
|
}
|
|
2910
3233
|
|
|
2911
|
-
//export
|
|
2912
|
-
func
|
|
2913
|
-
op :=
|
|
2914
|
-
|
|
3234
|
+
//export whatsapp_Message_IsForwarded_Set
|
|
3235
|
+
func whatsapp_Message_IsForwarded_Set(handle CGoHandle, val C.char) {
|
|
3236
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3237
|
+
op.IsForwarded = boolPyToGo(val)
|
|
2915
3238
|
}
|
|
2916
3239
|
|
|
2917
|
-
//export
|
|
2918
|
-
func
|
|
2919
|
-
op :=
|
|
2920
|
-
|
|
3240
|
+
//export whatsapp_Message_ReplyID_Get
|
|
3241
|
+
func whatsapp_Message_ReplyID_Get(handle CGoHandle) *C.char {
|
|
3242
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3243
|
+
return C.CString(op.ReplyID)
|
|
2921
3244
|
}
|
|
2922
3245
|
|
|
2923
|
-
//export
|
|
2924
|
-
func
|
|
2925
|
-
op :=
|
|
2926
|
-
|
|
3246
|
+
//export whatsapp_Message_ReplyID_Set
|
|
3247
|
+
func whatsapp_Message_ReplyID_Set(handle CGoHandle, val *C.char) {
|
|
3248
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3249
|
+
op.ReplyID = C.GoString(val)
|
|
2927
3250
|
}
|
|
2928
3251
|
|
|
2929
|
-
//export
|
|
2930
|
-
func
|
|
2931
|
-
op :=
|
|
2932
|
-
|
|
3252
|
+
//export whatsapp_Message_ReplyBody_Get
|
|
3253
|
+
func whatsapp_Message_ReplyBody_Get(handle CGoHandle) *C.char {
|
|
3254
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3255
|
+
return C.CString(op.ReplyBody)
|
|
2933
3256
|
}
|
|
2934
3257
|
|
|
2935
|
-
//export
|
|
2936
|
-
func
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
if __err != nil {
|
|
2940
|
-
return errorGoToPy(nil)
|
|
2941
|
-
}
|
|
2942
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
2943
|
-
|
|
2944
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2945
|
-
if __err != nil {
|
|
2946
|
-
estr := C.CString(__err.Error())
|
|
2947
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2948
|
-
return estr
|
|
2949
|
-
}
|
|
2950
|
-
return C.CString("")
|
|
3258
|
+
//export whatsapp_Message_ReplyBody_Set
|
|
3259
|
+
func whatsapp_Message_ReplyBody_Set(handle CGoHandle, val *C.char) {
|
|
3260
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3261
|
+
op.ReplyBody = C.GoString(val)
|
|
2951
3262
|
}
|
|
2952
3263
|
|
|
2953
|
-
//export
|
|
2954
|
-
func
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
if __err != nil {
|
|
2959
|
-
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
2960
|
-
}
|
|
2961
|
-
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
3264
|
+
//export whatsapp_Message_Attachments_Get
|
|
3265
|
+
func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
3266
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3267
|
+
return handleFromPtr_Slice_whatsapp_Attachment(&op.Attachments)
|
|
3268
|
+
}
|
|
2962
3269
|
|
|
3270
|
+
//export whatsapp_Message_Attachments_Set
|
|
3271
|
+
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
3272
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3273
|
+
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
2963
3274
|
}
|
|
2964
3275
|
|
|
2965
|
-
//export
|
|
2966
|
-
func
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
return errorGoToPy(nil)
|
|
2971
|
-
}
|
|
2972
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
3276
|
+
//export whatsapp_Message_Preview_Get
|
|
3277
|
+
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
3278
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3279
|
+
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
3280
|
+
}
|
|
2973
3281
|
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
return estr
|
|
2979
|
-
}
|
|
2980
|
-
return C.CString("")
|
|
3282
|
+
//export whatsapp_Message_Preview_Set
|
|
3283
|
+
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
3284
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3285
|
+
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
2981
3286
|
}
|
|
2982
3287
|
|
|
2983
|
-
//
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
3288
|
+
//export whatsapp_Message_Location_Get
|
|
3289
|
+
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
3290
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3291
|
+
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
2988
3292
|
}
|
|
2989
3293
|
|
|
2990
|
-
//export
|
|
2991
|
-
func
|
|
2992
|
-
op :=
|
|
2993
|
-
|
|
3294
|
+
//export whatsapp_Message_Location_Set
|
|
3295
|
+
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
3296
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3297
|
+
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
2994
3298
|
}
|
|
2995
3299
|
|
|
2996
|
-
//export
|
|
2997
|
-
func
|
|
2998
|
-
op :=
|
|
2999
|
-
op.
|
|
3300
|
+
//export whatsapp_Message_Poll_Get
|
|
3301
|
+
func whatsapp_Message_Poll_Get(handle CGoHandle) CGoHandle {
|
|
3302
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3303
|
+
return handleFromPtr_whatsapp_Poll(&op.Poll)
|
|
3000
3304
|
}
|
|
3001
3305
|
|
|
3002
|
-
//export
|
|
3003
|
-
func
|
|
3004
|
-
op :=
|
|
3005
|
-
|
|
3306
|
+
//export whatsapp_Message_Poll_Set
|
|
3307
|
+
func whatsapp_Message_Poll_Set(handle CGoHandle, val CGoHandle) {
|
|
3308
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3309
|
+
op.Poll = *ptrFromHandle_whatsapp_Poll(val)
|
|
3006
3310
|
}
|
|
3007
3311
|
|
|
3008
|
-
//export
|
|
3009
|
-
func
|
|
3010
|
-
op :=
|
|
3011
|
-
op.
|
|
3312
|
+
//export whatsapp_Message_Album_Get
|
|
3313
|
+
func whatsapp_Message_Album_Get(handle CGoHandle) CGoHandle {
|
|
3314
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3315
|
+
return handleFromPtr_whatsapp_Album(&op.Album)
|
|
3012
3316
|
}
|
|
3013
3317
|
|
|
3014
|
-
//export
|
|
3015
|
-
func
|
|
3016
|
-
op :=
|
|
3017
|
-
|
|
3318
|
+
//export whatsapp_Message_Album_Set
|
|
3319
|
+
func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
3320
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3321
|
+
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
3018
3322
|
}
|
|
3019
3323
|
|
|
3020
|
-
//export
|
|
3021
|
-
func
|
|
3022
|
-
op :=
|
|
3023
|
-
op.
|
|
3324
|
+
//export whatsapp_Message_MentionJIDs_Get
|
|
3325
|
+
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
3326
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3327
|
+
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
3024
3328
|
}
|
|
3025
3329
|
|
|
3026
|
-
//
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
3330
|
+
//export whatsapp_Message_MentionJIDs_Set
|
|
3331
|
+
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3332
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3333
|
+
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
3031
3334
|
}
|
|
3032
3335
|
|
|
3033
|
-
//export
|
|
3034
|
-
func
|
|
3035
|
-
op :=
|
|
3036
|
-
return
|
|
3336
|
+
//export whatsapp_Message_Receipts_Get
|
|
3337
|
+
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
3338
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3339
|
+
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
3037
3340
|
}
|
|
3038
3341
|
|
|
3039
|
-
//export
|
|
3040
|
-
func
|
|
3041
|
-
op :=
|
|
3042
|
-
op.
|
|
3342
|
+
//export whatsapp_Message_Receipts_Set
|
|
3343
|
+
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
3344
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3345
|
+
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
3043
3346
|
}
|
|
3044
3347
|
|
|
3045
|
-
//export
|
|
3046
|
-
func
|
|
3047
|
-
op :=
|
|
3048
|
-
return
|
|
3348
|
+
//export whatsapp_Message_Reactions_Get
|
|
3349
|
+
func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
3350
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3351
|
+
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
3049
3352
|
}
|
|
3050
3353
|
|
|
3051
|
-
//export
|
|
3052
|
-
func
|
|
3053
|
-
op :=
|
|
3054
|
-
op.
|
|
3354
|
+
//export whatsapp_Message_Reactions_Set
|
|
3355
|
+
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
3356
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3357
|
+
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3055
3358
|
}
|
|
3056
3359
|
|
|
3057
|
-
// --- wrapping struct: whatsapp.
|
|
3360
|
+
// --- wrapping struct: whatsapp.Attachment ---
|
|
3058
3361
|
//
|
|
3059
|
-
//export
|
|
3060
|
-
func
|
|
3061
|
-
return CGoHandle(
|
|
3362
|
+
//export whatsapp_Attachment_CTor
|
|
3363
|
+
func whatsapp_Attachment_CTor() CGoHandle {
|
|
3364
|
+
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
3062
3365
|
}
|
|
3063
3366
|
|
|
3064
|
-
//export
|
|
3065
|
-
func
|
|
3066
|
-
op :=
|
|
3067
|
-
return C.
|
|
3367
|
+
//export whatsapp_Attachment_MIME_Get
|
|
3368
|
+
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
3369
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3370
|
+
return C.CString(op.MIME)
|
|
3068
3371
|
}
|
|
3069
3372
|
|
|
3070
|
-
//export
|
|
3071
|
-
func
|
|
3072
|
-
op :=
|
|
3073
|
-
op.
|
|
3373
|
+
//export whatsapp_Attachment_MIME_Set
|
|
3374
|
+
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
3375
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3376
|
+
op.MIME = C.GoString(val)
|
|
3074
3377
|
}
|
|
3075
3378
|
|
|
3076
|
-
//export
|
|
3077
|
-
func
|
|
3078
|
-
op :=
|
|
3079
|
-
return C.
|
|
3379
|
+
//export whatsapp_Attachment_Filename_Get
|
|
3380
|
+
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
3381
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3382
|
+
return C.CString(op.Filename)
|
|
3080
3383
|
}
|
|
3081
3384
|
|
|
3082
|
-
//export
|
|
3083
|
-
func
|
|
3084
|
-
op :=
|
|
3085
|
-
op.
|
|
3385
|
+
//export whatsapp_Attachment_Filename_Set
|
|
3386
|
+
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
3387
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3388
|
+
op.Filename = C.GoString(val)
|
|
3086
3389
|
}
|
|
3087
3390
|
|
|
3088
|
-
//export
|
|
3089
|
-
func
|
|
3090
|
-
op :=
|
|
3091
|
-
return C.
|
|
3391
|
+
//export whatsapp_Attachment_Caption_Get
|
|
3392
|
+
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
3393
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3394
|
+
return C.CString(op.Caption)
|
|
3092
3395
|
}
|
|
3093
3396
|
|
|
3094
|
-
//export
|
|
3095
|
-
func
|
|
3096
|
-
op :=
|
|
3097
|
-
op.
|
|
3397
|
+
//export whatsapp_Attachment_Caption_Set
|
|
3398
|
+
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
3399
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3400
|
+
op.Caption = C.GoString(val)
|
|
3098
3401
|
}
|
|
3099
3402
|
|
|
3100
|
-
//export
|
|
3101
|
-
func
|
|
3102
|
-
op :=
|
|
3103
|
-
return
|
|
3403
|
+
//export whatsapp_Attachment_Data_Get
|
|
3404
|
+
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
3405
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3406
|
+
return handleFromPtr_Slice_byte(&op.Data)
|
|
3104
3407
|
}
|
|
3105
3408
|
|
|
3106
|
-
//export
|
|
3107
|
-
func
|
|
3108
|
-
op :=
|
|
3109
|
-
op.
|
|
3409
|
+
//export whatsapp_Attachment_Data_Set
|
|
3410
|
+
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
3411
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3412
|
+
op.Data = deptrFromHandle_Slice_byte(val)
|
|
3110
3413
|
}
|
|
3111
3414
|
|
|
3112
|
-
//export
|
|
3113
|
-
func
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3415
|
+
//export whatsapp_Attachment_GetSpec
|
|
3416
|
+
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
3417
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3418
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
3419
|
+
if __err != nil {
|
|
3420
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3421
|
+
}
|
|
3422
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
3117
3423
|
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3424
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3425
|
+
if __err != nil {
|
|
3426
|
+
estr := C.CString(__err.Error())
|
|
3427
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3428
|
+
C.free(unsafe.Pointer(estr))
|
|
3429
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3430
|
+
}
|
|
3431
|
+
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3122
3432
|
}
|
|
3123
3433
|
|
|
3124
|
-
//
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3434
|
+
// --- wrapping struct: whatsapp.Presence ---
|
|
3435
|
+
//
|
|
3436
|
+
//export whatsapp_Presence_CTor
|
|
3437
|
+
func whatsapp_Presence_CTor() CGoHandle {
|
|
3438
|
+
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
3128
3439
|
}
|
|
3129
3440
|
|
|
3130
|
-
//export
|
|
3131
|
-
func
|
|
3132
|
-
op :=
|
|
3133
|
-
|
|
3441
|
+
//export whatsapp_Presence_JID_Get
|
|
3442
|
+
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
3443
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3444
|
+
return C.CString(op.JID)
|
|
3134
3445
|
}
|
|
3135
3446
|
|
|
3136
|
-
//export
|
|
3137
|
-
func
|
|
3138
|
-
op :=
|
|
3139
|
-
|
|
3447
|
+
//export whatsapp_Presence_JID_Set
|
|
3448
|
+
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
3449
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3450
|
+
op.JID = C.GoString(val)
|
|
3140
3451
|
}
|
|
3141
3452
|
|
|
3142
|
-
//export
|
|
3143
|
-
func
|
|
3144
|
-
op :=
|
|
3145
|
-
|
|
3453
|
+
//export whatsapp_Presence_Kind_Get
|
|
3454
|
+
func whatsapp_Presence_Kind_Get(handle CGoHandle) C.longlong {
|
|
3455
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3456
|
+
return C.longlong(int(op.Kind))
|
|
3146
3457
|
}
|
|
3147
3458
|
|
|
3148
|
-
//
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
3459
|
+
//export whatsapp_Presence_Kind_Set
|
|
3460
|
+
func whatsapp_Presence_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3461
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3462
|
+
op.Kind = whatsapp.PresenceKind(int(val))
|
|
3153
3463
|
}
|
|
3154
3464
|
|
|
3155
|
-
//export
|
|
3156
|
-
func
|
|
3157
|
-
op :=
|
|
3158
|
-
return C.
|
|
3465
|
+
//export whatsapp_Presence_LastSeen_Get
|
|
3466
|
+
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
3467
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3468
|
+
return C.longlong(op.LastSeen)
|
|
3159
3469
|
}
|
|
3160
3470
|
|
|
3161
|
-
//export
|
|
3162
|
-
func
|
|
3163
|
-
op :=
|
|
3164
|
-
op.
|
|
3471
|
+
//export whatsapp_Presence_LastSeen_Set
|
|
3472
|
+
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
3473
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3474
|
+
op.LastSeen = int64(val)
|
|
3165
3475
|
}
|
|
3166
3476
|
|
|
3167
3477
|
// --- wrapping struct: whatsapp.Preview ---
|
|
@@ -3195,523 +3505,256 @@ func whatsapp_Preview_URL_Set(handle CGoHandle, val *C.char) {
|
|
|
3195
3505
|
op.URL = C.GoString(val)
|
|
3196
3506
|
}
|
|
3197
3507
|
|
|
3198
|
-
//export whatsapp_Preview_Title_Get
|
|
3199
|
-
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
3200
|
-
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3201
|
-
return C.CString(op.Title)
|
|
3202
|
-
}
|
|
3203
|
-
|
|
3204
|
-
//export whatsapp_Preview_Title_Set
|
|
3205
|
-
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
3206
|
-
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3207
|
-
op.Title = C.GoString(val)
|
|
3208
|
-
}
|
|
3209
|
-
|
|
3210
|
-
//export whatsapp_Preview_Description_Get
|
|
3211
|
-
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
3212
|
-
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3213
|
-
return C.CString(op.Description)
|
|
3214
|
-
}
|
|
3215
|
-
|
|
3216
|
-
//export whatsapp_Preview_Description_Set
|
|
3217
|
-
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
3218
|
-
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3219
|
-
op.Description = C.GoString(val)
|
|
3220
|
-
}
|
|
3221
|
-
|
|
3222
|
-
//export whatsapp_Preview_Thumbnail_Get
|
|
3223
|
-
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
3224
|
-
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3225
|
-
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
3226
|
-
}
|
|
3227
|
-
|
|
3228
|
-
//export whatsapp_Preview_Thumbnail_Set
|
|
3229
|
-
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
3230
|
-
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3231
|
-
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
3232
|
-
}
|
|
3233
|
-
|
|
3234
|
-
// --- wrapping struct: whatsapp.Session ---
|
|
3235
|
-
//
|
|
3236
|
-
//export whatsapp_Session_CTor
|
|
3237
|
-
func whatsapp_Session_CTor() CGoHandle {
|
|
3238
|
-
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
3239
|
-
}
|
|
3240
|
-
|
|
3241
|
-
//export whatsapp_Session_Login
|
|
3242
|
-
func whatsapp_Session_Login(_handle CGoHandle) *C.char {
|
|
3243
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
3244
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3245
|
-
if __err != nil {
|
|
3246
|
-
return errorGoToPy(nil)
|
|
3247
|
-
}
|
|
3248
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
3249
|
-
|
|
3250
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3251
|
-
if __err != nil {
|
|
3252
|
-
estr := C.CString(__err.Error())
|
|
3253
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3254
|
-
return estr
|
|
3255
|
-
}
|
|
3256
|
-
return C.CString("")
|
|
3257
|
-
}
|
|
3258
|
-
|
|
3259
|
-
//export whatsapp_Session_Logout
|
|
3260
|
-
func whatsapp_Session_Logout(_handle CGoHandle) *C.char {
|
|
3261
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
3262
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3263
|
-
if __err != nil {
|
|
3264
|
-
return errorGoToPy(nil)
|
|
3265
|
-
}
|
|
3266
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
3267
|
-
|
|
3268
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3269
|
-
if __err != nil {
|
|
3270
|
-
estr := C.CString(__err.Error())
|
|
3271
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3272
|
-
return estr
|
|
3273
|
-
}
|
|
3274
|
-
return C.CString("")
|
|
3275
|
-
}
|
|
3276
|
-
|
|
3277
|
-
//export whatsapp_Session_Disconnect
|
|
3278
|
-
func whatsapp_Session_Disconnect(_handle CGoHandle) *C.char {
|
|
3279
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
3280
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3281
|
-
if __err != nil {
|
|
3282
|
-
return errorGoToPy(nil)
|
|
3283
|
-
}
|
|
3284
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
3285
|
-
|
|
3286
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3287
|
-
if __err != nil {
|
|
3288
|
-
estr := C.CString(__err.Error())
|
|
3289
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3290
|
-
return estr
|
|
3291
|
-
}
|
|
3292
|
-
return C.CString("")
|
|
3293
|
-
}
|
|
3294
|
-
|
|
3295
|
-
//export whatsapp_Session_PairPhone
|
|
3296
|
-
func whatsapp_Session_PairPhone(_handle CGoHandle, phone *C.char) *C.char {
|
|
3297
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
3298
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3299
|
-
if __err != nil {
|
|
3300
|
-
return C.CString("")
|
|
3301
|
-
}
|
|
3302
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
3303
|
-
|
|
3304
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3305
|
-
if __err != nil {
|
|
3306
|
-
estr := C.CString(__err.Error())
|
|
3307
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3308
|
-
C.free(unsafe.Pointer(estr))
|
|
3309
|
-
return C.CString("")
|
|
3310
|
-
}
|
|
3311
|
-
return C.CString(cret)
|
|
3312
|
-
}
|
|
3313
|
-
|
|
3314
|
-
//export whatsapp_Session_SendMessage
|
|
3315
|
-
func whatsapp_Session_SendMessage(_handle CGoHandle, message CGoHandle) *C.char {
|
|
3316
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
3317
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3318
|
-
if __err != nil {
|
|
3319
|
-
return errorGoToPy(nil)
|
|
3320
|
-
}
|
|
3321
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
3322
|
-
|
|
3323
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3324
|
-
if __err != nil {
|
|
3325
|
-
estr := C.CString(__err.Error())
|
|
3326
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3327
|
-
return estr
|
|
3328
|
-
}
|
|
3329
|
-
return C.CString("")
|
|
3330
|
-
}
|
|
3331
|
-
|
|
3332
|
-
//export whatsapp_Session_GenerateMessageID
|
|
3333
|
-
func whatsapp_Session_GenerateMessageID(_handle CGoHandle) *C.char {
|
|
3334
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
3335
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3336
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3337
|
-
if __err != nil {
|
|
3338
|
-
return C.CString("")
|
|
3339
|
-
}
|
|
3340
|
-
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
3341
|
-
|
|
3342
|
-
}
|
|
3343
|
-
|
|
3344
|
-
//export whatsapp_Session_SendChatState
|
|
3345
|
-
func whatsapp_Session_SendChatState(_handle CGoHandle, state CGoHandle) *C.char {
|
|
3346
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
3347
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3348
|
-
if __err != nil {
|
|
3349
|
-
return errorGoToPy(nil)
|
|
3350
|
-
}
|
|
3351
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
3352
|
-
|
|
3353
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3354
|
-
if __err != nil {
|
|
3355
|
-
estr := C.CString(__err.Error())
|
|
3356
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3357
|
-
return estr
|
|
3358
|
-
}
|
|
3359
|
-
return C.CString("")
|
|
3508
|
+
//export whatsapp_Preview_Title_Get
|
|
3509
|
+
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
3510
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3511
|
+
return C.CString(op.Title)
|
|
3360
3512
|
}
|
|
3361
3513
|
|
|
3362
|
-
//export
|
|
3363
|
-
func
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
return errorGoToPy(nil)
|
|
3368
|
-
}
|
|
3369
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
3514
|
+
//export whatsapp_Preview_Title_Set
|
|
3515
|
+
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
3516
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3517
|
+
op.Title = C.GoString(val)
|
|
3518
|
+
}
|
|
3370
3519
|
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
return estr
|
|
3376
|
-
}
|
|
3377
|
-
return C.CString("")
|
|
3520
|
+
//export whatsapp_Preview_Description_Get
|
|
3521
|
+
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
3522
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3523
|
+
return C.CString(op.Description)
|
|
3378
3524
|
}
|
|
3379
3525
|
|
|
3380
|
-
//export
|
|
3381
|
-
func
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
return errorGoToPy(nil)
|
|
3386
|
-
}
|
|
3387
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
3526
|
+
//export whatsapp_Preview_Description_Set
|
|
3527
|
+
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
3528
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3529
|
+
op.Description = C.GoString(val)
|
|
3530
|
+
}
|
|
3388
3531
|
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
return estr
|
|
3394
|
-
}
|
|
3395
|
-
return C.CString("")
|
|
3532
|
+
//export whatsapp_Preview_Thumbnail_Get
|
|
3533
|
+
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
3534
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3535
|
+
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
3396
3536
|
}
|
|
3397
3537
|
|
|
3398
|
-
//export
|
|
3399
|
-
func
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3404
|
-
}
|
|
3405
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
3538
|
+
//export whatsapp_Preview_Thumbnail_Set
|
|
3539
|
+
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
3540
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3541
|
+
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
3542
|
+
}
|
|
3406
3543
|
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3413
|
-
}
|
|
3414
|
-
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
3544
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
3545
|
+
//
|
|
3546
|
+
//export whatsapp_LinkedDevice_CTor
|
|
3547
|
+
func whatsapp_LinkedDevice_CTor() CGoHandle {
|
|
3548
|
+
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
3415
3549
|
}
|
|
3416
3550
|
|
|
3417
|
-
//export
|
|
3418
|
-
func
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3423
|
-
}
|
|
3424
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
3551
|
+
//export whatsapp_LinkedDevice_ID_Get
|
|
3552
|
+
func whatsapp_LinkedDevice_ID_Get(handle CGoHandle) *C.char {
|
|
3553
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3554
|
+
return C.CString(op.ID)
|
|
3555
|
+
}
|
|
3425
3556
|
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
C.free(unsafe.Pointer(estr))
|
|
3431
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3432
|
-
}
|
|
3433
|
-
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
3557
|
+
//export whatsapp_LinkedDevice_ID_Set
|
|
3558
|
+
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
3559
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3560
|
+
op.ID = C.GoString(val)
|
|
3434
3561
|
}
|
|
3435
3562
|
|
|
3436
|
-
//export
|
|
3437
|
-
func
|
|
3563
|
+
//export whatsapp_LinkedDevice_JID
|
|
3564
|
+
func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
3438
3565
|
_saved_thread := C.PyEval_SaveThread()
|
|
3439
|
-
|
|
3566
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3567
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
3440
3568
|
if __err != nil {
|
|
3441
|
-
return
|
|
3569
|
+
return handleFromPtr_types_JID(nil)
|
|
3442
3570
|
}
|
|
3443
|
-
cret
|
|
3571
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3444
3572
|
|
|
3445
|
-
|
|
3446
|
-
if __err != nil {
|
|
3447
|
-
estr := C.CString(__err.Error())
|
|
3448
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3449
|
-
C.free(unsafe.Pointer(estr))
|
|
3450
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
3451
|
-
}
|
|
3452
|
-
return handleFromPtr_whatsapp_Group(&cret)
|
|
3573
|
+
return handleFromPtr_types_JID(&cret)
|
|
3453
3574
|
}
|
|
3454
3575
|
|
|
3455
|
-
//
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
return errorGoToPy(nil)
|
|
3461
|
-
}
|
|
3462
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
3463
|
-
|
|
3464
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3465
|
-
if __err != nil {
|
|
3466
|
-
estr := C.CString(__err.Error())
|
|
3467
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3468
|
-
return estr
|
|
3469
|
-
}
|
|
3470
|
-
return C.CString("")
|
|
3576
|
+
// --- wrapping struct: whatsapp.ChatState ---
|
|
3577
|
+
//
|
|
3578
|
+
//export whatsapp_ChatState_CTor
|
|
3579
|
+
func whatsapp_ChatState_CTor() CGoHandle {
|
|
3580
|
+
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
3471
3581
|
}
|
|
3472
3582
|
|
|
3473
|
-
//export
|
|
3474
|
-
func
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3479
|
-
}
|
|
3480
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
3583
|
+
//export whatsapp_ChatState_Kind_Get
|
|
3584
|
+
func whatsapp_ChatState_Kind_Get(handle CGoHandle) C.longlong {
|
|
3585
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3586
|
+
return C.longlong(int(op.Kind))
|
|
3587
|
+
}
|
|
3481
3588
|
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
C.free(unsafe.Pointer(estr))
|
|
3487
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3488
|
-
}
|
|
3489
|
-
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
3589
|
+
//export whatsapp_ChatState_Kind_Set
|
|
3590
|
+
func whatsapp_ChatState_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3591
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3592
|
+
op.Kind = whatsapp.ChatStateKind(int(val))
|
|
3490
3593
|
}
|
|
3491
3594
|
|
|
3492
|
-
//export
|
|
3493
|
-
func
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
return C.CString("")
|
|
3498
|
-
}
|
|
3499
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
3595
|
+
//export whatsapp_ChatState_JID_Get
|
|
3596
|
+
func whatsapp_ChatState_JID_Get(handle CGoHandle) *C.char {
|
|
3597
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3598
|
+
return C.CString(op.JID)
|
|
3599
|
+
}
|
|
3500
3600
|
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
C.free(unsafe.Pointer(estr))
|
|
3506
|
-
return C.CString("")
|
|
3507
|
-
}
|
|
3508
|
-
return C.CString(cret)
|
|
3601
|
+
//export whatsapp_ChatState_JID_Set
|
|
3602
|
+
func whatsapp_ChatState_JID_Set(handle CGoHandle, val *C.char) {
|
|
3603
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3604
|
+
op.JID = C.GoString(val)
|
|
3509
3605
|
}
|
|
3510
3606
|
|
|
3511
|
-
//export
|
|
3512
|
-
func
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
return errorGoToPy(nil)
|
|
3517
|
-
}
|
|
3518
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
3607
|
+
//export whatsapp_ChatState_GroupJID_Get
|
|
3608
|
+
func whatsapp_ChatState_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3609
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3610
|
+
return C.CString(op.GroupJID)
|
|
3611
|
+
}
|
|
3519
3612
|
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
return estr
|
|
3525
|
-
}
|
|
3526
|
-
return C.CString("")
|
|
3613
|
+
//export whatsapp_ChatState_GroupJID_Set
|
|
3614
|
+
func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3615
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
3616
|
+
op.GroupJID = C.GoString(val)
|
|
3527
3617
|
}
|
|
3528
3618
|
|
|
3529
|
-
//
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
}
|
|
3536
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
3619
|
+
// --- wrapping struct: whatsapp.Connect ---
|
|
3620
|
+
//
|
|
3621
|
+
//export whatsapp_Connect_CTor
|
|
3622
|
+
func whatsapp_Connect_CTor() CGoHandle {
|
|
3623
|
+
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
3624
|
+
}
|
|
3537
3625
|
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
return estr
|
|
3543
|
-
}
|
|
3544
|
-
return C.CString("")
|
|
3626
|
+
//export whatsapp_Connect_JID_Get
|
|
3627
|
+
func whatsapp_Connect_JID_Get(handle CGoHandle) *C.char {
|
|
3628
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3629
|
+
return C.CString(op.JID)
|
|
3545
3630
|
}
|
|
3546
3631
|
|
|
3547
|
-
//export
|
|
3548
|
-
func
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3553
|
-
}
|
|
3554
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
3632
|
+
//export whatsapp_Connect_JID_Set
|
|
3633
|
+
func whatsapp_Connect_JID_Set(handle CGoHandle, val *C.char) {
|
|
3634
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3635
|
+
op.JID = C.GoString(val)
|
|
3636
|
+
}
|
|
3555
3637
|
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
C.free(unsafe.Pointer(estr))
|
|
3561
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3562
|
-
}
|
|
3563
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
3638
|
+
//export whatsapp_Connect_Error_Get
|
|
3639
|
+
func whatsapp_Connect_Error_Get(handle CGoHandle) *C.char {
|
|
3640
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3641
|
+
return C.CString(op.Error)
|
|
3564
3642
|
}
|
|
3565
3643
|
|
|
3566
|
-
//export
|
|
3567
|
-
func
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
3572
|
-
}
|
|
3573
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
3644
|
+
//export whatsapp_Connect_Error_Set
|
|
3645
|
+
func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
3646
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3647
|
+
op.Error = C.GoString(val)
|
|
3648
|
+
}
|
|
3574
3649
|
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
3581
|
-
}
|
|
3582
|
-
return handleFromPtr_whatsapp_Contact(&cret)
|
|
3650
|
+
// --- wrapping struct: whatsapp.Poll ---
|
|
3651
|
+
//
|
|
3652
|
+
//export whatsapp_Poll_CTor
|
|
3653
|
+
func whatsapp_Poll_CTor() CGoHandle {
|
|
3654
|
+
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
3583
3655
|
}
|
|
3584
3656
|
|
|
3585
|
-
//export
|
|
3586
|
-
func
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
return errorGoToPy(nil)
|
|
3591
|
-
}
|
|
3592
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
3657
|
+
//export whatsapp_Poll_Title_Get
|
|
3658
|
+
func whatsapp_Poll_Title_Get(handle CGoHandle) *C.char {
|
|
3659
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3660
|
+
return C.CString(op.Title)
|
|
3661
|
+
}
|
|
3593
3662
|
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
return estr
|
|
3599
|
-
}
|
|
3600
|
-
return C.CString("")
|
|
3663
|
+
//export whatsapp_Poll_Title_Set
|
|
3664
|
+
func whatsapp_Poll_Title_Set(handle CGoHandle, val *C.char) {
|
|
3665
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3666
|
+
op.Title = C.GoString(val)
|
|
3601
3667
|
}
|
|
3602
3668
|
|
|
3603
|
-
//export
|
|
3604
|
-
func
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3608
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3609
|
-
if __err != nil {
|
|
3610
|
-
return
|
|
3611
|
-
}
|
|
3612
|
-
if boolPyToGo(goRun) {
|
|
3613
|
-
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3614
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3615
|
-
return
|
|
3616
|
-
}
|
|
3617
|
-
_gstate := C.PyGILState_Ensure()
|
|
3618
|
-
_fcargs := C.PyTuple_New(2)
|
|
3619
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3620
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3621
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3622
|
-
C.gopy_decref(_fcargs)
|
|
3623
|
-
C.gopy_err_handle()
|
|
3624
|
-
C.PyGILState_Release(_gstate)
|
|
3625
|
-
})
|
|
3626
|
-
} else {
|
|
3627
|
-
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3628
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3629
|
-
return
|
|
3630
|
-
}
|
|
3631
|
-
_gstate := C.PyGILState_Ensure()
|
|
3632
|
-
_fcargs := C.PyTuple_New(2)
|
|
3633
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3634
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3635
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3636
|
-
C.gopy_decref(_fcargs)
|
|
3637
|
-
C.gopy_err_handle()
|
|
3638
|
-
C.PyGILState_Release(_gstate)
|
|
3639
|
-
})
|
|
3640
|
-
}
|
|
3669
|
+
//export whatsapp_Poll_Options_Get
|
|
3670
|
+
func whatsapp_Poll_Options_Get(handle CGoHandle) CGoHandle {
|
|
3671
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3672
|
+
return handleFromPtr_Slice_whatsapp_PollOption(&op.Options)
|
|
3641
3673
|
}
|
|
3642
3674
|
|
|
3643
|
-
//
|
|
3675
|
+
//export whatsapp_Poll_Options_Set
|
|
3676
|
+
func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
3677
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3678
|
+
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
3679
|
+
}
|
|
3680
|
+
|
|
3681
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
3644
3682
|
//
|
|
3645
|
-
//export
|
|
3646
|
-
func
|
|
3647
|
-
return CGoHandle(
|
|
3683
|
+
//export whatsapp_Receipt_CTor
|
|
3684
|
+
func whatsapp_Receipt_CTor() CGoHandle {
|
|
3685
|
+
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
3648
3686
|
}
|
|
3649
3687
|
|
|
3650
|
-
//export
|
|
3651
|
-
func
|
|
3652
|
-
op :=
|
|
3653
|
-
return
|
|
3688
|
+
//export whatsapp_Receipt_Kind_Get
|
|
3689
|
+
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3690
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3691
|
+
return C.longlong(int(op.Kind))
|
|
3654
3692
|
}
|
|
3655
3693
|
|
|
3656
|
-
//export
|
|
3657
|
-
func
|
|
3658
|
-
op :=
|
|
3659
|
-
op.
|
|
3694
|
+
//export whatsapp_Receipt_Kind_Set
|
|
3695
|
+
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3696
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3697
|
+
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
3660
3698
|
}
|
|
3661
3699
|
|
|
3662
|
-
//export
|
|
3663
|
-
func
|
|
3664
|
-
op :=
|
|
3665
|
-
return
|
|
3700
|
+
//export whatsapp_Receipt_MessageIDs_Get
|
|
3701
|
+
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
3702
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3703
|
+
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
3666
3704
|
}
|
|
3667
3705
|
|
|
3668
|
-
//export
|
|
3669
|
-
func
|
|
3670
|
-
op :=
|
|
3671
|
-
op.
|
|
3706
|
+
//export whatsapp_Receipt_MessageIDs_Set
|
|
3707
|
+
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3708
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3709
|
+
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
3672
3710
|
}
|
|
3673
3711
|
|
|
3674
|
-
//export
|
|
3675
|
-
func
|
|
3676
|
-
op :=
|
|
3677
|
-
return C.
|
|
3712
|
+
//export whatsapp_Receipt_JID_Get
|
|
3713
|
+
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
3714
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3715
|
+
return C.CString(op.JID)
|
|
3678
3716
|
}
|
|
3679
3717
|
|
|
3680
|
-
//export
|
|
3681
|
-
func
|
|
3682
|
-
op :=
|
|
3683
|
-
op.
|
|
3718
|
+
//export whatsapp_Receipt_JID_Set
|
|
3719
|
+
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
3720
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3721
|
+
op.JID = C.GoString(val)
|
|
3684
3722
|
}
|
|
3685
3723
|
|
|
3686
|
-
//
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
3724
|
+
//export whatsapp_Receipt_GroupJID_Get
|
|
3725
|
+
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3726
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3727
|
+
return C.CString(op.GroupJID)
|
|
3691
3728
|
}
|
|
3692
3729
|
|
|
3693
|
-
//export
|
|
3694
|
-
func
|
|
3695
|
-
op :=
|
|
3696
|
-
|
|
3730
|
+
//export whatsapp_Receipt_GroupJID_Set
|
|
3731
|
+
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3732
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3733
|
+
op.GroupJID = C.GoString(val)
|
|
3697
3734
|
}
|
|
3698
3735
|
|
|
3699
|
-
//export
|
|
3700
|
-
func
|
|
3701
|
-
op :=
|
|
3702
|
-
|
|
3736
|
+
//export whatsapp_Receipt_Timestamp_Get
|
|
3737
|
+
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3738
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3739
|
+
return C.longlong(op.Timestamp)
|
|
3703
3740
|
}
|
|
3704
3741
|
|
|
3705
|
-
//export
|
|
3706
|
-
func
|
|
3707
|
-
op :=
|
|
3708
|
-
|
|
3742
|
+
//export whatsapp_Receipt_Timestamp_Set
|
|
3743
|
+
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3744
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3745
|
+
op.Timestamp = int64(val)
|
|
3709
3746
|
}
|
|
3710
3747
|
|
|
3711
|
-
//export
|
|
3712
|
-
func
|
|
3713
|
-
op :=
|
|
3714
|
-
op.
|
|
3748
|
+
//export whatsapp_Receipt_IsCarbon_Get
|
|
3749
|
+
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3750
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3751
|
+
return boolGoToPy(op.IsCarbon)
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3754
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
3755
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3756
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3757
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3715
3758
|
}
|
|
3716
3759
|
|
|
3717
3760
|
// --- wrapping struct: whatsapp.Call ---
|
|
@@ -3757,49 +3800,6 @@ func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
|
3757
3800
|
op.Timestamp = int64(val)
|
|
3758
3801
|
}
|
|
3759
3802
|
|
|
3760
|
-
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
3761
|
-
//
|
|
3762
|
-
//export whatsapp_GroupParticipant_CTor
|
|
3763
|
-
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
3764
|
-
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
3765
|
-
}
|
|
3766
|
-
|
|
3767
|
-
//export whatsapp_GroupParticipant_JID_Get
|
|
3768
|
-
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
3769
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3770
|
-
return C.CString(op.JID)
|
|
3771
|
-
}
|
|
3772
|
-
|
|
3773
|
-
//export whatsapp_GroupParticipant_JID_Set
|
|
3774
|
-
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
3775
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3776
|
-
op.JID = C.GoString(val)
|
|
3777
|
-
}
|
|
3778
|
-
|
|
3779
|
-
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
3780
|
-
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
3781
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3782
|
-
return C.longlong(int(op.Affiliation))
|
|
3783
|
-
}
|
|
3784
|
-
|
|
3785
|
-
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
3786
|
-
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
3787
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3788
|
-
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
3789
|
-
}
|
|
3790
|
-
|
|
3791
|
-
//export whatsapp_GroupParticipant_Action_Get
|
|
3792
|
-
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
3793
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3794
|
-
return C.longlong(int(op.Action))
|
|
3795
|
-
}
|
|
3796
|
-
|
|
3797
|
-
//export whatsapp_GroupParticipant_Action_Set
|
|
3798
|
-
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
3799
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3800
|
-
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
3801
|
-
}
|
|
3802
|
-
|
|
3803
3803
|
// ---- Slices ---
|
|
3804
3804
|
|
|
3805
3805
|
// ---- Maps ---
|