slidge-whatsapp 0.2.7__cp311-cp311-manylinux_2_36_aarch64.whl → 0.3.0b0__cp311-cp311-manylinux_2_36_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of slidge-whatsapp might be problematic. Click here for more details.

Files changed (212) hide show
  1. slidge_whatsapp/contact.py +13 -3
  2. slidge_whatsapp/event.go +107 -37
  3. slidge_whatsapp/gateway.go +7 -63
  4. slidge_whatsapp/gateway.py +2 -3
  5. slidge_whatsapp/generated/_whatsapp.cpython-311-aarch64-linux-gnu.h +175 -158
  6. slidge_whatsapp/generated/_whatsapp.cpython-311-aarch64-linux-gnu.so +0 -0
  7. slidge_whatsapp/generated/build.py +135 -121
  8. slidge_whatsapp/generated/whatsapp.c +1699 -1427
  9. slidge_whatsapp/generated/whatsapp.go +846 -735
  10. slidge_whatsapp/generated/whatsapp.py +1216 -1091
  11. slidge_whatsapp/generated/whatsapp_go.h +175 -158
  12. slidge_whatsapp/go.mod +18 -15
  13. slidge_whatsapp/go.sum +38 -26
  14. slidge_whatsapp/group.py +34 -30
  15. slidge_whatsapp/media/media.go +1 -1
  16. slidge_whatsapp/session.go +33 -16
  17. slidge_whatsapp/session.py +46 -14
  18. slidge_whatsapp/vendor/github.com/beeper/argo-go/LICENSE +9 -0
  19. slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockreader.go +329 -0
  20. slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockwriter.go +417 -0
  21. slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/decoder.go +652 -0
  22. slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/encoder.go +985 -0
  23. slidge_whatsapp/vendor/github.com/beeper/argo-go/header/header.go +135 -0
  24. slidge_whatsapp/vendor/github.com/beeper/argo-go/internal/util/util.go +133 -0
  25. slidge_whatsapp/vendor/github.com/beeper/argo-go/label/label.go +384 -0
  26. slidge_whatsapp/vendor/github.com/beeper/argo-go/label/wiremarkers.go +37 -0
  27. slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/bitset/bitset.go +197 -0
  28. slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/buf/buf.go +420 -0
  29. slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/varint/varint.go +246 -0
  30. slidge_whatsapp/vendor/github.com/beeper/argo-go/wire/wire.go +614 -0
  31. slidge_whatsapp/vendor/github.com/beeper/argo-go/wirecodec/decode.go +341 -0
  32. slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/LICENSE +21 -0
  33. slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/list.go +95 -0
  34. slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/orderedmap.go +187 -0
  35. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz.go +1 -0
  36. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo.go +3 -0
  37. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_nocgo.go +4 -5
  38. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_darwin.go +11 -1
  39. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_linux.go +10 -0
  40. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_windows.go +12 -0
  41. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/.gitignore +0 -2
  42. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/CHANGELOG.md +30 -0
  43. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/COPYRIGHT.txt +6 -1
  44. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/README.md +14 -17
  45. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi.go +1 -1
  46. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi2.go +7 -0
  47. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/LICENSE +21 -0
  48. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_amd64/libffi.8.dylib +0 -0
  49. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_arm64/libffi.8.dylib +0 -0
  50. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/windows_amd64/libffi-8.dll +0 -0
  51. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif.go +15 -0
  52. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif_arm64.go +16 -0
  53. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed.go +49 -0
  54. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_amd64.go +10 -0
  55. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_arm64.go +10 -0
  56. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_windows_amd64.go +10 -0
  57. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/ffi.go +51 -13
  58. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/init.go +22 -9
  59. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +2 -0
  60. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +3096 -1651
  61. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +188 -128
  62. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_userauth.go +13 -140
  63. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3ext.h +4 -0
  64. slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.23.go +2 -2
  65. slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.25.go +37 -0
  66. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/LICENSE +19 -0
  67. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/argmap.go +37 -0
  68. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/collections.go +148 -0
  69. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/comment.go +31 -0
  70. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/decode.go +216 -0
  71. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/definition.go +110 -0
  72. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/directive.go +43 -0
  73. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/document.go +89 -0
  74. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/dumper.go +159 -0
  75. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/fragment.go +41 -0
  76. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/operation.go +32 -0
  77. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/path.go +72 -0
  78. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/selection.go +41 -0
  79. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/source.go +19 -0
  80. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/type.go +68 -0
  81. slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/value.go +122 -0
  82. slidge_whatsapp/vendor/go.mau.fi/util/exhttp/handleerrors.go +60 -26
  83. slidge_whatsapp/vendor/go.mau.fi/util/exhttp/networkerror.go +2 -1
  84. slidge_whatsapp/vendor/go.mau.fi/util/exstrings/stringutil.go +28 -0
  85. slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +19 -3
  86. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.pre-commit-config.yaml +3 -3
  87. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +1 -1
  88. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/hash.go +1 -1
  89. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +5 -1
  90. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo-wire-type-store.argo +63 -0
  91. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo.go +62 -0
  92. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/name-to-queryids.json +306 -0
  93. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +3 -2
  94. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +1 -0
  95. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +15 -18
  96. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +5 -0
  97. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +4 -0
  98. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +3 -0
  99. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +97 -25
  100. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +22 -10
  101. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +10 -9
  102. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +2 -14
  103. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/newsletter.go +83 -7
  104. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +5 -1
  105. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +2 -2
  106. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +15 -6
  107. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.pb.go +5156 -0
  108. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.proto +516 -0
  109. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.pb.go +30 -3
  110. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.proto +3 -0
  111. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +8532 -11526
  112. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +132 -438
  113. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +52 -23
  114. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +3 -0
  115. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.pb.go +225 -73
  116. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.proto +21 -5
  117. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +884 -441
  118. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +40 -0
  119. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +60 -38
  120. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +3 -0
  121. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +8 -1
  122. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +6 -4
  123. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +1 -1
  124. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +3 -2
  125. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +25 -5
  126. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +3 -1
  127. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/call.go +1 -0
  128. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +8 -0
  129. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +2 -1
  130. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/user.go +2 -0
  131. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +12 -8
  132. slidge_whatsapp/vendor/golang.org/x/crypto/curve25519/curve25519.go +1 -1
  133. slidge_whatsapp/vendor/golang.org/x/net/http2/config.go +44 -2
  134. slidge_whatsapp/vendor/golang.org/x/net/http2/gotrack.go +14 -3
  135. slidge_whatsapp/vendor/golang.org/x/net/http2/http2.go +7 -29
  136. slidge_whatsapp/vendor/golang.org/x/net/http2/server.go +53 -71
  137. slidge_whatsapp/vendor/golang.org/x/net/http2/transport.go +20 -74
  138. slidge_whatsapp/vendor/golang.org/x/sys/unix/affinity_linux.go +1 -3
  139. slidge_whatsapp/vendor/golang.org/x/sys/unix/mkerrors.sh +3 -0
  140. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin.go +1 -55
  141. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_solaris.go +1 -1
  142. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux.go +47 -16
  143. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +3 -0
  144. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +3 -0
  145. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +3 -0
  146. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +3 -0
  147. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +3 -0
  148. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +3 -0
  149. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +3 -0
  150. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +3 -0
  151. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +3 -0
  152. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +3 -0
  153. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +3 -0
  154. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +3 -0
  155. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +3 -0
  156. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +3 -0
  157. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +3 -0
  158. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +4 -4
  159. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +1 -0
  160. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +1 -0
  161. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +1 -0
  162. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +1 -0
  163. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +1 -0
  164. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +1 -0
  165. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +1 -0
  166. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +1 -0
  167. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +1 -0
  168. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +1 -0
  169. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +1 -0
  170. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +1 -0
  171. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +1 -0
  172. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +1 -0
  173. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +1 -0
  174. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux.go +168 -12
  175. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +17 -1
  176. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +16 -0
  177. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +18 -2
  178. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +16 -0
  179. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +16 -0
  180. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +17 -1
  181. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +16 -0
  182. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +16 -0
  183. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +17 -1
  184. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +18 -2
  185. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +16 -0
  186. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +16 -0
  187. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +16 -0
  188. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +16 -0
  189. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +16 -0
  190. slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +6 -0
  191. slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +483 -483
  192. slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/protowire/wire.go +25 -1
  193. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb +0 -0
  194. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +10 -5
  195. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/presence.go +33 -0
  196. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/api_gen.go +6 -0
  197. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +68 -22
  198. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_message_opaque.go +2 -1
  199. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_opaque.go +8 -37
  200. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/presence.go +0 -3
  201. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +1 -1
  202. slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +8 -0
  203. slidge_whatsapp/vendor/modules.txt +43 -23
  204. {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/METADATA +2 -2
  205. {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/RECORD +208 -161
  206. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi_amd64.go +0 -7
  207. slidge_whatsapp/vendor/golang.org/x/net/http2/config_go124.go +0 -61
  208. slidge_whatsapp/vendor/golang.org/x/net/http2/config_pre_go124.go +0 -16
  209. slidge_whatsapp/vendor/golang.org/x/net/http2/timer.go +0 -20
  210. {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/LICENSE +0 -0
  211. {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/WHEEL +0 -0
  212. {slidge_whatsapp-0.2.7.dist-info → slidge_whatsapp-0.3.0b0.dist-info}/entry_points.txt +0 -0
@@ -1013,115 +1013,9 @@ DefaultUserServer = "s.whatsapp.net"
1013
1013
 
1014
1014
  # ---- Structs ---
1015
1015
 
1016
- # Python type for struct whatsapp.Group
1017
- class Group(go.GoClass):
1018
- """A Group represents a named, many-to-many chat space which may be joined or left at will. All\nfields apart from the group JID are considered to be optional, and may not be set in cases where\ngroup information is being updated against previous assumed state. Groups in WhatsApp are\ngenerally invited to out-of-band with respect to overarching adaptor; see the documentation for\n[Session.GetGroups] for more information.\n"""
1019
- def __init__(self, *args, **kwargs):
1020
- """
1021
- handle=A Go-side object is always initialized with an explicit handle=arg
1022
- otherwise parameters can be unnamed in order of field names or named fields
1023
- in which case a new Go object is constructed first
1024
- """
1025
- if len(kwargs) == 1 and 'handle' in kwargs:
1026
- self.handle = kwargs['handle']
1027
- _whatsapp.IncRef(self.handle)
1028
- elif len(args) == 1 and isinstance(args[0], go.GoClass):
1029
- self.handle = args[0].handle
1030
- _whatsapp.IncRef(self.handle)
1031
- else:
1032
- self.handle = _whatsapp.whatsapp_Group_CTor()
1033
- _whatsapp.IncRef(self.handle)
1034
- if 0 < len(args):
1035
- self.JID = args[0]
1036
- if "JID" in kwargs:
1037
- self.JID = kwargs["JID"]
1038
- if 1 < len(args):
1039
- self.Name = args[1]
1040
- if "Name" in kwargs:
1041
- self.Name = kwargs["Name"]
1042
- if 2 < len(args):
1043
- self.Subject = args[2]
1044
- if "Subject" in kwargs:
1045
- self.Subject = kwargs["Subject"]
1046
- if 3 < len(args):
1047
- self.Nickname = args[3]
1048
- if "Nickname" in kwargs:
1049
- self.Nickname = kwargs["Nickname"]
1050
- if 4 < len(args):
1051
- self.Participants = args[4]
1052
- if "Participants" in kwargs:
1053
- self.Participants = kwargs["Participants"]
1054
- def __del__(self):
1055
- _whatsapp.DecRef(self.handle)
1056
- def __str__(self):
1057
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1058
- sv = 'whatsapp.Group{'
1059
- first = True
1060
- for v in pr:
1061
- if callable(v[1]):
1062
- continue
1063
- if first:
1064
- first = False
1065
- else:
1066
- sv += ', '
1067
- sv += v[0] + '=' + str(v[1])
1068
- return sv + '}'
1069
- def __repr__(self):
1070
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1071
- sv = 'whatsapp.Group ( '
1072
- for v in pr:
1073
- if not callable(v[1]):
1074
- sv += v[0] + '=' + str(v[1]) + ', '
1075
- return sv + ')'
1076
- @property
1077
- def JID(self):
1078
- return _whatsapp.whatsapp_Group_JID_Get(self.handle)
1079
- @JID.setter
1080
- def JID(self, value):
1081
- if isinstance(value, go.GoClass):
1082
- _whatsapp.whatsapp_Group_JID_Set(self.handle, value.handle)
1083
- else:
1084
- _whatsapp.whatsapp_Group_JID_Set(self.handle, value)
1085
- @property
1086
- def Name(self):
1087
- return _whatsapp.whatsapp_Group_Name_Get(self.handle)
1088
- @Name.setter
1089
- def Name(self, value):
1090
- if isinstance(value, go.GoClass):
1091
- _whatsapp.whatsapp_Group_Name_Set(self.handle, value.handle)
1092
- else:
1093
- _whatsapp.whatsapp_Group_Name_Set(self.handle, value)
1094
- @property
1095
- def Subject(self):
1096
- return GroupSubject(handle=_whatsapp.whatsapp_Group_Subject_Get(self.handle))
1097
- @Subject.setter
1098
- def Subject(self, value):
1099
- if isinstance(value, go.GoClass):
1100
- _whatsapp.whatsapp_Group_Subject_Set(self.handle, value.handle)
1101
- else:
1102
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1103
- @property
1104
- def Nickname(self):
1105
- return _whatsapp.whatsapp_Group_Nickname_Get(self.handle)
1106
- @Nickname.setter
1107
- def Nickname(self, value):
1108
- if isinstance(value, go.GoClass):
1109
- _whatsapp.whatsapp_Group_Nickname_Set(self.handle, value.handle)
1110
- else:
1111
- _whatsapp.whatsapp_Group_Nickname_Set(self.handle, value)
1112
- @property
1113
- def Participants(self):
1114
- return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Group_Participants_Get(self.handle))
1115
- @Participants.setter
1116
- def Participants(self, value):
1117
- if isinstance(value, go.GoClass):
1118
- _whatsapp.whatsapp_Group_Participants_Set(self.handle, value.handle)
1119
- else:
1120
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1121
-
1122
1016
  # Python type for struct whatsapp.GroupParticipant
1123
1017
  class GroupParticipant(go.GoClass):
1124
- """A GroupParticipant represents a contact who is currently joined in a given group. Participants in\nWhatsApp can always be derived back to their individual [Contact]; there are no anonymous groups\nin WhatsApp.\n"""
1018
+ """A GroupParticipant represents a contact who is currently joined in a given group. Participants in\nWhatsApp can generally be derived back to their individual [Contact]; there are no anonymous groups\nin WhatsApp.\n"""
1125
1019
  def __init__(self, *args, **kwargs):
1126
1020
  """
1127
1021
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -1142,11 +1036,15 @@ class GroupParticipant(go.GoClass):
1142
1036
  if "JID" in kwargs:
1143
1037
  self.JID = kwargs["JID"]
1144
1038
  if 1 < len(args):
1145
- self.Affiliation = args[1]
1039
+ self.Nickname = args[1]
1040
+ if "Nickname" in kwargs:
1041
+ self.Nickname = kwargs["Nickname"]
1042
+ if 2 < len(args):
1043
+ self.Affiliation = args[2]
1146
1044
  if "Affiliation" in kwargs:
1147
1045
  self.Affiliation = kwargs["Affiliation"]
1148
- if 2 < len(args):
1149
- self.Action = args[2]
1046
+ if 3 < len(args):
1047
+ self.Action = args[3]
1150
1048
  if "Action" in kwargs:
1151
1049
  self.Action = kwargs["Action"]
1152
1050
  def __del__(self):
@@ -1181,6 +1079,15 @@ class GroupParticipant(go.GoClass):
1181
1079
  else:
1182
1080
  _whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value)
1183
1081
  @property
1082
+ def Nickname(self):
1083
+ return _whatsapp.whatsapp_GroupParticipant_Nickname_Get(self.handle)
1084
+ @Nickname.setter
1085
+ def Nickname(self, value):
1086
+ if isinstance(value, go.GoClass):
1087
+ _whatsapp.whatsapp_GroupParticipant_Nickname_Set(self.handle, value.handle)
1088
+ else:
1089
+ _whatsapp.whatsapp_GroupParticipant_Nickname_Set(self.handle, value)
1090
+ @property
1184
1091
  def Affiliation(self):
1185
1092
  return _whatsapp.whatsapp_GroupParticipant_Affiliation_Get(self.handle)
1186
1093
  @Affiliation.setter
@@ -1199,9 +1106,9 @@ class GroupParticipant(go.GoClass):
1199
1106
  else:
1200
1107
  _whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value)
1201
1108
 
1202
- # Python type for struct whatsapp.Location
1203
- class Location(go.GoClass):
1204
- """A Location represents additional metadata given to location messages.\n"""
1109
+ # Python type for struct whatsapp.GroupSubject
1110
+ class GroupSubject(go.GoClass):
1111
+ """A GroupSubject represents the user-defined group description and attached metadata thereof, for a\ngiven [Group].\n"""
1205
1112
  def __init__(self, *args, **kwargs):
1206
1113
  """
1207
1114
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -1215,41 +1122,25 @@ class Location(go.GoClass):
1215
1122
  self.handle = args[0].handle
1216
1123
  _whatsapp.IncRef(self.handle)
1217
1124
  else:
1218
- self.handle = _whatsapp.whatsapp_Location_CTor()
1125
+ self.handle = _whatsapp.whatsapp_GroupSubject_CTor()
1219
1126
  _whatsapp.IncRef(self.handle)
1220
1127
  if 0 < len(args):
1221
- self.Latitude = args[0]
1222
- if "Latitude" in kwargs:
1223
- self.Latitude = kwargs["Latitude"]
1128
+ self.Subject = args[0]
1129
+ if "Subject" in kwargs:
1130
+ self.Subject = kwargs["Subject"]
1224
1131
  if 1 < len(args):
1225
- self.Longitude = args[1]
1226
- if "Longitude" in kwargs:
1227
- self.Longitude = kwargs["Longitude"]
1132
+ self.SetAt = args[1]
1133
+ if "SetAt" in kwargs:
1134
+ self.SetAt = kwargs["SetAt"]
1228
1135
  if 2 < len(args):
1229
- self.Accuracy = args[2]
1230
- if "Accuracy" in kwargs:
1231
- self.Accuracy = kwargs["Accuracy"]
1232
- if 3 < len(args):
1233
- self.IsLive = args[3]
1234
- if "IsLive" in kwargs:
1235
- self.IsLive = kwargs["IsLive"]
1236
- if 4 < len(args):
1237
- self.Name = args[4]
1238
- if "Name" in kwargs:
1239
- self.Name = kwargs["Name"]
1240
- if 5 < len(args):
1241
- self.Address = args[5]
1242
- if "Address" in kwargs:
1243
- self.Address = kwargs["Address"]
1244
- if 6 < len(args):
1245
- self.URL = args[6]
1246
- if "URL" in kwargs:
1247
- self.URL = kwargs["URL"]
1136
+ self.SetBy = args[2]
1137
+ if "SetBy" in kwargs:
1138
+ self.SetBy = kwargs["SetBy"]
1248
1139
  def __del__(self):
1249
1140
  _whatsapp.DecRef(self.handle)
1250
1141
  def __str__(self):
1251
1142
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1252
- sv = 'whatsapp.Location{'
1143
+ sv = 'whatsapp.GroupSubject{'
1253
1144
  first = True
1254
1145
  for v in pr:
1255
1146
  if callable(v[1]):
@@ -1262,76 +1153,38 @@ class Location(go.GoClass):
1262
1153
  return sv + '}'
1263
1154
  def __repr__(self):
1264
1155
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1265
- sv = 'whatsapp.Location ( '
1156
+ sv = 'whatsapp.GroupSubject ( '
1266
1157
  for v in pr:
1267
1158
  if not callable(v[1]):
1268
1159
  sv += v[0] + '=' + str(v[1]) + ', '
1269
1160
  return sv + ')'
1270
1161
  @property
1271
- def Latitude(self):
1272
- return _whatsapp.whatsapp_Location_Latitude_Get(self.handle)
1273
- @Latitude.setter
1274
- def Latitude(self, value):
1275
- if isinstance(value, go.GoClass):
1276
- _whatsapp.whatsapp_Location_Latitude_Set(self.handle, value.handle)
1277
- else:
1278
- _whatsapp.whatsapp_Location_Latitude_Set(self.handle, value)
1279
- @property
1280
- def Longitude(self):
1281
- return _whatsapp.whatsapp_Location_Longitude_Get(self.handle)
1282
- @Longitude.setter
1283
- def Longitude(self, value):
1284
- if isinstance(value, go.GoClass):
1285
- _whatsapp.whatsapp_Location_Longitude_Set(self.handle, value.handle)
1286
- else:
1287
- _whatsapp.whatsapp_Location_Longitude_Set(self.handle, value)
1288
- @property
1289
- def Accuracy(self):
1290
- return _whatsapp.whatsapp_Location_Accuracy_Get(self.handle)
1291
- @Accuracy.setter
1292
- def Accuracy(self, value):
1293
- if isinstance(value, go.GoClass):
1294
- _whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value.handle)
1295
- else:
1296
- _whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value)
1297
- @property
1298
- def IsLive(self):
1299
- return _whatsapp.whatsapp_Location_IsLive_Get(self.handle)
1300
- @IsLive.setter
1301
- def IsLive(self, value):
1302
- if isinstance(value, go.GoClass):
1303
- _whatsapp.whatsapp_Location_IsLive_Set(self.handle, value.handle)
1304
- else:
1305
- _whatsapp.whatsapp_Location_IsLive_Set(self.handle, value)
1306
- @property
1307
- def Name(self):
1308
- """Optional fields given for named locations.
1309
- """
1310
- return _whatsapp.whatsapp_Location_Name_Get(self.handle)
1311
- @Name.setter
1312
- def Name(self, value):
1162
+ def Subject(self):
1163
+ return _whatsapp.whatsapp_GroupSubject_Subject_Get(self.handle)
1164
+ @Subject.setter
1165
+ def Subject(self, value):
1313
1166
  if isinstance(value, go.GoClass):
1314
- _whatsapp.whatsapp_Location_Name_Set(self.handle, value.handle)
1167
+ _whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value.handle)
1315
1168
  else:
