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