slidge-whatsapp 0.2.6__cp312-cp312-manylinux_2_36_aarch64.whl → 0.3.0b0__cp312-cp312-manylinux_2_36_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- slidge_whatsapp/contact.py +13 -3
- slidge_whatsapp/event.go +115 -39
- slidge_whatsapp/gateway.go +7 -63
- slidge_whatsapp/gateway.py +2 -3
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.h +169 -152
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +134 -120
- slidge_whatsapp/generated/whatsapp.c +1511 -1239
- slidge_whatsapp/generated/whatsapp.go +1263 -1152
- slidge_whatsapp/generated/whatsapp.py +1171 -1046
- slidge_whatsapp/generated/whatsapp_go.h +169 -152
- slidge_whatsapp/go.mod +18 -15
- slidge_whatsapp/go.sum +38 -32
- slidge_whatsapp/group.py +34 -30
- slidge_whatsapp/media/media.go +6 -2
- slidge_whatsapp/session.go +33 -16
- slidge_whatsapp/session.py +46 -14
- slidge_whatsapp/vendor/github.com/beeper/argo-go/LICENSE +9 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockreader.go +329 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockwriter.go +417 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/decoder.go +652 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/encoder.go +985 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/header/header.go +135 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/internal/util/util.go +133 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/label/label.go +384 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/label/wiremarkers.go +37 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/bitset/bitset.go +197 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/buf/buf.go +420 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/varint/varint.go +246 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/wire/wire.go +614 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/wirecodec/decode.go +341 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/list.go +95 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/orderedmap.go +187 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz.go +1 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo.go +3 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_nocgo.go +4 -5
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_darwin.go +11 -1
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_linux.go +10 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_windows.go +12 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/.gitignore +0 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/CHANGELOG.md +30 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/COPYRIGHT.txt +6 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/README.md +14 -17
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi2.go +7 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_amd64/libffi.8.dylib +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_arm64/libffi.8.dylib +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/windows_amd64/libffi-8.dll +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif.go +15 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif_arm64.go +16 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed.go +49 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_amd64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_arm64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_windows_amd64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/ffi.go +51 -13
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/init.go +22 -9
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +2 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +3096 -1651
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +188 -128
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_userauth.go +13 -140
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3ext.h +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.23.go +2 -2
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.25.go +37 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/LICENSE +19 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/argmap.go +37 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/collections.go +148 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/comment.go +31 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/decode.go +216 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/definition.go +110 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/directive.go +43 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/document.go +89 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/dumper.go +159 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/fragment.go +41 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/operation.go +32 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/path.go +72 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/selection.go +41 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/source.go +19 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/type.go +68 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/value.go +122 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/handleerrors.go +60 -26
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/json.go +1 -6
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/networkerror.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/util/exstrings/stringutil.go +104 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +19 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.pre-commit-config.yaml +3 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/hash.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +5 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo-wire-type-store.argo +63 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo.go +62 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/name-to-queryids.json +306 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +40 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/encoder.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +79 -45
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +13 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download-to-file.go +19 -12
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +26 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +99 -27
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +54 -26
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +208 -57
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +2 -14
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/newsletter.go +83 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +17 -8
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +2 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +15 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/extra.go +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.pb.go +983 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.proto +85 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.pb.go +197 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.proto +13 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.pb.go +279 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.proto +21 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.pb.go +137 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.proto +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.pb.go +313 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.proto +27 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.pb.go +1299 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.proto +112 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.pb.go +514 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.proto +47 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.pb.go +123 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.proto +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.pb.go +720 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.proto +59 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.pb.go +365 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.proto +33 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.pb.go +1238 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.proto +105 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.go +16 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.pb.go +5156 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.proto +516 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.pb.go +46 -10
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.proto +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +8975 -11209
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +193 -421
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +52 -23
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.pb.go +198 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.proto +14 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/extra.go +7 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.pb.go +952 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.proto +88 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +1143 -463
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +60 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +60 -38
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +11 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +20 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingfields.json +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingtoken.go +176 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +10 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +38 -21
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/container.go +9 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +25 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/00-latest-schema.sql +4 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/10-chat-db-lid-migration-ts.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +5 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/call.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +13 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/message.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/user.go +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +14 -8
- slidge_whatsapp/vendor/golang.org/x/crypto/curve25519/curve25519.go +1 -1
- slidge_whatsapp/vendor/golang.org/x/net/http2/config.go +44 -2
- slidge_whatsapp/vendor/golang.org/x/net/http2/frame.go +8 -8
- slidge_whatsapp/vendor/golang.org/x/net/http2/gotrack.go +14 -3
- slidge_whatsapp/vendor/golang.org/x/net/http2/http2.go +7 -29
- slidge_whatsapp/vendor/golang.org/x/net/http2/server.go +53 -71
- slidge_whatsapp/vendor/golang.org/x/net/http2/transport.go +20 -74
- slidge_whatsapp/vendor/golang.org/x/sys/unix/affinity_linux.go +1 -3
- slidge_whatsapp/vendor/golang.org/x/sys/unix/mkerrors.sh +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin.go +1 -55
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_solaris.go +1 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux.go +47 -16
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +4 -4
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux.go +168 -12
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +18 -2
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +18 -2
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +6 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +483 -483
- slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/protowire/wire.go +25 -1
- 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 +10 -5
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/presence.go +33 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/api_gen.go +6 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +68 -22
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_message_opaque.go +2 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_opaque.go +8 -37
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/presence.go +0 -3
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +1 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +8 -0
- slidge_whatsapp/vendor/modules.txt +57 -23
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/METADATA +2 -2
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/RECORD +254 -174
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi_amd64.go +0 -7
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_go124.go +0 -61
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_pre_go124.go +0 -16
- slidge_whatsapp/vendor/golang.org/x/net/http2/timer.go +0 -20
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/LICENSE +0 -0
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/WHEEL +0 -0
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/entry_points.txt +0 -0
|
@@ -8,8 +8,8 @@ package main
|
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
|
|
11
|
-
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.12.
|
|
12
|
-
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.12.
|
|
11
|
+
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.12.11-linux-aarch64-gnu/include/python3.12" -Wno-error -Wno-implicit-function-declaration -Wno-int-conversion
|
|
12
|
+
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.12.11-linux-aarch64-gnu/lib" "-lpython3.12" -lpthread -ldl -lutil -lm
|
|
13
13
|
|
|
14
14
|
// #define Py_LIMITED_API // need full API for PyRun*
|
|
15
15
|
#include <Python.h>
|
|
@@ -1381,6 +1381,18 @@ func handleFromPtr_Ptr_whatsapp_Location(p interface{}) CGoHandle {
|
|
|
1381
1381
|
return CGoHandle(gopyh.Register("*whatsapp.Location", p))
|
|
1382
1382
|
}
|
|
1383
1383
|
|
|
1384
|
+
// Converters for pointer handles for type: *whatsapp.LoggedOut
|
|
1385
|
+
func ptrFromHandle_Ptr_whatsapp_LoggedOut(h CGoHandle) *whatsapp.LoggedOut {
|
|
1386
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.LoggedOut")
|
|
1387
|
+
if p == nil {
|
|
1388
|
+
return nil
|
|
1389
|
+
}
|
|
1390
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.LoggedOut{})).(*whatsapp.LoggedOut)
|
|
1391
|
+
}
|
|
1392
|
+
func handleFromPtr_Ptr_whatsapp_LoggedOut(p interface{}) CGoHandle {
|
|
1393
|
+
return CGoHandle(gopyh.Register("*whatsapp.LoggedOut", p))
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1384
1396
|
// Converters for pointer handles for type: *whatsapp.Message
|
|
1385
1397
|
func ptrFromHandle_Ptr_whatsapp_Message(h CGoHandle) *whatsapp.Message {
|
|
1386
1398
|
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Message")
|
|
@@ -2025,6 +2037,18 @@ func handleFromPtr_whatsapp_Location(p interface{}) CGoHandle {
|
|
|
2025
2037
|
return CGoHandle(gopyh.Register("whatsapp.Location", p))
|
|
2026
2038
|
}
|
|
2027
2039
|
|
|
2040
|
+
// Converters for non-pointer handles for type: whatsapp.LoggedOut
|
|
2041
|
+
func ptrFromHandle_whatsapp_LoggedOut(h CGoHandle) *whatsapp.LoggedOut {
|
|
2042
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.LoggedOut")
|
|
2043
|
+
if p == nil {
|
|
2044
|
+
return nil
|
|
2045
|
+
}
|
|
2046
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.LoggedOut{})).(*whatsapp.LoggedOut)
|
|
2047
|
+
}
|
|
2048
|
+
func handleFromPtr_whatsapp_LoggedOut(p interface{}) CGoHandle {
|
|
2049
|
+
return CGoHandle(gopyh.Register("whatsapp.LoggedOut", p))
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2028
2052
|
// Converters for non-pointer handles for type: whatsapp.Message
|
|
2029
2053
|
func ptrFromHandle_whatsapp_Message(h CGoHandle) *whatsapp.Message {
|
|
2030
2054
|
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Message")
|
|
@@ -2115,49 +2139,6 @@ func handleFromPtr_whatsapp_Session(p interface{}) CGoHandle {
|
|
|
2115
2139
|
|
|
2116
2140
|
// ---- Structs ---
|
|
2117
2141
|
|
|
2118
|
-
// --- wrapping struct: whatsapp.Presence ---
|
|
2119
|
-
//
|
|
2120
|
-
//export whatsapp_Presence_CTor
|
|
2121
|
-
func whatsapp_Presence_CTor() CGoHandle {
|
|
2122
|
-
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
//export whatsapp_Presence_JID_Get
|
|
2126
|
-
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
2127
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2128
|
-
return C.CString(op.JID)
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
//export whatsapp_Presence_JID_Set
|
|
2132
|
-
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
2133
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2134
|
-
op.JID = C.GoString(val)
|
|
2135
|
-
}
|
|
2136
|
-
|
|
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))
|
|
2141
|
-
}
|
|
2142
|
-
|
|
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))
|
|
2147
|
-
}
|
|
2148
|
-
|
|
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)
|
|
2153
|
-
}
|
|
2154
|
-
|
|
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)
|
|
2159
|
-
}
|
|
2160
|
-
|
|
2161
2142
|
// --- wrapping struct: whatsapp.ChatState ---
|
|
2162
2143
|
//
|
|
2163
2144
|
//export whatsapp_ChatState_CTor
|
|
@@ -2201,407 +2182,380 @@ func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
|
2201
2182
|
op.GroupJID = C.GoString(val)
|
|
2202
2183
|
}
|
|
2203
2184
|
|
|
2204
|
-
// --- wrapping struct: whatsapp.
|
|
2185
|
+
// --- wrapping struct: whatsapp.Connect ---
|
|
2205
2186
|
//
|
|
2206
|
-
//export
|
|
2207
|
-
func
|
|
2208
|
-
return CGoHandle(
|
|
2187
|
+
//export whatsapp_Connect_CTor
|
|
2188
|
+
func whatsapp_Connect_CTor() CGoHandle {
|
|
2189
|
+
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
2209
2190
|
}
|
|
2210
2191
|
|
|
2211
|
-
//export
|
|
2212
|
-
func
|
|
2213
|
-
op :=
|
|
2192
|
+
//export whatsapp_Connect_JID_Get
|
|
2193
|
+
func whatsapp_Connect_JID_Get(handle CGoHandle) *C.char {
|
|
2194
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
2214
2195
|
return C.CString(op.JID)
|
|
2215
2196
|
}
|
|
2216
2197
|
|
|
2217
|
-
//export
|
|
2218
|
-
func
|
|
2219
|
-
op :=
|
|
2198
|
+
//export whatsapp_Connect_JID_Set
|
|
2199
|
+
func whatsapp_Connect_JID_Set(handle CGoHandle, val *C.char) {
|
|
2200
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
2220
2201
|
op.JID = C.GoString(val)
|
|
2221
2202
|
}
|
|
2222
2203
|
|
|
2223
|
-
//export
|
|
2224
|
-
func
|
|
2225
|
-
op :=
|
|
2226
|
-
return C.CString(op.
|
|
2204
|
+
//export whatsapp_Connect_Error_Get
|
|
2205
|
+
func whatsapp_Connect_Error_Get(handle CGoHandle) *C.char {
|
|
2206
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
2207
|
+
return C.CString(op.Error)
|
|
2227
2208
|
}
|
|
2228
2209
|
|
|
2229
|
-
//export
|
|
2230
|
-
func
|
|
2231
|
-
op :=
|
|
2232
|
-
op.
|
|
2210
|
+
//export whatsapp_Connect_Error_Set
|
|
2211
|
+
func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
2212
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
2213
|
+
op.Error = C.GoString(val)
|
|
2233
2214
|
}
|
|
2234
2215
|
|
|
2235
|
-
//
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2216
|
+
// --- wrapping struct: whatsapp.EventPayload ---
|
|
2217
|
+
//
|
|
2218
|
+
//export whatsapp_EventPayload_CTor
|
|
2219
|
+
func whatsapp_EventPayload_CTor() CGoHandle {
|
|
2220
|
+
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
2239
2221
|
}
|
|
2240
2222
|
|
|
2241
|
-
//export
|
|
2242
|
-
func
|
|
2243
|
-
op :=
|
|
2244
|
-
op.
|
|
2223
|
+
//export whatsapp_EventPayload_QRCode_Get
|
|
2224
|
+
func whatsapp_EventPayload_QRCode_Get(handle CGoHandle) *C.char {
|
|
2225
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2226
|
+
return C.CString(op.QRCode)
|
|
2245
2227
|
}
|
|
2246
2228
|
|
|
2247
|
-
//export
|
|
2248
|
-
func
|
|
2249
|
-
op :=
|
|
2250
|
-
|
|
2229
|
+
//export whatsapp_EventPayload_QRCode_Set
|
|
2230
|
+
func whatsapp_EventPayload_QRCode_Set(handle CGoHandle, val *C.char) {
|
|
2231
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2232
|
+
op.QRCode = C.GoString(val)
|
|
2251
2233
|
}
|
|
2252
2234
|
|
|
2253
|
-
//export
|
|
2254
|
-
func
|
|
2255
|
-
op :=
|
|
2256
|
-
|
|
2235
|
+
//export whatsapp_EventPayload_PairDeviceID_Get
|
|
2236
|
+
func whatsapp_EventPayload_PairDeviceID_Get(handle CGoHandle) *C.char {
|
|
2237
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2238
|
+
return C.CString(op.PairDeviceID)
|
|
2257
2239
|
}
|
|
2258
2240
|
|
|
2259
|
-
//export
|
|
2260
|
-
func
|
|
2261
|
-
op :=
|
|
2262
|
-
|
|
2241
|
+
//export whatsapp_EventPayload_PairDeviceID_Set
|
|
2242
|
+
func whatsapp_EventPayload_PairDeviceID_Set(handle CGoHandle, val *C.char) {
|
|
2243
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2244
|
+
op.PairDeviceID = C.GoString(val)
|
|
2263
2245
|
}
|
|
2264
2246
|
|
|
2265
|
-
//export
|
|
2266
|
-
func
|
|
2267
|
-
op :=
|
|
2268
|
-
op.
|
|
2247
|
+
//export whatsapp_EventPayload_Connect_Get
|
|
2248
|
+
func whatsapp_EventPayload_Connect_Get(handle CGoHandle) CGoHandle {
|
|
2249
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2250
|
+
return handleFromPtr_whatsapp_Connect(&op.Connect)
|
|
2269
2251
|
}
|
|
2270
2252
|
|
|
2271
|
-
//
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
2253
|
+
//export whatsapp_EventPayload_Connect_Set
|
|
2254
|
+
func whatsapp_EventPayload_Connect_Set(handle CGoHandle, val CGoHandle) {
|
|
2255
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2256
|
+
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
2276
2257
|
}
|
|
2277
2258
|
|
|
2278
|
-
//export
|
|
2279
|
-
func
|
|
2280
|
-
op :=
|
|
2281
|
-
return
|
|
2259
|
+
//export whatsapp_EventPayload_LoggedOut_Get
|
|
2260
|
+
func whatsapp_EventPayload_LoggedOut_Get(handle CGoHandle) CGoHandle {
|
|
2261
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2262
|
+
return handleFromPtr_whatsapp_LoggedOut(&op.LoggedOut)
|
|
2282
2263
|
}
|
|
2283
2264
|
|
|
2284
|
-
//export
|
|
2285
|
-
func
|
|
2286
|
-
op :=
|
|
2287
|
-
op.
|
|
2265
|
+
//export whatsapp_EventPayload_LoggedOut_Set
|
|
2266
|
+
func whatsapp_EventPayload_LoggedOut_Set(handle CGoHandle, val CGoHandle) {
|
|
2267
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2268
|
+
op.LoggedOut = *ptrFromHandle_whatsapp_LoggedOut(val)
|
|
2288
2269
|
}
|
|
2289
2270
|
|
|
2290
|
-
//export
|
|
2291
|
-
func
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
2295
|
-
if __err != nil {
|
|
2296
|
-
return handleFromPtr_types_JID(nil)
|
|
2297
|
-
}
|
|
2298
|
-
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
2299
|
-
|
|
2300
|
-
return handleFromPtr_types_JID(&cret)
|
|
2271
|
+
//export whatsapp_EventPayload_Contact_Get
|
|
2272
|
+
func whatsapp_EventPayload_Contact_Get(handle CGoHandle) CGoHandle {
|
|
2273
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2274
|
+
return handleFromPtr_whatsapp_Contact(&op.Contact)
|
|
2301
2275
|
}
|
|
2302
2276
|
|
|
2303
|
-
//
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
2277
|
+
//export whatsapp_EventPayload_Contact_Set
|
|
2278
|
+
func whatsapp_EventPayload_Contact_Set(handle CGoHandle, val CGoHandle) {
|
|
2279
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2280
|
+
op.Contact = *ptrFromHandle_whatsapp_Contact(val)
|
|
2308
2281
|
}
|
|
2309
2282
|
|
|
2310
|
-
//export
|
|
2311
|
-
func
|
|
2312
|
-
op :=
|
|
2313
|
-
return
|
|
2283
|
+
//export whatsapp_EventPayload_Presence_Get
|
|
2284
|
+
func whatsapp_EventPayload_Presence_Get(handle CGoHandle) CGoHandle {
|
|
2285
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2286
|
+
return handleFromPtr_whatsapp_Presence(&op.Presence)
|
|
2314
2287
|
}
|
|
2315
2288
|
|
|
2316
|
-
//export
|
|
2317
|
-
func
|
|
2318
|
-
op :=
|
|
2319
|
-
op.
|
|
2289
|
+
//export whatsapp_EventPayload_Presence_Set
|
|
2290
|
+
func whatsapp_EventPayload_Presence_Set(handle CGoHandle, val CGoHandle) {
|
|
2291
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2292
|
+
op.Presence = *ptrFromHandle_whatsapp_Presence(val)
|
|
2320
2293
|
}
|
|
2321
2294
|
|
|
2322
|
-
//export
|
|
2323
|
-
func
|
|
2324
|
-
op :=
|
|
2325
|
-
return
|
|
2295
|
+
//export whatsapp_EventPayload_Message_Get
|
|
2296
|
+
func whatsapp_EventPayload_Message_Get(handle CGoHandle) CGoHandle {
|
|
2297
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2298
|
+
return handleFromPtr_whatsapp_Message(&op.Message)
|
|
2326
2299
|
}
|
|
2327
2300
|
|
|
2328
|
-
//export
|
|
2329
|
-
func
|
|
2330
|
-
op :=
|
|
2331
|
-
op.
|
|
2301
|
+
//export whatsapp_EventPayload_Message_Set
|
|
2302
|
+
func whatsapp_EventPayload_Message_Set(handle CGoHandle, val CGoHandle) {
|
|
2303
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2304
|
+
op.Message = *ptrFromHandle_whatsapp_Message(val)
|
|
2332
2305
|
}
|
|
2333
2306
|
|
|
2334
|
-
//export
|
|
2335
|
-
func
|
|
2336
|
-
op :=
|
|
2337
|
-
return
|
|
2307
|
+
//export whatsapp_EventPayload_ChatState_Get
|
|
2308
|
+
func whatsapp_EventPayload_ChatState_Get(handle CGoHandle) CGoHandle {
|
|
2309
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2310
|
+
return handleFromPtr_whatsapp_ChatState(&op.ChatState)
|
|
2338
2311
|
}
|
|
2339
2312
|
|
|
2340
|
-
//export
|
|
2341
|
-
func
|
|
2342
|
-
op :=
|
|
2343
|
-
op.
|
|
2313
|
+
//export whatsapp_EventPayload_ChatState_Set
|
|
2314
|
+
func whatsapp_EventPayload_ChatState_Set(handle CGoHandle, val CGoHandle) {
|
|
2315
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2316
|
+
op.ChatState = *ptrFromHandle_whatsapp_ChatState(val)
|
|
2344
2317
|
}
|
|
2345
2318
|
|
|
2346
|
-
//export
|
|
2347
|
-
func
|
|
2348
|
-
op :=
|
|
2349
|
-
return
|
|
2319
|
+
//export whatsapp_EventPayload_Receipt_Get
|
|
2320
|
+
func whatsapp_EventPayload_Receipt_Get(handle CGoHandle) CGoHandle {
|
|
2321
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2322
|
+
return handleFromPtr_whatsapp_Receipt(&op.Receipt)
|
|
2350
2323
|
}
|
|
2351
2324
|
|
|
2352
|
-
//export
|
|
2353
|
-
func
|
|
2354
|
-
op :=
|
|
2355
|
-
op.
|
|
2325
|
+
//export whatsapp_EventPayload_Receipt_Set
|
|
2326
|
+
func whatsapp_EventPayload_Receipt_Set(handle CGoHandle, val CGoHandle) {
|
|
2327
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2328
|
+
op.Receipt = *ptrFromHandle_whatsapp_Receipt(val)
|
|
2356
2329
|
}
|
|
2357
2330
|
|
|
2358
|
-
//export
|
|
2359
|
-
func
|
|
2360
|
-
op :=
|
|
2361
|
-
return
|
|
2331
|
+
//export whatsapp_EventPayload_Group_Get
|
|
2332
|
+
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
2333
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2334
|
+
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
2362
2335
|
}
|
|
2363
2336
|
|
|
2364
|
-
//export
|
|
2365
|
-
func
|
|
2366
|
-
op :=
|
|
2367
|
-
op.
|
|
2368
|
-
}
|
|
2369
|
-
|
|
2370
|
-
//export whatsapp_Location_Address_Get
|
|
2371
|
-
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
2372
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2373
|
-
return C.CString(op.Address)
|
|
2337
|
+
//export whatsapp_EventPayload_Group_Set
|
|
2338
|
+
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
2339
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2340
|
+
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
2374
2341
|
}
|
|
2375
2342
|
|
|
2376
|
-
//export
|
|
2377
|
-
func
|
|
2378
|
-
op :=
|
|
2379
|
-
op.
|
|
2343
|
+
//export whatsapp_EventPayload_Call_Get
|
|
2344
|
+
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
2345
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2346
|
+
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
2380
2347
|
}
|
|
2381
2348
|
|
|
2382
|
-
//export
|
|
2383
|
-
func
|
|
2384
|
-
op :=
|
|
2385
|
-
|
|
2349
|
+
//export whatsapp_EventPayload_Call_Set
|
|
2350
|
+
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
2351
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2352
|
+
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2386
2353
|
}
|
|
2387
2354
|
|
|
2388
|
-
//
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2355
|
+
// --- wrapping struct: whatsapp.LoggedOut ---
|
|
2356
|
+
//
|
|
2357
|
+
//export whatsapp_LoggedOut_CTor
|
|
2358
|
+
func whatsapp_LoggedOut_CTor() CGoHandle {
|
|
2359
|
+
return CGoHandle(handleFromPtr_whatsapp_LoggedOut(&whatsapp.LoggedOut{}))
|
|
2392
2360
|
}
|
|
2393
2361
|
|
|
2394
|
-
//
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
2362
|
+
//export whatsapp_LoggedOut_Reason_Get
|
|
2363
|
+
func whatsapp_LoggedOut_Reason_Get(handle CGoHandle) *C.char {
|
|
2364
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
2365
|
+
return C.CString(op.Reason)
|
|
2399
2366
|
}
|
|
2400
2367
|
|
|
2401
|
-
//export
|
|
2402
|
-
func
|
|
2403
|
-
op :=
|
|
2404
|
-
|
|
2368
|
+
//export whatsapp_LoggedOut_Reason_Set
|
|
2369
|
+
func whatsapp_LoggedOut_Reason_Set(handle CGoHandle, val *C.char) {
|
|
2370
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
2371
|
+
op.Reason = C.GoString(val)
|
|
2405
2372
|
}
|
|
2406
2373
|
|
|
2407
|
-
//
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2374
|
+
// --- wrapping struct: whatsapp.Preview ---
|
|
2375
|
+
//
|
|
2376
|
+
//export whatsapp_Preview_CTor
|
|
2377
|
+
func whatsapp_Preview_CTor() CGoHandle {
|
|
2378
|
+
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
2411
2379
|
}
|
|
2412
2380
|
|
|
2413
|
-
//export
|
|
2414
|
-
func
|
|
2415
|
-
op :=
|
|
2416
|
-
return
|
|
2381
|
+
//export whatsapp_Preview_Kind_Get
|
|
2382
|
+
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
2383
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2384
|
+
return C.longlong(int(op.Kind))
|
|
2417
2385
|
}
|
|
2418
2386
|
|
|
2419
|
-
//export
|
|
2420
|
-
func
|
|
2421
|
-
op :=
|
|
2422
|
-
op.
|
|
2387
|
+
//export whatsapp_Preview_Kind_Set
|
|
2388
|
+
func whatsapp_Preview_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2389
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2390
|
+
op.Kind = whatsapp.PreviewKind(int(val))
|
|
2423
2391
|
}
|
|
2424
2392
|
|
|
2425
|
-
//
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
2393
|
+
//export whatsapp_Preview_URL_Get
|
|
2394
|
+
func whatsapp_Preview_URL_Get(handle CGoHandle) *C.char {
|
|
2395
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2396
|
+
return C.CString(op.URL)
|
|
2430
2397
|
}
|
|
2431
2398
|
|
|
2432
|
-
//export
|
|
2433
|
-
func
|
|
2434
|
-
op :=
|
|
2435
|
-
|
|
2399
|
+
//export whatsapp_Preview_URL_Set
|
|
2400
|
+
func whatsapp_Preview_URL_Set(handle CGoHandle, val *C.char) {
|
|
2401
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2402
|
+
op.URL = C.GoString(val)
|
|
2436
2403
|
}
|
|
2437
2404
|
|
|
2438
|
-
//export
|
|
2439
|
-
func
|
|
2440
|
-
op :=
|
|
2441
|
-
|
|
2405
|
+
//export whatsapp_Preview_Title_Get
|
|
2406
|
+
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
2407
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2408
|
+
return C.CString(op.Title)
|
|
2442
2409
|
}
|
|
2443
2410
|
|
|
2444
|
-
//export
|
|
2445
|
-
func
|
|
2446
|
-
op :=
|
|
2447
|
-
|
|
2411
|
+
//export whatsapp_Preview_Title_Set
|
|
2412
|
+
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
2413
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2414
|
+
op.Title = C.GoString(val)
|
|
2448
2415
|
}
|
|
2449
2416
|
|
|
2450
|
-
//export
|
|
2451
|
-
func
|
|
2452
|
-
op :=
|
|
2453
|
-
|
|
2417
|
+
//export whatsapp_Preview_Description_Get
|
|
2418
|
+
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
2419
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2420
|
+
return C.CString(op.Description)
|
|
2454
2421
|
}
|
|
2455
2422
|
|
|
2456
|
-
//export
|
|
2457
|
-
func
|
|
2458
|
-
op :=
|
|
2459
|
-
|
|
2423
|
+
//export whatsapp_Preview_Description_Set
|
|
2424
|
+
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
2425
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2426
|
+
op.Description = C.GoString(val)
|
|
2460
2427
|
}
|
|
2461
2428
|
|
|
2462
|
-
//export
|
|
2463
|
-
func
|
|
2464
|
-
op :=
|
|
2465
|
-
op.
|
|
2429
|
+
//export whatsapp_Preview_Thumbnail_Get
|
|
2430
|
+
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
2431
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2432
|
+
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
2466
2433
|
}
|
|
2467
2434
|
|
|
2468
|
-
//export
|
|
2469
|
-
func
|
|
2470
|
-
op :=
|
|
2471
|
-
|
|
2435
|
+
//export whatsapp_Preview_Thumbnail_Set
|
|
2436
|
+
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
2437
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2438
|
+
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
2472
2439
|
}
|
|
2473
2440
|
|
|
2474
|
-
//
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2441
|
+
// --- wrapping struct: whatsapp.Session ---
|
|
2442
|
+
//
|
|
2443
|
+
//export whatsapp_Session_CTor
|
|
2444
|
+
func whatsapp_Session_CTor() CGoHandle {
|
|
2445
|
+
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
2478
2446
|
}
|
|
2479
2447
|
|
|
2480
|
-
//export
|
|
2481
|
-
func
|
|
2448
|
+
//export whatsapp_Session_Login
|
|
2449
|
+
func whatsapp_Session_Login(_handle CGoHandle) *C.char {
|
|
2482
2450
|
_saved_thread := C.PyEval_SaveThread()
|
|
2483
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
2451
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2484
2452
|
if __err != nil {
|
|
2485
|
-
return
|
|
2453
|
+
return errorGoToPy(nil)
|
|
2486
2454
|
}
|
|
2487
|
-
|
|
2455
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
2488
2456
|
|
|
2489
2457
|
C.PyEval_RestoreThread(_saved_thread)
|
|
2490
2458
|
if __err != nil {
|
|
2491
2459
|
estr := C.CString(__err.Error())
|
|
2492
2460
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2493
|
-
|
|
2494
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2461
|
+
return estr
|
|
2495
2462
|
}
|
|
2496
|
-
return
|
|
2463
|
+
return C.CString("")
|
|
2497
2464
|
}
|
|
2498
2465
|
|
|
2499
|
-
//
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2466
|
+
//export whatsapp_Session_Logout
|
|
2467
|
+
func whatsapp_Session_Logout(_handle CGoHandle) *C.char {
|
|
2468
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2469
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2470
|
+
if __err != nil {
|
|
2471
|
+
return errorGoToPy(nil)
|
|
2472
|
+
}
|
|
2473
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
2505
2474
|
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2475
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2476
|
+
if __err != nil {
|
|
2477
|
+
estr := C.CString(__err.Error())
|
|
2478
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2479
|
+
return estr
|
|
2480
|
+
}
|
|
2481
|
+
return C.CString("")
|
|
2510
2482
|
}
|
|
2511
2483
|
|
|
2512
|
-
//export
|
|
2513
|
-
func
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2484
|
+
//export whatsapp_Session_Disconnect
|
|
2485
|
+
func whatsapp_Session_Disconnect(_handle CGoHandle) *C.char {
|
|
2486
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2487
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2488
|
+
if __err != nil {
|
|
2489
|
+
return errorGoToPy(nil)
|
|
2490
|
+
}
|
|
2491
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
2517
2492
|
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2493
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2494
|
+
if __err != nil {
|
|
2495
|
+
estr := C.CString(__err.Error())
|
|
2496
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2497
|
+
return estr
|
|
2498
|
+
}
|
|
2499
|
+
return C.CString("")
|
|
2522
2500
|
}
|
|
2523
2501
|
|
|
2524
|
-
//export
|
|
2525
|
-
func
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2502
|
+
//export whatsapp_Session_PairPhone
|
|
2503
|
+
func whatsapp_Session_PairPhone(_handle CGoHandle, phone *C.char) *C.char {
|
|
2504
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2505
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2506
|
+
if __err != nil {
|
|
2507
|
+
return C.CString("")
|
|
2508
|
+
}
|
|
2509
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
2529
2510
|
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2511
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2512
|
+
if __err != nil {
|
|
2513
|
+
estr := C.CString(__err.Error())
|
|
2514
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2515
|
+
C.free(unsafe.Pointer(estr))
|
|
2516
|
+
return C.CString("")
|
|
2517
|
+
}
|
|
2518
|
+
return C.CString(cret)
|
|
2534
2519
|
}
|
|
2535
2520
|
|
|
2536
|
-
//export
|
|
2537
|
-
func
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2521
|
+
//export whatsapp_Session_SendMessage
|
|
2522
|
+
func whatsapp_Session_SendMessage(_handle CGoHandle, message CGoHandle) *C.char {
|
|
2523
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2524
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2525
|
+
if __err != nil {
|
|
2526
|
+
return errorGoToPy(nil)
|
|
2527
|
+
}
|
|
2528
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
2541
2529
|
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2530
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2531
|
+
if __err != nil {
|
|
2532
|
+
estr := C.CString(__err.Error())
|
|
2533
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2534
|
+
return estr
|
|
2535
|
+
}
|
|
2536
|
+
return C.CString("")
|
|
2547
2537
|
}
|
|
2548
2538
|
|
|
2549
|
-
//export
|
|
2550
|
-
func
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
op.DBPath = C.GoString(val)
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
|
-
//export whatsapp_Gateway_Name_Get
|
|
2562
|
-
func whatsapp_Gateway_Name_Get(handle CGoHandle) *C.char {
|
|
2563
|
-
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2564
|
-
return C.CString(op.Name)
|
|
2565
|
-
}
|
|
2566
|
-
|
|
2567
|
-
//export whatsapp_Gateway_Name_Set
|
|
2568
|
-
func whatsapp_Gateway_Name_Set(handle CGoHandle, val *C.char) {
|
|
2569
|
-
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2570
|
-
op.Name = C.GoString(val)
|
|
2571
|
-
}
|
|
2572
|
-
|
|
2573
|
-
//export whatsapp_Gateway_LogLevel_Get
|
|
2574
|
-
func whatsapp_Gateway_LogLevel_Get(handle CGoHandle) *C.char {
|
|
2575
|
-
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2576
|
-
return C.CString(op.LogLevel)
|
|
2577
|
-
}
|
|
2578
|
-
|
|
2579
|
-
//export whatsapp_Gateway_LogLevel_Set
|
|
2580
|
-
func whatsapp_Gateway_LogLevel_Set(handle CGoHandle, val *C.char) {
|
|
2581
|
-
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2582
|
-
op.LogLevel = C.GoString(val)
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
//export whatsapp_Gateway_TempDir_Get
|
|
2586
|
-
func whatsapp_Gateway_TempDir_Get(handle CGoHandle) *C.char {
|
|
2587
|
-
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2588
|
-
return C.CString(op.TempDir)
|
|
2589
|
-
}
|
|
2539
|
+
//export whatsapp_Session_GenerateMessageID
|
|
2540
|
+
func whatsapp_Session_GenerateMessageID(_handle CGoHandle) *C.char {
|
|
2541
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2542
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2543
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2544
|
+
if __err != nil {
|
|
2545
|
+
return C.CString("")
|
|
2546
|
+
}
|
|
2547
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
2590
2548
|
|
|
2591
|
-
//export whatsapp_Gateway_TempDir_Set
|
|
2592
|
-
func whatsapp_Gateway_TempDir_Set(handle CGoHandle, val *C.char) {
|
|
2593
|
-
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2594
|
-
op.TempDir = C.GoString(val)
|
|
2595
2549
|
}
|
|
2596
2550
|
|
|
2597
|
-
//export
|
|
2598
|
-
func
|
|
2551
|
+
//export whatsapp_Session_SendChatState
|
|
2552
|
+
func whatsapp_Session_SendChatState(_handle CGoHandle, state CGoHandle) *C.char {
|
|
2599
2553
|
_saved_thread := C.PyEval_SaveThread()
|
|
2600
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
2554
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2601
2555
|
if __err != nil {
|
|
2602
2556
|
return errorGoToPy(nil)
|
|
2603
2557
|
}
|
|
2604
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
2558
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
2605
2559
|
|
|
2606
2560
|
C.PyEval_RestoreThread(_saved_thread)
|
|
2607
2561
|
if __err != nil {
|
|
@@ -2612,26 +2566,32 @@ func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
|
2612
2566
|
return C.CString("")
|
|
2613
2567
|
}
|
|
2614
2568
|
|
|
2615
|
-
//export
|
|
2616
|
-
func
|
|
2569
|
+
//export whatsapp_Session_SendReceipt
|
|
2570
|
+
func whatsapp_Session_SendReceipt(_handle CGoHandle, receipt CGoHandle) *C.char {
|
|
2617
2571
|
_saved_thread := C.PyEval_SaveThread()
|
|
2618
|
-
|
|
2619
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2572
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2620
2573
|
if __err != nil {
|
|
2621
|
-
return
|
|
2574
|
+
return errorGoToPy(nil)
|
|
2622
2575
|
}
|
|
2623
|
-
|
|
2576
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
2624
2577
|
|
|
2578
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2579
|
+
if __err != nil {
|
|
2580
|
+
estr := C.CString(__err.Error())
|
|
2581
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2582
|
+
return estr
|
|
2583
|
+
}
|
|
2584
|
+
return C.CString("")
|
|
2625
2585
|
}
|
|
2626
2586
|
|
|
2627
|
-
//export
|
|
2628
|
-
func
|
|
2587
|
+
//export whatsapp_Session_SendPresence
|
|
2588
|
+
func whatsapp_Session_SendPresence(_handle CGoHandle, presence C.longlong, statusMessage *C.char) *C.char {
|
|
2629
2589
|
_saved_thread := C.PyEval_SaveThread()
|
|
2630
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
2590
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2631
2591
|
if __err != nil {
|
|
2632
2592
|
return errorGoToPy(nil)
|
|
2633
2593
|
}
|
|
2634
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
2594
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
2635
2595
|
|
|
2636
2596
|
C.PyEval_RestoreThread(_saved_thread)
|
|
2637
2597
|
if __err != nil {
|
|
@@ -2642,157 +2602,249 @@ func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.cha
|
|
|
2642
2602
|
return C.CString("")
|
|
2643
2603
|
}
|
|
2644
2604
|
|
|
2645
|
-
//
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2605
|
+
//export whatsapp_Session_GetContacts
|
|
2606
|
+
func whatsapp_Session_GetContacts(_handle CGoHandle, refresh C.char) CGoHandle {
|
|
2607
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2608
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2609
|
+
if __err != nil {
|
|
2610
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2611
|
+
}
|
|
2612
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
2651
2613
|
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2614
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2615
|
+
if __err != nil {
|
|
2616
|
+
estr := C.CString(__err.Error())
|
|
2617
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2618
|
+
C.free(unsafe.Pointer(estr))
|
|
2619
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2620
|
+
}
|
|
2621
|
+
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
2656
2622
|
}
|
|
2657
2623
|
|
|
2658
|
-
//export
|
|
2659
|
-
func
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2624
|
+
//export whatsapp_Session_GetGroups
|
|
2625
|
+
func whatsapp_Session_GetGroups(_handle CGoHandle) CGoHandle {
|
|
2626
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2627
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2628
|
+
if __err != nil {
|
|
2629
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2630
|
+
}
|
|
2631
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
2663
2632
|
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2633
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2634
|
+
if __err != nil {
|
|
2635
|
+
estr := C.CString(__err.Error())
|
|
2636
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2637
|
+
C.free(unsafe.Pointer(estr))
|
|
2638
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2639
|
+
}
|
|
2640
|
+
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
2668
2641
|
}
|
|
2669
2642
|
|
|
2670
|
-
//export
|
|
2671
|
-
func
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2643
|
+
//export whatsapp_Session_CreateGroup
|
|
2644
|
+
func whatsapp_Session_CreateGroup(_handle CGoHandle, name *C.char, participants CGoHandle) CGoHandle {
|
|
2645
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2646
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2647
|
+
if __err != nil {
|
|
2648
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2649
|
+
}
|
|
2650
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
2675
2651
|
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2652
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2653
|
+
if __err != nil {
|
|
2654
|
+
estr := C.CString(__err.Error())
|
|
2655
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2656
|
+
C.free(unsafe.Pointer(estr))
|
|
2657
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2658
|
+
}
|
|
2659
|
+
return handleFromPtr_whatsapp_Group(&cret)
|
|
2680
2660
|
}
|
|
2681
2661
|
|
|
2682
|
-
//export
|
|
2683
|
-
func
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2662
|
+
//export whatsapp_Session_LeaveGroup
|
|
2663
|
+
func whatsapp_Session_LeaveGroup(_handle CGoHandle, resourceID *C.char) *C.char {
|
|
2664
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2665
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2666
|
+
if __err != nil {
|
|
2667
|
+
return errorGoToPy(nil)
|
|
2668
|
+
}
|
|
2669
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
2687
2670
|
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2671
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2672
|
+
if __err != nil {
|
|
2673
|
+
estr := C.CString(__err.Error())
|
|
2674
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2675
|
+
return estr
|
|
2676
|
+
}
|
|
2677
|
+
return C.CString("")
|
|
2693
2678
|
}
|
|
2694
2679
|
|
|
2695
|
-
//export
|
|
2696
|
-
func
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2680
|
+
//export whatsapp_Session_GetAvatar
|
|
2681
|
+
func whatsapp_Session_GetAvatar(_handle CGoHandle, resourceID *C.char, avatarID *C.char) CGoHandle {
|
|
2682
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2683
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2684
|
+
if __err != nil {
|
|
2685
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2686
|
+
}
|
|
2687
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
2700
2688
|
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2689
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2690
|
+
if __err != nil {
|
|
2691
|
+
estr := C.CString(__err.Error())
|
|
2692
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2693
|
+
C.free(unsafe.Pointer(estr))
|
|
2694
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2695
|
+
}
|
|
2696
|
+
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
2705
2697
|
}
|
|
2706
2698
|
|
|
2707
|
-
//export
|
|
2708
|
-
func
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2699
|
+
//export whatsapp_Session_SetAvatar
|
|
2700
|
+
func whatsapp_Session_SetAvatar(_handle CGoHandle, resourceID *C.char, avatar CGoHandle) *C.char {
|
|
2701
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2702
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2703
|
+
if __err != nil {
|
|
2704
|
+
return C.CString("")
|
|
2705
|
+
}
|
|
2706
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
2712
2707
|
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2708
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2709
|
+
if __err != nil {
|
|
2710
|
+
estr := C.CString(__err.Error())
|
|
2711
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2712
|
+
C.free(unsafe.Pointer(estr))
|
|
2713
|
+
return C.CString("")
|
|
2714
|
+
}
|
|
2715
|
+
return C.CString(cret)
|
|
2717
2716
|
}
|
|
2718
2717
|
|
|
2719
|
-
//export
|
|
2720
|
-
func
|
|
2721
|
-
|
|
2722
|
-
|
|
2718
|
+
//export whatsapp_Session_SetGroupName
|
|
2719
|
+
func whatsapp_Session_SetGroupName(_handle CGoHandle, resourceID *C.char, name *C.char) *C.char {
|
|
2720
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2721
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2722
|
+
if __err != nil {
|
|
2723
|
+
return errorGoToPy(nil)
|
|
2724
|
+
}
|
|
2725
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
2726
|
+
|
|
2727
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2728
|
+
if __err != nil {
|
|
2729
|
+
estr := C.CString(__err.Error())
|
|
2730
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2731
|
+
return estr
|
|
2732
|
+
}
|
|
2733
|
+
return C.CString("")
|
|
2723
2734
|
}
|
|
2724
2735
|
|
|
2725
|
-
//export
|
|
2726
|
-
func
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
//export whatsapp_Preview_CTor
|
|
2734
|
-
func whatsapp_Preview_CTor() CGoHandle {
|
|
2735
|
-
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
2736
|
-
}
|
|
2737
|
-
|
|
2738
|
-
//export whatsapp_Preview_Kind_Get
|
|
2739
|
-
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
2740
|
-
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2741
|
-
return C.longlong(int(op.Kind))
|
|
2742
|
-
}
|
|
2743
|
-
|
|
2744
|
-
//export whatsapp_Preview_Kind_Set
|
|
2745
|
-
func whatsapp_Preview_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2746
|
-
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2747
|
-
op.Kind = whatsapp.PreviewKind(int(val))
|
|
2748
|
-
}
|
|
2736
|
+
//export whatsapp_Session_SetGroupTopic
|
|
2737
|
+
func whatsapp_Session_SetGroupTopic(_handle CGoHandle, resourceID *C.char, topic *C.char) *C.char {
|
|
2738
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2739
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2740
|
+
if __err != nil {
|
|
2741
|
+
return errorGoToPy(nil)
|
|
2742
|
+
}
|
|
2743
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
2749
2744
|
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2745
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2746
|
+
if __err != nil {
|
|
2747
|
+
estr := C.CString(__err.Error())
|
|
2748
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2749
|
+
return estr
|
|
2750
|
+
}
|
|
2751
|
+
return C.CString("")
|
|
2754
2752
|
}
|
|
2755
2753
|
|
|
2756
|
-
//export
|
|
2757
|
-
func
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2754
|
+
//export whatsapp_Session_UpdateGroupParticipants
|
|
2755
|
+
func whatsapp_Session_UpdateGroupParticipants(_handle CGoHandle, resourceID *C.char, participants CGoHandle) CGoHandle {
|
|
2756
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2757
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2758
|
+
if __err != nil {
|
|
2759
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2760
|
+
}
|
|
2761
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
2761
2762
|
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2763
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2764
|
+
if __err != nil {
|
|
2765
|
+
estr := C.CString(__err.Error())
|
|
2766
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2767
|
+
C.free(unsafe.Pointer(estr))
|
|
2768
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2769
|
+
}
|
|
2770
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
2766
2771
|
}
|
|
2767
2772
|
|
|
2768
|
-
//export
|
|
2769
|
-
func
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
+
//export whatsapp_Session_FindContact
|
|
2774
|
+
func whatsapp_Session_FindContact(_handle CGoHandle, phone *C.char) CGoHandle {
|
|
2775
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2776
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2777
|
+
if __err != nil {
|
|
2778
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2779
|
+
}
|
|
2780
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
2773
2781
|
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2782
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2783
|
+
if __err != nil {
|
|
2784
|
+
estr := C.CString(__err.Error())
|
|
2785
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2786
|
+
C.free(unsafe.Pointer(estr))
|
|
2787
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2788
|
+
}
|
|
2789
|
+
return handleFromPtr_whatsapp_Contact(&cret)
|
|
2778
2790
|
}
|
|
2779
2791
|
|
|
2780
|
-
//export
|
|
2781
|
-
func
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2792
|
+
//export whatsapp_Session_RequestMessageHistory
|
|
2793
|
+
func whatsapp_Session_RequestMessageHistory(_handle CGoHandle, resourceID *C.char, oldestMessage CGoHandle) *C.char {
|
|
2794
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2795
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2796
|
+
if __err != nil {
|
|
2797
|
+
return errorGoToPy(nil)
|
|
2798
|
+
}
|
|
2799
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
2785
2800
|
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2801
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2802
|
+
if __err != nil {
|
|
2803
|
+
estr := C.CString(__err.Error())
|
|
2804
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2805
|
+
return estr
|
|
2806
|
+
}
|
|
2807
|
+
return C.CString("")
|
|
2790
2808
|
}
|
|
2791
2809
|
|
|
2792
|
-
//export
|
|
2793
|
-
func
|
|
2794
|
-
|
|
2795
|
-
|
|
2810
|
+
//export whatsapp_Session_SetEventHandler
|
|
2811
|
+
func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.char) {
|
|
2812
|
+
_fun_arg := h
|
|
2813
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2814
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2815
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2816
|
+
if __err != nil {
|
|
2817
|
+
return
|
|
2818
|
+
}
|
|
2819
|
+
if boolPyToGo(goRun) {
|
|
2820
|
+
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2821
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2822
|
+
return
|
|
2823
|
+
}
|
|
2824
|
+
_gstate := C.PyGILState_Ensure()
|
|
2825
|
+
_fcargs := C.PyTuple_New(2)
|
|
2826
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2827
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2828
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2829
|
+
C.gopy_decref(_fcargs)
|
|
2830
|
+
C.gopy_err_handle()
|
|
2831
|
+
C.PyGILState_Release(_gstate)
|
|
2832
|
+
})
|
|
2833
|
+
} else {
|
|
2834
|
+
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2835
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2836
|
+
return
|
|
2837
|
+
}
|
|
2838
|
+
_gstate := C.PyGILState_Ensure()
|
|
2839
|
+
_fcargs := C.PyTuple_New(2)
|
|
2840
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2841
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2842
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2843
|
+
C.gopy_decref(_fcargs)
|
|
2844
|
+
C.gopy_err_handle()
|
|
2845
|
+
C.PyGILState_Release(_gstate)
|
|
2846
|
+
})
|
|
2847
|
+
}
|
|
2796
2848
|
}
|
|
2797
2849
|
|
|
2798
2850
|
// --- wrapping struct: whatsapp.Avatar ---
|
|
@@ -2826,904 +2878,773 @@ func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
|
2826
2878
|
op.URL = C.GoString(val)
|
|
2827
2879
|
}
|
|
2828
2880
|
|
|
2829
|
-
// --- wrapping struct: whatsapp.
|
|
2881
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
2830
2882
|
//
|
|
2831
|
-
//export
|
|
2832
|
-
func
|
|
2833
|
-
return CGoHandle(
|
|
2883
|
+
//export whatsapp_GroupSubject_CTor
|
|
2884
|
+
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
2885
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
2834
2886
|
}
|
|
2835
2887
|
|
|
2836
|
-
//export
|
|
2837
|
-
func
|
|
2838
|
-
op :=
|
|
2839
|
-
return C.CString(op.
|
|
2888
|
+
//export whatsapp_GroupSubject_Subject_Get
|
|
2889
|
+
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
2890
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2891
|
+
return C.CString(op.Subject)
|
|
2840
2892
|
}
|
|
2841
2893
|
|
|
2842
|
-
//export
|
|
2843
|
-
func
|
|
2844
|
-
op :=
|
|
2845
|
-
op.
|
|
2894
|
+
//export whatsapp_GroupSubject_Subject_Set
|
|
2895
|
+
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
2896
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2897
|
+
op.Subject = C.GoString(val)
|
|
2846
2898
|
}
|
|
2847
2899
|
|
|
2848
|
-
//export
|
|
2849
|
-
func
|
|
2850
|
-
op :=
|
|
2851
|
-
return C.
|
|
2900
|
+
//export whatsapp_GroupSubject_SetAt_Get
|
|
2901
|
+
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
2902
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2903
|
+
return C.longlong(op.SetAt)
|
|
2852
2904
|
}
|
|
2853
2905
|
|
|
2854
|
-
//export
|
|
2855
|
-
func
|
|
2856
|
-
op :=
|
|
2857
|
-
op.
|
|
2906
|
+
//export whatsapp_GroupSubject_SetAt_Set
|
|
2907
|
+
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
2908
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2909
|
+
op.SetAt = int64(val)
|
|
2858
2910
|
}
|
|
2859
2911
|
|
|
2860
|
-
//export
|
|
2861
|
-
func
|
|
2862
|
-
op :=
|
|
2863
|
-
return
|
|
2912
|
+
//export whatsapp_GroupSubject_SetBy_Get
|
|
2913
|
+
func whatsapp_GroupSubject_SetBy_Get(handle CGoHandle) *C.char {
|
|
2914
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2915
|
+
return C.CString(op.SetBy)
|
|
2864
2916
|
}
|
|
2865
2917
|
|
|
2866
|
-
//export
|
|
2867
|
-
func
|
|
2868
|
-
op :=
|
|
2869
|
-
op.
|
|
2918
|
+
//export whatsapp_GroupSubject_SetBy_Set
|
|
2919
|
+
func whatsapp_GroupSubject_SetBy_Set(handle CGoHandle, val *C.char) {
|
|
2920
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2921
|
+
op.SetBy = C.GoString(val)
|
|
2870
2922
|
}
|
|
2871
2923
|
|
|
2872
|
-
//
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2924
|
+
// --- wrapping struct: whatsapp.Location ---
|
|
2925
|
+
//
|
|
2926
|
+
//export whatsapp_Location_CTor
|
|
2927
|
+
func whatsapp_Location_CTor() CGoHandle {
|
|
2928
|
+
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
2876
2929
|
}
|
|
2877
2930
|
|
|
2878
|
-
//export
|
|
2879
|
-
func
|
|
2880
|
-
op :=
|
|
2881
|
-
op.
|
|
2931
|
+
//export whatsapp_Location_Latitude_Get
|
|
2932
|
+
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
2933
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2934
|
+
return C.double(op.Latitude)
|
|
2882
2935
|
}
|
|
2883
2936
|
|
|
2884
|
-
//export
|
|
2885
|
-
func
|
|
2886
|
-
op :=
|
|
2887
|
-
|
|
2937
|
+
//export whatsapp_Location_Latitude_Set
|
|
2938
|
+
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
2939
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2940
|
+
op.Latitude = float64(val)
|
|
2888
2941
|
}
|
|
2889
2942
|
|
|
2890
|
-
//export
|
|
2891
|
-
func
|
|
2892
|
-
op :=
|
|
2893
|
-
op.
|
|
2943
|
+
//export whatsapp_Location_Longitude_Get
|
|
2944
|
+
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
2945
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2946
|
+
return C.double(op.Longitude)
|
|
2894
2947
|
}
|
|
2895
2948
|
|
|
2896
|
-
//export
|
|
2897
|
-
func
|
|
2898
|
-
op :=
|
|
2899
|
-
|
|
2949
|
+
//export whatsapp_Location_Longitude_Set
|
|
2950
|
+
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
2951
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2952
|
+
op.Longitude = float64(val)
|
|
2900
2953
|
}
|
|
2901
2954
|
|
|
2902
|
-
//export
|
|
2903
|
-
func
|
|
2904
|
-
op :=
|
|
2905
|
-
op.
|
|
2955
|
+
//export whatsapp_Location_Accuracy_Get
|
|
2956
|
+
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
2957
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2958
|
+
return C.longlong(op.Accuracy)
|
|
2906
2959
|
}
|
|
2907
2960
|
|
|
2908
|
-
//export
|
|
2909
|
-
func
|
|
2910
|
-
op :=
|
|
2911
|
-
|
|
2961
|
+
//export whatsapp_Location_Accuracy_Set
|
|
2962
|
+
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
2963
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2964
|
+
op.Accuracy = int(val)
|
|
2912
2965
|
}
|
|
2913
2966
|
|
|
2914
|
-
//export
|
|
2915
|
-
func
|
|
2916
|
-
op :=
|
|
2917
|
-
op.
|
|
2967
|
+
//export whatsapp_Location_IsLive_Get
|
|
2968
|
+
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
2969
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2970
|
+
return boolGoToPy(op.IsLive)
|
|
2918
2971
|
}
|
|
2919
2972
|
|
|
2920
|
-
//export
|
|
2921
|
-
func
|
|
2922
|
-
op :=
|
|
2923
|
-
|
|
2973
|
+
//export whatsapp_Location_IsLive_Set
|
|
2974
|
+
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
2975
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2976
|
+
op.IsLive = boolPyToGo(val)
|
|
2924
2977
|
}
|
|
2925
2978
|
|
|
2926
|
-
//export
|
|
2927
|
-
func
|
|
2928
|
-
op :=
|
|
2929
|
-
op.
|
|
2979
|
+
//export whatsapp_Location_Name_Get
|
|
2980
|
+
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
2981
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2982
|
+
return C.CString(op.Name)
|
|
2930
2983
|
}
|
|
2931
2984
|
|
|
2932
|
-
//export
|
|
2933
|
-
func
|
|
2934
|
-
op :=
|
|
2935
|
-
|
|
2985
|
+
//export whatsapp_Location_Name_Set
|
|
2986
|
+
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
2987
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2988
|
+
op.Name = C.GoString(val)
|
|
2936
2989
|
}
|
|
2937
2990
|
|
|
2938
|
-
//export
|
|
2939
|
-
func
|
|
2940
|
-
op :=
|
|
2941
|
-
op.
|
|
2991
|
+
//export whatsapp_Location_Address_Get
|
|
2992
|
+
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
2993
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2994
|
+
return C.CString(op.Address)
|
|
2942
2995
|
}
|
|
2943
2996
|
|
|
2944
|
-
//export
|
|
2945
|
-
func
|
|
2946
|
-
op :=
|
|
2947
|
-
|
|
2997
|
+
//export whatsapp_Location_Address_Set
|
|
2998
|
+
func whatsapp_Location_Address_Set(handle CGoHandle, val *C.char) {
|
|
2999
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3000
|
+
op.Address = C.GoString(val)
|
|
2948
3001
|
}
|
|
2949
3002
|
|
|
2950
|
-
//export
|
|
2951
|
-
func
|
|
2952
|
-
op :=
|
|
2953
|
-
op.
|
|
3003
|
+
//export whatsapp_Location_URL_Get
|
|
3004
|
+
func whatsapp_Location_URL_Get(handle CGoHandle) *C.char {
|
|
3005
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3006
|
+
return C.CString(op.URL)
|
|
2954
3007
|
}
|
|
2955
3008
|
|
|
2956
|
-
//
|
|
3009
|
+
//export whatsapp_Location_URL_Set
|
|
3010
|
+
func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
3011
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3012
|
+
op.URL = C.GoString(val)
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
// --- wrapping struct: whatsapp.PollOption ---
|
|
2957
3016
|
//
|
|
2958
|
-
//export
|
|
2959
|
-
func
|
|
2960
|
-
return CGoHandle(
|
|
3017
|
+
//export whatsapp_PollOption_CTor
|
|
3018
|
+
func whatsapp_PollOption_CTor() CGoHandle {
|
|
3019
|
+
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
2961
3020
|
}
|
|
2962
3021
|
|
|
2963
|
-
//export
|
|
2964
|
-
func
|
|
2965
|
-
op :=
|
|
2966
|
-
return C.CString(op.
|
|
3022
|
+
//export whatsapp_PollOption_Title_Get
|
|
3023
|
+
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
3024
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3025
|
+
return C.CString(op.Title)
|
|
2967
3026
|
}
|
|
2968
3027
|
|
|
2969
|
-
//export
|
|
2970
|
-
func
|
|
2971
|
-
op :=
|
|
2972
|
-
op.
|
|
3028
|
+
//export whatsapp_PollOption_Title_Set
|
|
3029
|
+
func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
3030
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3031
|
+
op.Title = C.GoString(val)
|
|
2973
3032
|
}
|
|
2974
3033
|
|
|
2975
|
-
//
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
3034
|
+
// --- wrapping struct: whatsapp.Presence ---
|
|
3035
|
+
//
|
|
3036
|
+
//export whatsapp_Presence_CTor
|
|
3037
|
+
func whatsapp_Presence_CTor() CGoHandle {
|
|
3038
|
+
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
2979
3039
|
}
|
|
2980
3040
|
|
|
2981
|
-
//export
|
|
2982
|
-
func
|
|
2983
|
-
op :=
|
|
2984
|
-
|
|
3041
|
+
//export whatsapp_Presence_JID_Get
|
|
3042
|
+
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
3043
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3044
|
+
return C.CString(op.JID)
|
|
2985
3045
|
}
|
|
2986
3046
|
|
|
2987
|
-
//
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
3047
|
+
//export whatsapp_Presence_JID_Set
|
|
3048
|
+
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
3049
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3050
|
+
op.JID = C.GoString(val)
|
|
2992
3051
|
}
|
|
2993
3052
|
|
|
2994
|
-
//export
|
|
2995
|
-
func
|
|
2996
|
-
op :=
|
|
3053
|
+
//export whatsapp_Presence_Kind_Get
|
|
3054
|
+
func whatsapp_Presence_Kind_Get(handle CGoHandle) C.longlong {
|
|
3055
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2997
3056
|
return C.longlong(int(op.Kind))
|
|
2998
3057
|
}
|
|
2999
3058
|
|
|
3000
|
-
//export
|
|
3001
|
-
func
|
|
3002
|
-
op :=
|
|
3003
|
-
op.Kind = whatsapp.
|
|
3059
|
+
//export whatsapp_Presence_Kind_Set
|
|
3060
|
+
func whatsapp_Presence_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3061
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3062
|
+
op.Kind = whatsapp.PresenceKind(int(val))
|
|
3004
3063
|
}
|
|
3005
3064
|
|
|
3006
|
-
//export
|
|
3007
|
-
func
|
|
3008
|
-
op :=
|
|
3009
|
-
return C.
|
|
3065
|
+
//export whatsapp_Presence_LastSeen_Get
|
|
3066
|
+
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
3067
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3068
|
+
return C.longlong(op.LastSeen)
|
|
3010
3069
|
}
|
|
3011
3070
|
|
|
3012
|
-
//export
|
|
3013
|
-
func
|
|
3014
|
-
op :=
|
|
3015
|
-
op.
|
|
3071
|
+
//export whatsapp_Presence_LastSeen_Set
|
|
3072
|
+
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
3073
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3074
|
+
op.LastSeen = int64(val)
|
|
3016
3075
|
}
|
|
3017
3076
|
|
|
3018
|
-
//
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3077
|
+
// --- wrapping struct: whatsapp.Attachment ---
|
|
3078
|
+
//
|
|
3079
|
+
//export whatsapp_Attachment_CTor
|
|
3080
|
+
func whatsapp_Attachment_CTor() CGoHandle {
|
|
3081
|
+
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
3022
3082
|
}
|
|
3023
3083
|
|
|
3024
|
-
//export
|
|
3025
|
-
func
|
|
3026
|
-
op :=
|
|
3027
|
-
|
|
3084
|
+
//export whatsapp_Attachment_MIME_Get
|
|
3085
|
+
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
3086
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3087
|
+
return C.CString(op.MIME)
|
|
3028
3088
|
}
|
|
3029
3089
|
|
|
3030
|
-
//export
|
|
3031
|
-
func
|
|
3032
|
-
op :=
|
|
3033
|
-
|
|
3090
|
+
//export whatsapp_Attachment_MIME_Set
|
|
3091
|
+
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
3092
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3093
|
+
op.MIME = C.GoString(val)
|
|
3034
3094
|
}
|
|
3035
3095
|
|
|
3036
|
-
//export
|
|
3037
|
-
func
|
|
3038
|
-
op :=
|
|
3039
|
-
|
|
3096
|
+
//export whatsapp_Attachment_Filename_Get
|
|
3097
|
+
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
3098
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3099
|
+
return C.CString(op.Filename)
|
|
3040
3100
|
}
|
|
3041
3101
|
|
|
3042
|
-
//export
|
|
3043
|
-
func
|
|
3044
|
-
op :=
|
|
3045
|
-
|
|
3102
|
+
//export whatsapp_Attachment_Filename_Set
|
|
3103
|
+
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
3104
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3105
|
+
op.Filename = C.GoString(val)
|
|
3046
3106
|
}
|
|
3047
3107
|
|
|
3048
|
-
//export
|
|
3049
|
-
func
|
|
3050
|
-
op :=
|
|
3051
|
-
|
|
3108
|
+
//export whatsapp_Attachment_Caption_Get
|
|
3109
|
+
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
3110
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3111
|
+
return C.CString(op.Caption)
|
|
3052
3112
|
}
|
|
3053
3113
|
|
|
3054
|
-
//export
|
|
3055
|
-
func
|
|
3056
|
-
op :=
|
|
3057
|
-
|
|
3114
|
+
//export whatsapp_Attachment_Caption_Set
|
|
3115
|
+
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
3116
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3117
|
+
op.Caption = C.GoString(val)
|
|
3058
3118
|
}
|
|
3059
3119
|
|
|
3060
|
-
//export
|
|
3061
|
-
func
|
|
3062
|
-
op :=
|
|
3063
|
-
op.
|
|
3120
|
+
//export whatsapp_Attachment_Data_Get
|
|
3121
|
+
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
3122
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3123
|
+
return handleFromPtr_Slice_byte(&op.Data)
|
|
3064
3124
|
}
|
|
3065
3125
|
|
|
3066
|
-
//export
|
|
3067
|
-
func
|
|
3068
|
-
op :=
|
|
3069
|
-
|
|
3126
|
+
//export whatsapp_Attachment_Data_Set
|
|
3127
|
+
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
3128
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3129
|
+
op.Data = deptrFromHandle_Slice_byte(val)
|
|
3070
3130
|
}
|
|
3071
3131
|
|
|
3072
|
-
//export
|
|
3073
|
-
func
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3132
|
+
//export whatsapp_Attachment_GetSpec
|
|
3133
|
+
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
3134
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3135
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
3136
|
+
if __err != nil {
|
|
3137
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3138
|
+
}
|
|
3139
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
3077
3140
|
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3141
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3142
|
+
if __err != nil {
|
|
3143
|
+
estr := C.CString(__err.Error())
|
|
3144
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3145
|
+
C.free(unsafe.Pointer(estr))
|
|
3146
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3147
|
+
}
|
|
3148
|
+
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3082
3149
|
}
|
|
3083
3150
|
|
|
3084
|
-
//
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3151
|
+
// --- wrapping struct: whatsapp.Call ---
|
|
3152
|
+
//
|
|
3153
|
+
//export whatsapp_Call_CTor
|
|
3154
|
+
func whatsapp_Call_CTor() CGoHandle {
|
|
3155
|
+
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
3088
3156
|
}
|
|
3089
3157
|
|
|
3090
|
-
//export
|
|
3091
|
-
func
|
|
3092
|
-
op :=
|
|
3093
|
-
return
|
|
3158
|
+
//export whatsapp_Call_State_Get
|
|
3159
|
+
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
3160
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3161
|
+
return C.longlong(int(op.State))
|
|
3094
3162
|
}
|
|
3095
3163
|
|
|
3096
|
-
//export
|
|
3097
|
-
func
|
|
3098
|
-
op :=
|
|
3099
|
-
op.
|
|
3164
|
+
//export whatsapp_Call_State_Set
|
|
3165
|
+
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
3166
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3167
|
+
op.State = whatsapp.CallState(int(val))
|
|
3100
3168
|
}
|
|
3101
3169
|
|
|
3102
|
-
//export
|
|
3103
|
-
func
|
|
3104
|
-
op :=
|
|
3105
|
-
return C.CString(op.
|
|
3170
|
+
//export whatsapp_Call_JID_Get
|
|
3171
|
+
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
3172
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3173
|
+
return C.CString(op.JID)
|
|
3106
3174
|
}
|
|
3107
3175
|
|
|
3108
|
-
//export
|
|
3109
|
-
func
|
|
3110
|
-
op :=
|
|
3111
|
-
op.
|
|
3176
|
+
//export whatsapp_Call_JID_Set
|
|
3177
|
+
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
3178
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3179
|
+
op.JID = C.GoString(val)
|
|
3112
3180
|
}
|
|
3113
3181
|
|
|
3114
|
-
//export
|
|
3115
|
-
func
|
|
3116
|
-
op :=
|
|
3117
|
-
return C.
|
|
3182
|
+
//export whatsapp_Call_Timestamp_Get
|
|
3183
|
+
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3184
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3185
|
+
return C.longlong(op.Timestamp)
|
|
3118
3186
|
}
|
|
3119
3187
|
|
|
3120
|
-
//export
|
|
3121
|
-
func
|
|
3122
|
-
op :=
|
|
3123
|
-
op.
|
|
3188
|
+
//export whatsapp_Call_Timestamp_Set
|
|
3189
|
+
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3190
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3191
|
+
op.Timestamp = int64(val)
|
|
3124
3192
|
}
|
|
3125
3193
|
|
|
3126
|
-
//
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3194
|
+
// --- wrapping struct: whatsapp.Contact ---
|
|
3195
|
+
//
|
|
3196
|
+
//export whatsapp_Contact_CTor
|
|
3197
|
+
func whatsapp_Contact_CTor() CGoHandle {
|
|
3198
|
+
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
3130
3199
|
}
|
|
3131
3200
|
|
|
3132
|
-
//export
|
|
3133
|
-
func
|
|
3134
|
-
op :=
|
|
3135
|
-
op.
|
|
3201
|
+
//export whatsapp_Contact_JID_Get
|
|
3202
|
+
func whatsapp_Contact_JID_Get(handle CGoHandle) *C.char {
|
|
3203
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3204
|
+
return C.CString(op.JID)
|
|
3136
3205
|
}
|
|
3137
3206
|
|
|
3138
|
-
//export
|
|
3139
|
-
func
|
|
3140
|
-
op :=
|
|
3141
|
-
|
|
3207
|
+
//export whatsapp_Contact_JID_Set
|
|
3208
|
+
func whatsapp_Contact_JID_Set(handle CGoHandle, val *C.char) {
|
|
3209
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3210
|
+
op.JID = C.GoString(val)
|
|
3142
3211
|
}
|
|
3143
3212
|
|
|
3144
|
-
//export
|
|
3145
|
-
func
|
|
3146
|
-
op :=
|
|
3147
|
-
op.
|
|
3213
|
+
//export whatsapp_Contact_Name_Get
|
|
3214
|
+
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
3215
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3216
|
+
return C.CString(op.Name)
|
|
3148
3217
|
}
|
|
3149
3218
|
|
|
3150
|
-
//export
|
|
3151
|
-
func
|
|
3152
|
-
op :=
|
|
3153
|
-
|
|
3219
|
+
//export whatsapp_Contact_Name_Set
|
|
3220
|
+
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
3221
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3222
|
+
op.Name = C.GoString(val)
|
|
3154
3223
|
}
|
|
3155
3224
|
|
|
3156
|
-
//
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3225
|
+
// --- wrapping struct: whatsapp.Gateway ---
|
|
3226
|
+
//
|
|
3227
|
+
//export whatsapp_Gateway_CTor
|
|
3228
|
+
func whatsapp_Gateway_CTor() CGoHandle {
|
|
3229
|
+
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
3160
3230
|
}
|
|
3161
3231
|
|
|
3162
|
-
//export
|
|
3163
|
-
func
|
|
3164
|
-
op :=
|
|
3165
|
-
return
|
|
3232
|
+
//export whatsapp_Gateway_DBPath_Get
|
|
3233
|
+
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
3234
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3235
|
+
return C.CString(op.DBPath)
|
|
3166
3236
|
}
|
|
3167
3237
|
|
|
3168
|
-
//export
|
|
3169
|
-
func
|
|
3170
|
-
op :=
|
|
3171
|
-
op.
|
|
3238
|
+
//export whatsapp_Gateway_DBPath_Set
|
|
3239
|
+
func whatsapp_Gateway_DBPath_Set(handle CGoHandle, val *C.char) {
|
|
3240
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3241
|
+
op.DBPath = C.GoString(val)
|
|
3172
3242
|
}
|
|
3173
3243
|
|
|
3174
|
-
//export
|
|
3175
|
-
func
|
|
3176
|
-
op :=
|
|
3177
|
-
return
|
|
3244
|
+
//export whatsapp_Gateway_Name_Get
|
|
3245
|
+
func whatsapp_Gateway_Name_Get(handle CGoHandle) *C.char {
|
|
3246
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3247
|
+
return C.CString(op.Name)
|
|
3178
3248
|
}
|
|
3179
3249
|
|
|
3180
|
-
//export
|
|
3181
|
-
func
|
|
3182
|
-
op :=
|
|
3183
|
-
op.
|
|
3250
|
+
//export whatsapp_Gateway_Name_Set
|
|
3251
|
+
func whatsapp_Gateway_Name_Set(handle CGoHandle, val *C.char) {
|
|
3252
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3253
|
+
op.Name = C.GoString(val)
|
|
3184
3254
|
}
|
|
3185
3255
|
|
|
3186
|
-
//export
|
|
3187
|
-
func
|
|
3188
|
-
op :=
|
|
3189
|
-
return
|
|
3256
|
+
//export whatsapp_Gateway_LogLevel_Get
|
|
3257
|
+
func whatsapp_Gateway_LogLevel_Get(handle CGoHandle) *C.char {
|
|
3258
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3259
|
+
return C.CString(op.LogLevel)
|
|
3190
3260
|
}
|
|
3191
3261
|
|
|
3192
|
-
//export
|
|
3193
|
-
func
|
|
3194
|
-
op :=
|
|
3195
|
-
op.
|
|
3262
|
+
//export whatsapp_Gateway_LogLevel_Set
|
|
3263
|
+
func whatsapp_Gateway_LogLevel_Set(handle CGoHandle, val *C.char) {
|
|
3264
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3265
|
+
op.LogLevel = C.GoString(val)
|
|
3196
3266
|
}
|
|
3197
3267
|
|
|
3198
|
-
//export
|
|
3199
|
-
func
|
|
3200
|
-
op :=
|
|
3201
|
-
return
|
|
3268
|
+
//export whatsapp_Gateway_TempDir_Get
|
|
3269
|
+
func whatsapp_Gateway_TempDir_Get(handle CGoHandle) *C.char {
|
|
3270
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3271
|
+
return C.CString(op.TempDir)
|
|
3202
3272
|
}
|
|
3203
3273
|
|
|
3204
|
-
//export
|
|
3205
|
-
func
|
|
3206
|
-
op :=
|
|
3207
|
-
op.
|
|
3274
|
+
//export whatsapp_Gateway_TempDir_Set
|
|
3275
|
+
func whatsapp_Gateway_TempDir_Set(handle CGoHandle, val *C.char) {
|
|
3276
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
3277
|
+
op.TempDir = C.GoString(val)
|
|
3208
3278
|
}
|
|
3209
3279
|
|
|
3210
|
-
//export
|
|
3211
|
-
func
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3280
|
+
//export whatsapp_Gateway_Init
|
|
3281
|
+
func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
3282
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3283
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3284
|
+
if __err != nil {
|
|
3285
|
+
return errorGoToPy(nil)
|
|
3286
|
+
}
|
|
3287
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
3215
3288
|
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3289
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3290
|
+
if __err != nil {
|
|
3291
|
+
estr := C.CString(__err.Error())
|
|
3292
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3293
|
+
return estr
|
|
3294
|
+
}
|
|
3295
|
+
return C.CString("")
|
|
3220
3296
|
}
|
|
3221
3297
|
|
|
3222
|
-
//
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3298
|
+
//export whatsapp_Gateway_NewSession
|
|
3299
|
+
func whatsapp_Gateway_NewSession(_handle CGoHandle, device CGoHandle) CGoHandle {
|
|
3300
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3301
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3302
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3303
|
+
if __err != nil {
|
|
3304
|
+
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
3305
|
+
}
|
|
3306
|
+
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
3228
3307
|
|
|
3229
|
-
//export whatsapp_PollOption_Title_Get
|
|
3230
|
-
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
3231
|
-
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
3232
|
-
return C.CString(op.Title)
|
|
3233
3308
|
}
|
|
3234
3309
|
|
|
3235
|
-
//export
|
|
3236
|
-
func
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3310
|
+
//export whatsapp_Gateway_CleanupSession
|
|
3311
|
+
func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.char {
|
|
3312
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3313
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3314
|
+
if __err != nil {
|
|
3315
|
+
return errorGoToPy(nil)
|
|
3316
|
+
}
|
|
3317
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
3240
3318
|
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3319
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3320
|
+
if __err != nil {
|
|
3321
|
+
estr := C.CString(__err.Error())
|
|
3322
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3323
|
+
return estr
|
|
3324
|
+
}
|
|
3325
|
+
return C.CString("")
|
|
3246
3326
|
}
|
|
3247
3327
|
|
|
3248
|
-
//
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3328
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
3329
|
+
//
|
|
3330
|
+
//export whatsapp_LinkedDevice_CTor
|
|
3331
|
+
func whatsapp_LinkedDevice_CTor() CGoHandle {
|
|
3332
|
+
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
3252
3333
|
}
|
|
3253
3334
|
|
|
3254
|
-
//export
|
|
3255
|
-
func
|
|
3256
|
-
op :=
|
|
3257
|
-
|
|
3335
|
+
//export whatsapp_LinkedDevice_ID_Get
|
|
3336
|
+
func whatsapp_LinkedDevice_ID_Get(handle CGoHandle) *C.char {
|
|
3337
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3338
|
+
return C.CString(op.ID)
|
|
3258
3339
|
}
|
|
3259
3340
|
|
|
3260
|
-
//export
|
|
3261
|
-
func
|
|
3262
|
-
op :=
|
|
3263
|
-
|
|
3341
|
+
//export whatsapp_LinkedDevice_ID_Set
|
|
3342
|
+
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
3343
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3344
|
+
op.ID = C.GoString(val)
|
|
3264
3345
|
}
|
|
3265
3346
|
|
|
3266
|
-
//export
|
|
3267
|
-
func
|
|
3268
|
-
|
|
3269
|
-
|
|
3347
|
+
//export whatsapp_LinkedDevice_JID
|
|
3348
|
+
func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
3349
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3350
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3351
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
3352
|
+
if __err != nil {
|
|
3353
|
+
return handleFromPtr_types_JID(nil)
|
|
3354
|
+
}
|
|
3355
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3356
|
+
|
|
3357
|
+
return handleFromPtr_types_JID(&cret)
|
|
3270
3358
|
}
|
|
3271
3359
|
|
|
3272
|
-
//
|
|
3273
|
-
|
|
3274
|
-
|
|
3360
|
+
// --- wrapping struct: whatsapp.Message ---
|
|
3361
|
+
//
|
|
3362
|
+
//export whatsapp_Message_CTor
|
|
3363
|
+
func whatsapp_Message_CTor() CGoHandle {
|
|
3364
|
+
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
3365
|
+
}
|
|
3366
|
+
|
|
3367
|
+
//export whatsapp_Message_Kind_Get
|
|
3368
|
+
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
3369
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3370
|
+
return C.longlong(int(op.Kind))
|
|
3371
|
+
}
|
|
3372
|
+
|
|
3373
|
+
//export whatsapp_Message_Kind_Set
|
|
3374
|
+
func whatsapp_Message_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3375
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3376
|
+
op.Kind = whatsapp.MessageKind(int(val))
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
//export whatsapp_Message_ID_Get
|
|
3380
|
+
func whatsapp_Message_ID_Get(handle CGoHandle) *C.char {
|
|
3381
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3382
|
+
return C.CString(op.ID)
|
|
3383
|
+
}
|
|
3384
|
+
|
|
3385
|
+
//export whatsapp_Message_ID_Set
|
|
3386
|
+
func whatsapp_Message_ID_Set(handle CGoHandle, val *C.char) {
|
|
3387
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3388
|
+
op.ID = C.GoString(val)
|
|
3389
|
+
}
|
|
3390
|
+
|
|
3391
|
+
//export whatsapp_Message_JID_Get
|
|
3392
|
+
func whatsapp_Message_JID_Get(handle CGoHandle) *C.char {
|
|
3393
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3275
3394
|
return C.CString(op.JID)
|
|
3276
3395
|
}
|
|
3277
3396
|
|
|
3278
|
-
//export
|
|
3279
|
-
func
|
|
3280
|
-
op :=
|
|
3397
|
+
//export whatsapp_Message_JID_Set
|
|
3398
|
+
func whatsapp_Message_JID_Set(handle CGoHandle, val *C.char) {
|
|
3399
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3281
3400
|
op.JID = C.GoString(val)
|
|
3282
3401
|
}
|
|
3283
3402
|
|
|
3284
|
-
//export
|
|
3285
|
-
func
|
|
3286
|
-
op :=
|
|
3403
|
+
//export whatsapp_Message_GroupJID_Get
|
|
3404
|
+
func whatsapp_Message_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3405
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3287
3406
|
return C.CString(op.GroupJID)
|
|
3288
3407
|
}
|
|
3289
3408
|
|
|
3290
|
-
//export
|
|
3291
|
-
func
|
|
3292
|
-
op :=
|
|
3409
|
+
//export whatsapp_Message_GroupJID_Set
|
|
3410
|
+
func whatsapp_Message_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3411
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3293
3412
|
op.GroupJID = C.GoString(val)
|
|
3294
3413
|
}
|
|
3295
3414
|
|
|
3296
|
-
//export
|
|
3297
|
-
func
|
|
3298
|
-
op :=
|
|
3415
|
+
//export whatsapp_Message_OriginJID_Get
|
|
3416
|
+
func whatsapp_Message_OriginJID_Get(handle CGoHandle) *C.char {
|
|
3417
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3418
|
+
return C.CString(op.OriginJID)
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
//export whatsapp_Message_OriginJID_Set
|
|
3422
|
+
func whatsapp_Message_OriginJID_Set(handle CGoHandle, val *C.char) {
|
|
3423
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3424
|
+
op.OriginJID = C.GoString(val)
|
|
3425
|
+
}
|
|
3426
|
+
|
|
3427
|
+
//export whatsapp_Message_Body_Get
|
|
3428
|
+
func whatsapp_Message_Body_Get(handle CGoHandle) *C.char {
|
|
3429
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3430
|
+
return C.CString(op.Body)
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3433
|
+
//export whatsapp_Message_Body_Set
|
|
3434
|
+
func whatsapp_Message_Body_Set(handle CGoHandle, val *C.char) {
|
|
3435
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3436
|
+
op.Body = C.GoString(val)
|
|
3437
|
+
}
|
|
3438
|
+
|
|
3439
|
+
//export whatsapp_Message_Timestamp_Get
|
|
3440
|
+
func whatsapp_Message_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3441
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3299
3442
|
return C.longlong(op.Timestamp)
|
|
3300
3443
|
}
|
|
3301
3444
|
|
|
3302
|
-
//export
|
|
3303
|
-
func
|
|
3304
|
-
op :=
|
|
3445
|
+
//export whatsapp_Message_Timestamp_Set
|
|
3446
|
+
func whatsapp_Message_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3447
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3305
3448
|
op.Timestamp = int64(val)
|
|
3306
3449
|
}
|
|
3307
3450
|
|
|
3308
|
-
//export
|
|
3309
|
-
func
|
|
3310
|
-
op :=
|
|
3451
|
+
//export whatsapp_Message_IsCarbon_Get
|
|
3452
|
+
func whatsapp_Message_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3453
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3311
3454
|
return boolGoToPy(op.IsCarbon)
|
|
3312
3455
|
}
|
|
3313
3456
|
|
|
3314
|
-
//export
|
|
3315
|
-
func
|
|
3316
|
-
op :=
|
|
3457
|
+
//export whatsapp_Message_IsCarbon_Set
|
|
3458
|
+
func whatsapp_Message_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3459
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3317
3460
|
op.IsCarbon = boolPyToGo(val)
|
|
3318
3461
|
}
|
|
3319
3462
|
|
|
3320
|
-
//
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
3463
|
+
//export whatsapp_Message_IsForwarded_Get
|
|
3464
|
+
func whatsapp_Message_IsForwarded_Get(handle CGoHandle) C.char {
|
|
3465
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3466
|
+
return boolGoToPy(op.IsForwarded)
|
|
3325
3467
|
}
|
|
3326
3468
|
|
|
3327
|
-
//export
|
|
3328
|
-
func
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
if __err != nil {
|
|
3332
|
-
return errorGoToPy(nil)
|
|
3333
|
-
}
|
|
3334
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
3335
|
-
|
|
3336
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3337
|
-
if __err != nil {
|
|
3338
|
-
estr := C.CString(__err.Error())
|
|
3339
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3340
|
-
return estr
|
|
3341
|
-
}
|
|
3342
|
-
return C.CString("")
|
|
3469
|
+
//export whatsapp_Message_IsForwarded_Set
|
|
3470
|
+
func whatsapp_Message_IsForwarded_Set(handle CGoHandle, val C.char) {
|
|
3471
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3472
|
+
op.IsForwarded = boolPyToGo(val)
|
|
3343
3473
|
}
|
|
3344
3474
|
|
|
3345
|
-
//export
|
|
3346
|
-
func
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
if __err != nil {
|
|
3350
|
-
return errorGoToPy(nil)
|
|
3351
|
-
}
|
|
3352
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
3353
|
-
|
|
3354
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3355
|
-
if __err != nil {
|
|
3356
|
-
estr := C.CString(__err.Error())
|
|
3357
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3358
|
-
return estr
|
|
3359
|
-
}
|
|
3360
|
-
return C.CString("")
|
|
3475
|
+
//export whatsapp_Message_ReplyID_Get
|
|
3476
|
+
func whatsapp_Message_ReplyID_Get(handle CGoHandle) *C.char {
|
|
3477
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3478
|
+
return C.CString(op.ReplyID)
|
|
3361
3479
|
}
|
|
3362
3480
|
|
|
3363
|
-
//export
|
|
3364
|
-
func
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
if __err != nil {
|
|
3368
|
-
return errorGoToPy(nil)
|
|
3369
|
-
}
|
|
3370
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
3371
|
-
|
|
3372
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3373
|
-
if __err != nil {
|
|
3374
|
-
estr := C.CString(__err.Error())
|
|
3375
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3376
|
-
return estr
|
|
3377
|
-
}
|
|
3378
|
-
return C.CString("")
|
|
3481
|
+
//export whatsapp_Message_ReplyID_Set
|
|
3482
|
+
func whatsapp_Message_ReplyID_Set(handle CGoHandle, val *C.char) {
|
|
3483
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3484
|
+
op.ReplyID = C.GoString(val)
|
|
3379
3485
|
}
|
|
3380
3486
|
|
|
3381
|
-
//export
|
|
3382
|
-
func
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
return C.CString("")
|
|
3387
|
-
}
|
|
3388
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
3487
|
+
//export whatsapp_Message_ReplyBody_Get
|
|
3488
|
+
func whatsapp_Message_ReplyBody_Get(handle CGoHandle) *C.char {
|
|
3489
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3490
|
+
return C.CString(op.ReplyBody)
|
|
3491
|
+
}
|
|
3389
3492
|
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
C.free(unsafe.Pointer(estr))
|
|
3395
|
-
return C.CString("")
|
|
3396
|
-
}
|
|
3397
|
-
return C.CString(cret)
|
|
3493
|
+
//export whatsapp_Message_ReplyBody_Set
|
|
3494
|
+
func whatsapp_Message_ReplyBody_Set(handle CGoHandle, val *C.char) {
|
|
3495
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3496
|
+
op.ReplyBody = C.GoString(val)
|
|
3398
3497
|
}
|
|
3399
3498
|
|
|
3400
|
-
//export
|
|
3401
|
-
func
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
return errorGoToPy(nil)
|
|
3406
|
-
}
|
|
3407
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
3499
|
+
//export whatsapp_Message_Attachments_Get
|
|
3500
|
+
func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
3501
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3502
|
+
return handleFromPtr_Slice_whatsapp_Attachment(&op.Attachments)
|
|
3503
|
+
}
|
|
3408
3504
|
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
return estr
|
|
3414
|
-
}
|
|
3415
|
-
return C.CString("")
|
|
3505
|
+
//export whatsapp_Message_Attachments_Set
|
|
3506
|
+
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
3507
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3508
|
+
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
3416
3509
|
}
|
|
3417
3510
|
|
|
3418
|
-
//export
|
|
3419
|
-
func
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
if __err != nil {
|
|
3424
|
-
return C.CString("")
|
|
3425
|
-
}
|
|
3426
|
-
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
3511
|
+
//export whatsapp_Message_Preview_Get
|
|
3512
|
+
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
3513
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3514
|
+
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
3515
|
+
}
|
|
3427
3516
|
|
|
3517
|
+
//export whatsapp_Message_Preview_Set
|
|
3518
|
+
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
3519
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3520
|
+
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
3428
3521
|
}
|
|
3429
3522
|
|
|
3430
|
-
//export
|
|
3431
|
-
func
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
if __err != nil {
|
|
3435
|
-
return errorGoToPy(nil)
|
|
3436
|
-
}
|
|
3437
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
3438
|
-
|
|
3439
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3440
|
-
if __err != nil {
|
|
3441
|
-
estr := C.CString(__err.Error())
|
|
3442
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3443
|
-
return estr
|
|
3444
|
-
}
|
|
3445
|
-
return C.CString("")
|
|
3523
|
+
//export whatsapp_Message_Location_Get
|
|
3524
|
+
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
3525
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3526
|
+
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
3446
3527
|
}
|
|
3447
3528
|
|
|
3448
|
-
//export
|
|
3449
|
-
func
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
if __err != nil {
|
|
3453
|
-
return errorGoToPy(nil)
|
|
3454
|
-
}
|
|
3455
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
3456
|
-
|
|
3457
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3458
|
-
if __err != nil {
|
|
3459
|
-
estr := C.CString(__err.Error())
|
|
3460
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3461
|
-
return estr
|
|
3462
|
-
}
|
|
3463
|
-
return C.CString("")
|
|
3529
|
+
//export whatsapp_Message_Location_Set
|
|
3530
|
+
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
3531
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3532
|
+
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
3464
3533
|
}
|
|
3465
3534
|
|
|
3466
|
-
//export
|
|
3467
|
-
func
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
if __err != nil {
|
|
3471
|
-
return errorGoToPy(nil)
|
|
3472
|
-
}
|
|
3473
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
3474
|
-
|
|
3475
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3476
|
-
if __err != nil {
|
|
3477
|
-
estr := C.CString(__err.Error())
|
|
3478
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3479
|
-
return estr
|
|
3480
|
-
}
|
|
3481
|
-
return C.CString("")
|
|
3535
|
+
//export whatsapp_Message_Poll_Get
|
|
3536
|
+
func whatsapp_Message_Poll_Get(handle CGoHandle) CGoHandle {
|
|
3537
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3538
|
+
return handleFromPtr_whatsapp_Poll(&op.Poll)
|
|
3482
3539
|
}
|
|
3483
3540
|
|
|
3484
|
-
//export
|
|
3485
|
-
func
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
if __err != nil {
|
|
3489
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3490
|
-
}
|
|
3491
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
3492
|
-
|
|
3493
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3494
|
-
if __err != nil {
|
|
3495
|
-
estr := C.CString(__err.Error())
|
|
3496
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3497
|
-
C.free(unsafe.Pointer(estr))
|
|
3498
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3499
|
-
}
|
|
3500
|
-
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
3541
|
+
//export whatsapp_Message_Poll_Set
|
|
3542
|
+
func whatsapp_Message_Poll_Set(handle CGoHandle, val CGoHandle) {
|
|
3543
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3544
|
+
op.Poll = *ptrFromHandle_whatsapp_Poll(val)
|
|
3501
3545
|
}
|
|
3502
3546
|
|
|
3503
|
-
//export
|
|
3504
|
-
func
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
if __err != nil {
|
|
3508
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3509
|
-
}
|
|
3510
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
3511
|
-
|
|
3512
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3513
|
-
if __err != nil {
|
|
3514
|
-
estr := C.CString(__err.Error())
|
|
3515
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3516
|
-
C.free(unsafe.Pointer(estr))
|
|
3517
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3518
|
-
}
|
|
3519
|
-
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
3547
|
+
//export whatsapp_Message_Album_Get
|
|
3548
|
+
func whatsapp_Message_Album_Get(handle CGoHandle) CGoHandle {
|
|
3549
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3550
|
+
return handleFromPtr_whatsapp_Album(&op.Album)
|
|
3520
3551
|
}
|
|
3521
3552
|
|
|
3522
|
-
//export
|
|
3523
|
-
func
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
if __err != nil {
|
|
3527
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
3528
|
-
}
|
|
3529
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
3530
|
-
|
|
3531
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3532
|
-
if __err != nil {
|
|
3533
|
-
estr := C.CString(__err.Error())
|
|
3534
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3535
|
-
C.free(unsafe.Pointer(estr))
|
|
3536
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
3537
|
-
}
|
|
3538
|
-
return handleFromPtr_whatsapp_Group(&cret)
|
|
3553
|
+
//export whatsapp_Message_Album_Set
|
|
3554
|
+
func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
3555
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3556
|
+
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
3539
3557
|
}
|
|
3540
3558
|
|
|
3541
|
-
//export
|
|
3542
|
-
func
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
if __err != nil {
|
|
3546
|
-
return errorGoToPy(nil)
|
|
3547
|
-
}
|
|
3548
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
3549
|
-
|
|
3550
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3551
|
-
if __err != nil {
|
|
3552
|
-
estr := C.CString(__err.Error())
|
|
3553
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3554
|
-
return estr
|
|
3555
|
-
}
|
|
3556
|
-
return C.CString("")
|
|
3559
|
+
//export whatsapp_Message_GroupInvite_Get
|
|
3560
|
+
func whatsapp_Message_GroupInvite_Get(handle CGoHandle) CGoHandle {
|
|
3561
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3562
|
+
return handleFromPtr_whatsapp_Group(&op.GroupInvite)
|
|
3557
3563
|
}
|
|
3558
3564
|
|
|
3559
|
-
//export
|
|
3560
|
-
func
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
if __err != nil {
|
|
3564
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3565
|
-
}
|
|
3566
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
3567
|
-
|
|
3568
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3569
|
-
if __err != nil {
|
|
3570
|
-
estr := C.CString(__err.Error())
|
|
3571
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3572
|
-
C.free(unsafe.Pointer(estr))
|
|
3573
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3574
|
-
}
|
|
3575
|
-
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
3565
|
+
//export whatsapp_Message_GroupInvite_Set
|
|
3566
|
+
func whatsapp_Message_GroupInvite_Set(handle CGoHandle, val CGoHandle) {
|
|
3567
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3568
|
+
op.GroupInvite = *ptrFromHandle_whatsapp_Group(val)
|
|
3576
3569
|
}
|
|
3577
3570
|
|
|
3578
|
-
//export
|
|
3579
|
-
func
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
return C.CString("")
|
|
3584
|
-
}
|
|
3585
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
3571
|
+
//export whatsapp_Message_MentionJIDs_Get
|
|
3572
|
+
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
3573
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3574
|
+
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
3575
|
+
}
|
|
3586
3576
|
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
C.free(unsafe.Pointer(estr))
|
|
3592
|
-
return C.CString("")
|
|
3593
|
-
}
|
|
3594
|
-
return C.CString(cret)
|
|
3577
|
+
//export whatsapp_Message_MentionJIDs_Set
|
|
3578
|
+
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3579
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3580
|
+
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
3595
3581
|
}
|
|
3596
3582
|
|
|
3597
|
-
//export
|
|
3598
|
-
func
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
return errorGoToPy(nil)
|
|
3603
|
-
}
|
|
3604
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
3583
|
+
//export whatsapp_Message_Receipts_Get
|
|
3584
|
+
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
3585
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3586
|
+
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
3587
|
+
}
|
|
3605
3588
|
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
return estr
|
|
3611
|
-
}
|
|
3612
|
-
return C.CString("")
|
|
3589
|
+
//export whatsapp_Message_Receipts_Set
|
|
3590
|
+
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
3591
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3592
|
+
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
3613
3593
|
}
|
|
3614
3594
|
|
|
3615
|
-
//export
|
|
3616
|
-
func
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
return errorGoToPy(nil)
|
|
3621
|
-
}
|
|
3622
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
3595
|
+
//export whatsapp_Message_Reactions_Get
|
|
3596
|
+
func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
3597
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3598
|
+
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
3599
|
+
}
|
|
3623
3600
|
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
return estr
|
|
3629
|
-
}
|
|
3630
|
-
return C.CString("")
|
|
3601
|
+
//export whatsapp_Message_Reactions_Set
|
|
3602
|
+
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
3603
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3604
|
+
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3631
3605
|
}
|
|
3632
3606
|
|
|
3633
|
-
//export
|
|
3634
|
-
func
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3639
|
-
}
|
|
3640
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
3607
|
+
//export whatsapp_Message_IsHistory_Get
|
|
3608
|
+
func whatsapp_Message_IsHistory_Get(handle CGoHandle) C.char {
|
|
3609
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3610
|
+
return boolGoToPy(op.IsHistory)
|
|
3611
|
+
}
|
|
3641
3612
|
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
C.free(unsafe.Pointer(estr))
|
|
3647
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3648
|
-
}
|
|
3649
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
3613
|
+
//export whatsapp_Message_IsHistory_Set
|
|
3614
|
+
func whatsapp_Message_IsHistory_Set(handle CGoHandle, val C.char) {
|
|
3615
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3616
|
+
op.IsHistory = boolPyToGo(val)
|
|
3650
3617
|
}
|
|
3651
3618
|
|
|
3652
|
-
//
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
}
|
|
3659
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
3619
|
+
// --- wrapping struct: whatsapp.Poll ---
|
|
3620
|
+
//
|
|
3621
|
+
//export whatsapp_Poll_CTor
|
|
3622
|
+
func whatsapp_Poll_CTor() CGoHandle {
|
|
3623
|
+
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
3624
|
+
}
|
|
3660
3625
|
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
C.free(unsafe.Pointer(estr))
|
|
3666
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
3667
|
-
}
|
|
3668
|
-
return handleFromPtr_whatsapp_Contact(&cret)
|
|
3626
|
+
//export whatsapp_Poll_Title_Get
|
|
3627
|
+
func whatsapp_Poll_Title_Get(handle CGoHandle) *C.char {
|
|
3628
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3629
|
+
return C.CString(op.Title)
|
|
3669
3630
|
}
|
|
3670
3631
|
|
|
3671
|
-
//export
|
|
3672
|
-
func
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
return errorGoToPy(nil)
|
|
3677
|
-
}
|
|
3678
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
3632
|
+
//export whatsapp_Poll_Title_Set
|
|
3633
|
+
func whatsapp_Poll_Title_Set(handle CGoHandle, val *C.char) {
|
|
3634
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3635
|
+
op.Title = C.GoString(val)
|
|
3636
|
+
}
|
|
3679
3637
|
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
return estr
|
|
3685
|
-
}
|
|
3686
|
-
return C.CString("")
|
|
3638
|
+
//export whatsapp_Poll_Options_Get
|
|
3639
|
+
func whatsapp_Poll_Options_Get(handle CGoHandle) CGoHandle {
|
|
3640
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3641
|
+
return handleFromPtr_Slice_whatsapp_PollOption(&op.Options)
|
|
3687
3642
|
}
|
|
3688
3643
|
|
|
3689
|
-
//export
|
|
3690
|
-
func
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3694
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3695
|
-
if __err != nil {
|
|
3696
|
-
return
|
|
3697
|
-
}
|
|
3698
|
-
if boolPyToGo(goRun) {
|
|
3699
|
-
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3700
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3701
|
-
return
|
|
3702
|
-
}
|
|
3703
|
-
_gstate := C.PyGILState_Ensure()
|
|
3704
|
-
_fcargs := C.PyTuple_New(2)
|
|
3705
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3706
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3707
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3708
|
-
C.gopy_decref(_fcargs)
|
|
3709
|
-
C.gopy_err_handle()
|
|
3710
|
-
C.PyGILState_Release(_gstate)
|
|
3711
|
-
})
|
|
3712
|
-
} else {
|
|
3713
|
-
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3714
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3715
|
-
return
|
|
3716
|
-
}
|
|
3717
|
-
_gstate := C.PyGILState_Ensure()
|
|
3718
|
-
_fcargs := C.PyTuple_New(2)
|
|
3719
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3720
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3721
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3722
|
-
C.gopy_decref(_fcargs)
|
|
3723
|
-
C.gopy_err_handle()
|
|
3724
|
-
C.PyGILState_Release(_gstate)
|
|
3725
|
-
})
|
|
3726
|
-
}
|
|
3644
|
+
//export whatsapp_Poll_Options_Set
|
|
3645
|
+
func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
3646
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3647
|
+
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
3727
3648
|
}
|
|
3728
3649
|
|
|
3729
3650
|
// --- wrapping struct: whatsapp.Album ---
|
|
@@ -3769,35 +3690,217 @@ func whatsapp_Album_VideoCount_Set(handle CGoHandle, val C.longlong) {
|
|
|
3769
3690
|
op.VideoCount = int(val)
|
|
3770
3691
|
}
|
|
3771
3692
|
|
|
3772
|
-
// --- wrapping struct: whatsapp.
|
|
3693
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
3773
3694
|
//
|
|
3774
|
-
//export
|
|
3775
|
-
func
|
|
3776
|
-
return CGoHandle(
|
|
3695
|
+
//export whatsapp_Group_CTor
|
|
3696
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
3697
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
3777
3698
|
}
|
|
3778
3699
|
|
|
3779
|
-
//export
|
|
3780
|
-
func
|
|
3781
|
-
op :=
|
|
3700
|
+
//export whatsapp_Group_JID_Get
|
|
3701
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
3702
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3782
3703
|
return C.CString(op.JID)
|
|
3783
3704
|
}
|
|
3784
3705
|
|
|
3785
|
-
//export
|
|
3786
|
-
func
|
|
3787
|
-
op :=
|
|
3706
|
+
//export whatsapp_Group_JID_Set
|
|
3707
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
3708
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3788
3709
|
op.JID = C.GoString(val)
|
|
3789
3710
|
}
|
|
3790
3711
|
|
|
3791
|
-
//export
|
|
3792
|
-
func
|
|
3793
|
-
op :=
|
|
3794
|
-
return C.CString(op.
|
|
3712
|
+
//export whatsapp_Group_Name_Get
|
|
3713
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
3714
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3715
|
+
return C.CString(op.Name)
|
|
3795
3716
|
}
|
|
3796
3717
|
|
|
3797
|
-
//export
|
|
3798
|
-
func
|
|
3799
|
-
op :=
|
|
3800
|
-
op.
|
|
3718
|
+
//export whatsapp_Group_Name_Set
|
|
3719
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
3720
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3721
|
+
op.Name = C.GoString(val)
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3724
|
+
//export whatsapp_Group_Subject_Get
|
|
3725
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
3726
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3727
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
3728
|
+
}
|
|
3729
|
+
|
|
3730
|
+
//export whatsapp_Group_Subject_Set
|
|
3731
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
3732
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3733
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
3734
|
+
}
|
|
3735
|
+
|
|
3736
|
+
//export whatsapp_Group_Nickname_Get
|
|
3737
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
3738
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3739
|
+
return C.CString(op.Nickname)
|
|
3740
|
+
}
|
|
3741
|
+
|
|
3742
|
+
//export whatsapp_Group_Nickname_Set
|
|
3743
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
3744
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3745
|
+
op.Nickname = C.GoString(val)
|
|
3746
|
+
}
|
|
3747
|
+
|
|
3748
|
+
//export whatsapp_Group_Participants_Get
|
|
3749
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
3750
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3751
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3754
|
+
//export whatsapp_Group_Participants_Set
|
|
3755
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
3756
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3757
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
3758
|
+
}
|
|
3759
|
+
|
|
3760
|
+
//export whatsapp_Group_InviteCode_Get
|
|
3761
|
+
func whatsapp_Group_InviteCode_Get(handle CGoHandle) *C.char {
|
|
3762
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3763
|
+
return C.CString(op.InviteCode)
|
|
3764
|
+
}
|
|
3765
|
+
|
|
3766
|
+
//export whatsapp_Group_InviteCode_Set
|
|
3767
|
+
func whatsapp_Group_InviteCode_Set(handle CGoHandle, val *C.char) {
|
|
3768
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3769
|
+
op.InviteCode = C.GoString(val)
|
|
3770
|
+
}
|
|
3771
|
+
|
|
3772
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
3773
|
+
//
|
|
3774
|
+
//export whatsapp_GroupParticipant_CTor
|
|
3775
|
+
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
3776
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
3777
|
+
}
|
|
3778
|
+
|
|
3779
|
+
//export whatsapp_GroupParticipant_JID_Get
|
|
3780
|
+
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
3781
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3782
|
+
return C.CString(op.JID)
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
//export whatsapp_GroupParticipant_JID_Set
|
|
3786
|
+
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
3787
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3788
|
+
op.JID = C.GoString(val)
|
|
3789
|
+
}
|
|
3790
|
+
|
|
3791
|
+
//export whatsapp_GroupParticipant_Nickname_Get
|
|
3792
|
+
func whatsapp_GroupParticipant_Nickname_Get(handle CGoHandle) *C.char {
|
|
3793
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3794
|
+
return C.CString(op.Nickname)
|
|
3795
|
+
}
|
|
3796
|
+
|
|
3797
|
+
//export whatsapp_GroupParticipant_Nickname_Set
|
|
3798
|
+
func whatsapp_GroupParticipant_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
3799
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3800
|
+
op.Nickname = C.GoString(val)
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
|
+
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
3804
|
+
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
3805
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3806
|
+
return C.longlong(int(op.Affiliation))
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3809
|
+
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
3810
|
+
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
3811
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3812
|
+
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
3813
|
+
}
|
|
3814
|
+
|
|
3815
|
+
//export whatsapp_GroupParticipant_Action_Get
|
|
3816
|
+
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
3817
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3818
|
+
return C.longlong(int(op.Action))
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3821
|
+
//export whatsapp_GroupParticipant_Action_Set
|
|
3822
|
+
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
3823
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3824
|
+
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3827
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
3828
|
+
//
|
|
3829
|
+
//export whatsapp_Receipt_CTor
|
|
3830
|
+
func whatsapp_Receipt_CTor() CGoHandle {
|
|
3831
|
+
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
3832
|
+
}
|
|
3833
|
+
|
|
3834
|
+
//export whatsapp_Receipt_Kind_Get
|
|
3835
|
+
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3836
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3837
|
+
return C.longlong(int(op.Kind))
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3840
|
+
//export whatsapp_Receipt_Kind_Set
|
|
3841
|
+
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3842
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3843
|
+
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3846
|
+
//export whatsapp_Receipt_MessageIDs_Get
|
|
3847
|
+
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
3848
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3849
|
+
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3852
|
+
//export whatsapp_Receipt_MessageIDs_Set
|
|
3853
|
+
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3854
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3855
|
+
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
3856
|
+
}
|
|
3857
|
+
|
|
3858
|
+
//export whatsapp_Receipt_JID_Get
|
|
3859
|
+
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
3860
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3861
|
+
return C.CString(op.JID)
|
|
3862
|
+
}
|
|
3863
|
+
|
|
3864
|
+
//export whatsapp_Receipt_JID_Set
|
|
3865
|
+
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
3866
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3867
|
+
op.JID = C.GoString(val)
|
|
3868
|
+
}
|
|
3869
|
+
|
|
3870
|
+
//export whatsapp_Receipt_GroupJID_Get
|
|
3871
|
+
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3872
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3873
|
+
return C.CString(op.GroupJID)
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3876
|
+
//export whatsapp_Receipt_GroupJID_Set
|
|
3877
|
+
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3878
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3879
|
+
op.GroupJID = C.GoString(val)
|
|
3880
|
+
}
|
|
3881
|
+
|
|
3882
|
+
//export whatsapp_Receipt_Timestamp_Get
|
|
3883
|
+
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3884
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3885
|
+
return C.longlong(op.Timestamp)
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
//export whatsapp_Receipt_Timestamp_Set
|
|
3889
|
+
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3890
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3891
|
+
op.Timestamp = int64(val)
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3894
|
+
//export whatsapp_Receipt_IsCarbon_Get
|
|
3895
|
+
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3896
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3897
|
+
return boolGoToPy(op.IsCarbon)
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
3901
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3902
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3903
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3801
3904
|
}
|
|
3802
3905
|
|
|
3803
3906
|
// ---- Slices ---
|
|
@@ -3815,3 +3918,11 @@ func whatsapp_NewGateway() CGoHandle {
|
|
|
3815
3918
|
}
|
|
3816
3919
|
|
|
3817
3920
|
// ---- Functions ---
|
|
3921
|
+
|
|
3922
|
+
//export whatsapp_IsAnonymousJID
|
|
3923
|
+
func whatsapp_IsAnonymousJID(id *C.char) C.char {
|
|
3924
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3925
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3926
|
+
return boolGoToPy(whatsapp.IsAnonymousJID(C.GoString(id)))
|
|
3927
|
+
|
|
3928
|
+
}
|