1316
- _whatsapp.whatsapp_Location_Name_Set(self.handle, value)
1169
+ _whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value)
1317
1170
  @property
1318
- def Address(self):
1319
- return _whatsapp.whatsapp_Location_Address_Get(self.handle)
1320
- @Address.setter
1321
- def Address(self, value):
1171
+ def SetAt(self):
1172
+ return _whatsapp.whatsapp_GroupSubject_SetAt_Get(self.handle)
1173
+ @SetAt.setter
1174
+ def SetAt(self, value):
1322
1175
  if isinstance(value, go.GoClass):
1323
- _whatsapp.whatsapp_Location_Address_Set(self.handle, value.handle)
1176
+ _whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value.handle)
1324
1177
  else:
1325
- _whatsapp.whatsapp_Location_Address_Set(self.handle, value)
1178
+ _whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value)
1326
1179
  @property
1327
- def URL(self):
1328
- return _whatsapp.whatsapp_Location_URL_Get(self.handle)
1329
- @URL.setter
1330
- def URL(self, value):
1180
+ def SetBy(self):
1181
+ return _whatsapp.whatsapp_GroupSubject_SetBy_Get(self.handle)
1182
+ @SetBy.setter
1183
+ def SetBy(self, value):
1331
1184
  if isinstance(value, go.GoClass):
1332
- _whatsapp.whatsapp_Location_URL_Set(self.handle, value.handle)
1185
+ _whatsapp.whatsapp_GroupSubject_SetBy_Set(self.handle, value.handle)
1333
1186
  else:
1334
- _whatsapp.whatsapp_Location_URL_Set(self.handle, value)
1187
+ _whatsapp.whatsapp_GroupSubject_SetBy_Set(self.handle, value)
1335
1188
 
1336
1189
  # Python type for struct whatsapp.Session
1337
1190
  class Session(go.GoClass):
@@ -1526,9 +1379,9 @@ class Session(go.GoClass):
1526
1379
  """
1527
1380
  _whatsapp.whatsapp_Session_SetEventHandler(self.handle, h, goRun)
1528
1381
 
1529
- # Python type for struct whatsapp.Album
1530
- class Album(go.GoClass):
1531
- """A Album message represents a collection of media files, typically images and videos.\n"""
1382
+ # Python type for struct whatsapp.Attachment
1383
+ class Attachment(go.GoClass):
1384
+ """A Attachment represents additional binary data (e.g. images, videos, documents) provided alongside\na message, for display or storage on the recepient client.\n"""
1532
1385
  def __init__(self, *args, **kwargs):
1533
1386
  """
1534
1387
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -1542,25 +1395,29 @@ class Album(go.GoClass):
1542
1395
  self.handle = args[0].handle
1543
1396
  _whatsapp.IncRef(self.handle)
1544
1397
  else:
1545
- self.handle = _whatsapp.whatsapp_Album_CTor()
1398
+ self.handle = _whatsapp.whatsapp_Attachment_CTor()
1546
1399
  _whatsapp.IncRef(self.handle)
1547
1400
  if 0 < len(args):
1548
- self.IsAlbum = args[0]
1549
- if "IsAlbum" in kwargs:
1550
- self.IsAlbum = kwargs["IsAlbum"]
1401
+ self.MIME = args[0]
1402
+ if "MIME" in kwargs:
1403
+ self.MIME = kwargs["MIME"]
1551
1404
  if 1 < len(args):
1552
- self.ImageCount = args[1]
1553
- if "ImageCount" in kwargs:
1554
- self.ImageCount = kwargs["ImageCount"]
1405
+ self.Filename = args[1]
1406
+ if "Filename" in kwargs:
1407
+ self.Filename = kwargs["Filename"]
1555
1408
  if 2 < len(args):
1556
- self.VideoCount = args[2]
1557
- if "VideoCount" in kwargs:
1558
- self.VideoCount = kwargs["VideoCount"]
1559
- def __del__(self):
1560
- _whatsapp.DecRef(self.handle)
1561
- def __str__(self):
1562
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1563
- sv = 'whatsapp.Album{'
1409
+ self.Caption = args[2]
1410
+ if "Caption" in kwargs:
1411
+ self.Caption = kwargs["Caption"]
1412
+ if 3 < len(args):
1413
+ self.Data = args[3]
1414
+ if "Data" in kwargs:
1415
+ self.Data = kwargs["Data"]
1416
+ def __del__(self):
1417
+ _whatsapp.DecRef(self.handle)
1418
+ def __str__(self):
1419
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1420
+ sv = 'whatsapp.Attachment{'
1564
1421
  first = True
1565
1422
  for v in pr:
1566
1423
  if callable(v[1]):
@@ -1573,42 +1430,57 @@ class Album(go.GoClass):
1573
1430
  return sv + '}'
1574
1431
  def __repr__(self):
1575
1432
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1576
- sv = 'whatsapp.Album ( '
1433
+ sv = 'whatsapp.Attachment ( '
1577
1434
  for v in pr:
1578
1435
  if not callable(v[1]):
1579
1436
  sv += v[0] + '=' + str(v[1]) + ', '
1580
1437
  return sv + ')'
1581
1438
  @property
1582
- def IsAlbum(self):
1583
- return _whatsapp.whatsapp_Album_IsAlbum_Get(self.handle)
1584
- @IsAlbum.setter
1585
- def IsAlbum(self, value):
1439
+ def MIME(self):
1440
+ return _whatsapp.whatsapp_Attachment_MIME_Get(self.handle)
1441
+ @MIME.setter
1442
+ def MIME(self, value):
1586
1443
  if isinstance(value, go.GoClass):
1587
- _whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value.handle)
1444
+ _whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value.handle)
1588
1445
  else:
1589
- _whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value)
1446
+ _whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value)
1590
1447
  @property
1591
- def ImageCount(self):
1592
- return _whatsapp.whatsapp_Album_ImageCount_Get(self.handle)
1593
- @ImageCount.setter
1594
- def ImageCount(self, value):
1448
+ def Filename(self):
1449
+ return _whatsapp.whatsapp_Attachment_Filename_Get(self.handle)
1450
+ @Filename.setter
1451
+ def Filename(self, value):
1595
1452
  if isinstance(value, go.GoClass):
1596
- _whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value.handle)
1453
+ _whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value.handle)
1597
1454
  else:
1598
- _whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value)
1455
+ _whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value)
1599
1456
  @property
1600
- def VideoCount(self):
1601
- return _whatsapp.whatsapp_Album_VideoCount_Get(self.handle)
1602
- @VideoCount.setter
1603
- def VideoCount(self, value):
1457
+ def Caption(self):
1458
+ return _whatsapp.whatsapp_Attachment_Caption_Get(self.handle)
1459
+ @Caption.setter
1460
+ def Caption(self, value):
1604
1461
  if isinstance(value, go.GoClass):
1605
- _whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value.handle)
1462
+ _whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value.handle)
1606
1463
  else:
1607
- _whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value)
1464
+ _whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value)
1465
+ @property
1466
+ def Data(self):
1467
+ return go.Slice_byte(handle=_whatsapp.whatsapp_Attachment_Data_Get(self.handle))
1468
+ @Data.setter
1469
+ def Data(self, value):
1470
+ if isinstance(value, go.GoClass):
1471
+ _whatsapp.whatsapp_Attachment_Data_Set(self.handle, value.handle)
1472
+ else:
1473
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1474
+ def GetSpec(self, ctx):
1475
+ """GetSpec(object ctx) object, str
1476
+
1477
+ GetSpec returns metadata for this attachment, as derived from the underlying attachment data.
1478
+ """
1479
+ return go.Ptr_media_Spec(handle=_whatsapp.whatsapp_Attachment_GetSpec(self.handle, ctx.handle))
1608
1480
 
1609
- # Python type for struct whatsapp.Gateway
1610
- class Gateway(go.GoClass):
1611
- """A Gateway represents a persistent process for establishing individual sessions between linked\ndevices and WhatsApp.\n"""
1481
+ # Python type for struct whatsapp.Call
1482
+ class Call(go.GoClass):
1483
+ """A Call represents an incoming or outgoing voice/video call made over WhatsApp. Full support for\ncalls is currently not implemented, and this structure contains the bare minimum data required\nfor notifying on missed calls.\n"""
1612
1484
  def __init__(self, *args, **kwargs):
1613
1485
  """
1614
1486
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -1622,29 +1494,25 @@ class Gateway(go.GoClass):
1622
1494
  self.handle = args[0].handle
1623
1495
  _whatsapp.IncRef(self.handle)
1624
1496
  else:
1625
- self.handle = _whatsapp.whatsapp_Gateway_CTor()
1497
+ self.handle = _whatsapp.whatsapp_Call_CTor()
1626
1498
  _whatsapp.IncRef(self.handle)
1627
1499
  if 0 < len(args):
1628
- self.DBPath = args[0]
1629
- if "DBPath" in kwargs:
1630
- self.DBPath = kwargs["DBPath"]
1500
+ self.State = args[0]
1501
+ if "State" in kwargs:
1502
+ self.State = kwargs["State"]
1631
1503
  if 1 < len(args):
1632
- self.Name = args[1]
1633
- if "Name" in kwargs:
1634
- self.Name = kwargs["Name"]
1504
+ self.JID = args[1]
1505
+ if "JID" in kwargs:
1506
+ self.JID = kwargs["JID"]
1635
1507
  if 2 < len(args):
1636
- self.LogLevel = args[2]
1637
- if "LogLevel" in kwargs:
1638
- self.LogLevel = kwargs["LogLevel"]
1639
- if 3 < len(args):
1640
- self.TempDir = args[3]
1641
- if "TempDir" in kwargs:
1642
- self.TempDir = kwargs["TempDir"]
1508
+ self.Timestamp = args[2]
1509
+ if "Timestamp" in kwargs:
1510
+ self.Timestamp = kwargs["Timestamp"]
1643
1511
  def __del__(self):
1644
1512
  _whatsapp.DecRef(self.handle)
1645
1513
  def __str__(self):
1646
1514
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1647
- sv = 'whatsapp.Gateway{'
1515
+ sv = 'whatsapp.Call{'
1648
1516
  first = True
1649
1517
  for v in pr:
1650
1518
  if callable(v[1]):
@@ -1657,72 +1525,42 @@ class Gateway(go.GoClass):
1657
1525
  return sv + '}'
1658
1526
  def __repr__(self):
1659
1527
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1660
- sv = 'whatsapp.Gateway ( '
1528
+ sv = 'whatsapp.Call ( '
1661
1529
  for v in pr:
1662
1530
  if not callable(v[1]):
1663
1531
  sv += v[0] + '=' + str(v[1]) + ', '
1664
1532
  return sv + ')'
1665
1533
  @property
1666
- def DBPath(self):
1667
- return _whatsapp.whatsapp_Gateway_DBPath_Get(self.handle)
1668
- @DBPath.setter
1669
- def DBPath(self, value):
1670
- if isinstance(value, go.GoClass):
1671
- _whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value.handle)
1672
- else:
1673
- _whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value)
1674
- @property
1675
- def Name(self):
1676
- return _whatsapp.whatsapp_Gateway_Name_Get(self.handle)
1677
- @Name.setter
1678
- def Name(self, value):
1534
+ def State(self):
1535
+ return _whatsapp.whatsapp_Call_State_Get(self.handle)
1536
+ @State.setter
1537
+ def State(self, value):
1679
1538
  if isinstance(value, go.GoClass):
1680
- _whatsapp.whatsapp_Gateway_Name_Set(self.handle, value.handle)
1539
+ _whatsapp.whatsapp_Call_State_Set(self.handle, value.handle)
1681
1540
  else:
1682
- _whatsapp.whatsapp_Gateway_Name_Set(self.handle, value)
1541
+ _whatsapp.whatsapp_Call_State_Set(self.handle, value)
1683
1542
  @property
1684
- def LogLevel(self):
1685
- return _whatsapp.whatsapp_Gateway_LogLevel_Get(self.handle)
1686
- @LogLevel.setter
1687
- def LogLevel(self, value):
1543
+ def JID(self):
1544
+ return _whatsapp.whatsapp_Call_JID_Get(self.handle)
1545
+ @JID.setter
1546
+ def JID(self, value):
1688
1547
  if isinstance(value, go.GoClass):
1689
- _whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value.handle)
1548
+ _whatsapp.whatsapp_Call_JID_Set(self.handle, value.handle)
1690
1549
  else:
1691
- _whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value)
1550
+ _whatsapp.whatsapp_Call_JID_Set(self.handle, value)
1692
1551
  @property
1693
- def TempDir(self):
1694
- return _whatsapp.whatsapp_Gateway_TempDir_Get(self.handle)
1695
- @TempDir.setter
1696
- def TempDir(self, value):
1552
+ def Timestamp(self):
1553
+ return _whatsapp.whatsapp_Call_Timestamp_Get(self.handle)
1554
+ @Timestamp.setter
1555
+ def Timestamp(self, value):
1697
1556
  if isinstance(value, go.GoClass):
1698
- _whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value.handle)
1557
+ _whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value.handle)
1699
1558
  else:
1700
- _whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value)
1701
- def Init(self):
1702
- """Init() str
1703
-
1704
- Init performs initialization procedures for the Gateway, and is expected to be run before any
1705
- calls to [Gateway.Session].
1706
- """
1707
- return _whatsapp.whatsapp_Gateway_Init(self.handle)
1708
- def NewSession(self, device):
1709
- """NewSession(object device) object
1710
-
1711
- NewSession returns a new [Session] for the LinkedDevice given. If the linked device does not have
1712
- a valid ID, a pair operation will be required, as described in [Session.Login].
1713
- """
1714
- return Session(handle=_whatsapp.whatsapp_Gateway_NewSession(self.handle, device.handle))
1715
- def CleanupSession(self, device):
1716
- """CleanupSession(object device) str
1717
-
1718
- CleanupSession will remove all invalid and obsolete references to the given device, and should be
1719
- used when pairing a new device or unregistering from the Gateway.
1720
- """
1721
- return _whatsapp.whatsapp_Gateway_CleanupSession(self.handle, device.handle)
1559
+ _whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value)
1722
1560
 
1723
- # Python type for struct whatsapp.Preview
1724
- class Preview(go.GoClass):
1725
- """A Preview represents a short description for a URL provided in a message body, as usually derived\nfrom the content of the page pointed at.\n"""
1561
+ # Python type for struct whatsapp.Avatar
1562
+ class Avatar(go.GoClass):
1563
+ """A Avatar represents a small image set for a Contact or Group.\n"""
1726
1564
  def __init__(self, *args, **kwargs):
1727
1565
  """
1728
1566
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -1736,33 +1574,21 @@ class Preview(go.GoClass):
1736
1574
  self.handle = args[0].handle
1737
1575
  _whatsapp.IncRef(self.handle)
1738
1576
  else:
1739
- self.handle = _whatsapp.whatsapp_Preview_CTor()
1577
+ self.handle = _whatsapp.whatsapp_Avatar_CTor()
1740
1578
  _whatsapp.IncRef(self.handle)
1741
1579
  if 0 < len(args):
1742
- self.Kind = args[0]
1743
- if "Kind" in kwargs:
1744
- self.Kind = kwargs["Kind"]
1580
+ self.ID = args[0]
1581
+ if "ID" in kwargs:
1582
+ self.ID = kwargs["ID"]
1745
1583
  if 1 < len(args):
1746
1584
  self.URL = args[1]
1747
1585
  if "URL" in kwargs:
1748
1586
  self.URL = kwargs["URL"]
1749
- if 2 < len(args):
1750
- self.Title = args[2]
1751
- if "Title" in kwargs:
1752
- self.Title = kwargs["Title"]
1753
- if 3 < len(args):
1754
- self.Description = args[3]
1755
- if "Description" in kwargs:
1756
- self.Description = kwargs["Description"]
1757
- if 4 < len(args):
1758
- self.Thumbnail = args[4]
1759
- if "Thumbnail" in kwargs:
1760
- self.Thumbnail = kwargs["Thumbnail"]
1761
1587
  def __del__(self):
1762
1588
  _whatsapp.DecRef(self.handle)
1763
1589
  def __str__(self):
1764
1590
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1765
- sv = 'whatsapp.Preview{'
1591
+ sv = 'whatsapp.Avatar{'
1766
1592
  first = True
1767
1593
  for v in pr:
1768
1594
  if callable(v[1]):
@@ -1775,60 +1601,33 @@ class Preview(go.GoClass):
1775
1601
  return sv + '}'
1776
1602
  def __repr__(self):
1777
1603
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1778
- sv = 'whatsapp.Preview ( '
1604
+ sv = 'whatsapp.Avatar ( '
1779
1605
  for v in pr:
1780
1606
  if not callable(v[1]):
1781
1607
  sv += v[0] + '=' + str(v[1]) + ', '
1782
1608
  return sv + ')'
1783
1609
  @property
1784
- def Kind(self):
1785
- return _whatsapp.whatsapp_Preview_Kind_Get(self.handle)
1786
- @Kind.setter
1787
- def Kind(self, value):
1610
+ def ID(self):
1611
+ return _whatsapp.whatsapp_Avatar_ID_Get(self.handle)
1612
+ @ID.setter
1613
+ def ID(self, value):
1788
1614
  if isinstance(value, go.GoClass):
1789
- _whatsapp.whatsapp_Preview_Kind_Set(self.handle, value.handle)
1615
+ _whatsapp.whatsapp_Avatar_ID_Set(self.handle, value.handle)
1790
1616
  else:
1791
- _whatsapp.whatsapp_Preview_Kind_Set(self.handle, value)
1617
+ _whatsapp.whatsapp_Avatar_ID_Set(self.handle, value)
1792
1618
  @property
1793
1619
  def URL(self):
1794
- return _whatsapp.whatsapp_Preview_URL_Get(self.handle)
1620
+ return _whatsapp.whatsapp_Avatar_URL_Get(self.handle)
1795
1621
  @URL.setter
1796
1622
  def URL(self, value):
1797
1623
  if isinstance(value, go.GoClass):
1798
- _whatsapp.whatsapp_Preview_URL_Set(self.handle, value.handle)
1799
- else:
1800
- _whatsapp.whatsapp_Preview_URL_Set(self.handle, value)
1801
- @property
1802
- def Title(self):
1803
- return _whatsapp.whatsapp_Preview_Title_Get(self.handle)
1804
- @Title.setter
1805
- def Title(self, value):
1806
- if isinstance(value, go.GoClass):
1807
- _whatsapp.whatsapp_Preview_Title_Set(self.handle, value.handle)
1808
- else:
1809
- _whatsapp.whatsapp_Preview_Title_Set(self.handle, value)
1810
- @property
1811
- def Description(self):
1812
- return _whatsapp.whatsapp_Preview_Description_Get(self.handle)
1813
- @Description.setter
1814
- def Description(self, value):
1815
- if isinstance(value, go.GoClass):
1816
- _whatsapp.whatsapp_Preview_Description_Set(self.handle, value.handle)
1817
- else:
1818
- _whatsapp.whatsapp_Preview_Description_Set(self.handle, value)
1819
- @property
1820
- def Thumbnail(self):
1821
- return go.Slice_byte(handle=_whatsapp.whatsapp_Preview_Thumbnail_Get(self.handle))
1822
- @Thumbnail.setter
1823
- def Thumbnail(self, value):
1824
- if isinstance(value, go.GoClass):
1825
- _whatsapp.whatsapp_Preview_Thumbnail_Set(self.handle, value.handle)
1624
+ _whatsapp.whatsapp_Avatar_URL_Set(self.handle, value.handle)
1826
1625
  else:
1827
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1626
+ _whatsapp.whatsapp_Avatar_URL_Set(self.handle, value)
1828
1627
 
1829
- # Python type for struct whatsapp.ChatState
1830
- class ChatState(go.GoClass):
1831
- """A ChatState represents the activity of a contact within a certain discussion, for instance,\nwhether the contact is currently composing a message. This is separate to the concept of a\nPresence, which is the contact's general state across all discussions.\n"""
1628
+ # Python type for struct whatsapp.EventPayload
1629
+ class EventPayload(go.GoClass):
1630
+ """EventPayload represents the collected payloads for all event types handled by the overarching\nsession adapter handler. Only specific fields will be populated in events emitted by internal\nhandlers, see documentation for specific types for more information.\n"""
1832
1631
  def __init__(self, *args, **kwargs):
1833
1632
  """
1834
1633
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -1842,239 +1641,12 @@ class ChatState(go.GoClass):
1842
1641
  self.handle = args[0].handle
1843
1642
  _whatsapp.IncRef(self.handle)
1844
1643
  else:
1845
- self.handle = _whatsapp.whatsapp_ChatState_CTor()
1644
+ self.handle = _whatsapp.whatsapp_EventPayload_CTor()
1846
1645
  _whatsapp.IncRef(self.handle)
1847
1646
  if 0 < len(args):
1848
- self.Kind = args[0]
1849
- if "Kind" in kwargs:
1850
- self.Kind = kwargs["Kind"]
1851
- if 1 < len(args):
1852
- self.JID = args[1]
1853
- if "JID" in kwargs:
1854
- self.JID = kwargs["JID"]
1855
- if 2 < len(args):
1856
- self.GroupJID = args[2]
1857
- if "GroupJID" in kwargs:
1858
- self.GroupJID = kwargs["GroupJID"]
1859
- def __del__(self):
1860
- _whatsapp.DecRef(self.handle)
1861
- def __str__(self):
1862
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1863
- sv = 'whatsapp.ChatState{'
1864
- first = True
1865
- for v in pr:
1866
- if callable(v[1]):
1867
- continue
1868
- if first:
1869
- first = False
1870
- else:
1871
- sv += ', '
1872
- sv += v[0] + '=' + str(v[1])
1873
- return sv + '}'
1874
- def __repr__(self):
1875
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1876
- sv = 'whatsapp.ChatState ( '
1877
- for v in pr:
1878
- if not callable(v[1]):
1879
- sv += v[0] + '=' + str(v[1]) + ', '
1880
- return sv + ')'
1881
- @property
1882
- def Kind(self):
1883
- return _whatsapp.whatsapp_ChatState_Kind_Get(self.handle)
1884
- @Kind.setter
1885
- def Kind(self, value):
1886
- if isinstance(value, go.GoClass):
1887
- _whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value.handle)
1888
- else:
1889
- _whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value)
1890
- @property
1891
- def JID(self):
1892
- return _whatsapp.whatsapp_ChatState_JID_Get(self.handle)
1893
- @JID.setter
1894
- def JID(self, value):
1895
- if isinstance(value, go.GoClass):
1896
- _whatsapp.whatsapp_ChatState_JID_Set(self.handle, value.handle)
1897
- else:
1898
- _whatsapp.whatsapp_ChatState_JID_Set(self.handle, value)
1899
- @property
1900
- def GroupJID(self):
1901
- return _whatsapp.whatsapp_ChatState_GroupJID_Get(self.handle)
1902
- @GroupJID.setter
1903
- def GroupJID(self, value):
1904
- if isinstance(value, go.GoClass):
1905
- _whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value.handle)
1906
- else:
1907
- _whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value)
1908
-
1909
- # Python type for struct whatsapp.Presence
1910
- class Presence(go.GoClass):
1911
- """Precence represents a contact's general state of activity, and is periodically updated as\ncontacts start or stop paying attention to their client of choice.\n"""
1912
- def __init__(self, *args, **kwargs):
1913
- """
1914
- handle=A Go-side object is always initialized with an explicit handle=arg
1915
- otherwise parameters can be unnamed in order of field names or named fields
1916
- in which case a new Go object is constructed first
1917
- """
1918
- if len(kwargs) == 1 and 'handle' in kwargs:
1919
- self.handle = kwargs['handle']
1920
- _whatsapp.IncRef(self.handle)
1921
- elif len(args) == 1 and isinstance(args[0], go.GoClass):
1922
- self.handle = args[0].handle
1923
- _whatsapp.IncRef(self.handle)
1924
- else:
1925
- self.handle = _whatsapp.whatsapp_Presence_CTor()
1926
- _whatsapp.IncRef(self.handle)
1927
- if 0 < len(args):
1928
- self.JID = args[0]
1929
- if "JID" in kwargs:
1930
- self.JID = kwargs["JID"]
1931
- if 1 < len(args):
1932
- self.Kind = args[1]
1933
- if "Kind" in kwargs:
1934
- self.Kind = kwargs["Kind"]
1935
- if 2 < len(args):
1936
- self.LastSeen = args[2]
1937
- if "LastSeen" in kwargs:
1938
- self.LastSeen = kwargs["LastSeen"]
1939
- def __del__(self):
1940
- _whatsapp.DecRef(self.handle)
1941
- def __str__(self):
1942
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1943
- sv = 'whatsapp.Presence{'
1944
- first = True
1945
- for v in pr:
1946
- if callable(v[1]):
1947
- continue
1948
- if first:
1949
- first = False
1950
- else:
1951
- sv += ', '
1952
- sv += v[0] + '=' + str(v[1])
1953
- return sv + '}'
1954
- def __repr__(self):
1955
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1956
- sv = 'whatsapp.Presence ( '
1957
- for v in pr:
1958
- if not callable(v[1]):
1959
- sv += v[0] + '=' + str(v[1]) + ', '
1960
- return sv + ')'
1961
- @property
1962
- def JID(self):
1963
- return _whatsapp.whatsapp_Presence_JID_Get(self.handle)
1964
- @JID.setter
1965
- def JID(self, value):
1966
- if isinstance(value, go.GoClass):
1967
- _whatsapp.whatsapp_Presence_JID_Set(self.handle, value.handle)
1968
- else:
1969
- _whatsapp.whatsapp_Presence_JID_Set(self.handle, value)
1970
- @property
1971
- def Kind(self):
1972
- return _whatsapp.whatsapp_Presence_Kind_Get(self.handle)
1973
- @Kind.setter
1974
- def Kind(self, value):
1975
- if isinstance(value, go.GoClass):
1976
- _whatsapp.whatsapp_Presence_Kind_Set(self.handle, value.handle)
1977
- else:
1978
- _whatsapp.whatsapp_Presence_Kind_Set(self.handle, value)
1979
- @property
1980
- def LastSeen(self):
1981
- return _whatsapp.whatsapp_Presence_LastSeen_Get(self.handle)
1982
- @LastSeen.setter
1983
- def LastSeen(self, value):
1984
- if isinstance(value, go.GoClass):
1985
- _whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value.handle)
1986
- else:
1987
- _whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value)
1988
-
1989
- # Python type for struct whatsapp.Connect
1990
- class Connect(go.GoClass):
1991
- """Connect represents event data related to a connection to WhatsApp being established, or failing\nto do so (based on the [Connect.Error] result).\n"""
1992
- def __init__(self, *args, **kwargs):
1993
- """
1994
- handle=A Go-side object is always initialized with an explicit handle=arg
1995
- otherwise parameters can be unnamed in order of field names or named fields
1996
- in which case a new Go object is constructed first
1997
- """
1998
- if len(kwargs) == 1 and 'handle' in kwargs:
1999
- self.handle = kwargs['handle']
2000
- _whatsapp.IncRef(self.handle)
2001
- elif len(args) == 1 and isinstance(args[0], go.GoClass):
2002
- self.handle = args[0].handle
2003
- _whatsapp.IncRef(self.handle)
2004
- else:
2005
- self.handle = _whatsapp.whatsapp_Connect_CTor()
2006
- _whatsapp.IncRef(self.handle)
2007
- if 0 < len(args):
2008
- self.JID = args[0]
2009
- if "JID" in kwargs:
2010
- self.JID = kwargs["JID"]
2011
- if 1 < len(args):
2012
- self.Error = args[1]
2013
- if "Error" in kwargs:
2014
- self.Error = kwargs["Error"]
2015
- def __del__(self):
2016
- _whatsapp.DecRef(self.handle)
2017
- def __str__(self):
2018
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2019
- sv = 'whatsapp.Connect{'
2020
- first = True
2021
- for v in pr:
2022
- if callable(v[1]):
2023
- continue
2024
- if first:
2025
- first = False
2026
- else:
2027
- sv += ', '
2028
- sv += v[0] + '=' + str(v[1])
2029
- return sv + '}'
2030
- def __repr__(self):
2031
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2032
- sv = 'whatsapp.Connect ( '
2033
- for v in pr:
2034
- if not callable(v[1]):
2035
- sv += v[0] + '=' + str(v[1]) + ', '
2036
- return sv + ')'
2037
- @property
2038
- def JID(self):
2039
- return _whatsapp.whatsapp_Connect_JID_Get(self.handle)
2040
- @JID.setter
2041
- def JID(self, value):
2042
- if isinstance(value, go.GoClass):
2043
- _whatsapp.whatsapp_Connect_JID_Set(self.handle, value.handle)
2044
- else:
2045
- _whatsapp.whatsapp_Connect_JID_Set(self.handle, value)
2046
- @property
2047
- def Error(self):
2048
- return _whatsapp.whatsapp_Connect_Error_Get(self.handle)
2049
- @Error.setter
2050
- def Error(self, value):
2051
- if isinstance(value, go.GoClass):
2052
- _whatsapp.whatsapp_Connect_Error_Set(self.handle, value.handle)
2053
- else:
2054
- _whatsapp.whatsapp_Connect_Error_Set(self.handle, value)
2055
-
2056
- # Python type for struct whatsapp.EventPayload
2057
- class EventPayload(go.GoClass):
2058
- """EventPayload represents the collected payloads for all event types handled by the overarching\nsession adapter handler. Only specific fields will be populated in events emitted by internal\nhandlers, see documentation for specific types for more information.\n"""
2059
- def __init__(self, *args, **kwargs):
2060
- """
2061
- handle=A Go-side object is always initialized with an explicit handle=arg
2062
- otherwise parameters can be unnamed in order of field names or named fields
2063
- in which case a new Go object is constructed first
2064
- """
2065
- if len(kwargs) == 1 and 'handle' in kwargs:
2066
- self.handle = kwargs['handle']
2067
- _whatsapp.IncRef(self.handle)
2068
- elif len(args) == 1 and isinstance(args[0], go.GoClass):
2069
- self.handle = args[0].handle
2070
- _whatsapp.IncRef(self.handle)
2071
- else:
2072
- self.handle = _whatsapp.whatsapp_EventPayload_CTor()
2073
- _whatsapp.IncRef(self.handle)
2074
- if 0 < len(args):
2075
- self.QRCode = args[0]
2076
- if "QRCode" in kwargs:
2077
- self.QRCode = kwargs["QRCode"]
1647
+ self.QRCode = args[0]
1648
+ if "QRCode" in kwargs:
1649
+ self.QRCode = kwargs["QRCode"]
2078
1650
  if 1 < len(args):
2079
1651
  self.PairDeviceID = args[1]
2080
1652
  if "PairDeviceID" in kwargs:
@@ -2084,31 +1656,35 @@ class EventPayload(go.GoClass):
2084
1656
  if "Connect" in kwargs:
2085
1657
  self.Connect = kwargs["Connect"]
2086
1658
  if 3 < len(args):
2087
- self.Contact = args[3]
1659
+ self.LoggedOut = args[3]
1660
+ if "LoggedOut" in kwargs:
1661
+ self.LoggedOut = kwargs["LoggedOut"]
1662
+ if 4 < len(args):
1663
+ self.Contact = args[4]
2088
1664
  if "Contact" in kwargs:
2089
1665
  self.Contact = kwargs["Contact"]
2090
- if 4 < len(args):
2091
- self.Presence = args[4]
1666
+ if 5 < len(args):
1667
+ self.Presence = args[5]
2092
1668
  if "Presence" in kwargs:
2093
1669
  self.Presence = kwargs["Presence"]
2094
- if 5 < len(args):
2095
- self.Message = args[5]
1670
+ if 6 < len(args):
1671
+ self.Message = args[6]
2096
1672
  if "Message" in kwargs:
2097
1673
  self.Message = kwargs["Message"]
2098
- if 6 < len(args):
2099
- self.ChatState = args[6]
1674
+ if 7 < len(args):
1675
+ self.ChatState = args[7]
2100
1676
  if "ChatState" in kwargs:
2101
1677
  self.ChatState = kwargs["ChatState"]
2102
- if 7 < len(args):
2103
- self.Receipt = args[7]
1678
+ if 8 < len(args):
1679
+ self.Receipt = args[8]
2104
1680
  if "Receipt" in kwargs:
2105
1681
  self.Receipt = kwargs["Receipt"]
2106
- if 8 < len(args):
2107
- self.Group = args[8]
1682
+ if 9 < len(args):
1683
+ self.Group = args[9]
2108
1684
  if "Group" in kwargs:
2109
1685
  self.Group = kwargs["Group"]
2110
- if 9 < len(args):
2111
- self.Call = args[9]
1686
+ if 10 < len(args):
1687
+ self.Call = args[10]
2112
1688
  if "Call" in kwargs:
2113
1689
  self.Call = kwargs["Call"]
2114
1690
  def __del__(self):
@@ -2161,6 +1737,15 @@ class EventPayload(go.GoClass):
2161
1737
  else:
2162
1738
  raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2163
1739
  @property
1740
+ def LoggedOut(self):
1741
+ return LoggedOut(handle=_whatsapp.whatsapp_EventPayload_LoggedOut_Get(self.handle))
1742
+ @LoggedOut.setter
1743
+ def LoggedOut(self, value):
1744
+ if isinstance(value, go.GoClass):
1745
+ _whatsapp.whatsapp_EventPayload_LoggedOut_Set(self.handle, value.handle)
1746
+ else:
1747
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1748
+ @property
2164
1749
  def Contact(self):
2165
1750
  return Contact(handle=_whatsapp.whatsapp_EventPayload_Contact_Get(self.handle))
2166
1751
  @Contact.setter
@@ -2224,9 +1809,9 @@ class EventPayload(go.GoClass):
2224
1809
  else:
2225
1810
  raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2226
1811
 
2227
- # Python type for struct whatsapp.Message
2228
- class Message(go.GoClass):
2229
- """A Message represents one of many kinds of bidirectional communication payloads, for example, a\ntext message, a file (image, video) attachment, an emoji reaction, etc. Messages of different\nkinds are denoted as such, and re-use fields where the semantics overlap.\n"""
1812
+ # Python type for struct whatsapp.Location
1813
+ class Location(go.GoClass):
1814
+ """A Location represents additional metadata given to location messages.\n"""
2230
1815
  def __init__(self, *args, **kwargs):
2231
1816
  """
2232
1817
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -2240,89 +1825,41 @@ class Message(go.GoClass):
2240
1825
  self.handle = args[0].handle
2241
1826
  _whatsapp.IncRef(self.handle)
2242
1827
  else:
2243
- self.handle = _whatsapp.whatsapp_Message_CTor()
1828
+ self.handle = _whatsapp.whatsapp_Location_CTor()
2244
1829
  _whatsapp.IncRef(self.handle)
2245
1830
  if 0 < len(args):
2246
- self.Kind = args[0]
2247
- if "Kind" in kwargs:
2248
- self.Kind = kwargs["Kind"]
1831
+ self.Latitude = args[0]
1832
+ if "Latitude" in kwargs:
1833
+ self.Latitude = kwargs["Latitude"]
2249
1834
  if 1 < len(args):
2250
- self.ID = args[1]
2251
- if "ID" in kwargs:
2252
- self.ID = kwargs["ID"]
1835
+ self.Longitude = args[1]
1836
+ if "Longitude" in kwargs:
1837
+ self.Longitude = kwargs["Longitude"]
2253
1838
  if 2 < len(args):
2254
- self.JID = args[2]
2255
- if "JID" in kwargs:
2256
- self.JID = kwargs["JID"]
1839
+ self.Accuracy = args[2]
1840
+ if "Accuracy" in kwargs:
1841
+ self.Accuracy = kwargs["Accuracy"]
2257
1842
  if 3 < len(args):
2258
- self.GroupJID = args[3]
2259
- if "GroupJID" in kwargs:
2260
- self.GroupJID = kwargs["GroupJID"]
1843
+ self.IsLive = args[3]
1844
+ if "IsLive" in kwargs:
1845
+ self.IsLive = kwargs["IsLive"]
2261
1846
  if 4 < len(args):
2262
- self.OriginJID = args[4]
2263
- if "OriginJID" in kwargs:
2264
- self.OriginJID = kwargs["OriginJID"]
1847
+ self.Name = args[4]
1848
+ if "Name" in kwargs:
1849
+ self.Name = kwargs["Name"]
2265
1850
  if 5 < len(args):
2266
- self.Body = args[5]
2267
- if "Body" in kwargs:
2268
- self.Body = kwargs["Body"]
1851
+ self.Address = args[5]
1852
+ if "Address" in kwargs:
1853
+ self.Address = kwargs["Address"]
2269
1854
  if 6 < len(args):
2270
- self.Timestamp = args[6]
2271
- if "Timestamp" in kwargs:
2272
- self.Timestamp = kwargs["Timestamp"]
2273
- if 7 < len(args):
2274
- self.IsCarbon = args[7]
2275
- if "IsCarbon" in kwargs:
2276
- self.IsCarbon = kwargs["IsCarbon"]
2277
- if 8 < len(args):
2278
- self.IsForwarded = args[8]
2279
- if "IsForwarded" in kwargs:
2280
- self.IsForwarded = kwargs["IsForwarded"]
2281
- if 9 < len(args):
2282
- self.ReplyID = args[9]
2283
- if "ReplyID" in kwargs:
2284
- self.ReplyID = kwargs["ReplyID"]
2285
- if 10 < len(args):
2286
- self.ReplyBody = args[10]
2287
- if "ReplyBody" in kwargs:
2288
- self.ReplyBody = kwargs["ReplyBody"]
2289
- if 11 < len(args):
2290
- self.Attachments = args[11]
2291
- if "Attachments" in kwargs:
2292
- self.Attachments = kwargs["Attachments"]
2293
- if 12 < len(args):
2294
- self.Preview = args[12]
2295
- if "Preview" in kwargs:
2296
- self.Preview = kwargs["Preview"]
2297
- if 13 < len(args):
2298
- self.Location = args[13]
2299
- if "Location" in kwargs:
2300
- self.Location = kwargs["Location"]
2301
- if 14 < len(args):
2302
- self.Poll = args[14]
2303
- if "Poll" in kwargs:
2304
- self.Poll = kwargs["Poll"]
2305
- if 15 < len(args):
2306
- self.Album = args[15]
2307
- if "Album" in kwargs:
2308
- self.Album = kwargs["Album"]
2309
- if 16 < len(args):
2310
- self.MentionJIDs = args[16]
2311
- if "MentionJIDs" in kwargs:
2312
- self.MentionJIDs = kwargs["MentionJIDs"]
2313
- if 17 < len(args):
2314
- self.Receipts = args[17]
2315
- if "Receipts" in kwargs:
2316
- self.Receipts = kwargs["Receipts"]
2317
- if 18 < len(args):
2318
- self.Reactions = args[18]
2319
- if "Reactions" in kwargs:
2320
- self.Reactions = kwargs["Reactions"]
1855
+ self.URL = args[6]
1856
+ if "URL" in kwargs:
1857
+ self.URL = kwargs["URL"]
2321
1858
  def __del__(self):
2322
1859
  _whatsapp.DecRef(self.handle)
2323
1860
  def __str__(self):
2324
1861
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2325
- sv = 'whatsapp.Message{'
1862
+ sv = 'whatsapp.Location{'
2326
1863
  first = True
2327
1864
  for v in pr:
2328
1865
  if callable(v[1]):
@@ -2335,186 +1872,281 @@ class Message(go.GoClass):
2335
1872
  return sv + '}'
2336
1873
  def __repr__(self):
2337
1874
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2338
- sv = 'whatsapp.Message ( '
1875
+ sv = 'whatsapp.Location ( '
2339
1876
  for v in pr:
2340
1877
  if not callable(v[1]):
2341
1878
  sv += v[0] + '=' + str(v[1]) + ', '
2342
1879
  return sv + ')'
2343
1880
  @property
2344
- def Kind(self):
2345
- return _whatsapp.whatsapp_Message_Kind_Get(self.handle)
2346
- @Kind.setter
2347
- def Kind(self, value):
2348
- if isinstance(value, go.GoClass):
2349
- _whatsapp.whatsapp_Message_Kind_Set(self.handle, value.handle)
2350
- else:
2351
- _whatsapp.whatsapp_Message_Kind_Set(self.handle, value)
2352
- @property
2353
- def ID(self):
2354
- return _whatsapp.whatsapp_Message_ID_Get(self.handle)
2355
- @ID.setter
2356
- def ID(self, value):
2357
- if isinstance(value, go.GoClass):
2358
- _whatsapp.whatsapp_Message_ID_Set(self.handle, value.handle)
2359
- else:
2360
- _whatsapp.whatsapp_Message_ID_Set(self.handle, value)
2361
- @property
2362
- def JID(self):
2363
- return _whatsapp.whatsapp_Message_JID_Get(self.handle)
2364
- @JID.setter
2365
- def JID(self, value):
2366
- if isinstance(value, go.GoClass):
2367
- _whatsapp.whatsapp_Message_JID_Set(self.handle, value.handle)
2368
- else:
2369
- _whatsapp.whatsapp_Message_JID_Set(self.handle, value)
2370
- @property
2371
- def GroupJID(self):
2372
- return _whatsapp.whatsapp_Message_GroupJID_Get(self.handle)
2373
- @GroupJID.setter
2374
- def GroupJID(self, value):
1881
+ def Latitude(self):
1882
+ return _whatsapp.whatsapp_Location_Latitude_Get(self.handle)
1883
+ @Latitude.setter
1884
+ def Latitude(self, value):
2375
1885
  if isinstance(value, go.GoClass):
2376
- _whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value.handle)
1886
+ _whatsapp.whatsapp_Location_Latitude_Set(self.handle, value.handle)
2377
1887
  else:
2378
- _whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value)
1888
+ _whatsapp.whatsapp_Location_Latitude_Set(self.handle, value)
2379
1889
  @property
2380
- def OriginJID(self):
2381
- return _whatsapp.whatsapp_Message_OriginJID_Get(self.handle)
2382
- @OriginJID.setter
2383
- def OriginJID(self, value):
1890
+ def Longitude(self):
1891
+ return _whatsapp.whatsapp_Location_Longitude_Get(self.handle)
1892
+ @Longitude.setter
1893
+ def Longitude(self, value):
2384
1894
  if isinstance(value, go.GoClass):
2385
- _whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value.handle)
1895
+ _whatsapp.whatsapp_Location_Longitude_Set(self.handle, value.handle)
2386
1896
  else:
2387
- _whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value)
1897
+ _whatsapp.whatsapp_Location_Longitude_Set(self.handle, value)
2388
1898
  @property
2389
- def Body(self):
2390
- return _whatsapp.whatsapp_Message_Body_Get(self.handle)
2391
- @Body.setter
2392
- def Body(self, value):
1899
+ def Accuracy(self):
1900
+ return _whatsapp.whatsapp_Location_Accuracy_Get(self.handle)
1901
+ @Accuracy.setter
1902
+ def Accuracy(self, value):
2393
1903
  if isinstance(value, go.GoClass):
2394
- _whatsapp.whatsapp_Message_Body_Set(self.handle, value.handle)
1904
+ _whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value.handle)
2395
1905
  else:
2396
- _whatsapp.whatsapp_Message_Body_Set(self.handle, value)
1906
+ _whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value)
2397
1907
  @property
2398
- def Timestamp(self):
2399
- return _whatsapp.whatsapp_Message_Timestamp_Get(self.handle)
2400
- @Timestamp.setter
2401
- def Timestamp(self, value):
1908
+ def IsLive(self):
1909
+ return _whatsapp.whatsapp_Location_IsLive_Get(self.handle)
1910
+ @IsLive.setter
1911
+ def IsLive(self, value):
2402
1912
  if isinstance(value, go.GoClass):
2403
- _whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value.handle)
1913
+ _whatsapp.whatsapp_Location_IsLive_Set(self.handle, value.handle)
2404
1914
  else:
2405
- _whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value)
1915
+ _whatsapp.whatsapp_Location_IsLive_Set(self.handle, value)
2406
1916
  @property
2407
- def IsCarbon(self):
2408
- return _whatsapp.whatsapp_Message_IsCarbon_Get(self.handle)
2409
- @IsCarbon.setter
2410
- def IsCarbon(self, value):
1917
+ def Name(self):
1918
+ """Optional fields given for named locations.
1919
+ """
1920
+ return _whatsapp.whatsapp_Location_Name_Get(self.handle)
1921
+ @Name.setter
1922
+ def Name(self, value):
2411
1923
  if isinstance(value, go.GoClass):
2412
- _whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value.handle)
1924
+ _whatsapp.whatsapp_Location_Name_Set(self.handle, value.handle)
2413
1925
  else:
2414
- _whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value)
1926
+ _whatsapp.whatsapp_Location_Name_Set(self.handle, value)
2415
1927
  @property
2416
- def IsForwarded(self):
2417
- return _whatsapp.whatsapp_Message_IsForwarded_Get(self.handle)
2418
- @IsForwarded.setter
2419
- def IsForwarded(self, value):
1928
+ def Address(self):
1929
+ return _whatsapp.whatsapp_Location_Address_Get(self.handle)
1930
+ @Address.setter
1931
+ def Address(self, value):
2420
1932
  if isinstance(value, go.GoClass):
2421
- _whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value.handle)
1933
+ _whatsapp.whatsapp_Location_Address_Set(self.handle, value.handle)
2422
1934
  else:
2423
- _whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value)
1935
+ _whatsapp.whatsapp_Location_Address_Set(self.handle, value)
2424
1936
  @property
2425
- def ReplyID(self):
2426
- return _whatsapp.whatsapp_Message_ReplyID_Get(self.handle)
2427
- @ReplyID.setter
2428
- def ReplyID(self, value):
1937
+ def URL(self):
1938
+ return _whatsapp.whatsapp_Location_URL_Get(self.handle)
1939
+ @URL.setter
1940
+ def URL(self, value):
2429
1941
  if isinstance(value, go.GoClass):
2430
- _whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value.handle)
1942
+ _whatsapp.whatsapp_Location_URL_Set(self.handle, value.handle)
2431
1943
  else:
2432
- _whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value)
2433
- @property
2434
- def ReplyBody(self):
2435
- return _whatsapp.whatsapp_Message_ReplyBody_Get(self.handle)
2436
- @ReplyBody.setter
2437
- def ReplyBody(self, value):
2438
- if isinstance(value, go.GoClass):
2439
- _whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value.handle)
1944
+ _whatsapp.whatsapp_Location_URL_Set(self.handle, value)
1945
+
1946
+ # Python type for struct whatsapp.Poll
1947
+ class Poll(go.GoClass):
1948
+ """A Poll represents a multiple-choice question, on which each choice might be voted for one or more\ntimes.\n"""
1949
+ def __init__(self, *args, **kwargs):
1950
+ """
1951
+ handle=A Go-side object is always initialized with an explicit handle=arg
1952
+ otherwise parameters can be unnamed in order of field names or named fields
1953
+ in which case a new Go object is constructed first
1954
+ """
1955
+ if len(kwargs) == 1 and 'handle' in kwargs:
1956
+ self.handle = kwargs['handle']
1957
+ _whatsapp.IncRef(self.handle)
1958
+ elif len(args) == 1 and isinstance(args[0], go.GoClass):
1959
+ self.handle = args[0].handle
1960
+ _whatsapp.IncRef(self.handle)
2440
1961
  else:
2441
- _whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value)
1962
+ self.handle = _whatsapp.whatsapp_Poll_CTor()
1963
+ _whatsapp.IncRef(self.handle)
1964
+ if 0 < len(args):
1965
+ self.Title = args[0]
1966
+ if "Title" in kwargs:
1967
+ self.Title = kwargs["Title"]
1968
+ if 1 < len(args):
1969
+ self.Options = args[1]
1970
+ if "Options" in kwargs:
1971
+ self.Options = kwargs["Options"]
1972
+ def __del__(self):
1973
+ _whatsapp.DecRef(self.handle)
1974
+ def __str__(self):
1975
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1976
+ sv = 'whatsapp.Poll{'
1977
+ first = True
1978
+ for v in pr:
1979
+ if callable(v[1]):
1980
+ continue
1981
+ if first:
1982
+ first = False
1983
+ else:
1984
+ sv += ', '
1985
+ sv += v[0] + '=' + str(v[1])
1986
+ return sv + '}'
1987
+ def __repr__(self):
1988
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1989
+ sv = 'whatsapp.Poll ( '
1990
+ for v in pr:
1991
+ if not callable(v[1]):
1992
+ sv += v[0] + '=' + str(v[1]) + ', '
1993
+ return sv + ')'
2442
1994
  @property
2443
- def Attachments(self):
2444
- return Slice_whatsapp_Attachment(handle=_whatsapp.whatsapp_Message_Attachments_Get(self.handle))
2445
- @Attachments.setter
2446
- def Attachments(self, value):
1995
+ def Title(self):
1996
+ return _whatsapp.whatsapp_Poll_Title_Get(self.handle)
1997
+ @Title.setter
1998
+ def Title(self, value):
2447
1999
  if isinstance(value, go.GoClass):
2448
- _whatsapp.whatsapp_Message_Attachments_Set(self.handle, value.handle)
2000
+ _whatsapp.whatsapp_Poll_Title_Set(self.handle, value.handle)
2449
2001
  else:
2450
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2002
+ _whatsapp.whatsapp_Poll_Title_Set(self.handle, value)
2451
2003
  @property
2452
- def Preview(self):
2453
- return Preview(handle=_whatsapp.whatsapp_Message_Preview_Get(self.handle))
2454
- @Preview.setter
2455
- def Preview(self, value):
2004
+ def Options(self):
2005
+ return Slice_whatsapp_PollOption(handle=_whatsapp.whatsapp_Poll_Options_Get(self.handle))
2006
+ @Options.setter
2007
+ def Options(self, value):
2456
2008
  if isinstance(value, go.GoClass):
2457
- _whatsapp.whatsapp_Message_Preview_Set(self.handle, value.handle)
2009
+ _whatsapp.whatsapp_Poll_Options_Set(self.handle, value.handle)
2458
2010
  else:
2459
2011
  raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2460
- @property
2461
- def Location(self):
2462
- return Location(handle=_whatsapp.whatsapp_Message_Location_Get(self.handle))
2463
- @Location.setter
2464
- def Location(self, value):
2465
- if isinstance(value, go.GoClass):
2466
- _whatsapp.whatsapp_Message_Location_Set(self.handle, value.handle)
2012
+
2013
+ # Python type for struct whatsapp.PollOption
2014
+ class PollOption(go.GoClass):
2015
+ """A PollOption represents an individual choice within a broader poll.\n"""
2016
+ def __init__(self, *args, **kwargs):
2017
+ """
2018
+ handle=A Go-side object is always initialized with an explicit handle=arg
2019
+ otherwise parameters can be unnamed in order of field names or named fields
2020
+ in which case a new Go object is constructed first
2021
+ """
2022
+ if len(kwargs) == 1 and 'handle' in kwargs:
2023
+ self.handle = kwargs['handle']
2024
+ _whatsapp.IncRef(self.handle)
2025
+ elif len(args) == 1 and isinstance(args[0], go.GoClass):
2026
+ self.handle = args[0].handle
2027
+ _whatsapp.IncRef(self.handle)
2467
2028
  else:
2468
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2029
+ self.handle = _whatsapp.whatsapp_PollOption_CTor()
2030
+ _whatsapp.IncRef(self.handle)
2031
+ if 0 < len(args):
2032
+ self.Title = args[0]
2033
+ if "Title" in kwargs:
2034
+ self.Title = kwargs["Title"]
2035
+ def __del__(self):
2036
+ _whatsapp.DecRef(self.handle)
2037
+ def __str__(self):
2038
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2039
+ sv = 'whatsapp.PollOption{'
2040
+ first = True
2041
+ for v in pr:
2042
+ if callable(v[1]):
2043
+ continue
2044
+ if first:
2045
+ first = False
2046
+ else:
2047
+ sv += ', '
2048
+ sv += v[0] + '=' + str(v[1])
2049
+ return sv + '}'
2050
+ def __repr__(self):
2051
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2052
+ sv = 'whatsapp.PollOption ( '
2053
+ for v in pr:
2054
+ if not callable(v[1]):
2055
+ sv += v[0] + '=' + str(v[1]) + ', '
2056
+ return sv + ')'
2469
2057
  @property
2470
- def Poll(self):
2471
- return Poll(handle=_whatsapp.whatsapp_Message_Poll_Get(self.handle))
2472
- @Poll.setter
2473
- def Poll(self, value):
2058
+ def Title(self):
2059
+ return _whatsapp.whatsapp_PollOption_Title_Get(self.handle)
2060
+ @Title.setter
2061
+ def Title(self, value):
2474
2062
  if isinstance(value, go.GoClass):
2475
- _whatsapp.whatsapp_Message_Poll_Set(self.handle, value.handle)
2063
+ _whatsapp.whatsapp_PollOption_Title_Set(self.handle, value.handle)
2476
2064
  else:
2477
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2478
- @property
2479
- def Album(self):
2480
- return Album(handle=_whatsapp.whatsapp_Message_Album_Get(self.handle))
2481
- @Album.setter
2482
- def Album(self, value):
2483
- if isinstance(value, go.GoClass):
2484
- _whatsapp.whatsapp_Message_Album_Set(self.handle, value.handle)
2065
+ _whatsapp.whatsapp_PollOption_Title_Set(self.handle, value)
2066
+
2067
+ # Python type for struct whatsapp.Album
2068
+ class Album(go.GoClass):
2069
+ """A Album message represents a collection of media files, typically images and videos.\n"""
2070
+ def __init__(self, *args, **kwargs):
2071
+ """
2072
+ handle=A Go-side object is always initialized with an explicit handle=arg
2073
+ otherwise parameters can be unnamed in order of field names or named fields
2074
+ in which case a new Go object is constructed first
2075
+ """
2076
+ if len(kwargs) == 1 and 'handle' in kwargs:
2077
+ self.handle = kwargs['handle']
2078
+ _whatsapp.IncRef(self.handle)
2079
+ elif len(args) == 1 and isinstance(args[0], go.GoClass):
2080
+ self.handle = args[0].handle
2081
+ _whatsapp.IncRef(self.handle)
2485
2082
  else:
2486
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2083
+ self.handle = _whatsapp.whatsapp_Album_CTor()
2084
+ _whatsapp.IncRef(self.handle)
2085
+ if 0 < len(args):
2086
+ self.IsAlbum = args[0]
2087
+ if "IsAlbum" in kwargs:
2088
+ self.IsAlbum = kwargs["IsAlbum"]
2089
+ if 1 < len(args):
2090
+ self.ImageCount = args[1]
2091
+ if "ImageCount" in kwargs:
2092
+ self.ImageCount = kwargs["ImageCount"]
2093
+ if 2 < len(args):
2094
+ self.VideoCount = args[2]
2095
+ if "VideoCount" in kwargs:
2096
+ self.VideoCount = kwargs["VideoCount"]
2097
+ def __del__(self):
2098
+ _whatsapp.DecRef(self.handle)
2099
+ def __str__(self):
2100
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2101
+ sv = 'whatsapp.Album{'
2102
+ first = True
2103
+ for v in pr:
2104
+ if callable(v[1]):
2105
+ continue
2106
+ if first:
2107
+ first = False
2108
+ else:
2109
+ sv += ', '
2110
+ sv += v[0] + '=' + str(v[1])
2111
+ return sv + '}'
2112
+ def __repr__(self):
2113
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2114
+ sv = 'whatsapp.Album ( '
2115
+ for v in pr:
2116
+ if not callable(v[1]):
2117
+ sv += v[0] + '=' + str(v[1]) + ', '
2118
+ return sv + ')'
2487
2119
  @property
2488
- def MentionJIDs(self):
2489
- return go.Slice_string(handle=_whatsapp.whatsapp_Message_MentionJIDs_Get(self.handle))
2490
- @MentionJIDs.setter
2491
- def MentionJIDs(self, value):
2120
+ def IsAlbum(self):
2121
+ return _whatsapp.whatsapp_Album_IsAlbum_Get(self.handle)
2122
+ @IsAlbum.setter
2123
+ def IsAlbum(self, value):
2492
2124
  if isinstance(value, go.GoClass):
2493
- _whatsapp.whatsapp_Message_MentionJIDs_Set(self.handle, value.handle)
2125
+ _whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value.handle)
2494
2126
  else:
2495
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2127
+ _whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value)
2496
2128
  @property
2497
- def Receipts(self):
2498
- return Slice_whatsapp_Receipt(handle=_whatsapp.whatsapp_Message_Receipts_Get(self.handle))
2499
- @Receipts.setter
2500
- def Receipts(self, value):
2129
+ def ImageCount(self):
2130
+ return _whatsapp.whatsapp_Album_ImageCount_Get(self.handle)
2131
+ @ImageCount.setter
2132
+ def ImageCount(self, value):
2501
2133
  if isinstance(value, go.GoClass):
2502
- _whatsapp.whatsapp_Message_Receipts_Set(self.handle, value.handle)
2134
+ _whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value.handle)
2503
2135
  else:
2504
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2136
+ _whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value)
2505
2137
  @property
2506
- def Reactions(self):
2507
- return Slice_whatsapp_Message(handle=_whatsapp.whatsapp_Message_Reactions_Get(self.handle))
2508
- @Reactions.setter
2509
- def Reactions(self, value):
2138
+ def VideoCount(self):
2139
+ return _whatsapp.whatsapp_Album_VideoCount_Get(self.handle)
2140
+ @VideoCount.setter
2141
+ def VideoCount(self, value):
2510
2142
  if isinstance(value, go.GoClass):
2511
- _whatsapp.whatsapp_Message_Reactions_Set(self.handle, value.handle)
2143
+ _whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value.handle)
2512
2144
  else:
2513
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2145
+ _whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value)
2514
2146
 
2515
- # Python type for struct whatsapp.Receipt
2516
- class Receipt(go.GoClass):
2517
- """A Receipt represents a notice of delivery or presentation for [Message] instances sent or\nreceived. Receipts can be delivered for many messages at once, but are generally all delivered\nunder one specific state at a time.\n"""
2147
+ # Python type for struct whatsapp.Connect
2148
+ class Connect(go.GoClass):
2149
+ """Connect represents event data related to a connection to WhatsApp being established, or failing\nto do so (based on the [Connect.Error] result).\n"""
2518
2150
  def __init__(self, *args, **kwargs):
2519
2151
  """
2520
2152
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -2528,37 +2160,21 @@ class Receipt(go.GoClass):
2528
2160
  self.handle = args[0].handle
2529
2161
  _whatsapp.IncRef(self.handle)
2530
2162
  else:
2531
- self.handle = _whatsapp.whatsapp_Receipt_CTor()
2163
+ self.handle = _whatsapp.whatsapp_Connect_CTor()
2532
2164
  _whatsapp.IncRef(self.handle)
2533
2165
  if 0 < len(args):
2534
- self.Kind = args[0]
2535
- if "Kind" in kwargs:
2536
- self.Kind = kwargs["Kind"]
2537
- if 1 < len(args):
2538
- self.MessageIDs = args[1]
2539
- if "MessageIDs" in kwargs:
2540
- self.MessageIDs = kwargs["MessageIDs"]
2541
- if 2 < len(args):
2542
- self.JID = args[2]
2166
+ self.JID = args[0]
2543
2167
  if "JID" in kwargs:
2544
2168
  self.JID = kwargs["JID"]
2545
- if 3 < len(args):
2546
- self.GroupJID = args[3]
2547
- if "GroupJID" in kwargs:
2548
- self.GroupJID = kwargs["GroupJID"]
2549
- if 4 < len(args):
2550
- self.Timestamp = args[4]
2551
- if "Timestamp" in kwargs:
2552
- self.Timestamp = kwargs["Timestamp"]
2553
- if 5 < len(args):
2554
- self.IsCarbon = args[5]
2555
- if "IsCarbon" in kwargs:
2556
- self.IsCarbon = kwargs["IsCarbon"]
2169
+ if 1 < len(args):
2170
+ self.Error = args[1]
2171
+ if "Error" in kwargs:
2172
+ self.Error = kwargs["Error"]
2557
2173
  def __del__(self):
2558
2174
  _whatsapp.DecRef(self.handle)
2559
2175
  def __str__(self):
2560
2176
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2561
- sv = 'whatsapp.Receipt{'
2177
+ sv = 'whatsapp.Connect{'
2562
2178
  first = True
2563
2179
  for v in pr:
2564
2180
  if callable(v[1]):
@@ -2571,69 +2187,214 @@ class Receipt(go.GoClass):
2571
2187
  return sv + '}'
2572
2188
  def __repr__(self):
2573
2189
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2574
- sv = 'whatsapp.Receipt ( '
2190
+ sv = 'whatsapp.Connect ( '
2575
2191
  for v in pr:
2576
2192
  if not callable(v[1]):
2577
2193
  sv += v[0] + '=' + str(v[1]) + ', '
2578
2194
  return sv + ')'
2579
2195
  @property
2580
- def Kind(self):
2581
- return _whatsapp.whatsapp_Receipt_Kind_Get(self.handle)
2582
- @Kind.setter
2583
- def Kind(self, value):
2196
+ def JID(self):
2197
+ return _whatsapp.whatsapp_Connect_JID_Get(self.handle)
2198
+ @JID.setter
2199
+ def JID(self, value):
2584
2200
  if isinstance(value, go.GoClass):
2585
- _whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value.handle)
2201
+ _whatsapp.whatsapp_Connect_JID_Set(self.handle, value.handle)
2586
2202
  else:
2587
- _whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value)
2203
+ _whatsapp.whatsapp_Connect_JID_Set(self.handle, value)
2588
2204
  @property
2589
- def MessageIDs(self):
2590
- return go.Slice_string(handle=_whatsapp.whatsapp_Receipt_MessageIDs_Get(self.handle))
2591
- @MessageIDs.setter
2592
- def MessageIDs(self, value):
2205
+ def Error(self):
2206
+ return _whatsapp.whatsapp_Connect_Error_Get(self.handle)
2207
+ @Error.setter
2208
+ def Error(self, value):
2593
2209
  if isinstance(value, go.GoClass):
2594
- _whatsapp.whatsapp_Receipt_MessageIDs_Set(self.handle, value.handle)
2210
+ _whatsapp.whatsapp_Connect_Error_Set(self.handle, value.handle)
2595
2211
  else:
2596
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2212
+ _whatsapp.whatsapp_Connect_Error_Set(self.handle, value)
2213
+
2214
+ # Python type for struct whatsapp.Contact
2215
+ class Contact(go.GoClass):
2216
+ """A Contact represents any entity that be communicated with directly in WhatsApp. This typically\nrepresents people, but may represent a business or bot as well, but not a group-chat.\n"""
2217
+ def __init__(self, *args, **kwargs):
2218
+ """
2219
+ handle=A Go-side object is always initialized with an explicit handle=arg
2220
+ otherwise parameters can be unnamed in order of field names or named fields
2221
+ in which case a new Go object is constructed first
2222
+ """
2223
+ if len(kwargs) == 1 and 'handle' in kwargs:
2224
+ self.handle = kwargs['handle']
2225
+ _whatsapp.IncRef(self.handle)
2226
+ elif len(args) == 1 and isinstance(args[0], go.GoClass):
2227
+ self.handle = args[0].handle
2228
+ _whatsapp.IncRef(self.handle)
2229
+ else:
2230
+ self.handle = _whatsapp.whatsapp_Contact_CTor()
2231
+ _whatsapp.IncRef(self.handle)
2232
+ if 0 < len(args):
2233
+ self.JID = args[0]
2234
+ if "JID" in kwargs:
2235
+ self.JID = kwargs["JID"]
2236
+ if 1 < len(args):
2237
+ self.Name = args[1]
2238
+ if "Name" in kwargs:
2239
+ self.Name = kwargs["Name"]
2240
+ def __del__(self):
2241
+ _whatsapp.DecRef(self.handle)
2242
+ def __str__(self):
2243
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2244
+ sv = 'whatsapp.Contact{'
2245
+ first = True
2246
+ for v in pr:
2247
+ if callable(v[1]):
2248
+ continue
2249
+ if first:
2250
+ first = False
2251
+ else:
2252
+ sv += ', '
2253
+ sv += v[0] + '=' + str(v[1])
2254
+ return sv + '}'
2255
+ def __repr__(self):
2256
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2257
+ sv = 'whatsapp.Contact ( '
2258
+ for v in pr:
2259
+ if not callable(v[1]):
2260
+ sv += v[0] + '=' + str(v[1]) + ', '
2261
+ return sv + ')'
2597
2262
  @property
2598
2263
  def JID(self):
2599
- return _whatsapp.whatsapp_Receipt_JID_Get(self.handle)
2264
+ return _whatsapp.whatsapp_Contact_JID_Get(self.handle)
2600
2265
  @JID.setter
2601
2266
  def JID(self, value):
2602
2267
  if isinstance(value, go.GoClass):
2603
- _whatsapp.whatsapp_Receipt_JID_Set(self.handle, value.handle)
2268
+ _whatsapp.whatsapp_Contact_JID_Set(self.handle, value.handle)
2604
2269
  else:
2605
- _whatsapp.whatsapp_Receipt_JID_Set(self.handle, value)
2270
+ _whatsapp.whatsapp_Contact_JID_Set(self.handle, value)
2606
2271
  @property
2607
- def GroupJID(self):
2608
- return _whatsapp.whatsapp_Receipt_GroupJID_Get(self.handle)
2609
- @GroupJID.setter
2610
- def GroupJID(self, value):
2272
+ def Name(self):
2273
+ return _whatsapp.whatsapp_Contact_Name_Get(self.handle)
2274
+ @Name.setter
2275
+ def Name(self, value):
2611
2276
  if isinstance(value, go.GoClass):
2612
- _whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value.handle)
2277
+ _whatsapp.whatsapp_Contact_Name_Set(self.handle, value.handle)
2613
2278
  else:
2614
- _whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value)
2279
+ _whatsapp.whatsapp_Contact_Name_Set(self.handle, value)
2280
+
2281
+ # Python type for struct whatsapp.Gateway
2282
+ class Gateway(go.GoClass):
2283
+ """A Gateway represents a persistent process for establishing individual sessions between linked\ndevices and WhatsApp.\n"""
2284
+ def __init__(self, *args, **kwargs):
2285
+ """
2286
+ handle=A Go-side object is always initialized with an explicit handle=arg
2287
+ otherwise parameters can be unnamed in order of field names or named fields
2288
+ in which case a new Go object is constructed first
2289
+ """
2290
+ if len(kwargs) == 1 and 'handle' in kwargs:
2291
+ self.handle = kwargs['handle']
2292
+ _whatsapp.IncRef(self.handle)
2293
+ elif len(args) == 1 and isinstance(args[0], go.GoClass):
2294
+ self.handle = args[0].handle
2295
+ _whatsapp.IncRef(self.handle)
2296
+ else:
2297
+ self.handle = _whatsapp.whatsapp_Gateway_CTor()
2298
+ _whatsapp.IncRef(self.handle)
2299
+ if 0 < len(args):
2300
+ self.DBPath = args[0]
2301
+ if "DBPath" in kwargs:
2302
+ self.DBPath = kwargs["DBPath"]
2303
+ if 1 < len(args):
2304
+ self.Name = args[1]
2305
+ if "Name" in kwargs:
2306
+ self.Name = kwargs["Name"]
2307
+ if 2 < len(args):
2308
+ self.LogLevel = args[2]
2309
+ if "LogLevel" in kwargs:
2310
+ self.LogLevel = kwargs["LogLevel"]
2311
+ if 3 < len(args):
2312
+ self.TempDir = args[3]
2313
+ if "TempDir" in kwargs:
2314
+ self.TempDir = kwargs["TempDir"]
2315
+ def __del__(self):
2316
+ _whatsapp.DecRef(self.handle)
2317
+ def __str__(self):
2318
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2319
+ sv = 'whatsapp.Gateway{'
2320
+ first = True
2321
+ for v in pr:
2322
+ if callable(v[1]):
2323
+ continue
2324
+ if first:
2325
+ first = False
2326
+ else:
2327
+ sv += ', '
2328
+ sv += v[0] + '=' + str(v[1])
2329
+ return sv + '}'
2330
+ def __repr__(self):
2331
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2332
+ sv = 'whatsapp.Gateway ( '
2333
+ for v in pr:
2334
+ if not callable(v[1]):
2335
+ sv += v[0] + '=' + str(v[1]) + ', '
2336
+ return sv + ')'
2615
2337
  @property
2616
- def Timestamp(self):
2617
- return _whatsapp.whatsapp_Receipt_Timestamp_Get(self.handle)
2618
- @Timestamp.setter
2619
- def Timestamp(self, value):
2338
+ def DBPath(self):
2339
+ return _whatsapp.whatsapp_Gateway_DBPath_Get(self.handle)
2340
+ @DBPath.setter
2341
+ def DBPath(self, value):
2620
2342
  if isinstance(value, go.GoClass):
2621
- _whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value.handle)
2343
+ _whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value.handle)
2622
2344
  else:
2623
- _whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value)
2345
+ _whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value)
2624
2346
  @property
2625
- def IsCarbon(self):
2626
- return _whatsapp.whatsapp_Receipt_IsCarbon_Get(self.handle)
2627
- @IsCarbon.setter
2628
- def IsCarbon(self, value):
2347
+ def Name(self):
2348
+ return _whatsapp.whatsapp_Gateway_Name_Get(self.handle)
2349
+ @Name.setter
2350
+ def Name(self, value):
2629
2351
  if isinstance(value, go.GoClass):
2630
- _whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value.handle)
2352
+ _whatsapp.whatsapp_Gateway_Name_Set(self.handle, value.handle)
2631
2353
  else:
2632
- _whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value)
2354
+ _whatsapp.whatsapp_Gateway_Name_Set(self.handle, value)
2355
+ @property
2356
+ def LogLevel(self):
2357
+ return _whatsapp.whatsapp_Gateway_LogLevel_Get(self.handle)
2358
+ @LogLevel.setter
2359
+ def LogLevel(self, value):
2360
+ if isinstance(value, go.GoClass):
2361
+ _whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value.handle)
2362
+ else:
2363
+ _whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value)
2364
+ @property
2365
+ def TempDir(self):
2366
+ return _whatsapp.whatsapp_Gateway_TempDir_Get(self.handle)
2367
+ @TempDir.setter
2368
+ def TempDir(self, value):
2369
+ if isinstance(value, go.GoClass):
2370
+ _whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value.handle)
2371
+ else:
2372
+ _whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value)
2373
+ def Init(self):
2374
+ """Init() str
2375
+
2376
+ Init performs initialization procedures for the Gateway, and is expected to be run before any
2377
+ calls to [Gateway.Session].
2378
+ """
2379
+ return _whatsapp.whatsapp_Gateway_Init(self.handle)
2380
+ def NewSession(self, device):
2381
+ """NewSession(object device) object
2382
+
2383
+ NewSession returns a new [Session] for the LinkedDevice given. If the linked device does not have
2384
+ a valid ID, a pair operation will be required, as described in [Session.Login].
2385
+ """
2386
+ return Session(handle=_whatsapp.whatsapp_Gateway_NewSession(self.handle, device.handle))
2387
+ def CleanupSession(self, device):
2388
+ """CleanupSession(object device) str
2389
+
2390
+ CleanupSession will remove all invalid and obsolete references to the given device, and should be
2391
+ used when pairing a new device or unregistering from the Gateway.
2392
+ """
2393
+ return _whatsapp.whatsapp_Gateway_CleanupSession(self.handle, device.handle)
2633
2394
 
2634
- # Python type for struct whatsapp.Attachment
2635
- class Attachment(go.GoClass):
2636
- """A Attachment represents additional binary data (e.g. images, videos, documents) provided alongside\na message, for display or storage on the recepient client.\n"""
2395
+ # Python type for struct whatsapp.Group
2396
+ class Group(go.GoClass):
2397
+ """A Group represents a named, many-to-many chat space which may be joined or left at will. All\nfields apart from the group JID are considered to be optional, and may not be set in cases where\ngroup information is being updated against previous assumed state. Groups in WhatsApp are\ngenerally invited to out-of-band with respect to overarching adaptor; see the documentation for\n[Session.GetGroups] for more information.\n"""
2637
2398
  def __init__(self, *args, **kwargs):
2638
2399
  """
2639
2400
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -2647,29 +2408,37 @@ class Attachment(go.GoClass):
2647
2408
  self.handle = args[0].handle
2648
2409
  _whatsapp.IncRef(self.handle)
2649
2410
  else:
2650
- self.handle = _whatsapp.whatsapp_Attachment_CTor()
2411
+ self.handle = _whatsapp.whatsapp_Group_CTor()
2651
2412
  _whatsapp.IncRef(self.handle)
2652
2413
  if 0 < len(args):
2653
- self.MIME = args[0]
2654
- if "MIME" in kwargs:
2655
- self.MIME = kwargs["MIME"]
2414
+ self.JID = args[0]
2415
+ if "JID" in kwargs:
2416
+ self.JID = kwargs["JID"]
2656
2417
  if 1 < len(args):
2657
- self.Filename = args[1]
2658
- if "Filename" in kwargs:
2659
- self.Filename = kwargs["Filename"]
2418
+ self.Name = args[1]
2419
+ if "Name" in kwargs:
2420
+ self.Name = kwargs["Name"]
2660
2421
  if 2 < len(args):
2661
- self.Caption = args[2]
2662
- if "Caption" in kwargs:
2663
- self.Caption = kwargs["Caption"]
2422
+ self.Subject = args[2]
2423
+ if "Subject" in kwargs:
2424
+ self.Subject = kwargs["Subject"]
2664
2425
  if 3 < len(args):
2665
- self.Data = args[3]
2666
- if "Data" in kwargs:
2667
- self.Data = kwargs["Data"]
2426
+ self.Nickname = args[3]
2427
+ if "Nickname" in kwargs:
2428
+ self.Nickname = kwargs["Nickname"]
2429
+ if 4 < len(args):
2430
+ self.Participants = args[4]
2431
+ if "Participants" in kwargs:
2432
+ self.Participants = kwargs["Participants"]
2433
+ if 5 < len(args):
2434
+ self.InviteCode = args[5]
2435
+ if "InviteCode" in kwargs:
2436
+ self.InviteCode = kwargs["InviteCode"]
2668
2437
  def __del__(self):
2669
2438
  _whatsapp.DecRef(self.handle)
2670
2439
  def __str__(self):
2671
2440
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2672
- sv = 'whatsapp.Attachment{'
2441
+ sv = 'whatsapp.Group{'
2673
2442
  first = True
2674
2443
  for v in pr:
2675
2444
  if callable(v[1]):
@@ -2682,57 +2451,69 @@ class Attachment(go.GoClass):
2682
2451
  return sv + '}'
2683
2452
  def __repr__(self):
2684
2453
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2685
- sv = 'whatsapp.Attachment ( '
2454
+ sv = 'whatsapp.Group ( '
2686
2455
  for v in pr:
2687
2456
  if not callable(v[1]):
2688
2457
  sv += v[0] + '=' + str(v[1]) + ', '
2689
2458
  return sv + ')'
2690
2459
  @property
2691
- def MIME(self):
2692
- return _whatsapp.whatsapp_Attachment_MIME_Get(self.handle)
2693
- @MIME.setter
2694
- def MIME(self, value):
2460
+ def JID(self):
2461
+ return _whatsapp.whatsapp_Group_JID_Get(self.handle)
2462
+ @JID.setter
2463
+ def JID(self, value):
2695
2464
  if isinstance(value, go.GoClass):
2696
- _whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value.handle)
2465
+ _whatsapp.whatsapp_Group_JID_Set(self.handle, value.handle)
2697
2466
  else:
2698
- _whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value)
2467
+ _whatsapp.whatsapp_Group_JID_Set(self.handle, value)
2699
2468
  @property
2700
- def Filename(self):
2701
- return _whatsapp.whatsapp_Attachment_Filename_Get(self.handle)
2702
- @Filename.setter
2703
- def Filename(self, value):
2469
+ def Name(self):
2470
+ return _whatsapp.whatsapp_Group_Name_Get(self.handle)
2471
+ @Name.setter
2472
+ def Name(self, value):
2704
2473
  if isinstance(value, go.GoClass):
2705
- _whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value.handle)
2474
+ _whatsapp.whatsapp_Group_Name_Set(self.handle, value.handle)
2706
2475
  else:
2707
- _whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value)
2476
+ _whatsapp.whatsapp_Group_Name_Set(self.handle, value)
2708
2477
  @property
2709
- def Caption(self):
2710
- return _whatsapp.whatsapp_Attachment_Caption_Get(self.handle)
2711
- @Caption.setter
2712
- def Caption(self, value):
2478
+ def Subject(self):
2479
+ return GroupSubject(handle=_whatsapp.whatsapp_Group_Subject_Get(self.handle))
2480
+ @Subject.setter
2481
+ def Subject(self, value):
2713
2482
  if isinstance(value, go.GoClass):
2714
- _whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value.handle)
2483
+ _whatsapp.whatsapp_Group_Subject_Set(self.handle, value.handle)
2715
2484
  else:
2716
- _whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value)
2485
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2717
2486
  @property
2718
- def Data(self):
2719
- return go.Slice_byte(handle=_whatsapp.whatsapp_Attachment_Data_Get(self.handle))
2720
- @Data.setter
2721
- def Data(self, value):
2487
+ def Nickname(self):
2488
+ return _whatsapp.whatsapp_Group_Nickname_Get(self.handle)
2489
+ @Nickname.setter
2490
+ def Nickname(self, value):
2722
2491
  if isinstance(value, go.GoClass):
2723
- _whatsapp.whatsapp_Attachment_Data_Set(self.handle, value.handle)
2492
+ _whatsapp.whatsapp_Group_Nickname_Set(self.handle, value.handle)
2493
+ else:
2494
+ _whatsapp.whatsapp_Group_Nickname_Set(self.handle, value)
2495
+ @property
2496
+ def Participants(self):
2497
+ return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Group_Participants_Get(self.handle))
2498
+ @Participants.setter
2499
+ def Participants(self, value):
2500
+ if isinstance(value, go.GoClass):
2501
+ _whatsapp.whatsapp_Group_Participants_Set(self.handle, value.handle)
2724
2502
  else:
2725
2503
  raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2726
- def GetSpec(self, ctx):
2727
- """GetSpec(object ctx) object, str
2728
-
2729
- GetSpec returns metadata for this attachment, as derived from the underlying attachment data.
2730
- """
2731
- return go.Ptr_media_Spec(handle=_whatsapp.whatsapp_Attachment_GetSpec(self.handle, ctx.handle))
2504
+ @property
2505
+ def InviteCode(self):
2506
+ return _whatsapp.whatsapp_Group_InviteCode_Get(self.handle)
2507
+ @InviteCode.setter
2508
+ def InviteCode(self, value):
2509
+ if isinstance(value, go.GoClass):
2510
+ _whatsapp.whatsapp_Group_InviteCode_Set(self.handle, value.handle)
2511
+ else:
2512
+ _whatsapp.whatsapp_Group_InviteCode_Set(self.handle, value)
2732
2513
 
2733
- # Python type for struct whatsapp.Call
2734
- class Call(go.GoClass):
2735
- """A Call represents an incoming or outgoing voice/video call made over WhatsApp. Full support for\ncalls is currently not implemented, and this structure contains the bare minimum data required\nfor notifying on missed calls.\n"""
2514
+ # Python type for struct whatsapp.LinkedDevice
2515
+ class LinkedDevice(go.GoClass):
2516
+ """A LinkedDevice represents a unique pairing session between the gateway and WhatsApp. It is not\nunique to the underlying \"main\" device (or phone number), as multiple linked devices may be paired\nwith any main device.\n"""
2736
2517
  def __init__(self, *args, **kwargs):
2737
2518
  """
2738
2519
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -2746,25 +2527,17 @@ class Call(go.GoClass):
2746
2527
  self.handle = args[0].handle
2747
2528
  _whatsapp.IncRef(self.handle)
2748
2529
  else:
2749
- self.handle = _whatsapp.whatsapp_Call_CTor()
2530
+ self.handle = _whatsapp.whatsapp_LinkedDevice_CTor()
2750
2531
  _whatsapp.IncRef(self.handle)
2751
2532
  if 0 < len(args):
2752
- self.State = args[0]
2753
- if "State" in kwargs:
2754
- self.State = kwargs["State"]
2755
- if 1 < len(args):
2756
- self.JID = args[1]
2757
- if "JID" in kwargs:
2758
- self.JID = kwargs["JID"]
2759
- if 2 < len(args):
2760
- self.Timestamp = args[2]
2761
- if "Timestamp" in kwargs:
2762
- self.Timestamp = kwargs["Timestamp"]
2533
+ self.ID = args[0]
2534
+ if "ID" in kwargs:
2535
+ self.ID = kwargs["ID"]
2763
2536
  def __del__(self):
2764
2537
  _whatsapp.DecRef(self.handle)
2765
2538
  def __str__(self):
2766
2539
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2767
- sv = 'whatsapp.Call{'
2540
+ sv = 'whatsapp.LinkedDevice{'
2768
2541
  first = True
2769
2542
  for v in pr:
2770
2543
  if callable(v[1]):
@@ -2777,42 +2550,34 @@ class Call(go.GoClass):
2777
2550
  return sv + '}'
2778
2551
  def __repr__(self):
2779
2552
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2780
- sv = 'whatsapp.Call ( '
2553
+ sv = 'whatsapp.LinkedDevice ( '
2781
2554
  for v in pr:
2782
2555
  if not callable(v[1]):
2783
2556
  sv += v[0] + '=' + str(v[1]) + ', '
2784
2557
  return sv + ')'
2785
2558
  @property
2786
- def State(self):
2787
- return _whatsapp.whatsapp_Call_State_Get(self.handle)
2788
- @State.setter
2789
- def State(self, value):
2559
+ def ID(self):
2560
+ """ID is an opaque string identifying this LinkedDevice to the Session. Noted that this string
2561
+ is currently equivalent to a password, and needs to be protected accordingly.
2562
+ """
2563
+ return _whatsapp.whatsapp_LinkedDevice_ID_Get(self.handle)
2564
+ @ID.setter
2565
+ def ID(self, value):
2790
2566
  if isinstance(value, go.GoClass):
2791
- _whatsapp.whatsapp_Call_State_Set(self.handle, value.handle)
2567
+ _whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value.handle)
2792
2568
  else:
2793
- _whatsapp.whatsapp_Call_State_Set(self.handle, value)
2794
- @property
2569
+ _whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value)
2795
2570
  def JID(self):
2796
- return _whatsapp.whatsapp_Call_JID_Get(self.handle)
2797
- @JID.setter
2798
- def JID(self, value):
2799
- if isinstance(value, go.GoClass):
2800
- _whatsapp.whatsapp_Call_JID_Set(self.handle, value.handle)
2801
- else:
2802
- _whatsapp.whatsapp_Call_JID_Set(self.handle, value)
2803
- @property
2804
- def Timestamp(self):
2805
- return _whatsapp.whatsapp_Call_Timestamp_Get(self.handle)
2806
- @Timestamp.setter
2807
- def Timestamp(self, value):
2808
- if isinstance(value, go.GoClass):
2809
- _whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value.handle)
2810
- else:
2811
- _whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value)
2571
+ """JID() object
2572
+
2573
+ JID returns the WhatsApp JID corresponding to the LinkedDevice ID. Empty or invalid device IDs
2574
+ may return invalid JIDs, and this function does not handle errors.
2575
+ """
2576
+ return go.types_JID(handle=_whatsapp.whatsapp_LinkedDevice_JID(self.handle))
2812
2577
 
2813
- # Python type for struct whatsapp.GroupSubject
2814
- class GroupSubject(go.GoClass):
2815
- """A GroupSubject represents the user-defined group description and attached metadata thereof, for a\ngiven [Group].\n"""
2578
+ # Python type for struct whatsapp.LoggedOut
2579
+ class LoggedOut(go.GoClass):
2580
+ """LoggedOut repreents event data related to an explicit or implicit log-out event.\n"""
2816
2581
  def __init__(self, *args, **kwargs):
2817
2582
  """
2818
2583
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -2826,25 +2591,17 @@ class GroupSubject(go.GoClass):
2826
2591
  self.handle = args[0].handle
2827
2592
  _whatsapp.IncRef(self.handle)
2828
2593
  else:
2829
- self.handle = _whatsapp.whatsapp_GroupSubject_CTor()
2594
+ self.handle = _whatsapp.whatsapp_LoggedOut_CTor()
2830
2595
  _whatsapp.IncRef(self.handle)
2831
2596
  if 0 < len(args):
2832
- self.Subject = args[0]
2833
- if "Subject" in kwargs:
2834
- self.Subject = kwargs["Subject"]
2835
- if 1 < len(args):
2836
- self.SetAt = args[1]
2837
- if "SetAt" in kwargs:
2838
- self.SetAt = kwargs["SetAt"]
2839
- if 2 < len(args):
2840
- self.SetByJID = args[2]
2841
- if "SetByJID" in kwargs:
2842
- self.SetByJID = kwargs["SetByJID"]
2597
+ self.Reason = args[0]
2598
+ if "Reason" in kwargs:
2599
+ self.Reason = kwargs["Reason"]
2843
2600
  def __del__(self):
2844
2601
  _whatsapp.DecRef(self.handle)
2845
2602
  def __str__(self):
2846
2603
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2847
- sv = 'whatsapp.GroupSubject{'
2604
+ sv = 'whatsapp.LoggedOut{'
2848
2605
  first = True
2849
2606
  for v in pr:
2850
2607
  if callable(v[1]):
@@ -2857,42 +2614,24 @@ class GroupSubject(go.GoClass):
2857
2614
  return sv + '}'
2858
2615
  def __repr__(self):
2859
2616
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2860
- sv = 'whatsapp.GroupSubject ( '
2617
+ sv = 'whatsapp.LoggedOut ( '
2861
2618
  for v in pr:
2862
2619
  if not callable(v[1]):
2863
2620
  sv += v[0] + '=' + str(v[1]) + ', '
2864
2621
  return sv + ')'
2865
2622
  @property
2866
- def Subject(self):
2867
- return _whatsapp.whatsapp_GroupSubject_Subject_Get(self.handle)
2868
- @Subject.setter
2869
- def Subject(self, value):
2870
- if isinstance(value, go.GoClass):
2871
- _whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value.handle)
2872
- else:
2873
- _whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value)
2874
- @property
2875
- def SetAt(self):
2876
- return _whatsapp.whatsapp_GroupSubject_SetAt_Get(self.handle)
2877
- @SetAt.setter
2878
- def SetAt(self, value):
2879
- if isinstance(value, go.GoClass):
2880
- _whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value.handle)
2881
- else:
2882
- _whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value)
2883
- @property
2884
- def SetByJID(self):
2885
- return _whatsapp.whatsapp_GroupSubject_SetByJID_Get(self.handle)
2886
- @SetByJID.setter
2887
- def SetByJID(self, value):
2623
+ def Reason(self):
2624
+ return _whatsapp.whatsapp_LoggedOut_Reason_Get(self.handle)
2625
+ @Reason.setter
2626
+ def Reason(self, value):
2888
2627
  if isinstance(value, go.GoClass):
2889
- _whatsapp.whatsapp_GroupSubject_SetByJID_Set(self.handle, value.handle)
2628
+ _whatsapp.whatsapp_LoggedOut_Reason_Set(self.handle, value.handle)
2890
2629
  else:
2891
- _whatsapp.whatsapp_GroupSubject_SetByJID_Set(self.handle, value)
2630
+ _whatsapp.whatsapp_LoggedOut_Reason_Set(self.handle, value)
2892
2631
 
2893
- # Python type for struct whatsapp.LinkedDevice
2894
- class LinkedDevice(go.GoClass):
2895
- """A LinkedDevice represents a unique pairing session between the gateway and WhatsApp. It is not\nunique to the underlying \"main\" device (or phone number), as multiple linked devices may be paired\nwith any main device.\n"""
2632
+ # Python type for struct whatsapp.Message
2633
+ class Message(go.GoClass):
2634
+ """A Message represents one of many kinds of bidirectional communication payloads, for example, a\ntext message, a file (image, video) attachment, an emoji reaction, etc. Messages of different\nkinds are denoted as such, and re-use fields where the semantics overlap.\n"""
2896
2635
  def __init__(self, *args, **kwargs):
2897
2636
  """
2898
2637
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -2906,17 +2645,97 @@ class LinkedDevice(go.GoClass):
2906
2645
  self.handle = args[0].handle
2907
2646
  _whatsapp.IncRef(self.handle)
2908
2647
  else:
2909
- self.handle = _whatsapp.whatsapp_LinkedDevice_CTor()
2648
+ self.handle = _whatsapp.whatsapp_Message_CTor()
2910
2649
  _whatsapp.IncRef(self.handle)
2911
2650
  if 0 < len(args):
2912
- self.ID = args[0]
2651
+ self.Kind = args[0]
2652
+ if "Kind" in kwargs:
2653
+ self.Kind = kwargs["Kind"]
2654
+ if 1 < len(args):
2655
+ self.ID = args[1]
2913
2656
  if "ID" in kwargs:
2914
2657
  self.ID = kwargs["ID"]
2658
+ if 2 < len(args):
2659
+ self.JID = args[2]
2660
+ if "JID" in kwargs:
2661
+ self.JID = kwargs["JID"]
2662
+ if 3 < len(args):
2663
+ self.GroupJID = args[3]
2664
+ if "GroupJID" in kwargs:
2665
+ self.GroupJID = kwargs["GroupJID"]
2666
+ if 4 < len(args):
2667
+ self.OriginJID = args[4]
2668
+ if "OriginJID" in kwargs:
2669
+ self.OriginJID = kwargs["OriginJID"]
2670
+ if 5 < len(args):
2671
+ self.Body = args[5]
2672
+ if "Body" in kwargs:
2673
+ self.Body = kwargs["Body"]
2674
+ if 6 < len(args):
2675
+ self.Timestamp = args[6]
2676
+ if "Timestamp" in kwargs:
2677
+ self.Timestamp = kwargs["Timestamp"]
2678
+ if 7 < len(args):
2679
+ self.IsCarbon = args[7]
2680
+ if "IsCarbon" in kwargs:
2681
+ self.IsCarbon = kwargs["IsCarbon"]
2682
+ if 8 < len(args):
2683
+ self.IsForwarded = args[8]
2684
+ if "IsForwarded" in kwargs:
2685
+ self.IsForwarded = kwargs["IsForwarded"]
2686
+ if 9 < len(args):
2687
+ self.ReplyID = args[9]
2688
+ if "ReplyID" in kwargs:
2689
+ self.ReplyID = kwargs["ReplyID"]
2690
+ if 10 < len(args):
2691
+ self.ReplyBody = args[10]
2692
+ if "ReplyBody" in kwargs:
2693
+ self.ReplyBody = kwargs["ReplyBody"]
2694
+ if 11 < len(args):
2695
+ self.Attachments = args[11]
2696
+ if "Attachments" in kwargs:
2697
+ self.Attachments = kwargs["Attachments"]
2698
+ if 12 < len(args):
2699
+ self.Preview = args[12]
2700
+ if "Preview" in kwargs:
2701
+ self.Preview = kwargs["Preview"]
2702
+ if 13 < len(args):
2703
+ self.Location = args[13]
2704
+ if "Location" in kwargs:
2705
+ self.Location = kwargs["Location"]
2706
+ if 14 < len(args):
2707
+ self.Poll = args[14]
2708
+ if "Poll" in kwargs:
2709
+ self.Poll = kwargs["Poll"]
2710
+ if 15 < len(args):
2711
+ self.Album = args[15]
2712
+ if "Album" in kwargs:
2713
+ self.Album = kwargs["Album"]
2714
+ if 16 < len(args):
2715
+ self.GroupInvite = args[16]
2716
+ if "GroupInvite" in kwargs:
2717
+ self.GroupInvite = kwargs["GroupInvite"]
2718
+ if 17 < len(args):
2719
+ self.MentionJIDs = args[17]
2720
+ if "MentionJIDs" in kwargs:
2721
+ self.MentionJIDs = kwargs["MentionJIDs"]
2722
+ if 18 < len(args):
2723
+ self.Receipts = args[18]
2724
+ if "Receipts" in kwargs:
2725
+ self.Receipts = kwargs["Receipts"]
2726
+ if 19 < len(args):
2727
+ self.Reactions = args[19]
2728
+ if "Reactions" in kwargs:
2729
+ self.Reactions = kwargs["Reactions"]
2730
+ if 20 < len(args):
2731
+ self.IsHistory = args[20]
2732
+ if "IsHistory" in kwargs:
2733
+ self.IsHistory = kwargs["IsHistory"]
2915
2734
  def __del__(self):
2916
2735
  _whatsapp.DecRef(self.handle)
2917
2736
  def __str__(self):
2918
2737
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2919
- sv = 'whatsapp.LinkedDevice{'
2738
+ sv = 'whatsapp.Message{'
2920
2739
  first = True
2921
2740
  for v in pr:
2922
2741
  if callable(v[1]):
@@ -2929,34 +2748,204 @@ class LinkedDevice(go.GoClass):
2929
2748
  return sv + '}'
2930
2749
  def __repr__(self):
2931
2750
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2932
- sv = 'whatsapp.LinkedDevice ( '
2751
+ sv = 'whatsapp.Message ( '
2933
2752
  for v in pr:
2934
2753
  if not callable(v[1]):
2935
2754
  sv += v[0] + '=' + str(v[1]) + ', '
2936
2755
  return sv + ')'
2937
2756
  @property
2757
+ def Kind(self):
2758
+ return _whatsapp.whatsapp_Message_Kind_Get(self.handle)
2759
+ @Kind.setter
2760
+ def Kind(self, value):
2761
+ if isinstance(value, go.GoClass):
2762
+ _whatsapp.whatsapp_Message_Kind_Set(self.handle, value.handle)
2763
+ else:
2764
+ _whatsapp.whatsapp_Message_Kind_Set(self.handle, value)
2765
+ @property
2938
2766
  def ID(self):
2939
- """ID is an opaque string identifying this LinkedDevice to the Session. Noted that this string
2940
- is currently equivalent to a password, and needs to be protected accordingly.
2941
- """
2942
- return _whatsapp.whatsapp_LinkedDevice_ID_Get(self.handle)
2767
+ return _whatsapp.whatsapp_Message_ID_Get(self.handle)
2943
2768
  @ID.setter
2944
2769
  def ID(self, value):
2945
2770
  if isinstance(value, go.GoClass):
2946
- _whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value.handle)
2771
+ _whatsapp.whatsapp_Message_ID_Set(self.handle, value.handle)
2947
2772
  else:
2948
- _whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value)
2773
+ _whatsapp.whatsapp_Message_ID_Set(self.handle, value)
2774
+ @property
2949
2775
  def JID(self):
2950
- """JID() object
2951
-
2952
- JID returns the WhatsApp JID corresponding to the LinkedDevice ID. Empty or invalid device IDs
2953
- may return invalid JIDs, and this function does not handle errors.
2954
- """
2955
- return go.types_JID(handle=_whatsapp.whatsapp_LinkedDevice_JID(self.handle))
2776
+ return _whatsapp.whatsapp_Message_JID_Get(self.handle)
2777
+ @JID.setter
2778
+ def JID(self, value):
2779
+ if isinstance(value, go.GoClass):
2780
+ _whatsapp.whatsapp_Message_JID_Set(self.handle, value.handle)
2781
+ else:
2782
+ _whatsapp.whatsapp_Message_JID_Set(self.handle, value)
2783
+ @property
2784
+ def GroupJID(self):
2785
+ return _whatsapp.whatsapp_Message_GroupJID_Get(self.handle)
2786
+ @GroupJID.setter
2787
+ def GroupJID(self, value):
2788
+ if isinstance(value, go.GoClass):
2789
+ _whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value.handle)
2790
+ else:
2791
+ _whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value)
2792
+ @property
2793
+ def OriginJID(self):
2794
+ return _whatsapp.whatsapp_Message_OriginJID_Get(self.handle)
2795
+ @OriginJID.setter
2796
+ def OriginJID(self, value):
2797
+ if isinstance(value, go.GoClass):
2798
+ _whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value.handle)
2799
+ else:
2800
+ _whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value)
2801
+ @property
2802
+ def Body(self):
2803
+ return _whatsapp.whatsapp_Message_Body_Get(self.handle)
2804
+ @Body.setter
2805
+ def Body(self, value):
2806
+ if isinstance(value, go.GoClass):
2807
+ _whatsapp.whatsapp_Message_Body_Set(self.handle, value.handle)
2808
+ else:
2809
+ _whatsapp.whatsapp_Message_Body_Set(self.handle, value)
2810
+ @property
2811
+ def Timestamp(self):
2812
+ return _whatsapp.whatsapp_Message_Timestamp_Get(self.handle)
2813
+ @Timestamp.setter
2814
+ def Timestamp(self, value):
2815
+ if isinstance(value, go.GoClass):
2816
+ _whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value.handle)
2817
+ else:
2818
+ _whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value)
2819
+ @property
2820
+ def IsCarbon(self):
2821
+ return _whatsapp.whatsapp_Message_IsCarbon_Get(self.handle)
2822
+ @IsCarbon.setter
2823
+ def IsCarbon(self, value):
2824
+ if isinstance(value, go.GoClass):
2825
+ _whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value.handle)
2826
+ else:
2827
+ _whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value)
2828
+ @property
2829
+ def IsForwarded(self):
2830
+ return _whatsapp.whatsapp_Message_IsForwarded_Get(self.handle)
2831
+ @IsForwarded.setter
2832
+ def IsForwarded(self, value):
2833
+ if isinstance(value, go.GoClass):
2834
+ _whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value.handle)
2835
+ else:
2836
+ _whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value)
2837
+ @property
2838
+ def ReplyID(self):
2839
+ return _whatsapp.whatsapp_Message_ReplyID_Get(self.handle)
2840
+ @ReplyID.setter
2841
+ def ReplyID(self, value):
2842
+ if isinstance(value, go.GoClass):
2843
+ _whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value.handle)
2844
+ else:
2845
+ _whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value)
2846
+ @property
2847
+ def ReplyBody(self):
2848
+ return _whatsapp.whatsapp_Message_ReplyBody_Get(self.handle)
2849
+ @ReplyBody.setter
2850
+ def ReplyBody(self, value):
2851
+ if isinstance(value, go.GoClass):
2852
+ _whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value.handle)
2853
+ else:
2854
+ _whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value)
2855
+ @property
2856
+ def Attachments(self):
2857
+ return Slice_whatsapp_Attachment(handle=_whatsapp.whatsapp_Message_Attachments_Get(self.handle))
2858
+ @Attachments.setter
2859
+ def Attachments(self, value):
2860
+ if isinstance(value, go.GoClass):
2861
+ _whatsapp.whatsapp_Message_Attachments_Set(self.handle, value.handle)
2862
+ else:
2863
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2864
+ @property
2865
+ def Preview(self):
2866
+ return Preview(handle=_whatsapp.whatsapp_Message_Preview_Get(self.handle))
2867
+ @Preview.setter
2868
+ def Preview(self, value):
2869
+ if isinstance(value, go.GoClass):
2870
+ _whatsapp.whatsapp_Message_Preview_Set(self.handle, value.handle)
2871
+ else:
2872
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2873
+ @property
2874
+ def Location(self):
2875
+ return Location(handle=_whatsapp.whatsapp_Message_Location_Get(self.handle))
2876
+ @Location.setter
2877
+ def Location(self, value):
2878
+ if isinstance(value, go.GoClass):
2879
+ _whatsapp.whatsapp_Message_Location_Set(self.handle, value.handle)
2880
+ else:
2881
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2882
+ @property
2883
+ def Poll(self):
2884
+ return Poll(handle=_whatsapp.whatsapp_Message_Poll_Get(self.handle))
2885
+ @Poll.setter
2886
+ def Poll(self, value):
2887
+ if isinstance(value, go.GoClass):
2888
+ _whatsapp.whatsapp_Message_Poll_Set(self.handle, value.handle)
2889
+ else:
2890
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2891
+ @property
2892
+ def Album(self):
2893
+ return Album(handle=_whatsapp.whatsapp_Message_Album_Get(self.handle))
2894
+ @Album.setter
2895
+ def Album(self, value):
2896
+ if isinstance(value, go.GoClass):
2897
+ _whatsapp.whatsapp_Message_Album_Set(self.handle, value.handle)
2898
+ else:
2899
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2900
+ @property
2901
+ def GroupInvite(self):
2902
+ return Group(handle=_whatsapp.whatsapp_Message_GroupInvite_Get(self.handle))
2903
+ @GroupInvite.setter
2904
+ def GroupInvite(self, value):
2905
+ if isinstance(value, go.GoClass):
2906
+ _whatsapp.whatsapp_Message_GroupInvite_Set(self.handle, value.handle)
2907
+ else:
2908
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2909
+ @property
2910
+ def MentionJIDs(self):
2911
+ return go.Slice_string(handle=_whatsapp.whatsapp_Message_MentionJIDs_Get(self.handle))
2912
+ @MentionJIDs.setter
2913
+ def MentionJIDs(self, value):
2914
+ if isinstance(value, go.GoClass):
2915
+ _whatsapp.whatsapp_Message_MentionJIDs_Set(self.handle, value.handle)
2916
+ else:
2917
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2918
+ @property
2919
+ def Receipts(self):
2920
+ return Slice_whatsapp_Receipt(handle=_whatsapp.whatsapp_Message_Receipts_Get(self.handle))
2921
+ @Receipts.setter
2922
+ def Receipts(self, value):
2923
+ if isinstance(value, go.GoClass):
2924
+ _whatsapp.whatsapp_Message_Receipts_Set(self.handle, value.handle)
2925
+ else:
2926
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2927
+ @property
2928
+ def Reactions(self):
2929
+ return Slice_whatsapp_Message(handle=_whatsapp.whatsapp_Message_Reactions_Get(self.handle))
2930
+ @Reactions.setter
2931
+ def Reactions(self, value):
2932
+ if isinstance(value, go.GoClass):
2933
+ _whatsapp.whatsapp_Message_Reactions_Set(self.handle, value.handle)
2934
+ else:
2935
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2936
+ @property
2937
+ def IsHistory(self):
2938
+ return _whatsapp.whatsapp_Message_IsHistory_Get(self.handle)
2939
+ @IsHistory.setter
2940
+ def IsHistory(self, value):
2941
+ if isinstance(value, go.GoClass):
2942
+ _whatsapp.whatsapp_Message_IsHistory_Set(self.handle, value.handle)
2943
+ else:
2944
+ _whatsapp.whatsapp_Message_IsHistory_Set(self.handle, value)
2956
2945
 
2957
- # Python type for struct whatsapp.Poll
2958
- class Poll(go.GoClass):
2959
- """A Poll represents a multiple-choice question, on which each choice might be voted for one or more\ntimes.\n"""
2946
+ # Python type for struct whatsapp.ChatState
2947
+ class ChatState(go.GoClass):
2948
+ """A ChatState represents the activity of a contact within a certain discussion, for instance,\nwhether the contact is currently composing a message. This is separate to the concept of a\nPresence, which is the contact's general state across all discussions.\n"""
2960
2949
  def __init__(self, *args, **kwargs):
2961
2950
  """
2962
2951
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -2970,21 +2959,25 @@ class Poll(go.GoClass):
2970
2959
  self.handle = args[0].handle
2971
2960
  _whatsapp.IncRef(self.handle)
2972
2961
  else:
2973
- self.handle = _whatsapp.whatsapp_Poll_CTor()
2962
+ self.handle = _whatsapp.whatsapp_ChatState_CTor()
2974
2963
  _whatsapp.IncRef(self.handle)
2975
2964
  if 0 < len(args):
2976
- self.Title = args[0]
2977
- if "Title" in kwargs:
2978
- self.Title = kwargs["Title"]
2965
+ self.Kind = args[0]
2966
+ if "Kind" in kwargs:
2967
+ self.Kind = kwargs["Kind"]
2979
2968
  if 1 < len(args):
2980
- self.Options = args[1]
2981
- if "Options" in kwargs:
2982
- self.Options = kwargs["Options"]
2969
+ self.JID = args[1]
2970
+ if "JID" in kwargs:
2971
+ self.JID = kwargs["JID"]
2972
+ if 2 < len(args):
2973
+ self.GroupJID = args[2]
2974
+ if "GroupJID" in kwargs:
2975
+ self.GroupJID = kwargs["GroupJID"]
2983
2976
  def __del__(self):
2984
2977
  _whatsapp.DecRef(self.handle)
2985
2978
  def __str__(self):
2986
2979
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2987
- sv = 'whatsapp.Poll{'
2980
+ sv = 'whatsapp.ChatState{'
2988
2981
  first = True
2989
2982
  for v in pr:
2990
2983
  if callable(v[1]):
@@ -2997,33 +2990,42 @@ class Poll(go.GoClass):
2997
2990
  return sv + '}'
2998
2991
  def __repr__(self):
2999
2992
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
3000
- sv = 'whatsapp.Poll ( '
2993
+ sv = 'whatsapp.ChatState ( '
3001
2994
  for v in pr:
3002
2995
  if not callable(v[1]):
3003
2996
  sv += v[0] + '=' + str(v[1]) + ', '
3004
2997
  return sv + ')'
3005
2998
  @property
3006
- def Title(self):
3007
- return _whatsapp.whatsapp_Poll_Title_Get(self.handle)
3008
- @Title.setter
3009
- def Title(self, value):
2999
+ def Kind(self):
3000
+ return _whatsapp.whatsapp_ChatState_Kind_Get(self.handle)
3001
+ @Kind.setter
3002
+ def Kind(self, value):
3010
3003
  if isinstance(value, go.GoClass):
3011
- _whatsapp.whatsapp_Poll_Title_Set(self.handle, value.handle)
3004
+ _whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value.handle)
3012
3005
  else:
3013
- _whatsapp.whatsapp_Poll_Title_Set(self.handle, value)
3006
+ _whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value)
3014
3007
  @property
3015
- def Options(self):
3016
- return Slice_whatsapp_PollOption(handle=_whatsapp.whatsapp_Poll_Options_Get(self.handle))
3017
- @Options.setter
3018
- def Options(self, value):
3008
+ def JID(self):
3009
+ return _whatsapp.whatsapp_ChatState_JID_Get(self.handle)
3010
+ @JID.setter
3011
+ def JID(self, value):
3019
3012
  if isinstance(value, go.GoClass):
3020
- _whatsapp.whatsapp_Poll_Options_Set(self.handle, value.handle)
3013
+ _whatsapp.whatsapp_ChatState_JID_Set(self.handle, value.handle)
3021
3014
  else:
3022
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
3015
+ _whatsapp.whatsapp_ChatState_JID_Set(self.handle, value)
3016
+ @property
3017
+ def GroupJID(self):
3018
+ return _whatsapp.whatsapp_ChatState_GroupJID_Get(self.handle)
3019
+ @GroupJID.setter
3020
+ def GroupJID(self, value):
3021
+ if isinstance(value, go.GoClass):
3022
+ _whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value.handle)
3023
+ else:
3024
+ _whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value)
3023
3025
 
3024
- # Python type for struct whatsapp.PollOption
3025
- class PollOption(go.GoClass):
3026
- """A PollOption represents an individual choice within a broader poll.\n"""
3026
+ # Python type for struct whatsapp.Preview
3027
+ class Preview(go.GoClass):
3028
+ """A Preview represents a short description for a URL provided in a message body, as usually derived\nfrom the content of the page pointed at.\n"""
3027
3029
  def __init__(self, *args, **kwargs):
3028
3030
  """
3029
3031
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -3037,17 +3039,33 @@ class PollOption(go.GoClass):
3037
3039
  self.handle = args[0].handle
3038
3040
  _whatsapp.IncRef(self.handle)
3039
3041
  else:
3040
- self.handle = _whatsapp.whatsapp_PollOption_CTor()
3042
+ self.handle = _whatsapp.whatsapp_Preview_CTor()
3041
3043
  _whatsapp.IncRef(self.handle)
3042
3044
  if 0 < len(args):
3043
- self.Title = args[0]
3045
+ self.Kind = args[0]
3046
+ if "Kind" in kwargs:
3047
+ self.Kind = kwargs["Kind"]
3048
+ if 1 < len(args):
3049
+ self.URL = args[1]
3050
+ if "URL" in kwargs:
3051
+ self.URL = kwargs["URL"]
3052
+ if 2 < len(args):
3053
+ self.Title = args[2]
3044
3054
  if "Title" in kwargs:
3045
3055
  self.Title = kwargs["Title"]
3056
+ if 3 < len(args):
3057
+ self.Description = args[3]
3058
+ if "Description" in kwargs:
3059
+ self.Description = kwargs["Description"]
3060
+ if 4 < len(args):
3061
+ self.Thumbnail = args[4]
3062
+ if "Thumbnail" in kwargs:
3063
+ self.Thumbnail = kwargs["Thumbnail"]
3046
3064
  def __del__(self):
3047
3065
  _whatsapp.DecRef(self.handle)
3048
3066
  def __str__(self):
3049
3067
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
3050
- sv = 'whatsapp.PollOption{'
3068
+ sv = 'whatsapp.Preview{'
3051
3069
  first = True
3052
3070
  for v in pr:
3053
3071
  if callable(v[1]):
@@ -3060,24 +3078,60 @@ class PollOption(go.GoClass):
3060
3078
  return sv + '}'
3061
3079
  def __repr__(self):
3062
3080
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
3063
- sv = 'whatsapp.PollOption ( '
3081
+ sv = 'whatsapp.Preview ( '
3064
3082
  for v in pr:
3065
3083
  if not callable(v[1]):
3066
3084
  sv += v[0] + '=' + str(v[1]) + ', '
3067
3085
  return sv + ')'
3068
3086
  @property
3087
+ def Kind(self):
3088
+ return _whatsapp.whatsapp_Preview_Kind_Get(self.handle)
3089
+ @Kind.setter
3090
+ def Kind(self, value):
3091
+ if isinstance(value, go.GoClass):
3092
+ _whatsapp.whatsapp_Preview_Kind_Set(self.handle, value.handle)
3093
+ else:
3094
+ _whatsapp.whatsapp_Preview_Kind_Set(self.handle, value)
3095
+ @property
3096
+ def URL(self):
3097
+ return _whatsapp.whatsapp_Preview_URL_Get(self.handle)
3098
+ @URL.setter
3099
+ def URL(self, value):
3100
+ if isinstance(value, go.GoClass):
3101
+ _whatsapp.whatsapp_Preview_URL_Set(self.handle, value.handle)
3102
+ else:
3103
+ _whatsapp.whatsapp_Preview_URL_Set(self.handle, value)
3104
+ @property
3069
3105
  def Title(self):
3070
- return _whatsapp.whatsapp_PollOption_Title_Get(self.handle)
3106
+ return _whatsapp.whatsapp_Preview_Title_Get(self.handle)
3071
3107
  @Title.setter
3072
3108
  def Title(self, value):
3073
3109
  if isinstance(value, go.GoClass):
3074
- _whatsapp.whatsapp_PollOption_Title_Set(self.handle, value.handle)
3110
+ _whatsapp.whatsapp_Preview_Title_Set(self.handle, value.handle)
3075
3111
  else:
3076
- _whatsapp.whatsapp_PollOption_Title_Set(self.handle, value)
3112
+ _whatsapp.whatsapp_Preview_Title_Set(self.handle, value)
3113
+ @property
3114
+ def Description(self):
3115
+ return _whatsapp.whatsapp_Preview_Description_Get(self.handle)
3116
+ @Description.setter
3117
+ def Description(self, value):
3118
+ if isinstance(value, go.GoClass):
3119
+ _whatsapp.whatsapp_Preview_Description_Set(self.handle, value.handle)
3120
+ else:
3121
+ _whatsapp.whatsapp_Preview_Description_Set(self.handle, value)
3122
+ @property
3123
+ def Thumbnail(self):
3124
+ return go.Slice_byte(handle=_whatsapp.whatsapp_Preview_Thumbnail_Get(self.handle))
3125
+ @Thumbnail.setter
3126
+ def Thumbnail(self, value):
3127
+ if isinstance(value, go.GoClass):
3128
+ _whatsapp.whatsapp_Preview_Thumbnail_Set(self.handle, value.handle)
3129
+ else:
3130
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
3077
3131
 
3078
- # Python type for struct whatsapp.Avatar
3079
- class Avatar(go.GoClass):
3080
- """A Avatar represents a small image set for a Contact or Group.\n"""
3132
+ # Python type for struct whatsapp.Receipt
3133
+ class Receipt(go.GoClass):
3134
+ """A Receipt represents a notice of delivery or presentation for [Message] instances sent or\nreceived. Receipts can be delivered for many messages at once, but are generally all delivered\nunder one specific state at a time.\n"""
3081
3135
  def __init__(self, *args, **kwargs):
3082
3136
  """
3083
3137
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -3091,21 +3145,37 @@ class Avatar(go.GoClass):
3091
3145
  self.handle = args[0].handle
3092
3146
  _whatsapp.IncRef(self.handle)
3093
3147
  else:
3094
- self.handle = _whatsapp.whatsapp_Avatar_CTor()
3148
+ self.handle = _whatsapp.whatsapp_Receipt_CTor()
3095
3149
  _whatsapp.IncRef(self.handle)
3096
3150
  if 0 < len(args):
3097
- self.ID = args[0]
3098
- if "ID" in kwargs:
3099
- self.ID = kwargs["ID"]
3151
+ self.Kind = args[0]
3152
+ if "Kind" in kwargs:
3153
+ self.Kind = kwargs["Kind"]
3100
3154
  if 1 < len(args):
3101
- self.URL = args[1]
3102
- if "URL" in kwargs:
3103
- self.URL = kwargs["URL"]
3155
+ self.MessageIDs = args[1]
3156
+ if "MessageIDs" in kwargs:
3157
+ self.MessageIDs = kwargs["MessageIDs"]
3158
+ if 2 < len(args):
3159
+ self.JID = args[2]
3160
+ if "JID" in kwargs:
3161
+ self.JID = kwargs["JID"]
3162
+ if 3 < len(args):
3163
+ self.GroupJID = args[3]
3164
+ if "GroupJID" in kwargs:
3165
+ self.GroupJID = kwargs["GroupJID"]
3166
+ if 4 < len(args):
3167
+ self.Timestamp = args[4]
3168
+ if "Timestamp" in kwargs:
3169
+ self.Timestamp = kwargs["Timestamp"]
3170
+ if 5 < len(args):
3171
+ self.IsCarbon = args[5]
3172
+ if "IsCarbon" in kwargs:
3173
+ self.IsCarbon = kwargs["IsCarbon"]
3104
3174
  def __del__(self):
3105
3175
  _whatsapp.DecRef(self.handle)
3106
3176
  def __str__(self):
3107
3177
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
3108
- sv = 'whatsapp.Avatar{'
3178
+ sv = 'whatsapp.Receipt{'
3109
3179
  first = True
3110
3180
  for v in pr:
3111
3181
  if callable(v[1]):
@@ -3118,33 +3188,69 @@ class Avatar(go.GoClass):
3118
3188
  return sv + '}'
3119
3189
  def __repr__(self):
3120
3190
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
3121
- sv = 'whatsapp.Avatar ( '
3191
+ sv = 'whatsapp.Receipt ( '
3122
3192
  for v in pr:
3123
3193
  if not callable(v[1]):
3124
3194
  sv += v[0] + '=' + str(v[1]) + ', '
3125
3195
  return sv + ')'
3126
3196
  @property
3127
- def ID(self):
3128
- return _whatsapp.whatsapp_Avatar_ID_Get(self.handle)
3129
- @ID.setter
3130
- def ID(self, value):
3197
+ def Kind(self):
3198
+ return _whatsapp.whatsapp_Receipt_Kind_Get(self.handle)
3199
+ @Kind.setter
3200
+ def Kind(self, value):
3131
3201
  if isinstance(value, go.GoClass):
3132
- _whatsapp.whatsapp_Avatar_ID_Set(self.handle, value.handle)
3202
+ _whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value.handle)
3133
3203
  else:
3134
- _whatsapp.whatsapp_Avatar_ID_Set(self.handle, value)
3204
+ _whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value)
3135
3205
  @property
3136
- def URL(self):
3137
- return _whatsapp.whatsapp_Avatar_URL_Get(self.handle)
3138
- @URL.setter
3139
- def URL(self, value):
3206
+ def MessageIDs(self):
3207
+ return go.Slice_string(handle=_whatsapp.whatsapp_Receipt_MessageIDs_Get(self.handle))
3208
+ @MessageIDs.setter
3209
+ def MessageIDs(self, value):
3140
3210
  if isinstance(value, go.GoClass):
3141
- _whatsapp.whatsapp_Avatar_URL_Set(self.handle, value.handle)
3211
+ _whatsapp.whatsapp_Receipt_MessageIDs_Set(self.handle, value.handle)
3142
3212
  else:
3143
- _whatsapp.whatsapp_Avatar_URL_Set(self.handle, value)
3213
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
3214
+ @property
3215
+ def JID(self):
3216
+ return _whatsapp.whatsapp_Receipt_JID_Get(self.handle)
3217
+ @JID.setter
3218
+ def JID(self, value):
3219
+ if isinstance(value, go.GoClass):
3220
+ _whatsapp.whatsapp_Receipt_JID_Set(self.handle, value.handle)
3221
+ else:
3222
+ _whatsapp.whatsapp_Receipt_JID_Set(self.handle, value)
3223
+ @property
3224
+ def GroupJID(self):
3225
+ return _whatsapp.whatsapp_Receipt_GroupJID_Get(self.handle)
3226
+ @GroupJID.setter
3227
+ def GroupJID(self, value):
3228
+ if isinstance(value, go.GoClass):
3229
+ _whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value.handle)
3230
+ else:
3231
+ _whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value)
3232
+ @property
3233
+ def Timestamp(self):
3234
+ return _whatsapp.whatsapp_Receipt_Timestamp_Get(self.handle)
3235
+ @Timestamp.setter
3236
+ def Timestamp(self, value):
3237
+ if isinstance(value, go.GoClass):
3238
+ _whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value.handle)
3239
+ else:
3240
+ _whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value)
3241
+ @property
3242
+ def IsCarbon(self):
3243
+ return _whatsapp.whatsapp_Receipt_IsCarbon_Get(self.handle)
3244
+ @IsCarbon.setter
3245
+ def IsCarbon(self, value):
3246
+ if isinstance(value, go.GoClass):
3247
+ _whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value.handle)
3248
+ else:
3249
+ _whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value)
3144
3250
 
3145
- # Python type for struct whatsapp.Contact
3146
- class Contact(go.GoClass):
3147
- """A Contact represents any entity that be communicated with directly in WhatsApp. This typically\nrepresents people, but may represent a business or bot as well, but not a group-chat.\n"""
3251
+ # Python type for struct whatsapp.Presence
3252
+ class Presence(go.GoClass):
3253
+ """Precence represents a contact's general state of activity, and is periodically updated as\ncontacts start or stop paying attention to their client of choice.\n"""
3148
3254
  def __init__(self, *args, **kwargs):
3149
3255
  """
3150
3256
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -3158,21 +3264,25 @@ class Contact(go.GoClass):
3158
3264
  self.handle = args[0].handle
3159
3265
  _whatsapp.IncRef(self.handle)
3160
3266
  else:
3161
- self.handle = _whatsapp.whatsapp_Contact_CTor()
3267
+ self.handle = _whatsapp.whatsapp_Presence_CTor()
3162
3268
  _whatsapp.IncRef(self.handle)
3163
3269
  if 0 < len(args):
3164
3270
  self.JID = args[0]
3165
3271
  if "JID" in kwargs:
3166
3272
  self.JID = kwargs["JID"]
3167
3273
  if 1 < len(args):
3168
- self.Name = args[1]
3169
- if "Name" in kwargs:
3170
- self.Name = kwargs["Name"]
3274
+ self.Kind = args[1]
3275
+ if "Kind" in kwargs:
3276
+ self.Kind = kwargs["Kind"]
3277
+ if 2 < len(args):
3278
+ self.LastSeen = args[2]
3279
+ if "LastSeen" in kwargs:
3280
+ self.LastSeen = kwargs["LastSeen"]
3171
3281
  def __del__(self):
3172
3282
  _whatsapp.DecRef(self.handle)
3173
3283
  def __str__(self):
3174
3284
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
3175
- sv = 'whatsapp.Contact{'
3285
+ sv = 'whatsapp.Presence{'
3176
3286
  first = True
3177
3287
  for v in pr:
3178
3288
  if callable(v[1]):
@@ -3185,29 +3295,38 @@ class Contact(go.GoClass):
3185
3295
  return sv + '}'
3186
3296
  def __repr__(self):
3187
3297
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
3188
- sv = 'whatsapp.Contact ( '
3298
+ sv = 'whatsapp.Presence ( '
3189
3299
  for v in pr:
3190
3300
  if not callable(v[1]):
3191
3301
  sv += v[0] + '=' + str(v[1]) + ', '
3192
3302
  return sv + ')'
3193
3303
  @property
3194
3304
  def JID(self):
3195
- return _whatsapp.whatsapp_Contact_JID_Get(self.handle)
3305
+ return _whatsapp.whatsapp_Presence_JID_Get(self.handle)
3196
3306
  @JID.setter
3197
3307
  def JID(self, value):
3198
3308
  if isinstance(value, go.GoClass):
3199
- _whatsapp.whatsapp_Contact_JID_Set(self.handle, value.handle)
3309
+ _whatsapp.whatsapp_Presence_JID_Set(self.handle, value.handle)
3200
3310
  else:
3201
- _whatsapp.whatsapp_Contact_JID_Set(self.handle, value)
3311
+ _whatsapp.whatsapp_Presence_JID_Set(self.handle, value)
3202
3312
  @property
3203
- def Name(self):
3204
- return _whatsapp.whatsapp_Contact_Name_Get(self.handle)
3205
- @Name.setter
3206
- def Name(self, value):
3313
+ def Kind(self):
3314
+ return _whatsapp.whatsapp_Presence_Kind_Get(self.handle)
3315
+ @Kind.setter
3316
+ def Kind(self, value):
3207
3317
  if isinstance(value, go.GoClass):
3208
- _whatsapp.whatsapp_Contact_Name_Set(self.handle, value.handle)
3318
+ _whatsapp.whatsapp_Presence_Kind_Set(self.handle, value.handle)
3209
3319
  else:
3210
- _whatsapp.whatsapp_Contact_Name_Set(self.handle, value)
3320
+ _whatsapp.whatsapp_Presence_Kind_Set(self.handle, value)
3321
+ @property
3322
+ def LastSeen(self):
3323
+ return _whatsapp.whatsapp_Presence_LastSeen_Get(self.handle)
3324
+ @LastSeen.setter
3325
+ def LastSeen(self, value):
3326
+ if isinstance(value, go.GoClass):
3327
+ _whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value.handle)
3328
+ else:
3329
+ _whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value)
3211
3330
 
3212
3331
 
3213
3332
  # ---- Slices ---
@@ -3227,5 +3346,11 @@ def NewGateway():
3227
3346
 
3228
3347
 
3229
3348
  # ---- Functions ---
3349
+ def IsAnonymousJID(id):
3350
+ """IsAnonymousJID(str id) bool
3351
+
3352
+ IsAnonymousJID returns true if the JID given is not addressible, that is, if it's actually a LID.
3353
+ """
3354
+ return _whatsapp.whatsapp_IsAnonymousJID(id)
3230
3355
 
3231
3356