slidge-whatsapp 0.2.2__cp313-cp313-manylinux_2_36_aarch64.whl → 0.2.5__cp313-cp313-manylinux_2_36_aarch64.whl

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

Potentially problematic release.


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

Files changed (1134) hide show
  1. slidge_whatsapp/__init__.py +26 -8
  2. slidge_whatsapp/__main__.py +3 -0
  3. slidge_whatsapp/contact.py +1 -1
  4. slidge_whatsapp/event.go +56 -0
  5. slidge_whatsapp/generated/_whatsapp.cpython-313-aarch64-linux-gnu.h +169 -132
  6. slidge_whatsapp/generated/_whatsapp.cpython-313-aarch64-linux-gnu.so +0 -0
  7. slidge_whatsapp/generated/build.py +135 -110
  8. slidge_whatsapp/generated/go.py +1 -1
  9. slidge_whatsapp/generated/whatsapp.c +1846 -1375
  10. slidge_whatsapp/generated/whatsapp.go +1079 -834
  11. slidge_whatsapp/generated/whatsapp.py +1392 -1072
  12. slidge_whatsapp/generated/whatsapp_go.h +169 -132
  13. slidge_whatsapp/go.mod +11 -9
  14. slidge_whatsapp/go.sum +16 -16
  15. slidge_whatsapp/group.py +7 -2
  16. slidge_whatsapp/media/__init__.py +0 -0
  17. slidge_whatsapp/media/media.go +8 -3
  18. slidge_whatsapp/session.go +4 -5
  19. slidge_whatsapp/session.py +53 -31
  20. slidge_whatsapp/vendor/filippo.io/edwards25519/LICENSE +27 -0
  21. slidge_whatsapp/vendor/filippo.io/edwards25519/README.md +14 -0
  22. slidge_whatsapp/vendor/filippo.io/edwards25519/doc.go +20 -0
  23. slidge_whatsapp/vendor/filippo.io/edwards25519/edwards25519.go +427 -0
  24. slidge_whatsapp/vendor/filippo.io/edwards25519/extra.go +349 -0
  25. slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe.go +420 -0
  26. slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_amd64.go +16 -0
  27. slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_amd64.s +379 -0
  28. slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_amd64_noasm.go +12 -0
  29. slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_arm64.go +16 -0
  30. slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_arm64.s +42 -0
  31. slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_arm64_noasm.go +12 -0
  32. slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_extra.go +50 -0
  33. slidge_whatsapp/vendor/filippo.io/edwards25519/field/fe_generic.go +266 -0
  34. slidge_whatsapp/vendor/filippo.io/edwards25519/scalar.go +343 -0
  35. slidge_whatsapp/vendor/filippo.io/edwards25519/scalar_fiat.go +1147 -0
  36. slidge_whatsapp/vendor/filippo.io/edwards25519/scalarmult.go +214 -0
  37. slidge_whatsapp/vendor/filippo.io/edwards25519/tables.go +129 -0
  38. slidge_whatsapp/vendor/github.com/ebitengine/purego/.gitignore +1 -0
  39. slidge_whatsapp/vendor/github.com/ebitengine/purego/LICENSE +201 -0
  40. slidge_whatsapp/vendor/github.com/ebitengine/purego/README.md +97 -0
  41. slidge_whatsapp/vendor/github.com/ebitengine/purego/abi_amd64.h +99 -0
  42. slidge_whatsapp/vendor/github.com/ebitengine/purego/abi_arm64.h +39 -0
  43. slidge_whatsapp/vendor/github.com/ebitengine/purego/cgo.go +19 -0
  44. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlerror.go +17 -0
  45. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn.go +99 -0
  46. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_android.go +34 -0
  47. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_darwin.go +24 -0
  48. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_freebsd.go +14 -0
  49. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_linux.go +16 -0
  50. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_nocgo_freebsd.go +11 -0
  51. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_nocgo_linux.go +19 -0
  52. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_playground.go +24 -0
  53. slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_stubs.s +26 -0
  54. slidge_whatsapp/vendor/github.com/ebitengine/purego/func.go +436 -0
  55. slidge_whatsapp/vendor/github.com/ebitengine/purego/go_runtime.go +13 -0
  56. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/cgo/dlfcn_cgo_unix.go +56 -0
  57. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/cgo/empty.go +6 -0
  58. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/cgo/syscall_cgo_unix.go +55 -0
  59. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/abi_amd64.h +99 -0
  60. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/abi_arm64.h +39 -0
  61. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/asm_amd64.s +39 -0
  62. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/asm_arm64.s +36 -0
  63. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/callbacks.go +93 -0
  64. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/doc.go +32 -0
  65. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/freebsd.go +27 -0
  66. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_darwin_amd64.go +73 -0
  67. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_darwin_arm64.go +88 -0
  68. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_freebsd_amd64.go +95 -0
  69. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_freebsd_arm64.go +98 -0
  70. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_libinit.go +69 -0
  71. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_linux_amd64.go +95 -0
  72. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_linux_arm64.go +98 -0
  73. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_setenv.go +18 -0
  74. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_util.go +37 -0
  75. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/iscgo.go +19 -0
  76. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo.go +39 -0
  77. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_darwin.go +22 -0
  78. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_freebsd.go +16 -0
  79. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_linux.go +16 -0
  80. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/setenv.go +19 -0
  81. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols.go +201 -0
  82. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols_darwin.go +29 -0
  83. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols_freebsd.go +29 -0
  84. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols_linux.go +29 -0
  85. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_amd64.s +104 -0
  86. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_arm64.s +72 -0
  87. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_stubs.s +90 -0
  88. slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/strings/strings.go +40 -0
  89. slidge_whatsapp/vendor/github.com/ebitengine/purego/is_ios.go +13 -0
  90. slidge_whatsapp/vendor/github.com/ebitengine/purego/nocgo.go +25 -0
  91. slidge_whatsapp/vendor/github.com/ebitengine/purego/struct_amd64.go +260 -0
  92. slidge_whatsapp/vendor/github.com/ebitengine/purego/struct_arm64.go +274 -0
  93. slidge_whatsapp/vendor/github.com/ebitengine/purego/struct_other.go +16 -0
  94. slidge_whatsapp/vendor/github.com/ebitengine/purego/sys_amd64.s +164 -0
  95. slidge_whatsapp/vendor/github.com/ebitengine/purego/sys_arm64.s +92 -0
  96. slidge_whatsapp/vendor/github.com/ebitengine/purego/sys_unix_arm64.s +70 -0
  97. slidge_whatsapp/vendor/github.com/ebitengine/purego/syscall.go +53 -0
  98. slidge_whatsapp/vendor/github.com/ebitengine/purego/syscall_cgo_linux.go +21 -0
  99. slidge_whatsapp/vendor/github.com/ebitengine/purego/syscall_sysv.go +223 -0
  100. slidge_whatsapp/vendor/github.com/ebitengine/purego/syscall_windows.go +46 -0
  101. slidge_whatsapp/vendor/github.com/ebitengine/purego/zcallback_amd64.s +2014 -0
  102. slidge_whatsapp/vendor/github.com/ebitengine/purego/zcallback_arm64.s +4014 -0
  103. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/.gitattributes +6 -0
  104. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/AUTHORS +1 -0
  105. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/COPYING +661 -0
  106. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/README.md +71 -0
  107. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz.go +66 -0
  108. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo.go +596 -0
  109. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo_cgo.go +18 -0
  110. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo_extlib.go +11 -0
  111. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo_extlib_pkgconfig.go +9 -0
  112. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_content_types.go +383 -0
  113. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_nocgo.go +1098 -0
  114. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_vendor.go +9 -0
  115. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/archive.h +444 -0
  116. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/band-writer.h +117 -0
  117. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/bidi.h +90 -0
  118. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/bitmap.h +175 -0
  119. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/buffer.h +250 -0
  120. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/color.h +427 -0
  121. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/compress.h +88 -0
  122. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/compressed-buffer.h +185 -0
  123. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/config.h +222 -0
  124. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/context.h +1006 -0
  125. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/crypt.h +270 -0
  126. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/device.h +654 -0
  127. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/display-list.h +142 -0
  128. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/document.h +1108 -0
  129. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/export.h +52 -0
  130. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/filter.h +263 -0
  131. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/font.h +815 -0
  132. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/geometry.h +818 -0
  133. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/getopt.h +128 -0
  134. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/glyph-cache.h +96 -0
  135. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/glyph.h +81 -0
  136. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/hash.h +126 -0
  137. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/heap-imp.h +163 -0
  138. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/heap.h +140 -0
  139. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/image.h +443 -0
  140. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/link.h +130 -0
  141. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/log.h +61 -0
  142. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/outline.h +228 -0
  143. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/output-svg.h +64 -0
  144. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/output.h +415 -0
  145. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/path.h +447 -0
  146. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/pixmap.h +501 -0
  147. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/pool.h +68 -0
  148. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/separation.h +138 -0
  149. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/shade.h +233 -0
  150. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/store.h +456 -0
  151. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/story-writer.h +209 -0
  152. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/story.h +232 -0
  153. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/stream.h +646 -0
  154. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/string-util.h +286 -0
  155. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/structured-text.h +365 -0
  156. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/system.h +459 -0
  157. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/text.h +209 -0
  158. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/track-usage.h +57 -0
  159. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/transition.h +76 -0
  160. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/tree.h +62 -0
  161. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/types.h +41 -0
  162. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/util.h +151 -0
  163. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/vendor.go +3 -0
  164. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/version.h +31 -0
  165. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/write-pixmap.h +499 -0
  166. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/writer.h +266 -0
  167. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz/xml.h +397 -0
  168. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/fitz.h +97 -0
  169. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/memento.h +423 -0
  170. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/include/mupdf/vendor.go +3 -0
  171. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/libs/libmupdf_linux_arm64.a +0 -0
  172. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/libs/libmupdfthird_linux_arm64.a +0 -0
  173. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/libs/vendor.go +3 -0
  174. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_darwin.go +23 -0
  175. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_linux.go +22 -0
  176. slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_windows.go +22 -0
  177. slidge_whatsapp/vendor/github.com/go-python/gopy/LICENSE +23 -0
  178. slidge_whatsapp/vendor/github.com/go-python/gopy/gopyh/handle.go +210 -0
  179. slidge_whatsapp/vendor/github.com/google/uuid/CHANGELOG.md +41 -0
  180. slidge_whatsapp/vendor/github.com/google/uuid/CONTRIBUTING.md +26 -0
  181. slidge_whatsapp/vendor/github.com/google/uuid/CONTRIBUTORS +9 -0
  182. slidge_whatsapp/vendor/github.com/google/uuid/LICENSE +27 -0
  183. slidge_whatsapp/vendor/github.com/google/uuid/README.md +21 -0
  184. slidge_whatsapp/vendor/github.com/google/uuid/dce.go +80 -0
  185. slidge_whatsapp/vendor/github.com/google/uuid/doc.go +12 -0
  186. slidge_whatsapp/vendor/github.com/google/uuid/hash.go +59 -0
  187. slidge_whatsapp/vendor/github.com/google/uuid/marshal.go +38 -0
  188. slidge_whatsapp/vendor/github.com/google/uuid/node.go +90 -0
  189. slidge_whatsapp/vendor/github.com/google/uuid/node_js.go +12 -0
  190. slidge_whatsapp/vendor/github.com/google/uuid/node_net.go +33 -0
  191. slidge_whatsapp/vendor/github.com/google/uuid/null.go +118 -0
  192. slidge_whatsapp/vendor/github.com/google/uuid/sql.go +59 -0
  193. slidge_whatsapp/vendor/github.com/google/uuid/time.go +134 -0
  194. slidge_whatsapp/vendor/github.com/google/uuid/util.go +43 -0
  195. slidge_whatsapp/vendor/github.com/google/uuid/uuid.go +365 -0
  196. slidge_whatsapp/vendor/github.com/google/uuid/version1.go +44 -0
  197. slidge_whatsapp/vendor/github.com/google/uuid/version4.go +76 -0
  198. slidge_whatsapp/vendor/github.com/google/uuid/version6.go +56 -0
  199. slidge_whatsapp/vendor/github.com/google/uuid/version7.go +104 -0
  200. slidge_whatsapp/vendor/github.com/gorilla/websocket/.gitignore +25 -0
  201. slidge_whatsapp/vendor/github.com/gorilla/websocket/AUTHORS +9 -0
  202. slidge_whatsapp/vendor/github.com/gorilla/websocket/LICENSE +22 -0
  203. slidge_whatsapp/vendor/github.com/gorilla/websocket/README.md +33 -0
  204. slidge_whatsapp/vendor/github.com/gorilla/websocket/client.go +434 -0
  205. slidge_whatsapp/vendor/github.com/gorilla/websocket/compression.go +148 -0
  206. slidge_whatsapp/vendor/github.com/gorilla/websocket/conn.go +1238 -0
  207. slidge_whatsapp/vendor/github.com/gorilla/websocket/doc.go +227 -0
  208. slidge_whatsapp/vendor/github.com/gorilla/websocket/join.go +42 -0
  209. slidge_whatsapp/vendor/github.com/gorilla/websocket/json.go +60 -0
  210. slidge_whatsapp/vendor/github.com/gorilla/websocket/mask.go +55 -0
  211. slidge_whatsapp/vendor/github.com/gorilla/websocket/mask_safe.go +16 -0
  212. slidge_whatsapp/vendor/github.com/gorilla/websocket/prepared.go +102 -0
  213. slidge_whatsapp/vendor/github.com/gorilla/websocket/proxy.go +77 -0
  214. slidge_whatsapp/vendor/github.com/gorilla/websocket/server.go +365 -0
  215. slidge_whatsapp/vendor/github.com/gorilla/websocket/tls_handshake.go +21 -0
  216. slidge_whatsapp/vendor/github.com/gorilla/websocket/tls_handshake_116.go +21 -0
  217. slidge_whatsapp/vendor/github.com/gorilla/websocket/util.go +298 -0
  218. slidge_whatsapp/vendor/github.com/gorilla/websocket/x_net_proxy.go +473 -0
  219. slidge_whatsapp/vendor/github.com/h2non/filetype/.editorconfig +12 -0
  220. slidge_whatsapp/vendor/github.com/h2non/filetype/.gitignore +2 -0
  221. slidge_whatsapp/vendor/github.com/h2non/filetype/.travis.yml +16 -0
  222. slidge_whatsapp/vendor/github.com/h2non/filetype/History.md +163 -0
  223. slidge_whatsapp/vendor/github.com/h2non/filetype/LICENSE +24 -0
  224. slidge_whatsapp/vendor/github.com/h2non/filetype/README.md +294 -0
  225. slidge_whatsapp/vendor/github.com/h2non/filetype/filetype.go +102 -0
  226. slidge_whatsapp/vendor/github.com/h2non/filetype/kind.go +91 -0
  227. slidge_whatsapp/vendor/github.com/h2non/filetype/match.go +90 -0
  228. slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/application.go +43 -0
  229. slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/archive.go +211 -0
  230. slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/audio.go +85 -0
  231. slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/document.go +197 -0
  232. slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/font.go +45 -0
  233. slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/image.go +143 -0
  234. slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/isobmff/isobmff.go +37 -0
  235. slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/matchers.go +51 -0
  236. slidge_whatsapp/vendor/github.com/h2non/filetype/matchers/video.go +145 -0
  237. slidge_whatsapp/vendor/github.com/h2non/filetype/types/defaults.go +4 -0
  238. slidge_whatsapp/vendor/github.com/h2non/filetype/types/mime.go +14 -0
  239. slidge_whatsapp/vendor/github.com/h2non/filetype/types/split.go +11 -0
  240. slidge_whatsapp/vendor/github.com/h2non/filetype/types/type.go +16 -0
  241. slidge_whatsapp/vendor/github.com/h2non/filetype/types/types.go +23 -0
  242. slidge_whatsapp/vendor/github.com/h2non/filetype/version.go +4 -0
  243. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/.gitignore +21 -0
  244. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/CHANGELOG.md +56 -0
  245. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/COPYRIGHT.txt +147 -0
  246. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/LICENSE +21 -0
  247. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/README.md +162 -0
  248. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi.go +7 -0
  249. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi_amd64.go +7 -0
  250. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/ffi.go +272 -0
  251. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/fun.go +46 -0
  252. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/init.go +55 -0
  253. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib.go +82 -0
  254. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_unix.go +63 -0
  255. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_windows.go +68 -0
  256. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/tramp_amd64.go +5 -0
  257. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/tramp_arm64.go +5 -0
  258. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/tramp_darwin_arm64.go +5 -0
  259. slidge_whatsapp/vendor/github.com/jupiterrider/ffi/types.go +34 -0
  260. slidge_whatsapp/vendor/github.com/mattn/go-colorable/LICENSE +21 -0
  261. slidge_whatsapp/vendor/github.com/mattn/go-colorable/README.md +48 -0
  262. slidge_whatsapp/vendor/github.com/mattn/go-colorable/colorable_others.go +38 -0
  263. slidge_whatsapp/vendor/github.com/mattn/go-colorable/colorable_windows.go +1047 -0
  264. slidge_whatsapp/vendor/github.com/mattn/go-colorable/go.test.sh +12 -0
  265. slidge_whatsapp/vendor/github.com/mattn/go-colorable/noncolorable.go +57 -0
  266. slidge_whatsapp/vendor/github.com/mattn/go-isatty/LICENSE +9 -0
  267. slidge_whatsapp/vendor/github.com/mattn/go-isatty/README.md +50 -0
  268. slidge_whatsapp/vendor/github.com/mattn/go-isatty/doc.go +2 -0
  269. slidge_whatsapp/vendor/github.com/mattn/go-isatty/go.test.sh +12 -0
  270. slidge_whatsapp/vendor/github.com/mattn/go-isatty/isatty_bsd.go +20 -0
  271. slidge_whatsapp/vendor/github.com/mattn/go-isatty/isatty_others.go +17 -0
  272. slidge_whatsapp/vendor/github.com/mattn/go-isatty/isatty_plan9.go +23 -0
  273. slidge_whatsapp/vendor/github.com/mattn/go-isatty/isatty_solaris.go +21 -0
  274. slidge_whatsapp/vendor/github.com/mattn/go-isatty/isatty_tcgets.go +20 -0
  275. slidge_whatsapp/vendor/github.com/mattn/go-isatty/isatty_windows.go +125 -0
  276. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/.codecov.yml +4 -0
  277. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/.gitignore +14 -0
  278. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/LICENSE +21 -0
  279. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +603 -0
  280. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/backup.go +85 -0
  281. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/callback.go +411 -0
  282. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/convert.go +299 -0
  283. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/doc.go +134 -0
  284. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/error.go +150 -0
  285. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +258039 -0
  286. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +13526 -0
  287. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3.go +2281 -0
  288. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_context.go +103 -0
  289. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_func_crypt.go +120 -0
  290. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go +54 -0
  291. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_libsqlite3.go +23 -0
  292. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_load_extension.go +85 -0
  293. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_load_extension_omit.go +25 -0
  294. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_allow_uri_authority.go +16 -0
  295. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_app_armor.go +16 -0
  296. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_column_metadata.go +22 -0
  297. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_foreign_keys.go +16 -0
  298. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_fts5.go +15 -0
  299. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_icu.go +20 -0
  300. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_introspect.go +16 -0
  301. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_math_functions.go +15 -0
  302. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_os_trace.go +15 -0
  303. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate.go +21 -0
  304. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate_hook.go +113 -0
  305. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate_omit.go +22 -0
  306. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_secure_delete.go +16 -0
  307. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_secure_delete_fast.go +16 -0
  308. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_serialize.go +83 -0
  309. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_serialize_omit.go +21 -0
  310. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_stat4.go +16 -0
  311. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.c +85 -0
  312. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.go +93 -0
  313. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_userauth.go +295 -0
  314. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_userauth_omit.go +158 -0
  315. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_vacuum_full.go +16 -0
  316. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_vacuum_incr.go +16 -0
  317. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_vtable.go +721 -0
  318. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_other.go +18 -0
  319. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_solaris.go +15 -0
  320. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_trace.go +288 -0
  321. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_type.go +108 -0
  322. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_usleep_windows.go +42 -0
  323. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_windows.go +18 -0
  324. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3ext.h +728 -0
  325. slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/static_mock.go +38 -0
  326. slidge_whatsapp/vendor/github.com/rs/zerolog/.gitignore +25 -0
  327. slidge_whatsapp/vendor/github.com/rs/zerolog/CNAME +1 -0
  328. slidge_whatsapp/vendor/github.com/rs/zerolog/LICENSE +21 -0
  329. slidge_whatsapp/vendor/github.com/rs/zerolog/README.md +782 -0
  330. slidge_whatsapp/vendor/github.com/rs/zerolog/_config.yml +1 -0
  331. slidge_whatsapp/vendor/github.com/rs/zerolog/array.go +240 -0
  332. slidge_whatsapp/vendor/github.com/rs/zerolog/console.go +520 -0
  333. slidge_whatsapp/vendor/github.com/rs/zerolog/context.go +480 -0
  334. slidge_whatsapp/vendor/github.com/rs/zerolog/ctx.go +52 -0
  335. slidge_whatsapp/vendor/github.com/rs/zerolog/encoder.go +56 -0
  336. slidge_whatsapp/vendor/github.com/rs/zerolog/encoder_cbor.go +45 -0
  337. slidge_whatsapp/vendor/github.com/rs/zerolog/encoder_json.go +51 -0
  338. slidge_whatsapp/vendor/github.com/rs/zerolog/event.go +830 -0
  339. slidge_whatsapp/vendor/github.com/rs/zerolog/example.jsonl +7 -0
  340. slidge_whatsapp/vendor/github.com/rs/zerolog/fields.go +292 -0
  341. slidge_whatsapp/vendor/github.com/rs/zerolog/globals.go +190 -0
  342. slidge_whatsapp/vendor/github.com/rs/zerolog/go112.go +7 -0
  343. slidge_whatsapp/vendor/github.com/rs/zerolog/hook.go +64 -0
  344. slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/README.md +56 -0
  345. slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/base.go +19 -0
  346. slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/cbor.go +102 -0
  347. slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/decode_stream.go +654 -0
  348. slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/string.go +117 -0
  349. slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/time.go +93 -0
  350. slidge_whatsapp/vendor/github.com/rs/zerolog/internal/cbor/types.go +486 -0
  351. slidge_whatsapp/vendor/github.com/rs/zerolog/internal/json/base.go +19 -0
  352. slidge_whatsapp/vendor/github.com/rs/zerolog/internal/json/bytes.go +85 -0
  353. slidge_whatsapp/vendor/github.com/rs/zerolog/internal/json/string.go +149 -0
  354. slidge_whatsapp/vendor/github.com/rs/zerolog/internal/json/time.go +113 -0
  355. slidge_whatsapp/vendor/github.com/rs/zerolog/internal/json/types.go +435 -0
  356. slidge_whatsapp/vendor/github.com/rs/zerolog/log.go +518 -0
  357. slidge_whatsapp/vendor/github.com/rs/zerolog/not_go112.go +5 -0
  358. slidge_whatsapp/vendor/github.com/rs/zerolog/pretty.png +0 -0
  359. slidge_whatsapp/vendor/github.com/rs/zerolog/sampler.go +134 -0
  360. slidge_whatsapp/vendor/github.com/rs/zerolog/syslog.go +89 -0
  361. slidge_whatsapp/vendor/github.com/rs/zerolog/writer.go +346 -0
  362. slidge_whatsapp/vendor/go.mau.fi/libsignal/LICENSE +674 -0
  363. slidge_whatsapp/vendor/go.mau.fi/libsignal/cipher/Cbc.go +101 -0
  364. slidge_whatsapp/vendor/go.mau.fi/libsignal/cipher/Cipher.go +105 -0
  365. slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/Curve.go +109 -0
  366. slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/DjbECPublicKey.go +29 -0
  367. slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/DkbECPrivateKey.go +29 -0
  368. slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/Doc.go +3 -0
  369. slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/ECKeyPair.go +27 -0
  370. slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/ECPrivateKey.go +7 -0
  371. slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/ECPublicKey.go +11 -0
  372. slidge_whatsapp/vendor/go.mau.fi/libsignal/ecc/SignCurve25519.go +97 -0
  373. slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupCipher.go +141 -0
  374. slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupSessionBuilder.go +84 -0
  375. slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/ratchet/Doc.go +3 -0
  376. slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/ratchet/SenderChainKey.go +68 -0
  377. slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/ratchet/SenderMessageKey.go +89 -0
  378. slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/record/Doc.go +2 -0
  379. slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/record/SenderKeyRecord.go +149 -0
  380. slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/record/SenderKeyState.go +186 -0
  381. slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/store/Doc.go +3 -0
  382. slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/store/SenderKeyStore.go +11 -0
  383. slidge_whatsapp/vendor/go.mau.fi/libsignal/kdf/HKDF.go +47 -0
  384. slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/chain/ChainKey.go +127 -0
  385. slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/identity/IdentityKey.go +47 -0
  386. slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/identity/IdentityKeyPair.go +39 -0
  387. slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/message/MessageKey.go +91 -0
  388. slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/prekey/PreKeyBundle.go +86 -0
  389. slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/root/RootKey.go +66 -0
  390. slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/session/DerivedSecrets.go +29 -0
  391. slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/session/Pair.go +43 -0
  392. slidge_whatsapp/vendor/go.mau.fi/libsignal/logger/DefaultLogger.go +85 -0
  393. slidge_whatsapp/vendor/go.mau.fi/libsignal/logger/Logger.go +89 -0
  394. slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/CiphertextMessage.go +19 -0
  395. slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/Doc.go +3 -0
  396. slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/PreKeySignalMessage.go +152 -0
  397. slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/SenderKeyDistributionMessage.go +147 -0
  398. slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/SenderKeyMessage.go +168 -0
  399. slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/SenderKeyName.go +25 -0
  400. slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/SignalMessage.go +226 -0
  401. slidge_whatsapp/vendor/go.mau.fi/libsignal/protocol/SignalProtocolAddress.go +38 -0
  402. slidge_whatsapp/vendor/go.mau.fi/libsignal/ratchet/Ratchet.go +197 -0
  403. slidge_whatsapp/vendor/go.mau.fi/libsignal/ratchet/ReceiverParameters.go +106 -0
  404. slidge_whatsapp/vendor/go.mau.fi/libsignal/ratchet/SenderParameters.go +106 -0
  405. slidge_whatsapp/vendor/go.mau.fi/libsignal/ratchet/SymmetricParameters.go +18 -0
  406. slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/FingerprintProtocol.pb.go +245 -0
  407. slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/FingerprintProtocol.proto +14 -0
  408. slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/JSONSerializer.go +303 -0
  409. slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/LocalStorageProtocol.pb.go +1500 -0
  410. slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/LocalStorageProtocol.proto +114 -0
  411. slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/ProtoBufferSerializer.go +262 -0
  412. slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/Serializer.go +31 -0
  413. slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/WhisperTextProtocol.pb.go +640 -0
  414. slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/WhisperTextProtocol.proto +45 -0
  415. slidge_whatsapp/vendor/go.mau.fi/libsignal/session/Session.go +275 -0
  416. slidge_whatsapp/vendor/go.mau.fi/libsignal/session/SessionCipher.go +375 -0
  417. slidge_whatsapp/vendor/go.mau.fi/libsignal/signalerror/errors.go +37 -0
  418. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/ChainState.go +157 -0
  419. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/Doc.go +3 -0
  420. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/PendingKeyExchangeState.go +91 -0
  421. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/PendingPreKeyState.go +62 -0
  422. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/PreKeyRecord.go +90 -0
  423. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/SessionRecord.go +197 -0
  424. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/SessionState.go +531 -0
  425. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/SignedPreKeyRecord.go +112 -0
  426. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/record/UnacknowledgedPreKey.go +69 -0
  427. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/Doc.go +3 -0
  428. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/IdentityKeyStore.go +29 -0
  429. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/MessageKeyStore.go +21 -0
  430. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/PreKeyStore.go +21 -0
  431. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SessionStore.go +17 -0
  432. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SignalProtocolStore.go +15 -0
  433. slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SignedPreKeyStore.go +24 -0
  434. slidge_whatsapp/vendor/go.mau.fi/libsignal/util/bytehelper/ByteHelper.go +97 -0
  435. slidge_whatsapp/vendor/go.mau.fi/libsignal/util/errorhelper/ErrorHelper.go +40 -0
  436. slidge_whatsapp/vendor/go.mau.fi/libsignal/util/keyhelper/KeyHelper.go +95 -0
  437. slidge_whatsapp/vendor/go.mau.fi/libsignal/util/medium/Medium.go +4 -0
  438. slidge_whatsapp/vendor/go.mau.fi/libsignal/util/optional/Integer.go +17 -0
  439. slidge_whatsapp/vendor/go.mau.fi/util/LICENSE +373 -0
  440. slidge_whatsapp/vendor/go.mau.fi/util/fallocate/doc.go +9 -0
  441. slidge_whatsapp/vendor/go.mau.fi/util/fallocate/fallocate_darwin.go +29 -0
  442. slidge_whatsapp/vendor/go.mau.fi/util/fallocate/fallocate_linux.go +24 -0
  443. slidge_whatsapp/vendor/go.mau.fi/util/fallocate/fallocate_unknown.go +17 -0
  444. slidge_whatsapp/vendor/go.mau.fi/util/jsontime/duration.go +155 -0
  445. slidge_whatsapp/vendor/go.mau.fi/util/jsontime/helpers.go +59 -0
  446. slidge_whatsapp/vendor/go.mau.fi/util/jsontime/integer.go +170 -0
  447. slidge_whatsapp/vendor/go.mau.fi/util/jsontime/string.go +95 -0
  448. slidge_whatsapp/vendor/go.mau.fi/util/random/bytes.go +21 -0
  449. slidge_whatsapp/vendor/go.mau.fi/util/random/string.go +87 -0
  450. slidge_whatsapp/vendor/go.mau.fi/util/retryafter/retryafter.go +53 -0
  451. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.editorconfig +13 -0
  452. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.gitattributes +3 -0
  453. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.pre-commit-config.yaml +31 -0
  454. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/LICENSE +374 -0
  455. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/README.md +35 -0
  456. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +311 -0
  457. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/encode.go +322 -0
  458. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/errors.go +19 -0
  459. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/hash.go +97 -0
  460. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/keys.go +137 -0
  461. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/lthash/lthash.go +58 -0
  462. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +407 -0
  463. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +99 -0
  464. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/attrs.go +218 -0
  465. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/decoder.go +406 -0
  466. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/encoder.go +308 -0
  467. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/errors.go +12 -0
  468. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/node.go +139 -0
  469. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/token/token.go +94 -0
  470. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/unpack.go +31 -0
  471. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/xml.go +108 -0
  472. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/broadcast.go +142 -0
  473. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +112 -0
  474. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +851 -0
  475. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +196 -0
  476. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download-to-file.go +201 -0
  477. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +370 -0
  478. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +260 -0
  479. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +930 -0
  480. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/handshake.go +165 -0
  481. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +660 -0
  482. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +84 -0
  483. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaconn.go +96 -0
  484. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaretry.go +184 -0
  485. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +683 -0
  486. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +287 -0
  487. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/newsletter.go +376 -0
  488. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +421 -0
  489. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +242 -0
  490. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair.go +248 -0
  491. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/prekeys.go +251 -0
  492. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +138 -0
  493. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/privacysettings.go +171 -0
  494. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/.gitignore +1 -0
  495. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/armadilloutil/decode.go +32 -0
  496. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/extra.go +36 -0
  497. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.go +485 -0
  498. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.raw +0 -0
  499. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.proto +43 -0
  500. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.go +2803 -0
  501. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.raw +0 -0
  502. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.proto +258 -0
  503. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/extra.go +3 -0
  504. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.go +874 -0
  505. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.raw +0 -0
  506. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.proto +139 -0
  507. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.go +392 -0
  508. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.raw +23 -0
  509. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.proto +34 -0
  510. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.go +134 -0
  511. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.raw +7 -0
  512. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.proto +10 -0
  513. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.go +456 -0
  514. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.raw +0 -0
  515. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.proto +41 -0
  516. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/legacy.go +11 -0
  517. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.pb.go +892 -0
  518. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.pb.raw +0 -0
  519. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.proto +100 -0
  520. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.go +2653 -0
  521. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.raw +0 -0
  522. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.proto +233 -0
  523. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/extra.go +82 -0
  524. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.go +185 -0
  525. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.raw +0 -0
  526. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.proto +13 -0
  527. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +22080 -0
  528. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.raw +0 -0
  529. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +2299 -0
  530. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/legacy.go +31 -0
  531. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +2047 -0
  532. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.raw +0 -0
  533. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +217 -0
  534. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/legacy.go +11 -0
  535. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.go +1977 -0
  536. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.raw +0 -0
  537. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.proto +190 -0
  538. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.go +249 -0
  539. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.raw +0 -0
  540. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.proto +20 -0
  541. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.go +1016 -0
  542. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.raw +0 -0
  543. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.proto +88 -0
  544. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/extra.go +41 -0
  545. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.go +808 -0
  546. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.raw +0 -0
  547. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.proto +75 -0
  548. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/extra.go +19 -0
  549. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.go +702 -0
  550. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.raw +0 -0
  551. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.proto +57 -0
  552. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/extra.go +3 -0
  553. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.go +805 -0
  554. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.raw +0 -0
  555. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.proto +72 -0
  556. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/legacy.go +31 -0
  557. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +4675 -0
  558. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.raw +0 -0
  559. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +461 -0
  560. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.go +410 -0
  561. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.raw +0 -0
  562. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.proto +33 -0
  563. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.go +802 -0
  564. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.raw +0 -0
  565. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.proto +72 -0
  566. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +2021 -0
  567. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.raw +0 -0
  568. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +245 -0
  569. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +3895 -0
  570. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.raw +0 -0
  571. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +577 -0
  572. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/legacy.go +1 -0
  573. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/push.go +110 -0
  574. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/qrchan.go +180 -0
  575. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +238 -0
  576. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/request.go +225 -0
  577. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +440 -0
  578. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +1128 -0
  579. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +646 -0
  580. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/socket/constants.go +43 -0
  581. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/socket/framesocket.go +235 -0
  582. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/socket/noisehandshake.go +124 -0
  583. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/socket/noisesocket.go +108 -0
  584. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +185 -0
  585. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +214 -0
  586. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/signal.go +195 -0
  587. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/container.go +270 -0
  588. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +773 -0
  589. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrade.go +296 -0
  590. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +194 -0
  591. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/call.go +21 -0
  592. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/appstate.go +185 -0
  593. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/call.go +77 -0
  594. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +600 -0
  595. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/group.go +155 -0
  596. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +263 -0
  597. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/message.go +98 -0
  598. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/newsletter.go +201 -0
  599. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/presence.go +78 -0
  600. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/user.go +195 -0
  601. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/update.go +63 -0
  602. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/upload.go +251 -0
  603. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +864 -0
  604. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/util/cbcutil/cbc.go +217 -0
  605. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/util/gcmutil/gcm.go +41 -0
  606. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/util/hkdfutil/hkdf.go +28 -0
  607. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/util/keys/keypair.go +68 -0
  608. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/util/log/log.go +83 -0
  609. slidge_whatsapp/vendor/go.mau.fi/whatsmeow/util/log/zerolog.go +38 -0
  610. slidge_whatsapp/vendor/golang.org/x/crypto/LICENSE +27 -0
  611. slidge_whatsapp/vendor/golang.org/x/crypto/PATENTS +22 -0
  612. slidge_whatsapp/vendor/golang.org/x/crypto/curve25519/curve25519.go +90 -0
  613. slidge_whatsapp/vendor/golang.org/x/crypto/hkdf/hkdf.go +95 -0
  614. slidge_whatsapp/vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go +77 -0
  615. slidge_whatsapp/vendor/golang.org/x/image/LICENSE +27 -0
  616. slidge_whatsapp/vendor/golang.org/x/image/PATENTS +22 -0
  617. slidge_whatsapp/vendor/golang.org/x/image/draw/draw.go +67 -0
  618. slidge_whatsapp/vendor/golang.org/x/image/draw/impl.go +8426 -0
  619. slidge_whatsapp/vendor/golang.org/x/image/draw/scale.go +525 -0
  620. slidge_whatsapp/vendor/golang.org/x/image/math/f64/f64.go +37 -0
  621. slidge_whatsapp/vendor/golang.org/x/image/riff/riff.go +193 -0
  622. slidge_whatsapp/vendor/golang.org/x/image/vp8/decode.go +403 -0
  623. slidge_whatsapp/vendor/golang.org/x/image/vp8/filter.go +273 -0
  624. slidge_whatsapp/vendor/golang.org/x/image/vp8/idct.go +98 -0
  625. slidge_whatsapp/vendor/golang.org/x/image/vp8/partition.go +129 -0
  626. slidge_whatsapp/vendor/golang.org/x/image/vp8/pred.go +201 -0
  627. slidge_whatsapp/vendor/golang.org/x/image/vp8/predfunc.go +553 -0
  628. slidge_whatsapp/vendor/golang.org/x/image/vp8/quant.go +98 -0
  629. slidge_whatsapp/vendor/golang.org/x/image/vp8/reconstruct.go +442 -0
  630. slidge_whatsapp/vendor/golang.org/x/image/vp8/token.go +381 -0
  631. slidge_whatsapp/vendor/golang.org/x/image/vp8l/decode.go +603 -0
  632. slidge_whatsapp/vendor/golang.org/x/image/vp8l/huffman.go +245 -0
  633. slidge_whatsapp/vendor/golang.org/x/image/vp8l/transform.go +299 -0
  634. slidge_whatsapp/vendor/golang.org/x/image/webp/decode.go +276 -0
  635. slidge_whatsapp/vendor/golang.org/x/image/webp/doc.go +9 -0
  636. slidge_whatsapp/vendor/golang.org/x/net/LICENSE +27 -0
  637. slidge_whatsapp/vendor/golang.org/x/net/PATENTS +22 -0
  638. slidge_whatsapp/vendor/golang.org/x/net/internal/socks/client.go +168 -0
  639. slidge_whatsapp/vendor/golang.org/x/net/internal/socks/socks.go +317 -0
  640. slidge_whatsapp/vendor/golang.org/x/net/proxy/dial.go +54 -0
  641. slidge_whatsapp/vendor/golang.org/x/net/proxy/direct.go +31 -0
  642. slidge_whatsapp/vendor/golang.org/x/net/proxy/per_host.go +153 -0
  643. slidge_whatsapp/vendor/golang.org/x/net/proxy/proxy.go +149 -0
  644. slidge_whatsapp/vendor/golang.org/x/net/proxy/socks5.go +42 -0
  645. slidge_whatsapp/vendor/golang.org/x/sys/LICENSE +27 -0
  646. slidge_whatsapp/vendor/golang.org/x/sys/PATENTS +22 -0
  647. slidge_whatsapp/vendor/golang.org/x/sys/unix/.gitignore +2 -0
  648. slidge_whatsapp/vendor/golang.org/x/sys/unix/README.md +184 -0
  649. slidge_whatsapp/vendor/golang.org/x/sys/unix/affinity_linux.go +86 -0
  650. slidge_whatsapp/vendor/golang.org/x/sys/unix/aliases.go +13 -0
  651. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s +17 -0
  652. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_bsd_386.s +27 -0
  653. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_bsd_amd64.s +27 -0
  654. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_bsd_arm.s +27 -0
  655. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_bsd_arm64.s +27 -0
  656. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s +29 -0
  657. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s +27 -0
  658. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_386.s +65 -0
  659. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_amd64.s +57 -0
  660. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_arm.s +56 -0
  661. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_arm64.s +50 -0
  662. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_loong64.s +51 -0
  663. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s +54 -0
  664. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s +52 -0
  665. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s +42 -0
  666. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s +47 -0
  667. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_linux_s390x.s +54 -0
  668. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s +29 -0
  669. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s +17 -0
  670. slidge_whatsapp/vendor/golang.org/x/sys/unix/asm_zos_s390x.s +382 -0
  671. slidge_whatsapp/vendor/golang.org/x/sys/unix/auxv.go +36 -0
  672. slidge_whatsapp/vendor/golang.org/x/sys/unix/auxv_unsupported.go +13 -0
  673. slidge_whatsapp/vendor/golang.org/x/sys/unix/bluetooth_linux.go +36 -0
  674. slidge_whatsapp/vendor/golang.org/x/sys/unix/bpxsvc_zos.go +657 -0
  675. slidge_whatsapp/vendor/golang.org/x/sys/unix/bpxsvc_zos.s +192 -0
  676. slidge_whatsapp/vendor/golang.org/x/sys/unix/cap_freebsd.go +195 -0
  677. slidge_whatsapp/vendor/golang.org/x/sys/unix/constants.go +13 -0
  678. slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_aix_ppc.go +26 -0
  679. slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go +28 -0
  680. slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_darwin.go +24 -0
  681. slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_dragonfly.go +30 -0
  682. slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_freebsd.go +30 -0
  683. slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_linux.go +42 -0
  684. slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_netbsd.go +29 -0
  685. slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_openbsd.go +29 -0
  686. slidge_whatsapp/vendor/golang.org/x/sys/unix/dev_zos.go +28 -0
  687. slidge_whatsapp/vendor/golang.org/x/sys/unix/dirent.go +102 -0
  688. slidge_whatsapp/vendor/golang.org/x/sys/unix/endian_big.go +9 -0
  689. slidge_whatsapp/vendor/golang.org/x/sys/unix/endian_little.go +9 -0
  690. slidge_whatsapp/vendor/golang.org/x/sys/unix/env_unix.go +31 -0
  691. slidge_whatsapp/vendor/golang.org/x/sys/unix/fcntl.go +36 -0
  692. slidge_whatsapp/vendor/golang.org/x/sys/unix/fcntl_darwin.go +24 -0
  693. slidge_whatsapp/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go +13 -0
  694. slidge_whatsapp/vendor/golang.org/x/sys/unix/fdset.go +29 -0
  695. slidge_whatsapp/vendor/golang.org/x/sys/unix/gccgo.go +59 -0
  696. slidge_whatsapp/vendor/golang.org/x/sys/unix/gccgo_c.c +44 -0
  697. slidge_whatsapp/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go +20 -0
  698. slidge_whatsapp/vendor/golang.org/x/sys/unix/ifreq_linux.go +141 -0
  699. slidge_whatsapp/vendor/golang.org/x/sys/unix/ioctl_linux.go +334 -0
  700. slidge_whatsapp/vendor/golang.org/x/sys/unix/ioctl_signed.go +69 -0
  701. slidge_whatsapp/vendor/golang.org/x/sys/unix/ioctl_unsigned.go +69 -0
  702. slidge_whatsapp/vendor/golang.org/x/sys/unix/ioctl_zos.go +71 -0
  703. slidge_whatsapp/vendor/golang.org/x/sys/unix/mkall.sh +249 -0
  704. slidge_whatsapp/vendor/golang.org/x/sys/unix/mkerrors.sh +805 -0
  705. slidge_whatsapp/vendor/golang.org/x/sys/unix/mmap_nomremap.go +13 -0
  706. slidge_whatsapp/vendor/golang.org/x/sys/unix/mremap.go +57 -0
  707. slidge_whatsapp/vendor/golang.org/x/sys/unix/pagesize_unix.go +15 -0
  708. slidge_whatsapp/vendor/golang.org/x/sys/unix/pledge_openbsd.go +111 -0
  709. slidge_whatsapp/vendor/golang.org/x/sys/unix/ptrace_darwin.go +11 -0
  710. slidge_whatsapp/vendor/golang.org/x/sys/unix/ptrace_ios.go +11 -0
  711. slidge_whatsapp/vendor/golang.org/x/sys/unix/race.go +30 -0
  712. slidge_whatsapp/vendor/golang.org/x/sys/unix/race0.go +25 -0
  713. slidge_whatsapp/vendor/golang.org/x/sys/unix/readdirent_getdents.go +12 -0
  714. slidge_whatsapp/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go +19 -0
  715. slidge_whatsapp/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go +16 -0
  716. slidge_whatsapp/vendor/golang.org/x/sys/unix/sockcmsg_linux.go +85 -0
  717. slidge_whatsapp/vendor/golang.org/x/sys/unix/sockcmsg_unix.go +106 -0
  718. slidge_whatsapp/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go +46 -0
  719. slidge_whatsapp/vendor/golang.org/x/sys/unix/sockcmsg_zos.go +58 -0
  720. slidge_whatsapp/vendor/golang.org/x/sys/unix/symaddr_zos_s390x.s +75 -0
  721. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall.go +86 -0
  722. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_aix.go +582 -0
  723. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go +52 -0
  724. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go +83 -0
  725. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_bsd.go +609 -0
  726. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin.go +707 -0
  727. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go +50 -0
  728. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go +50 -0
  729. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go +26 -0
  730. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_dragonfly.go +359 -0
  731. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go +56 -0
  732. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_freebsd.go +455 -0
  733. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go +64 -0
  734. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go +64 -0
  735. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go +60 -0
  736. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go +60 -0
  737. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go +60 -0
  738. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_hurd.go +30 -0
  739. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_hurd_386.go +28 -0
  740. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_illumos.go +78 -0
  741. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux.go +2657 -0
  742. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_386.go +314 -0
  743. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go +12 -0
  744. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go +145 -0
  745. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go +12 -0
  746. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_arm.go +216 -0
  747. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go +186 -0
  748. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_gc.go +14 -0
  749. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go +16 -0
  750. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go +13 -0
  751. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go +30 -0
  752. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go +20 -0
  753. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go +218 -0
  754. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go +188 -0
  755. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go +174 -0
  756. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go +204 -0
  757. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go +115 -0
  758. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go +191 -0
  759. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go +296 -0
  760. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go +112 -0
  761. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_netbsd.go +371 -0
  762. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go +37 -0
  763. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go +37 -0
  764. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go +37 -0
  765. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go +37 -0
  766. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd.go +342 -0
  767. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go +41 -0
  768. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go +41 -0
  769. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go +41 -0
  770. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go +41 -0
  771. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go +26 -0
  772. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_mips64.go +39 -0
  773. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go +41 -0
  774. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go +41 -0
  775. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_solaris.go +1191 -0
  776. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go +27 -0
  777. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_unix.go +615 -0
  778. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_unix_gc.go +14 -0
  779. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go +22 -0
  780. slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go +3213 -0
  781. slidge_whatsapp/vendor/golang.org/x/sys/unix/sysvshm_linux.go +20 -0
  782. slidge_whatsapp/vendor/golang.org/x/sys/unix/sysvshm_unix.go +51 -0
  783. slidge_whatsapp/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go +13 -0
  784. slidge_whatsapp/vendor/golang.org/x/sys/unix/timestruct.go +76 -0
  785. slidge_whatsapp/vendor/golang.org/x/sys/unix/unveil_openbsd.go +51 -0
  786. slidge_whatsapp/vendor/golang.org/x/sys/unix/vgetrandom_linux.go +13 -0
  787. slidge_whatsapp/vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go +11 -0
  788. slidge_whatsapp/vendor/golang.org/x/sys/unix/xattr_bsd.go +280 -0
  789. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go +1384 -0
  790. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go +1385 -0
  791. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go +1922 -0
  792. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go +1922 -0
  793. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go +1737 -0
  794. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go +2042 -0
  795. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go +2039 -0
  796. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go +2033 -0
  797. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go +2033 -0
  798. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_freebsd_riscv64.go +2147 -0
  799. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux.go +3752 -0
  800. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +873 -0
  801. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +873 -0
  802. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +878 -0
  803. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +875 -0
  804. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +865 -0
  805. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +879 -0
  806. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +879 -0
  807. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +879 -0
  808. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +879 -0
  809. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +931 -0
  810. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +935 -0
  811. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +935 -0
  812. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +862 -0
  813. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +934 -0
  814. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +977 -0
  815. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go +1779 -0
  816. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go +1769 -0
  817. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go +1758 -0
  818. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go +1769 -0
  819. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go +1905 -0
  820. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go +1905 -0
  821. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go +1905 -0
  822. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go +1905 -0
  823. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go +1905 -0
  824. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go +1904 -0
  825. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go +1903 -0
  826. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go +1556 -0
  827. slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go +990 -0
  828. slidge_whatsapp/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go +40 -0
  829. slidge_whatsapp/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go +17 -0
  830. slidge_whatsapp/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go +49 -0
  831. slidge_whatsapp/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go +49 -0
  832. slidge_whatsapp/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go +79 -0
  833. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsymaddr_zos_s390x.s +364 -0
  834. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go +1461 -0
  835. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go +1420 -0
  836. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go +1188 -0
  837. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go +1069 -0
  838. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +2644 -0
  839. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s +779 -0
  840. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +2644 -0
  841. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s +779 -0
  842. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go +1666 -0
  843. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go +1886 -0
  844. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go +1886 -0
  845. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go +1886 -0
  846. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go +1886 -0
  847. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go +1886 -0
  848. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go +101 -0
  849. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux.go +2240 -0
  850. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go +486 -0
  851. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go +653 -0
  852. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go +601 -0
  853. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go +552 -0
  854. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go +486 -0
  855. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go +653 -0
  856. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go +647 -0
  857. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go +636 -0
  858. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go +653 -0
  859. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go +658 -0
  860. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go +704 -0
  861. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go +704 -0
  862. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go +548 -0
  863. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go +495 -0
  864. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +648 -0
  865. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go +1848 -0
  866. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go +1848 -0
  867. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go +1848 -0
  868. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go +1848 -0
  869. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go +2323 -0
  870. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s +699 -0
  871. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go +2323 -0
  872. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s +699 -0
  873. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go +2323 -0
  874. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s +699 -0
  875. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go +2323 -0
  876. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s +699 -0
  877. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go +2323 -0
  878. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s +699 -0
  879. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go +2323 -0
  880. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s +838 -0
  881. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go +2323 -0
  882. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s +699 -0
  883. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +2217 -0
  884. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go +3458 -0
  885. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go +280 -0
  886. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go +280 -0
  887. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go +280 -0
  888. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go +280 -0
  889. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go +280 -0
  890. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_ppc64.go +280 -0
  891. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysctl_openbsd_riscv64.go +281 -0
  892. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go +439 -0
  893. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go +437 -0
  894. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go +316 -0
  895. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go +393 -0
  896. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go +393 -0
  897. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go +393 -0
  898. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go +393 -0
  899. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_freebsd_riscv64.go +393 -0
  900. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +465 -0
  901. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +388 -0
  902. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +429 -0
  903. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +332 -0
  904. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +328 -0
  905. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +449 -0
  906. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +379 -0
  907. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +379 -0
  908. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +449 -0
  909. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +456 -0
  910. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +428 -0
  911. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +428 -0
  912. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +333 -0
  913. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +394 -0
  914. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +407 -0
  915. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go +274 -0
  916. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go +274 -0
  917. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go +274 -0
  918. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm64.go +274 -0
  919. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go +219 -0
  920. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go +219 -0
  921. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go +219 -0
  922. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go +218 -0
  923. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go +221 -0
  924. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go +217 -0
  925. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go +218 -0
  926. slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go +2852 -0
  927. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go +353 -0
  928. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go +357 -0
  929. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go +878 -0
  930. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go +878 -0
  931. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go +473 -0
  932. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go +651 -0
  933. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go +656 -0
  934. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go +642 -0
  935. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go +636 -0
  936. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go +638 -0
  937. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux.go +6178 -0
  938. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +689 -0
  939. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +703 -0
  940. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +683 -0
  941. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +682 -0
  942. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +683 -0
  943. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +688 -0
  944. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +685 -0
  945. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +685 -0
  946. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +688 -0
  947. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +696 -0
  948. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +691 -0
  949. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +691 -0
  950. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +770 -0
  951. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +705 -0
  952. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +686 -0
  953. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go +585 -0
  954. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go +593 -0
  955. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go +590 -0
  956. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go +593 -0
  957. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go +568 -0
  958. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go +568 -0
  959. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go +575 -0
  960. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go +568 -0
  961. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go +568 -0
  962. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_ppc64.go +570 -0
  963. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_openbsd_riscv64.go +570 -0
  964. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go +516 -0
  965. slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go +552 -0
  966. slidge_whatsapp/vendor/golang.org/x/sys/windows/aliases.go +12 -0
  967. slidge_whatsapp/vendor/golang.org/x/sys/windows/dll_windows.go +415 -0
  968. slidge_whatsapp/vendor/golang.org/x/sys/windows/env_windows.go +57 -0
  969. slidge_whatsapp/vendor/golang.org/x/sys/windows/eventlog.go +20 -0
  970. slidge_whatsapp/vendor/golang.org/x/sys/windows/exec_windows.go +248 -0
  971. slidge_whatsapp/vendor/golang.org/x/sys/windows/memory_windows.go +48 -0
  972. slidge_whatsapp/vendor/golang.org/x/sys/windows/mkerrors.bash +70 -0
  973. slidge_whatsapp/vendor/golang.org/x/sys/windows/mkknownfolderids.bash +27 -0
  974. slidge_whatsapp/vendor/golang.org/x/sys/windows/mksyscall.go +9 -0
  975. slidge_whatsapp/vendor/golang.org/x/sys/windows/race.go +30 -0
  976. slidge_whatsapp/vendor/golang.org/x/sys/windows/race0.go +25 -0
  977. slidge_whatsapp/vendor/golang.org/x/sys/windows/security_windows.go +1458 -0
  978. slidge_whatsapp/vendor/golang.org/x/sys/windows/service.go +257 -0
  979. slidge_whatsapp/vendor/golang.org/x/sys/windows/setupapi_windows.go +1425 -0
  980. slidge_whatsapp/vendor/golang.org/x/sys/windows/str.go +22 -0
  981. slidge_whatsapp/vendor/golang.org/x/sys/windows/syscall.go +104 -0
  982. slidge_whatsapp/vendor/golang.org/x/sys/windows/syscall_windows.go +1932 -0
  983. slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +3603 -0
  984. slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows_386.go +35 -0
  985. slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows_amd64.go +34 -0
  986. slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows_arm.go +35 -0
  987. slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows_arm64.go +34 -0
  988. slidge_whatsapp/vendor/golang.org/x/sys/windows/zerrors_windows.go +9468 -0
  989. slidge_whatsapp/vendor/golang.org/x/sys/windows/zknownfolderids_windows.go +149 -0
  990. slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +4686 -0
  991. slidge_whatsapp/vendor/google.golang.org/protobuf/LICENSE +27 -0
  992. slidge_whatsapp/vendor/google.golang.org/protobuf/PATENTS +22 -0
  993. slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/prototext/decode.go +767 -0
  994. slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/prototext/doc.go +7 -0
  995. slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/prototext/encode.go +380 -0
  996. slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/protowire/wire.go +547 -0
  997. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/descfmt/stringer.go +414 -0
  998. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/descopts/options.go +29 -0
  999. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/detrand/rand.go +69 -0
  1000. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/editiondefaults/defaults.go +12 -0
  1001. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb +0 -0
  1002. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/defval/default.go +213 -0
  1003. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/messageset/messageset.go +242 -0
  1004. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/tag/tag.go +201 -0
  1005. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go +686 -0
  1006. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/text/decode_number.go +211 -0
  1007. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/text/decode_string.go +161 -0
  1008. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/text/decode_token.go +373 -0
  1009. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/text/doc.go +29 -0
  1010. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/encoding/text/encode.go +272 -0
  1011. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/errors/errors.go +104 -0
  1012. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/build.go +157 -0
  1013. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/desc.go +748 -0
  1014. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go +560 -0
  1015. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go +694 -0
  1016. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/desc_list.go +457 -0
  1017. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/desc_list_gen.go +367 -0
  1018. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +164 -0
  1019. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/placeholder.go +110 -0
  1020. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filetype/build.go +296 -0
  1021. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/flags/flags.go +24 -0
  1022. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go +10 -0
  1023. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go +10 -0
  1024. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/any_gen.go +34 -0
  1025. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/api_gen.go +106 -0
  1026. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +1270 -0
  1027. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/doc.go +11 -0
  1028. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/duration_gen.go +34 -0
  1029. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/empty_gen.go +19 -0
  1030. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/field_mask_gen.go +31 -0
  1031. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/go_features_gen.go +70 -0
  1032. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/goname.go +20 -0
  1033. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/map_entry.go +16 -0
  1034. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/name.go +12 -0
  1035. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/source_context_gen.go +31 -0
  1036. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/struct_gen.go +121 -0
  1037. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/timestamp_gen.go +34 -0
  1038. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/type_gen.go +228 -0
  1039. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/wrappers.go +13 -0
  1040. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/wrappers_gen.go +175 -0
  1041. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/api_export.go +177 -0
  1042. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/api_export_opaque.go +128 -0
  1043. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/bitmap.go +34 -0
  1044. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/bitmap_race.go +126 -0
  1045. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/checkinit.go +174 -0
  1046. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_extension.go +228 -0
  1047. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_field.go +788 -0
  1048. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_field_opaque.go +264 -0
  1049. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_gen.go +5724 -0
  1050. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_map.go +399 -0
  1051. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_message.go +230 -0
  1052. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_message_opaque.go +153 -0
  1053. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go +145 -0
  1054. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_tables.go +557 -0
  1055. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go +15 -0
  1056. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/convert.go +495 -0
  1057. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/convert_list.go +141 -0
  1058. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/convert_map.go +121 -0
  1059. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/decode.go +333 -0
  1060. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/encode.go +315 -0
  1061. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/enum.go +21 -0
  1062. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/equal.go +224 -0
  1063. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/extension.go +156 -0
  1064. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/lazy.go +433 -0
  1065. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go +219 -0
  1066. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/legacy_export.go +92 -0
  1067. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go +177 -0
  1068. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/legacy_file.go +81 -0
  1069. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/legacy_message.go +569 -0
  1070. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/merge.go +203 -0
  1071. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/merge_gen.go +209 -0
  1072. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message.go +283 -0
  1073. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_opaque.go +627 -0
  1074. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_opaque_gen.go +132 -0
  1075. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_reflect.go +462 -0
  1076. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_reflect_field.go +423 -0
  1077. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_reflect_field_gen.go +273 -0
  1078. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go +271 -0
  1079. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go +220 -0
  1080. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe_opaque.go +42 -0
  1081. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/presence.go +142 -0
  1082. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/validate.go +570 -0
  1083. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/order/order.go +89 -0
  1084. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/order/range.go +115 -0
  1085. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/pragma/pragma.go +29 -0
  1086. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/protolazy/bufferreader.go +364 -0
  1087. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/protolazy/lazy.go +359 -0
  1088. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/protolazy/pointer_unsafe.go +17 -0
  1089. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/set/ints.go +58 -0
  1090. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/strings.go +196 -0
  1091. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go +94 -0
  1092. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go121.go +73 -0
  1093. slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +79 -0
  1094. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/checkinit.go +71 -0
  1095. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/decode.go +307 -0
  1096. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/decode_gen.go +603 -0
  1097. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/doc.go +86 -0
  1098. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/encode.go +355 -0
  1099. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/encode_gen.go +97 -0
  1100. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/equal.go +66 -0
  1101. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/extension.go +166 -0
  1102. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/merge.go +139 -0
  1103. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/messageset.go +98 -0
  1104. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/proto.go +45 -0
  1105. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/proto_methods.go +20 -0
  1106. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/proto_reflect.go +20 -0
  1107. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/reset.go +43 -0
  1108. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/size.go +111 -0
  1109. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/size_gen.go +55 -0
  1110. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/wrapperopaque.go +80 -0
  1111. slidge_whatsapp/vendor/google.golang.org/protobuf/proto/wrappers.go +29 -0
  1112. slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go +88 -0
  1113. slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/proto.go +513 -0
  1114. slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source.go +129 -0
  1115. slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +573 -0
  1116. slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/type.go +666 -0
  1117. slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value.go +285 -0
  1118. slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value_equal.go +168 -0
  1119. slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go +438 -0
  1120. slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go +98 -0
  1121. slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go121.go +86 -0
  1122. slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go +882 -0
  1123. slidge_whatsapp/vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go +15 -0
  1124. slidge_whatsapp/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go +202 -0
  1125. slidge_whatsapp/vendor/google.golang.org/protobuf/runtime/protoimpl/impl.go +48 -0
  1126. slidge_whatsapp/vendor/google.golang.org/protobuf/runtime/protoimpl/version.go +60 -0
  1127. slidge_whatsapp/vendor/modules.txt +173 -0
  1128. slidge_whatsapp-0.2.5.dist-info/METADATA +63 -0
  1129. slidge_whatsapp-0.2.5.dist-info/RECORD +1140 -0
  1130. {slidge_whatsapp-0.2.2.dist-info → slidge_whatsapp-0.2.5.dist-info}/WHEEL +1 -1
  1131. slidge_whatsapp-0.2.2.dist-info/METADATA +0 -744
  1132. slidge_whatsapp-0.2.2.dist-info/RECORD +0 -31
  1133. {slidge_whatsapp-0.2.2.dist-info → slidge_whatsapp-0.2.5.dist-info}/LICENSE +0 -0
  1134. {slidge_whatsapp-0.2.2.dist-info → slidge_whatsapp-0.2.5.dist-info}/entry_points.txt +0 -0
@@ -2,7 +2,7 @@
2
2
  # python wrapper for package codeberg.org/slidge/slidge-whatsapp/slidge_whatsapp within overall package whatsapp
3
3
  # This is what you import to use the package.
4
4
  # File is generated by gopy. Do not edit.
5
- # gopy build -output=generated -no-make=true .
5
+ # gopy build -output=generated -no-make=true -build-tags="mupdf extlib static" .
6
6
 
7
7
  # the following is required to enable dlopen to open the _go.so file
8
8
  import os,sys,inspect,collections
@@ -444,6 +444,89 @@ class Slice_whatsapp_Message(go.GoClass):
444
444
  for i in range(mx):
445
445
  self[i] = src[i]
446
446
 
447
+ # Python type for slice []whatsapp.PollOption
448
+ class Slice_whatsapp_PollOption(go.GoClass):
449
+ """"""
450
+ def __init__(self, *args, **kwargs):
451
+ """
452
+ handle=A Go-side object is always initialized with an explicit handle=arg
453
+ otherwise parameter is a python list that we copy from
454
+ """
455
+ self.index = 0
456
+ if len(kwargs) == 1 and 'handle' in kwargs:
457
+ self.handle = kwargs['handle']
458
+ _whatsapp.IncRef(self.handle)
459
+ elif len(args) == 1 and isinstance(args[0], go.GoClass):
460
+ self.handle = args[0].handle
461
+ _whatsapp.IncRef(self.handle)
462
+ else:
463
+ self.handle = _whatsapp.Slice_whatsapp_PollOption_CTor()
464
+ _whatsapp.IncRef(self.handle)
465
+ if len(args) > 0:
466
+ if not isinstance(args[0], _collections_abc.Iterable):
467
+ raise TypeError('Slice_whatsapp_PollOption.__init__ takes a sequence as argument')
468
+ for elt in args[0]:
469
+ self.append(elt)
470
+ def __del__(self):
471
+ _whatsapp.DecRef(self.handle)
472
+ def __str__(self):
473
+ s = 'whatsapp.Slice_whatsapp_PollOption len: ' + str(len(self)) + ' handle: ' + str(self.handle) + ' ['
474
+ if len(self) < 120:
475
+ s += ', '.join(map(str, self)) + ']'
476
+ return s
477
+ def __repr__(self):
478
+ return 'whatsapp.Slice_whatsapp_PollOption([' + ', '.join(map(str, self)) + '])'
479
+ def __len__(self):
480
+ return _whatsapp.Slice_whatsapp_PollOption_len(self.handle)
481
+ def __getitem__(self, key):
482
+ if isinstance(key, slice):
483
+ if key.step == None or key.step == 1:
484
+ st = key.start
485
+ ed = key.stop
486
+ if st == None:
487
+ st = 0
488
+ if ed == None:
489
+ ed = _whatsapp.Slice_whatsapp_PollOption_len(self.handle)
490
+ return Slice_whatsapp_PollOption(handle=_whatsapp.Slice_whatsapp_PollOption_subslice(self.handle, st, ed))
491
+ return [self[ii] for ii in range(*key.indices(len(self)))]
492
+ elif isinstance(key, int):
493
+ if key < 0:
494
+ key += len(self)
495
+ if key < 0 or key >= len(self):
496
+ raise IndexError('slice index out of range')
497
+ return PollOption(handle=_whatsapp.Slice_whatsapp_PollOption_elem(self.handle, key))
498
+ else:
499
+ raise TypeError('slice index invalid type')
500
+ def __setitem__(self, idx, value):
501
+ if idx < 0:
502
+ idx += len(self)
503
+ if idx < len(self):
504
+ _whatsapp.Slice_whatsapp_PollOption_set(self.handle, idx, value.handle)
505
+ return
506
+ raise IndexError('slice index out of range')
507
+ def __iadd__(self, value):
508
+ if not isinstance(value, _collections_abc.Iterable):
509
+ raise TypeError('Slice_whatsapp_PollOption.__iadd__ takes a sequence as argument')
510
+ for elt in value:
511
+ self.append(elt)
512
+ return self
513
+ def __iter__(self):
514
+ self.index = 0
515
+ return self
516
+ def __next__(self):
517
+ if self.index < len(self):
518
+ rv = PollOption(handle=_whatsapp.Slice_whatsapp_PollOption_elem(self.handle, self.index))
519
+ self.index = self.index + 1
520
+ return rv
521
+ raise StopIteration
522
+ def append(self, value):
523
+ _whatsapp.Slice_whatsapp_PollOption_append(self.handle, value.handle)
524
+ def copy(self, src):
525
+ """ copy emulates the go copy function, copying elements into this list from source list, up to min of size of each list """
526
+ mx = min(len(self), len(src))
527
+ for i in range(mx):
528
+ self[i] = src[i]
529
+
447
530
  # Python type for slice []whatsapp.Receipt
448
531
  class Slice_whatsapp_Receipt(go.GoClass):
449
532
  """"""
@@ -793,6 +876,11 @@ class MessageKind(Enum):
793
876
  The message types handled by the overarching session event handler.
794
877
 
795
878
  """
879
+ MessagePoll = 5
880
+ """
881
+ The message types handled by the overarching session event handler.
882
+
883
+ """
796
884
 
797
885
  MessagePlain = 0
798
886
  """
@@ -818,6 +906,11 @@ MessageAttachment = 4
818
906
  """
819
907
  The message types handled by the overarching session event handler.
820
908
 
909
+ """
910
+ MessagePoll = 5
911
+ """
912
+ The message types handled by the overarching session event handler.
913
+
821
914
  """
822
915
 
823
916
  class PresenceKind(Enum):
@@ -920,9 +1013,9 @@ DefaultUserServer = "s.whatsapp.net"
920
1013
 
921
1014
  # ---- Structs ---
922
1015
 
923
- # Python type for struct whatsapp.Session
924
- class Session(go.GoClass):
925
- """A Session represents a connection (active or not) between a linked device and WhatsApp. Active\nsessions need to be established by logging in, after which incoming events will be forwarded to\nthe adapter event handler, and outgoing events will be forwarded to WhatsApp.\n"""
1016
+ # Python type for struct whatsapp.Avatar
1017
+ class Avatar(go.GoClass):
1018
+ """A Avatar represents a small image set for a Contact or Group.\n"""
926
1019
  def __init__(self, *args, **kwargs):
927
1020
  """
928
1021
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -936,13 +1029,21 @@ class Session(go.GoClass):
936
1029
  self.handle = args[0].handle
937
1030
  _whatsapp.IncRef(self.handle)
938
1031
  else:
939
- self.handle = _whatsapp.whatsapp_Session_CTor()
1032
+ self.handle = _whatsapp.whatsapp_Avatar_CTor()
940
1033
  _whatsapp.IncRef(self.handle)
1034
+ if 0 < len(args):
1035
+ self.ID = args[0]
1036
+ if "ID" in kwargs:
1037
+ self.ID = kwargs["ID"]
1038
+ if 1 < len(args):
1039
+ self.URL = args[1]
1040
+ if "URL" in kwargs:
1041
+ self.URL = kwargs["URL"]
941
1042
  def __del__(self):
942
1043
  _whatsapp.DecRef(self.handle)
943
1044
  def __str__(self):
944
1045
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
945
- sv = 'whatsapp.Session{'
1046
+ sv = 'whatsapp.Avatar{'
946
1047
  first = True
947
1048
  for v in pr:
948
1049
  if callable(v[1]):
@@ -955,172 +1056,118 @@ class Session(go.GoClass):
955
1056
  return sv + '}'
956
1057
  def __repr__(self):
957
1058
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
958
- sv = 'whatsapp.Session ( '
1059
+ sv = 'whatsapp.Avatar ( '
959
1060
  for v in pr:
960
1061
  if not callable(v[1]):
961
1062
  sv += v[0] + '=' + str(v[1]) + ', '
962
1063
  return sv + ')'
963
- def Login(self):
964
- """Login() str
965
-
966
- Login attempts to authenticate the given [Session], either by re-using the [LinkedDevice] attached
967
- or by initiating a pairing session for a new linked device. Callers are expected to have set an
968
- event handler in order to receive any incoming events from the underlying WhatsApp session.
969
- """
970
- return _whatsapp.whatsapp_Session_Login(self.handle)
971
- def Logout(self):
972
- """Logout() str
973
-
974
- Logout disconnects and removes the current linked device locally and initiates a logout remotely.
975
- """
976
- return _whatsapp.whatsapp_Session_Logout(self.handle)
977
- def Disconnect(self):
978
- """Disconnect() str
979
-
980
- Disconnects detaches the current connection to WhatsApp without removing any linked device state.
981
- """
982
- return _whatsapp.whatsapp_Session_Disconnect(self.handle)
983
- def PairPhone(self, phone):
984
- """PairPhone(str phone) str, str
985
-
986
- PairPhone returns a one-time code from WhatsApp, used for pairing this [Session] against the
987
- user's primary device, as identified by the given phone number. This will return an error if the
988
- [Session] is already paired, or if the phone number given is empty or invalid.
989
- """
990
- return _whatsapp.whatsapp_Session_PairPhone(self.handle, phone)
991
- def SendMessage(self, message):
992
- """SendMessage(object message) str
993
-
994
- SendMessage processes the given Message and sends a WhatsApp message for the kind and contact JID
995
- specified within. In general, different message kinds require different fields to be set; see the
996
- documentation for the [Message] type for more information.
1064
+ @property
1065
+ def ID(self):
1066
+ return _whatsapp.whatsapp_Avatar_ID_Get(self.handle)
1067
+ @ID.setter
1068
+ def ID(self, value):
1069
+ if isinstance(value, go.GoClass):
1070
+ _whatsapp.whatsapp_Avatar_ID_Set(self.handle, value.handle)
1071
+ else:
1072
+ _whatsapp.whatsapp_Avatar_ID_Set(self.handle, value)
1073
+ @property
1074
+ def URL(self):
1075
+ return _whatsapp.whatsapp_Avatar_URL_Get(self.handle)
1076
+ @URL.setter
1077
+ def URL(self, value):
1078
+ if isinstance(value, go.GoClass):
1079
+ _whatsapp.whatsapp_Avatar_URL_Set(self.handle, value.handle)
1080
+ else:
1081
+ _whatsapp.whatsapp_Avatar_URL_Set(self.handle, value)
1082
+
1083
+ # Python type for struct whatsapp.Call
1084
+ class Call(go.GoClass):
1085
+ """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"""
1086
+ def __init__(self, *args, **kwargs):
997
1087
  """
998
- return _whatsapp.whatsapp_Session_SendMessage(self.handle, message.handle)
999
- def GenerateMessageID(self):
1000
- """GenerateMessageID() str
1001
-
1002
- GenerateMessageID returns a valid, pseudo-random message ID for use in outgoing messages.
1088
+ handle=A Go-side object is always initialized with an explicit handle=arg
1089
+ otherwise parameters can be unnamed in order of field names or named fields
1090
+ in which case a new Go object is constructed first
1003
1091
  """
1004
- return _whatsapp.whatsapp_Session_GenerateMessageID(self.handle)
1005
- def SendChatState(self, state):
1006
- """SendChatState(object state) str
1007
-
1008
- SendChatState sends the given chat state notification (e.g. composing message) to WhatsApp for the
1009
- contact specified within.
1092
+ if len(kwargs) == 1 and 'handle' in kwargs:
1093
+ self.handle = kwargs['handle']
1094
+ _whatsapp.IncRef(self.handle)
1095
+ elif len(args) == 1 and isinstance(args[0], go.GoClass):
1096
+ self.handle = args[0].handle
1097
+ _whatsapp.IncRef(self.handle)
1098
+ else:
1099
+ self.handle = _whatsapp.whatsapp_Call_CTor()
1100
+ _whatsapp.IncRef(self.handle)
1101
+ if 0 < len(args):
1102
+ self.State = args[0]
1103
+ if "State" in kwargs:
1104
+ self.State = kwargs["State"]
1105
+ if 1 < len(args):
1106
+ self.JID = args[1]
1107
+ if "JID" in kwargs:
1108
+ self.JID = kwargs["JID"]
1109
+ if 2 < len(args):
1110
+ self.Timestamp = args[2]
1111
+ if "Timestamp" in kwargs:
1112
+ self.Timestamp = kwargs["Timestamp"]
1113
+ def __del__(self):
1114
+ _whatsapp.DecRef(self.handle)
1115
+ def __str__(self):
1116
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1117
+ sv = 'whatsapp.Call{'
1118
+ first = True
1119
+ for v in pr:
1120
+ if callable(v[1]):
1121
+ continue
1122
+ if first:
1123
+ first = False
1124
+ else:
1125
+ sv += ', '
1126
+ sv += v[0] + '=' + str(v[1])
1127
+ return sv + '}'
1128
+ def __repr__(self):
1129
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1130
+ sv = 'whatsapp.Call ( '
1131
+ for v in pr:
1132
+ if not callable(v[1]):
1133
+ sv += v[0] + '=' + str(v[1]) + ', '
1134
+ return sv + ')'
1135
+ @property
1136
+ def State(self):
1137
+ return _whatsapp.whatsapp_Call_State_Get(self.handle)
1138
+ @State.setter
1139
+ def State(self, value):
1140
+ if isinstance(value, go.GoClass):
1141
+ _whatsapp.whatsapp_Call_State_Set(self.handle, value.handle)
1142
+ else:
1143
+ _whatsapp.whatsapp_Call_State_Set(self.handle, value)
1144
+ @property
1145
+ def JID(self):
1146
+ return _whatsapp.whatsapp_Call_JID_Get(self.handle)
1147
+ @JID.setter
1148
+ def JID(self, value):
1149
+ if isinstance(value, go.GoClass):
1150
+ _whatsapp.whatsapp_Call_JID_Set(self.handle, value.handle)
1151
+ else:
1152
+ _whatsapp.whatsapp_Call_JID_Set(self.handle, value)
1153
+ @property
1154
+ def Timestamp(self):
1155
+ return _whatsapp.whatsapp_Call_Timestamp_Get(self.handle)
1156
+ @Timestamp.setter
1157
+ def Timestamp(self, value):
1158
+ if isinstance(value, go.GoClass):
1159
+ _whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value.handle)
1160
+ else:
1161
+ _whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value)
1162
+
1163
+ # Python type for struct whatsapp.GroupParticipant
1164
+ class GroupParticipant(go.GoClass):
1165
+ """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"""
1166
+ def __init__(self, *args, **kwargs):
1010
1167
  """
1011
- return _whatsapp.whatsapp_Session_SendChatState(self.handle, state.handle)
1012
- def SendReceipt(self, receipt):
1013
- """SendReceipt(object receipt) str
1014
-
1015
- SendReceipt sends a read receipt to WhatsApp for the message IDs specified within.
1016
- """
1017
- return _whatsapp.whatsapp_Session_SendReceipt(self.handle, receipt.handle)
1018
- def SendPresence(self, presence, statusMessage):
1019
- """SendPresence(int presence, str statusMessage) str
1020
-
1021
- SendPresence sets the activity state and (optional) status message for the current session and
1022
- user. An error is returned if setting availability fails for any reason.
1023
- """
1024
- return _whatsapp.whatsapp_Session_SendPresence(self.handle, presence, statusMessage)
1025
- def GetContacts(self, refresh):
1026
- """GetContacts(bool refresh) []object, str
1027
-
1028
- GetContacts subscribes to the WhatsApp roster currently stored in the Session's internal state.
1029
- If `refresh` is `true`, FetchRoster will pull application state from the remote service and
1030
- synchronize any contacts found with the adapter.
1031
- """
1032
- return Slice_whatsapp_Contact(handle=_whatsapp.whatsapp_Session_GetContacts(self.handle, refresh))
1033
- def GetGroups(self):
1034
- """GetGroups() []object, str
1035
-
1036
- GetGroups returns a list of all group-chats currently joined in WhatsApp, along with additional
1037
- information on present participants.
1038
- """
1039
- return Slice_whatsapp_Group(handle=_whatsapp.whatsapp_Session_GetGroups(self.handle))
1040
- def CreateGroup(self, name, participants):
1041
- """CreateGroup(str name, []str participants) object, str
1042
-
1043
- CreateGroup attempts to create a new WhatsApp group for the given human-readable name and
1044
- participant JIDs given.
1045
- """
1046
- return Group(handle=_whatsapp.whatsapp_Session_CreateGroup(self.handle, name, participants.handle))
1047
- def LeaveGroup(self, resourceID):
1048
- """LeaveGroup(str resourceID) str
1049
-
1050
- LeaveGroup attempts to remove our own user from the given WhatsApp group, for the JID given.
1051
- """
1052
- return _whatsapp.whatsapp_Session_LeaveGroup(self.handle, resourceID)
1053
- def GetAvatar(self, resourceID, avatarID):
1054
- """GetAvatar(str resourceID, str avatarID) object, str
1055
-
1056
- GetAvatar fetches a profile picture for the Contact or Group JID given. If a non-empty `avatarID`
1057
- is also given, GetAvatar will return an empty [Avatar] instance with no error if the remote state
1058
- for the given ID has not changed.
1059
- """
1060
- return Avatar(handle=_whatsapp.whatsapp_Session_GetAvatar(self.handle, resourceID, avatarID))
1061
- def SetAvatar(self, resourceID, avatar):
1062
- """SetAvatar(str resourceID, []int avatar) str, str
1063
-
1064
- SetAvatar updates the profile picture for the Contact or Group JID given; it can also update the
1065
- profile picture for our own user by providing an empty JID. The unique picture ID is returned,
1066
- typically used as a cache reference or in providing to future calls for [Session.GetAvatar].
1067
- """
1068
- return _whatsapp.whatsapp_Session_SetAvatar(self.handle, resourceID, avatar.handle)
1069
- def SetGroupName(self, resourceID, name):
1070
- """SetGroupName(str resourceID, str name) str
1071
-
1072
- SetGroupName updates the name of a WhatsApp group for the Group JID given.
1073
- """
1074
- return _whatsapp.whatsapp_Session_SetGroupName(self.handle, resourceID, name)
1075
- def SetGroupTopic(self, resourceID, topic):
1076
- """SetGroupTopic(str resourceID, str topic) str
1077
-
1078
- SetGroupName updates the topic of a WhatsApp group for the Group JID given.
1079
- """
1080
- return _whatsapp.whatsapp_Session_SetGroupTopic(self.handle, resourceID, topic)
1081
- def UpdateGroupParticipants(self, resourceID, participants):
1082
- """UpdateGroupParticipants(str resourceID, []object participants) []object, str
1083
-
1084
- UpdateGroupParticipants processes changes to the given group's participants, including additions,
1085
- removals, and changes to privileges. Participant JIDs given must be part of the authenticated
1086
- session's roster at least, and must also be active group participants for other types of changes.
1087
- """
1088
- return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Session_UpdateGroupParticipants(self.handle, resourceID, participants.handle))
1089
- def FindContact(self, phone):
1090
- """FindContact(str phone) object, str
1091
-
1092
- FindContact attempts to check for a registered contact on WhatsApp corresponding to the given
1093
- phone number, returning a concrete instance if found; typically, only the contact JID is set. No
1094
- error is returned if no contact was found, but any unexpected errors will otherwise be returned
1095
- directly.
1096
- """
1097
- return Contact(handle=_whatsapp.whatsapp_Session_FindContact(self.handle, phone))
1098
- def RequestMessageHistory(self, resourceID, oldestMessage):
1099
- """RequestMessageHistory(str resourceID, object oldestMessage) str
1100
-
1101
- RequestMessageHistory sends and asynchronous request for message history related to the given
1102
- resource (e.g. Contact or Group JID), ending at the oldest message given. Messages returned from
1103
- history should then be handled as a `HistorySync` event of type `ON_DEMAND`, in the session-wide
1104
- event handler. An error will be returned if requesting history fails for any reason.
1105
- """
1106
- return _whatsapp.whatsapp_Session_RequestMessageHistory(self.handle, resourceID, oldestMessage.handle)
1107
- def SetEventHandler(self, h, goRun=False):
1108
- """SetEventHandler(callable h)
1109
-
1110
- SetEventHandler assigns the given handler function for propagating internal events into the Python
1111
- gateway. Note that the event handler function is not entirely safe to use directly, and all calls
1112
- should instead be sent to the [Gateway] via its internal call channel.
1113
- """
1114
- _whatsapp.whatsapp_Session_SetEventHandler(self.handle, h, goRun)
1115
-
1116
- # Python type for struct whatsapp.Connect
1117
- class Connect(go.GoClass):
1118
- """Connect represents event data related to a connection to WhatsApp being established, or failing\nto do so (based on the [Connect.Error] result).\n"""
1119
- def __init__(self, *args, **kwargs):
1120
- """
1121
- handle=A Go-side object is always initialized with an explicit handle=arg
1122
- otherwise parameters can be unnamed in order of field names or named fields
1123
- in which case a new Go object is constructed first
1168
+ handle=A Go-side object is always initialized with an explicit handle=arg
1169
+ otherwise parameters can be unnamed in order of field names or named fields
1170
+ in which case a new Go object is constructed first
1124
1171
  """
1125
1172
  if len(kwargs) == 1 and 'handle' in kwargs:
1126
1173
  self.handle = kwargs['handle']
@@ -1129,21 +1176,25 @@ class Connect(go.GoClass):
1129
1176
  self.handle = args[0].handle
1130
1177
  _whatsapp.IncRef(self.handle)
1131
1178
  else:
1132
- self.handle = _whatsapp.whatsapp_Connect_CTor()
1179
+ self.handle = _whatsapp.whatsapp_GroupParticipant_CTor()
1133
1180
  _whatsapp.IncRef(self.handle)
1134
1181
  if 0 < len(args):
1135
1182
  self.JID = args[0]
1136
1183
  if "JID" in kwargs:
1137
1184
  self.JID = kwargs["JID"]
1138
1185
  if 1 < len(args):
1139
- self.Error = args[1]
1140
- if "Error" in kwargs:
1141
- self.Error = kwargs["Error"]
1186
+ self.Affiliation = args[1]
1187
+ if "Affiliation" in kwargs:
1188
+ self.Affiliation = kwargs["Affiliation"]
1189
+ if 2 < len(args):
1190
+ self.Action = args[2]
1191
+ if "Action" in kwargs:
1192
+ self.Action = kwargs["Action"]
1142
1193
  def __del__(self):
1143
1194
  _whatsapp.DecRef(self.handle)
1144
1195
  def __str__(self):
1145
1196
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1146
- sv = 'whatsapp.Connect{'
1197
+ sv = 'whatsapp.GroupParticipant{'
1147
1198
  first = True
1148
1199
  for v in pr:
1149
1200
  if callable(v[1]):
@@ -1156,33 +1207,42 @@ class Connect(go.GoClass):
1156
1207
  return sv + '}'
1157
1208
  def __repr__(self):
1158
1209
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1159
- sv = 'whatsapp.Connect ( '
1210
+ sv = 'whatsapp.GroupParticipant ( '
1160
1211
  for v in pr:
1161
1212
  if not callable(v[1]):
1162
1213
  sv += v[0] + '=' + str(v[1]) + ', '
1163
1214
  return sv + ')'
1164
1215
  @property
1165
1216
  def JID(self):
1166
- return _whatsapp.whatsapp_Connect_JID_Get(self.handle)
1217
+ return _whatsapp.whatsapp_GroupParticipant_JID_Get(self.handle)
1167
1218
  @JID.setter
1168
1219
  def JID(self, value):
1169
1220
  if isinstance(value, go.GoClass):
1170
- _whatsapp.whatsapp_Connect_JID_Set(self.handle, value.handle)
1221
+ _whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value.handle)
1171
1222
  else:
1172
- _whatsapp.whatsapp_Connect_JID_Set(self.handle, value)
1223
+ _whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value)
1173
1224
  @property
1174
- def Error(self):
1175
- return _whatsapp.whatsapp_Connect_Error_Get(self.handle)
1176
- @Error.setter
1177
- def Error(self, value):
1225
+ def Affiliation(self):
1226
+ return _whatsapp.whatsapp_GroupParticipant_Affiliation_Get(self.handle)
1227
+ @Affiliation.setter
1228
+ def Affiliation(self, value):
1178
1229
  if isinstance(value, go.GoClass):
1179
- _whatsapp.whatsapp_Connect_Error_Set(self.handle, value.handle)
1230
+ _whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value.handle)
1180
1231
  else:
1181
- _whatsapp.whatsapp_Connect_Error_Set(self.handle, value)
1232
+ _whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value)
1233
+ @property
1234
+ def Action(self):
1235
+ return _whatsapp.whatsapp_GroupParticipant_Action_Get(self.handle)
1236
+ @Action.setter
1237
+ def Action(self, value):
1238
+ if isinstance(value, go.GoClass):
1239
+ _whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value.handle)
1240
+ else:
1241
+ _whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value)
1182
1242
 
1183
- # Python type for struct whatsapp.Contact
1184
- class Contact(go.GoClass):
1185
- """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"""
1243
+ # Python type for struct whatsapp.Message
1244
+ class Message(go.GoClass):
1245
+ """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"""
1186
1246
  def __init__(self, *args, **kwargs):
1187
1247
  """
1188
1248
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -1196,21 +1256,89 @@ class Contact(go.GoClass):
1196
1256
  self.handle = args[0].handle
1197
1257
  _whatsapp.IncRef(self.handle)
1198
1258
  else:
1199
- self.handle = _whatsapp.whatsapp_Contact_CTor()
1259
+ self.handle = _whatsapp.whatsapp_Message_CTor()
1200
1260
  _whatsapp.IncRef(self.handle)
1201
1261
  if 0 < len(args):
1202
- self.JID = args[0]
1262
+ self.Kind = args[0]
1263
+ if "Kind" in kwargs:
1264
+ self.Kind = kwargs["Kind"]
1265
+ if 1 < len(args):
1266
+ self.ID = args[1]
1267
+ if "ID" in kwargs:
1268
+ self.ID = kwargs["ID"]
1269
+ if 2 < len(args):
1270
+ self.JID = args[2]
1203
1271
  if "JID" in kwargs:
1204
1272
  self.JID = kwargs["JID"]
1205
- if 1 < len(args):
1206
- self.Name = args[1]
1207
- if "Name" in kwargs:
1208
- self.Name = kwargs["Name"]
1273
+ if 3 < len(args):
1274
+ self.GroupJID = args[3]
1275
+ if "GroupJID" in kwargs:
1276
+ self.GroupJID = kwargs["GroupJID"]
1277
+ if 4 < len(args):
1278
+ self.OriginJID = args[4]
1279
+ if "OriginJID" in kwargs:
1280
+ self.OriginJID = kwargs["OriginJID"]
1281
+ if 5 < len(args):
1282
+ self.Body = args[5]
1283
+ if "Body" in kwargs:
1284
+ self.Body = kwargs["Body"]
1285
+ if 6 < len(args):
1286
+ self.Timestamp = args[6]
1287
+ if "Timestamp" in kwargs:
1288
+ self.Timestamp = kwargs["Timestamp"]
1289
+ if 7 < len(args):
1290
+ self.IsCarbon = args[7]
1291
+ if "IsCarbon" in kwargs:
1292
+ self.IsCarbon = kwargs["IsCarbon"]
1293
+ if 8 < len(args):
1294
+ self.IsForwarded = args[8]
1295
+ if "IsForwarded" in kwargs:
1296
+ self.IsForwarded = kwargs["IsForwarded"]
1297
+ if 9 < len(args):
1298
+ self.ReplyID = args[9]
1299
+ if "ReplyID" in kwargs:
1300
+ self.ReplyID = kwargs["ReplyID"]
1301
+ if 10 < len(args):
1302
+ self.ReplyBody = args[10]
1303
+ if "ReplyBody" in kwargs:
1304
+ self.ReplyBody = kwargs["ReplyBody"]
1305
+ if 11 < len(args):
1306
+ self.Attachments = args[11]
1307
+ if "Attachments" in kwargs:
1308
+ self.Attachments = kwargs["Attachments"]
1309
+ if 12 < len(args):
1310
+ self.Preview = args[12]
1311
+ if "Preview" in kwargs:
1312
+ self.Preview = kwargs["Preview"]
1313
+ if 13 < len(args):
1314
+ self.Location = args[13]
1315
+ if "Location" in kwargs:
1316
+ self.Location = kwargs["Location"]
1317
+ if 14 < len(args):
1318
+ self.Poll = args[14]
1319
+ if "Poll" in kwargs:
1320
+ self.Poll = kwargs["Poll"]
1321
+ if 15 < len(args):
1322
+ self.Album = args[15]
1323
+ if "Album" in kwargs:
1324
+ self.Album = kwargs["Album"]
1325
+ if 16 < len(args):
1326
+ self.MentionJIDs = args[16]
1327
+ if "MentionJIDs" in kwargs:
1328
+ self.MentionJIDs = kwargs["MentionJIDs"]
1329
+ if 17 < len(args):
1330
+ self.Receipts = args[17]
1331
+ if "Receipts" in kwargs:
1332
+ self.Receipts = kwargs["Receipts"]
1333
+ if 18 < len(args):
1334
+ self.Reactions = args[18]
1335
+ if "Reactions" in kwargs:
1336
+ self.Reactions = kwargs["Reactions"]
1209
1337
  def __del__(self):
1210
1338
  _whatsapp.DecRef(self.handle)
1211
1339
  def __str__(self):
1212
1340
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1213
- sv = 'whatsapp.Contact{'
1341
+ sv = 'whatsapp.Message{'
1214
1342
  first = True
1215
1343
  for v in pr:
1216
1344
  if callable(v[1]):
@@ -1223,33 +1351,660 @@ class Contact(go.GoClass):
1223
1351
  return sv + '}'
1224
1352
  def __repr__(self):
1225
1353
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1226
- sv = 'whatsapp.Contact ( '
1354
+ sv = 'whatsapp.Message ( '
1227
1355
  for v in pr:
1228
1356
  if not callable(v[1]):
1229
1357
  sv += v[0] + '=' + str(v[1]) + ', '
1230
1358
  return sv + ')'
1231
1359
  @property
1360
+ def Kind(self):
1361
+ return _whatsapp.whatsapp_Message_Kind_Get(self.handle)
1362
+ @Kind.setter
1363
+ def Kind(self, value):
1364
+ if isinstance(value, go.GoClass):
1365
+ _whatsapp.whatsapp_Message_Kind_Set(self.handle, value.handle)
1366
+ else:
1367
+ _whatsapp.whatsapp_Message_Kind_Set(self.handle, value)
1368
+ @property
1369
+ def ID(self):
1370
+ return _whatsapp.whatsapp_Message_ID_Get(self.handle)
1371
+ @ID.setter
1372
+ def ID(self, value):
1373
+ if isinstance(value, go.GoClass):
1374
+ _whatsapp.whatsapp_Message_ID_Set(self.handle, value.handle)
1375
+ else:
1376
+ _whatsapp.whatsapp_Message_ID_Set(self.handle, value)
1377
+ @property
1232
1378
  def JID(self):
1233
- return _whatsapp.whatsapp_Contact_JID_Get(self.handle)
1379
+ return _whatsapp.whatsapp_Message_JID_Get(self.handle)
1234
1380
  @JID.setter
1235
1381
  def JID(self, value):
1236
1382
  if isinstance(value, go.GoClass):
1237
- _whatsapp.whatsapp_Contact_JID_Set(self.handle, value.handle)
1383
+ _whatsapp.whatsapp_Message_JID_Set(self.handle, value.handle)
1238
1384
  else:
1239
- _whatsapp.whatsapp_Contact_JID_Set(self.handle, value)
1385
+ _whatsapp.whatsapp_Message_JID_Set(self.handle, value)
1240
1386
  @property
1241
- def Name(self):
1242
- return _whatsapp.whatsapp_Contact_Name_Get(self.handle)
1243
- @Name.setter
1244
- def Name(self, value):
1245
- if isinstance(value, go.GoClass):
1246
- _whatsapp.whatsapp_Contact_Name_Set(self.handle, value.handle)
1247
- else:
1248
- _whatsapp.whatsapp_Contact_Name_Set(self.handle, value)
1387
+ def GroupJID(self):
1388
+ return _whatsapp.whatsapp_Message_GroupJID_Get(self.handle)
1389
+ @GroupJID.setter
1390
+ def GroupJID(self, value):
1391
+ if isinstance(value, go.GoClass):
1392
+ _whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value.handle)
1393
+ else:
1394
+ _whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value)
1395
+ @property
1396
+ def OriginJID(self):
1397
+ return _whatsapp.whatsapp_Message_OriginJID_Get(self.handle)
1398
+ @OriginJID.setter
1399
+ def OriginJID(self, value):
1400
+ if isinstance(value, go.GoClass):
1401
+ _whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value.handle)
1402
+ else:
1403
+ _whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value)
1404
+ @property
1405
+ def Body(self):
1406
+ return _whatsapp.whatsapp_Message_Body_Get(self.handle)
1407
+ @Body.setter
1408
+ def Body(self, value):
1409
+ if isinstance(value, go.GoClass):
1410
+ _whatsapp.whatsapp_Message_Body_Set(self.handle, value.handle)
1411
+ else:
1412
+ _whatsapp.whatsapp_Message_Body_Set(self.handle, value)
1413
+ @property
1414
+ def Timestamp(self):
1415
+ return _whatsapp.whatsapp_Message_Timestamp_Get(self.handle)
1416
+ @Timestamp.setter
1417
+ def Timestamp(self, value):
1418
+ if isinstance(value, go.GoClass):
1419
+ _whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value.handle)
1420
+ else:
1421
+ _whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value)
1422
+ @property
1423
+ def IsCarbon(self):
1424
+ return _whatsapp.whatsapp_Message_IsCarbon_Get(self.handle)
1425
+ @IsCarbon.setter
1426
+ def IsCarbon(self, value):
1427
+ if isinstance(value, go.GoClass):
1428
+ _whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value.handle)
1429
+ else:
1430
+ _whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value)
1431
+ @property
1432
+ def IsForwarded(self):
1433
+ return _whatsapp.whatsapp_Message_IsForwarded_Get(self.handle)
1434
+ @IsForwarded.setter
1435
+ def IsForwarded(self, value):
1436
+ if isinstance(value, go.GoClass):
1437
+ _whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value.handle)
1438
+ else:
1439
+ _whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value)
1440
+ @property
1441
+ def ReplyID(self):
1442
+ return _whatsapp.whatsapp_Message_ReplyID_Get(self.handle)
1443
+ @ReplyID.setter
1444
+ def ReplyID(self, value):
1445
+ if isinstance(value, go.GoClass):
1446
+ _whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value.handle)
1447
+ else:
1448
+ _whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value)
1449
+ @property
1450
+ def ReplyBody(self):
1451
+ return _whatsapp.whatsapp_Message_ReplyBody_Get(self.handle)
1452
+ @ReplyBody.setter
1453
+ def ReplyBody(self, value):
1454
+ if isinstance(value, go.GoClass):
1455
+ _whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value.handle)
1456
+ else:
1457
+ _whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value)
1458
+ @property
1459
+ def Attachments(self):
1460
+ return Slice_whatsapp_Attachment(handle=_whatsapp.whatsapp_Message_Attachments_Get(self.handle))
1461
+ @Attachments.setter
1462
+ def Attachments(self, value):
1463
+ if isinstance(value, go.GoClass):
1464
+ _whatsapp.whatsapp_Message_Attachments_Set(self.handle, value.handle)
1465
+ else:
1466
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1467
+ @property
1468
+ def Preview(self):
1469
+ return Preview(handle=_whatsapp.whatsapp_Message_Preview_Get(self.handle))
1470
+ @Preview.setter
1471
+ def Preview(self, value):
1472
+ if isinstance(value, go.GoClass):
1473
+ _whatsapp.whatsapp_Message_Preview_Set(self.handle, value.handle)
1474
+ else:
1475
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1476
+ @property
1477
+ def Location(self):
1478
+ return Location(handle=_whatsapp.whatsapp_Message_Location_Get(self.handle))
1479
+ @Location.setter
1480
+ def Location(self, value):
1481
+ if isinstance(value, go.GoClass):
1482
+ _whatsapp.whatsapp_Message_Location_Set(self.handle, value.handle)
1483
+ else:
1484
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1485
+ @property
1486
+ def Poll(self):
1487
+ return Poll(handle=_whatsapp.whatsapp_Message_Poll_Get(self.handle))
1488
+ @Poll.setter
1489
+ def Poll(self, value):
1490
+ if isinstance(value, go.GoClass):
1491
+ _whatsapp.whatsapp_Message_Poll_Set(self.handle, value.handle)
1492
+ else:
1493
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1494
+ @property
1495
+ def Album(self):
1496
+ return Album(handle=_whatsapp.whatsapp_Message_Album_Get(self.handle))
1497
+ @Album.setter
1498
+ def Album(self, value):
1499
+ if isinstance(value, go.GoClass):
1500
+ _whatsapp.whatsapp_Message_Album_Set(self.handle, value.handle)
1501
+ else:
1502
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1503
+ @property
1504
+ def MentionJIDs(self):
1505
+ return go.Slice_string(handle=_whatsapp.whatsapp_Message_MentionJIDs_Get(self.handle))
1506
+ @MentionJIDs.setter
1507
+ def MentionJIDs(self, value):
1508
+ if isinstance(value, go.GoClass):
1509
+ _whatsapp.whatsapp_Message_MentionJIDs_Set(self.handle, value.handle)
1510
+ else:
1511
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1512
+ @property
1513
+ def Receipts(self):
1514
+ return Slice_whatsapp_Receipt(handle=_whatsapp.whatsapp_Message_Receipts_Get(self.handle))
1515
+ @Receipts.setter
1516
+ def Receipts(self, value):
1517
+ if isinstance(value, go.GoClass):
1518
+ _whatsapp.whatsapp_Message_Receipts_Set(self.handle, value.handle)
1519
+ else:
1520
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1521
+ @property
1522
+ def Reactions(self):
1523
+ return Slice_whatsapp_Message(handle=_whatsapp.whatsapp_Message_Reactions_Get(self.handle))
1524
+ @Reactions.setter
1525
+ def Reactions(self, value):
1526
+ if isinstance(value, go.GoClass):
1527
+ _whatsapp.whatsapp_Message_Reactions_Set(self.handle, value.handle)
1528
+ else:
1529
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1530
+
1531
+ # Python type for struct whatsapp.PollOption
1532
+ class PollOption(go.GoClass):
1533
+ """A PollOption represents an individual choice within a broader poll.\n"""
1534
+ def __init__(self, *args, **kwargs):
1535
+ """
1536
+ handle=A Go-side object is always initialized with an explicit handle=arg
1537
+ otherwise parameters can be unnamed in order of field names or named fields
1538
+ in which case a new Go object is constructed first
1539
+ """
1540
+ if len(kwargs) == 1 and 'handle' in kwargs:
1541
+ self.handle = kwargs['handle']
1542
+ _whatsapp.IncRef(self.handle)
1543
+ elif len(args) == 1 and isinstance(args[0], go.GoClass):
1544
+ self.handle = args[0].handle
1545
+ _whatsapp.IncRef(self.handle)
1546
+ else:
1547
+ self.handle = _whatsapp.whatsapp_PollOption_CTor()
1548
+ _whatsapp.IncRef(self.handle)
1549
+ if 0 < len(args):
1550
+ self.Title = args[0]
1551
+ if "Title" in kwargs:
1552
+ self.Title = kwargs["Title"]
1553
+ def __del__(self):
1554
+ _whatsapp.DecRef(self.handle)
1555
+ def __str__(self):
1556
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1557
+ sv = 'whatsapp.PollOption{'
1558
+ first = True
1559
+ for v in pr:
1560
+ if callable(v[1]):
1561
+ continue
1562
+ if first:
1563
+ first = False
1564
+ else:
1565
+ sv += ', '
1566
+ sv += v[0] + '=' + str(v[1])
1567
+ return sv + '}'
1568
+ def __repr__(self):
1569
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1570
+ sv = 'whatsapp.PollOption ( '
1571
+ for v in pr:
1572
+ if not callable(v[1]):
1573
+ sv += v[0] + '=' + str(v[1]) + ', '
1574
+ return sv + ')'
1575
+ @property
1576
+ def Title(self):
1577
+ return _whatsapp.whatsapp_PollOption_Title_Get(self.handle)
1578
+ @Title.setter
1579
+ def Title(self, value):
1580
+ if isinstance(value, go.GoClass):
1581
+ _whatsapp.whatsapp_PollOption_Title_Set(self.handle, value.handle)
1582
+ else:
1583
+ _whatsapp.whatsapp_PollOption_Title_Set(self.handle, value)
1584
+
1585
+ # Python type for struct whatsapp.Session
1586
+ class Session(go.GoClass):
1587
+ """A Session represents a connection (active or not) between a linked device and WhatsApp. Active\nsessions need to be established by logging in, after which incoming events will be forwarded to\nthe adapter event handler, and outgoing events will be forwarded to WhatsApp.\n"""
1588
+ def __init__(self, *args, **kwargs):
1589
+ """
1590
+ handle=A Go-side object is always initialized with an explicit handle=arg
1591
+ otherwise parameters can be unnamed in order of field names or named fields
1592
+ in which case a new Go object is constructed first
1593
+ """
1594
+ if len(kwargs) == 1 and 'handle' in kwargs:
1595
+ self.handle = kwargs['handle']
1596
+ _whatsapp.IncRef(self.handle)
1597
+ elif len(args) == 1 and isinstance(args[0], go.GoClass):
1598
+ self.handle = args[0].handle
1599
+ _whatsapp.IncRef(self.handle)
1600
+ else:
1601
+ self.handle = _whatsapp.whatsapp_Session_CTor()
1602
+ _whatsapp.IncRef(self.handle)
1603
+ def __del__(self):
1604
+ _whatsapp.DecRef(self.handle)
1605
+ def __str__(self):
1606
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1607
+ sv = 'whatsapp.Session{'
1608
+ first = True
1609
+ for v in pr:
1610
+ if callable(v[1]):
1611
+ continue
1612
+ if first:
1613
+ first = False
1614
+ else:
1615
+ sv += ', '
1616
+ sv += v[0] + '=' + str(v[1])
1617
+ return sv + '}'
1618
+ def __repr__(self):
1619
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1620
+ sv = 'whatsapp.Session ( '
1621
+ for v in pr:
1622
+ if not callable(v[1]):
1623
+ sv += v[0] + '=' + str(v[1]) + ', '
1624
+ return sv + ')'
1625
+ def Login(self):
1626
+ """Login() str
1627
+
1628
+ Login attempts to authenticate the given [Session], either by re-using the [LinkedDevice] attached
1629
+ or by initiating a pairing session for a new linked device. Callers are expected to have set an
1630
+ event handler in order to receive any incoming events from the underlying WhatsApp session.
1631
+ """
1632
+ return _whatsapp.whatsapp_Session_Login(self.handle)
1633
+ def Logout(self):
1634
+ """Logout() str
1635
+
1636
+ Logout disconnects and removes the current linked device locally and initiates a logout remotely.
1637
+ """
1638
+ return _whatsapp.whatsapp_Session_Logout(self.handle)
1639
+ def Disconnect(self):
1640
+ """Disconnect() str
1641
+
1642
+ Disconnects detaches the current connection to WhatsApp without removing any linked device state.
1643
+ """
1644
+ return _whatsapp.whatsapp_Session_Disconnect(self.handle)
1645
+ def PairPhone(self, phone):
1646
+ """PairPhone(str phone) str, str
1647
+
1648
+ PairPhone returns a one-time code from WhatsApp, used for pairing this [Session] against the
1649
+ user's primary device, as identified by the given phone number. This will return an error if the
1650
+ [Session] is already paired, or if the phone number given is empty or invalid.
1651
+ """
1652
+ return _whatsapp.whatsapp_Session_PairPhone(self.handle, phone)
1653
+ def SendMessage(self, message):
1654
+ """SendMessage(object message) str
1655
+
1656
+ SendMessage processes the given Message and sends a WhatsApp message for the kind and contact JID
1657
+ specified within. In general, different message kinds require different fields to be set; see the
1658
+ documentation for the [Message] type for more information.
1659
+ """
1660
+ return _whatsapp.whatsapp_Session_SendMessage(self.handle, message.handle)
1661
+ def GenerateMessageID(self):
1662
+ """GenerateMessageID() str
1663
+
1664
+ GenerateMessageID returns a valid, pseudo-random message ID for use in outgoing messages.
1665
+ """
1666
+ return _whatsapp.whatsapp_Session_GenerateMessageID(self.handle)
1667
+ def SendChatState(self, state):
1668
+ """SendChatState(object state) str
1669
+
1670
+ SendChatState sends the given chat state notification (e.g. composing message) to WhatsApp for the
1671
+ contact specified within.
1672
+ """
1673
+ return _whatsapp.whatsapp_Session_SendChatState(self.handle, state.handle)
1674
+ def SendReceipt(self, receipt):
1675
+ """SendReceipt(object receipt) str
1676
+
1677
+ SendReceipt sends a read receipt to WhatsApp for the message IDs specified within.
1678
+ """
1679
+ return _whatsapp.whatsapp_Session_SendReceipt(self.handle, receipt.handle)
1680
+ def SendPresence(self, presence, statusMessage):
1681
+ """SendPresence(int presence, str statusMessage) str
1682
+
1683
+ SendPresence sets the activity state and (optional) status message for the current session and
1684
+ user. An error is returned if setting availability fails for any reason.
1685
+ """
1686
+ return _whatsapp.whatsapp_Session_SendPresence(self.handle, presence, statusMessage)
1687
+ def GetContacts(self, refresh):
1688
+ """GetContacts(bool refresh) []object, str
1689
+
1690
+ GetContacts subscribes to the WhatsApp roster currently stored in the Session's internal state.
1691
+ If `refresh` is `true`, FetchRoster will pull application state from the remote service and
1692
+ synchronize any contacts found with the adapter.
1693
+ """
1694
+ return Slice_whatsapp_Contact(handle=_whatsapp.whatsapp_Session_GetContacts(self.handle, refresh))
1695
+ def GetGroups(self):
1696
+ """GetGroups() []object, str
1697
+
1698
+ GetGroups returns a list of all group-chats currently joined in WhatsApp, along with additional
1699
+ information on present participants.
1700
+ """
1701
+ return Slice_whatsapp_Group(handle=_whatsapp.whatsapp_Session_GetGroups(self.handle))
1702
+ def CreateGroup(self, name, participants):
1703
+ """CreateGroup(str name, []str participants) object, str
1704
+
1705
+ CreateGroup attempts to create a new WhatsApp group for the given human-readable name and
1706
+ participant JIDs given.
1707
+ """
1708
+ return Group(handle=_whatsapp.whatsapp_Session_CreateGroup(self.handle, name, participants.handle))
1709
+ def LeaveGroup(self, resourceID):
1710
+ """LeaveGroup(str resourceID) str
1711
+
1712
+ LeaveGroup attempts to remove our own user from the given WhatsApp group, for the JID given.
1713
+ """
1714
+ return _whatsapp.whatsapp_Session_LeaveGroup(self.handle, resourceID)
1715
+ def GetAvatar(self, resourceID, avatarID):
1716
+ """GetAvatar(str resourceID, str avatarID) object, str
1717
+
1718
+ GetAvatar fetches a profile picture for the Contact or Group JID given. If a non-empty `avatarID`
1719
+ is also given, GetAvatar will return an empty [Avatar] instance with no error if the remote state
1720
+ for the given ID has not changed.
1721
+ """
1722
+ return Avatar(handle=_whatsapp.whatsapp_Session_GetAvatar(self.handle, resourceID, avatarID))
1723
+ def SetAvatar(self, resourceID, avatar):
1724
+ """SetAvatar(str resourceID, []int avatar) str, str
1725
+
1726
+ SetAvatar updates the profile picture for the Contact or Group JID given; it can also update the
1727
+ profile picture for our own user by providing an empty JID. The unique picture ID is returned,
1728
+ typically used as a cache reference or in providing to future calls for [Session.GetAvatar].
1729
+ """
1730
+ return _whatsapp.whatsapp_Session_SetAvatar(self.handle, resourceID, avatar.handle)
1731
+ def SetGroupName(self, resourceID, name):
1732
+ """SetGroupName(str resourceID, str name) str
1733
+
1734
+ SetGroupName updates the name of a WhatsApp group for the Group JID given.
1735
+ """
1736
+ return _whatsapp.whatsapp_Session_SetGroupName(self.handle, resourceID, name)
1737
+ def SetGroupTopic(self, resourceID, topic):
1738
+ """SetGroupTopic(str resourceID, str topic) str
1739
+
1740
+ SetGroupName updates the topic of a WhatsApp group for the Group JID given.
1741
+ """
1742
+ return _whatsapp.whatsapp_Session_SetGroupTopic(self.handle, resourceID, topic)
1743
+ def UpdateGroupParticipants(self, resourceID, participants):
1744
+ """UpdateGroupParticipants(str resourceID, []object participants) []object, str
1745
+
1746
+ UpdateGroupParticipants processes changes to the given group's participants, including additions,
1747
+ removals, and changes to privileges. Participant JIDs given must be part of the authenticated
1748
+ session's roster at least, and must also be active group participants for other types of changes.
1749
+ """
1750
+ return Slice_whatsapp_GroupParticipant(handle=_whatsapp.whatsapp_Session_UpdateGroupParticipants(self.handle, resourceID, participants.handle))
1751
+ def FindContact(self, phone):
1752
+ """FindContact(str phone) object, str
1753
+
1754
+ FindContact attempts to check for a registered contact on WhatsApp corresponding to the given
1755
+ phone number, returning a concrete instance if found; typically, only the contact JID is set. No
1756
+ error is returned if no contact was found, but any unexpected errors will otherwise be returned
1757
+ directly.
1758
+ """
1759
+ return Contact(handle=_whatsapp.whatsapp_Session_FindContact(self.handle, phone))
1760
+ def RequestMessageHistory(self, resourceID, oldestMessage):
1761
+ """RequestMessageHistory(str resourceID, object oldestMessage) str
1762
+
1763
+ RequestMessageHistory sends and asynchronous request for message history related to the given
1764
+ resource (e.g. Contact or Group JID), ending at the oldest message given. Messages returned from
1765
+ history should then be handled as a `HistorySync` event of type `ON_DEMAND`, in the session-wide
1766
+ event handler. An error will be returned if requesting history fails for any reason.
1767
+ """
1768
+ return _whatsapp.whatsapp_Session_RequestMessageHistory(self.handle, resourceID, oldestMessage.handle)
1769
+ def SetEventHandler(self, h, goRun=False):
1770
+ """SetEventHandler(callable h)
1771
+
1772
+ SetEventHandler assigns the given handler function for propagating internal events into the Python
1773
+ gateway. Note that the event handler function is not entirely safe to use directly, and all calls
1774
+ should instead be sent to the [Gateway] via its internal call channel.
1775
+ """
1776
+ _whatsapp.whatsapp_Session_SetEventHandler(self.handle, h, goRun)
1249
1777
 
1250
- # Python type for struct whatsapp.Location
1251
- class Location(go.GoClass):
1252
- """A Location represents additional metadata given to location messages.\n"""
1778
+ # Python type for struct whatsapp.Album
1779
+ class Album(go.GoClass):
1780
+ """A Album message represents a collection of media files, typically images and videos.\n"""
1781
+ def __init__(self, *args, **kwargs):
1782
+ """
1783
+ handle=A Go-side object is always initialized with an explicit handle=arg
1784
+ otherwise parameters can be unnamed in order of field names or named fields
1785
+ in which case a new Go object is constructed first
1786
+ """
1787
+ if len(kwargs) == 1 and 'handle' in kwargs:
1788
+ self.handle = kwargs['handle']
1789
+ _whatsapp.IncRef(self.handle)
1790
+ elif len(args) == 1 and isinstance(args[0], go.GoClass):
1791
+ self.handle = args[0].handle
1792
+ _whatsapp.IncRef(self.handle)
1793
+ else:
1794
+ self.handle = _whatsapp.whatsapp_Album_CTor()
1795
+ _whatsapp.IncRef(self.handle)
1796
+ if 0 < len(args):
1797
+ self.IsAlbum = args[0]
1798
+ if "IsAlbum" in kwargs:
1799
+ self.IsAlbum = kwargs["IsAlbum"]
1800
+ if 1 < len(args):
1801
+ self.ImageCount = args[1]
1802
+ if "ImageCount" in kwargs:
1803
+ self.ImageCount = kwargs["ImageCount"]
1804
+ if 2 < len(args):
1805
+ self.VideoCount = args[2]
1806
+ if "VideoCount" in kwargs:
1807
+ self.VideoCount = kwargs["VideoCount"]
1808
+ def __del__(self):
1809
+ _whatsapp.DecRef(self.handle)
1810
+ def __str__(self):
1811
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1812
+ sv = 'whatsapp.Album{'
1813
+ first = True
1814
+ for v in pr:
1815
+ if callable(v[1]):
1816
+ continue
1817
+ if first:
1818
+ first = False
1819
+ else:
1820
+ sv += ', '
1821
+ sv += v[0] + '=' + str(v[1])
1822
+ return sv + '}'
1823
+ def __repr__(self):
1824
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1825
+ sv = 'whatsapp.Album ( '
1826
+ for v in pr:
1827
+ if not callable(v[1]):
1828
+ sv += v[0] + '=' + str(v[1]) + ', '
1829
+ return sv + ')'
1830
+ @property
1831
+ def IsAlbum(self):
1832
+ return _whatsapp.whatsapp_Album_IsAlbum_Get(self.handle)
1833
+ @IsAlbum.setter
1834
+ def IsAlbum(self, value):
1835
+ if isinstance(value, go.GoClass):
1836
+ _whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value.handle)
1837
+ else:
1838
+ _whatsapp.whatsapp_Album_IsAlbum_Set(self.handle, value)
1839
+ @property
1840
+ def ImageCount(self):
1841
+ return _whatsapp.whatsapp_Album_ImageCount_Get(self.handle)
1842
+ @ImageCount.setter
1843
+ def ImageCount(self, value):
1844
+ if isinstance(value, go.GoClass):
1845
+ _whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value.handle)
1846
+ else:
1847
+ _whatsapp.whatsapp_Album_ImageCount_Set(self.handle, value)
1848
+ @property
1849
+ def VideoCount(self):
1850
+ return _whatsapp.whatsapp_Album_VideoCount_Get(self.handle)
1851
+ @VideoCount.setter
1852
+ def VideoCount(self, value):
1853
+ if isinstance(value, go.GoClass):
1854
+ _whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value.handle)
1855
+ else:
1856
+ _whatsapp.whatsapp_Album_VideoCount_Set(self.handle, value)
1857
+
1858
+ # Python type for struct whatsapp.ChatState
1859
+ class ChatState(go.GoClass):
1860
+ """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"""
1861
+ def __init__(self, *args, **kwargs):
1862
+ """
1863
+ handle=A Go-side object is always initialized with an explicit handle=arg
1864
+ otherwise parameters can be unnamed in order of field names or named fields
1865
+ in which case a new Go object is constructed first
1866
+ """
1867
+ if len(kwargs) == 1 and 'handle' in kwargs:
1868
+ self.handle = kwargs['handle']
1869
+ _whatsapp.IncRef(self.handle)
1870
+ elif len(args) == 1 and isinstance(args[0], go.GoClass):
1871
+ self.handle = args[0].handle
1872
+ _whatsapp.IncRef(self.handle)
1873
+ else:
1874
+ self.handle = _whatsapp.whatsapp_ChatState_CTor()
1875
+ _whatsapp.IncRef(self.handle)
1876
+ if 0 < len(args):
1877
+ self.Kind = args[0]
1878
+ if "Kind" in kwargs:
1879
+ self.Kind = kwargs["Kind"]
1880
+ if 1 < len(args):
1881
+ self.JID = args[1]
1882
+ if "JID" in kwargs:
1883
+ self.JID = kwargs["JID"]
1884
+ if 2 < len(args):
1885
+ self.GroupJID = args[2]
1886
+ if "GroupJID" in kwargs:
1887
+ self.GroupJID = kwargs["GroupJID"]
1888
+ def __del__(self):
1889
+ _whatsapp.DecRef(self.handle)
1890
+ def __str__(self):
1891
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1892
+ sv = 'whatsapp.ChatState{'
1893
+ first = True
1894
+ for v in pr:
1895
+ if callable(v[1]):
1896
+ continue
1897
+ if first:
1898
+ first = False
1899
+ else:
1900
+ sv += ', '
1901
+ sv += v[0] + '=' + str(v[1])
1902
+ return sv + '}'
1903
+ def __repr__(self):
1904
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1905
+ sv = 'whatsapp.ChatState ( '
1906
+ for v in pr:
1907
+ if not callable(v[1]):
1908
+ sv += v[0] + '=' + str(v[1]) + ', '
1909
+ return sv + ')'
1910
+ @property
1911
+ def Kind(self):
1912
+ return _whatsapp.whatsapp_ChatState_Kind_Get(self.handle)
1913
+ @Kind.setter
1914
+ def Kind(self, value):
1915
+ if isinstance(value, go.GoClass):
1916
+ _whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value.handle)
1917
+ else:
1918
+ _whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value)
1919
+ @property
1920
+ def JID(self):
1921
+ return _whatsapp.whatsapp_ChatState_JID_Get(self.handle)
1922
+ @JID.setter
1923
+ def JID(self, value):
1924
+ if isinstance(value, go.GoClass):
1925
+ _whatsapp.whatsapp_ChatState_JID_Set(self.handle, value.handle)
1926
+ else:
1927
+ _whatsapp.whatsapp_ChatState_JID_Set(self.handle, value)
1928
+ @property
1929
+ def GroupJID(self):
1930
+ return _whatsapp.whatsapp_ChatState_GroupJID_Get(self.handle)
1931
+ @GroupJID.setter
1932
+ def GroupJID(self, value):
1933
+ if isinstance(value, go.GoClass):
1934
+ _whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value.handle)
1935
+ else:
1936
+ _whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value)
1937
+
1938
+ # Python type for struct whatsapp.Connect
1939
+ class Connect(go.GoClass):
1940
+ """Connect represents event data related to a connection to WhatsApp being established, or failing\nto do so (based on the [Connect.Error] result).\n"""
1941
+ def __init__(self, *args, **kwargs):
1942
+ """
1943
+ handle=A Go-side object is always initialized with an explicit handle=arg
1944
+ otherwise parameters can be unnamed in order of field names or named fields
1945
+ in which case a new Go object is constructed first
1946
+ """
1947
+ if len(kwargs) == 1 and 'handle' in kwargs:
1948
+ self.handle = kwargs['handle']
1949
+ _whatsapp.IncRef(self.handle)
1950
+ elif len(args) == 1 and isinstance(args[0], go.GoClass):
1951
+ self.handle = args[0].handle
1952
+ _whatsapp.IncRef(self.handle)
1953
+ else:
1954
+ self.handle = _whatsapp.whatsapp_Connect_CTor()
1955
+ _whatsapp.IncRef(self.handle)
1956
+ if 0 < len(args):
1957
+ self.JID = args[0]
1958
+ if "JID" in kwargs:
1959
+ self.JID = kwargs["JID"]
1960
+ if 1 < len(args):
1961
+ self.Error = args[1]
1962
+ if "Error" in kwargs:
1963
+ self.Error = kwargs["Error"]
1964
+ def __del__(self):
1965
+ _whatsapp.DecRef(self.handle)
1966
+ def __str__(self):
1967
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1968
+ sv = 'whatsapp.Connect{'
1969
+ first = True
1970
+ for v in pr:
1971
+ if callable(v[1]):
1972
+ continue
1973
+ if first:
1974
+ first = False
1975
+ else:
1976
+ sv += ', '
1977
+ sv += v[0] + '=' + str(v[1])
1978
+ return sv + '}'
1979
+ def __repr__(self):
1980
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1981
+ sv = 'whatsapp.Connect ( '
1982
+ for v in pr:
1983
+ if not callable(v[1]):
1984
+ sv += v[0] + '=' + str(v[1]) + ', '
1985
+ return sv + ')'
1986
+ @property
1987
+ def JID(self):
1988
+ return _whatsapp.whatsapp_Connect_JID_Get(self.handle)
1989
+ @JID.setter
1990
+ def JID(self, value):
1991
+ if isinstance(value, go.GoClass):
1992
+ _whatsapp.whatsapp_Connect_JID_Set(self.handle, value.handle)
1993
+ else:
1994
+ _whatsapp.whatsapp_Connect_JID_Set(self.handle, value)
1995
+ @property
1996
+ def Error(self):
1997
+ return _whatsapp.whatsapp_Connect_Error_Get(self.handle)
1998
+ @Error.setter
1999
+ def Error(self, value):
2000
+ if isinstance(value, go.GoClass):
2001
+ _whatsapp.whatsapp_Connect_Error_Set(self.handle, value.handle)
2002
+ else:
2003
+ _whatsapp.whatsapp_Connect_Error_Set(self.handle, value)
2004
+
2005
+ # Python type for struct whatsapp.Gateway
2006
+ class Gateway(go.GoClass):
2007
+ """A Gateway represents a persistent process for establishing individual sessions between linked\ndevices and WhatsApp.\n"""
1253
2008
  def __init__(self, *args, **kwargs):
1254
2009
  """
1255
2010
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -1263,41 +2018,29 @@ class Location(go.GoClass):
1263
2018
  self.handle = args[0].handle
1264
2019
  _whatsapp.IncRef(self.handle)
1265
2020
  else:
1266
- self.handle = _whatsapp.whatsapp_Location_CTor()
2021
+ self.handle = _whatsapp.whatsapp_Gateway_CTor()
1267
2022
  _whatsapp.IncRef(self.handle)
1268
2023
  if 0 < len(args):
1269
- self.Latitude = args[0]
1270
- if "Latitude" in kwargs:
1271
- self.Latitude = kwargs["Latitude"]
2024
+ self.DBPath = args[0]
2025
+ if "DBPath" in kwargs:
2026
+ self.DBPath = kwargs["DBPath"]
1272
2027
  if 1 < len(args):
1273
- self.Longitude = args[1]
1274
- if "Longitude" in kwargs:
1275
- self.Longitude = kwargs["Longitude"]
1276
- if 2 < len(args):
1277
- self.Accuracy = args[2]
1278
- if "Accuracy" in kwargs:
1279
- self.Accuracy = kwargs["Accuracy"]
1280
- if 3 < len(args):
1281
- self.IsLive = args[3]
1282
- if "IsLive" in kwargs:
1283
- self.IsLive = kwargs["IsLive"]
1284
- if 4 < len(args):
1285
- self.Name = args[4]
2028
+ self.Name = args[1]
1286
2029
  if "Name" in kwargs:
1287
2030
  self.Name = kwargs["Name"]
1288
- if 5 < len(args):
1289
- self.Address = args[5]
1290
- if "Address" in kwargs:
1291
- self.Address = kwargs["Address"]
1292
- if 6 < len(args):
1293
- self.URL = args[6]
1294
- if "URL" in kwargs:
1295
- self.URL = kwargs["URL"]
2031
+ if 2 < len(args):
2032
+ self.LogLevel = args[2]
2033
+ if "LogLevel" in kwargs:
2034
+ self.LogLevel = kwargs["LogLevel"]
2035
+ if 3 < len(args):
2036
+ self.TempDir = args[3]
2037
+ if "TempDir" in kwargs:
2038
+ self.TempDir = kwargs["TempDir"]
1296
2039
  def __del__(self):
1297
2040
  _whatsapp.DecRef(self.handle)
1298
2041
  def __str__(self):
1299
2042
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1300
- sv = 'whatsapp.Location{'
2043
+ sv = 'whatsapp.Gateway{'
1301
2044
  first = True
1302
2045
  for v in pr:
1303
2046
  if callable(v[1]):
@@ -1310,80 +2053,72 @@ class Location(go.GoClass):
1310
2053
  return sv + '}'
1311
2054
  def __repr__(self):
1312
2055
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1313
- sv = 'whatsapp.Location ( '
2056
+ sv = 'whatsapp.Gateway ( '
1314
2057
  for v in pr:
1315
2058
  if not callable(v[1]):
1316
2059
  sv += v[0] + '=' + str(v[1]) + ', '
1317
2060
  return sv + ')'
1318
2061
  @property
1319
- def Latitude(self):
1320
- return _whatsapp.whatsapp_Location_Latitude_Get(self.handle)
1321
- @Latitude.setter
1322
- def Latitude(self, value):
1323
- if isinstance(value, go.GoClass):
1324
- _whatsapp.whatsapp_Location_Latitude_Set(self.handle, value.handle)
1325
- else:
1326
- _whatsapp.whatsapp_Location_Latitude_Set(self.handle, value)
1327
- @property
1328
- def Longitude(self):
1329
- return _whatsapp.whatsapp_Location_Longitude_Get(self.handle)
1330
- @Longitude.setter
1331
- def Longitude(self, value):
1332
- if isinstance(value, go.GoClass):
1333
- _whatsapp.whatsapp_Location_Longitude_Set(self.handle, value.handle)
1334
- else:
1335
- _whatsapp.whatsapp_Location_Longitude_Set(self.handle, value)
1336
- @property
1337
- def Accuracy(self):
1338
- return _whatsapp.whatsapp_Location_Accuracy_Get(self.handle)
1339
- @Accuracy.setter
1340
- def Accuracy(self, value):
1341
- if isinstance(value, go.GoClass):
1342
- _whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value.handle)
1343
- else:
1344
- _whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value)
1345
- @property
1346
- def IsLive(self):
1347
- return _whatsapp.whatsapp_Location_IsLive_Get(self.handle)
1348
- @IsLive.setter
1349
- def IsLive(self, value):
2062
+ def DBPath(self):
2063
+ return _whatsapp.whatsapp_Gateway_DBPath_Get(self.handle)
2064
+ @DBPath.setter
2065
+ def DBPath(self, value):
1350
2066
  if isinstance(value, go.GoClass):
1351
- _whatsapp.whatsapp_Location_IsLive_Set(self.handle, value.handle)
2067
+ _whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value.handle)
1352
2068
  else:
1353
- _whatsapp.whatsapp_Location_IsLive_Set(self.handle, value)
2069
+ _whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value)
1354
2070
  @property
1355
2071
  def Name(self):
1356
- """Optional fields given for named locations.
1357
- """
1358
- return _whatsapp.whatsapp_Location_Name_Get(self.handle)
2072
+ return _whatsapp.whatsapp_Gateway_Name_Get(self.handle)
1359
2073
  @Name.setter
1360
2074
  def Name(self, value):
1361
2075
  if isinstance(value, go.GoClass):
1362
- _whatsapp.whatsapp_Location_Name_Set(self.handle, value.handle)
2076
+ _whatsapp.whatsapp_Gateway_Name_Set(self.handle, value.handle)
1363
2077
  else:
1364
- _whatsapp.whatsapp_Location_Name_Set(self.handle, value)
2078
+ _whatsapp.whatsapp_Gateway_Name_Set(self.handle, value)
1365
2079
  @property
1366
- def Address(self):
1367
- return _whatsapp.whatsapp_Location_Address_Get(self.handle)
1368
- @Address.setter
1369
- def Address(self, value):
2080
+ def LogLevel(self):
2081
+ return _whatsapp.whatsapp_Gateway_LogLevel_Get(self.handle)
2082
+ @LogLevel.setter
2083
+ def LogLevel(self, value):
1370
2084
  if isinstance(value, go.GoClass):
1371
- _whatsapp.whatsapp_Location_Address_Set(self.handle, value.handle)
2085
+ _whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value.handle)
1372
2086
  else:
1373
- _whatsapp.whatsapp_Location_Address_Set(self.handle, value)
2087
+ _whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value)
1374
2088
  @property
1375
- def URL(self):
1376
- return _whatsapp.whatsapp_Location_URL_Get(self.handle)
1377
- @URL.setter
1378
- def URL(self, value):
2089
+ def TempDir(self):
2090
+ return _whatsapp.whatsapp_Gateway_TempDir_Get(self.handle)
2091
+ @TempDir.setter
2092
+ def TempDir(self, value):
1379
2093
  if isinstance(value, go.GoClass):
1380
- _whatsapp.whatsapp_Location_URL_Set(self.handle, value.handle)
2094
+ _whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value.handle)
1381
2095
  else:
1382
- _whatsapp.whatsapp_Location_URL_Set(self.handle, value)
2096
+ _whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value)
2097
+ def Init(self):
2098
+ """Init() str
2099
+
2100
+ Init performs initialization procedures for the Gateway, and is expected to be run before any
2101
+ calls to [Gateway.Session].
2102
+ """
2103
+ return _whatsapp.whatsapp_Gateway_Init(self.handle)
2104
+ def NewSession(self, device):
2105
+ """NewSession(object device) object
2106
+
2107
+ NewSession returns a new [Session] for the LinkedDevice given. If the linked device does not have
2108
+ a valid ID, a pair operation will be required, as described in [Session.Login].
2109
+ """
2110
+ return Session(handle=_whatsapp.whatsapp_Gateway_NewSession(self.handle, device.handle))
2111
+ def CleanupSession(self, device):
2112
+ """CleanupSession(object device) str
2113
+
2114
+ CleanupSession will remove all invalid and obsolete references to the given device, and should be
2115
+ used when pairing a new device or unregistering from the Gateway.
2116
+ """
2117
+ return _whatsapp.whatsapp_Gateway_CleanupSession(self.handle, device.handle)
1383
2118
 
1384
- # Python type for struct whatsapp.Message
1385
- class Message(go.GoClass):
1386
- """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"""
2119
+ # Python type for struct whatsapp.LinkedDevice
2120
+ class LinkedDevice(go.GoClass):
2121
+ """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"""
1387
2122
  def __init__(self, *args, **kwargs):
1388
2123
  """
1389
2124
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -1397,81 +2132,105 @@ class Message(go.GoClass):
1397
2132
  self.handle = args[0].handle
1398
2133
  _whatsapp.IncRef(self.handle)
1399
2134
  else:
1400
- self.handle = _whatsapp.whatsapp_Message_CTor()
2135
+ self.handle = _whatsapp.whatsapp_LinkedDevice_CTor()
1401
2136
  _whatsapp.IncRef(self.handle)
1402
2137
  if 0 < len(args):
1403
- self.Kind = args[0]
1404
- if "Kind" in kwargs:
1405
- self.Kind = kwargs["Kind"]
1406
- if 1 < len(args):
1407
- self.ID = args[1]
2138
+ self.ID = args[0]
1408
2139
  if "ID" in kwargs:
1409
2140
  self.ID = kwargs["ID"]
1410
- if 2 < len(args):
1411
- self.JID = args[2]
1412
- if "JID" in kwargs:
1413
- self.JID = kwargs["JID"]
1414
- if 3 < len(args):
1415
- self.GroupJID = args[3]
1416
- if "GroupJID" in kwargs:
1417
- self.GroupJID = kwargs["GroupJID"]
1418
- if 4 < len(args):
1419
- self.OriginJID = args[4]
1420
- if "OriginJID" in kwargs:
1421
- self.OriginJID = kwargs["OriginJID"]
1422
- if 5 < len(args):
1423
- self.Body = args[5]
1424
- if "Body" in kwargs:
1425
- self.Body = kwargs["Body"]
1426
- if 6 < len(args):
1427
- self.Timestamp = args[6]
1428
- if "Timestamp" in kwargs:
1429
- self.Timestamp = kwargs["Timestamp"]
1430
- if 7 < len(args):
1431
- self.IsCarbon = args[7]
1432
- if "IsCarbon" in kwargs:
1433
- self.IsCarbon = kwargs["IsCarbon"]
1434
- if 8 < len(args):
1435
- self.IsForwarded = args[8]
1436
- if "IsForwarded" in kwargs:
1437
- self.IsForwarded = kwargs["IsForwarded"]
1438
- if 9 < len(args):
1439
- self.ReplyID = args[9]
1440
- if "ReplyID" in kwargs:
1441
- self.ReplyID = kwargs["ReplyID"]
1442
- if 10 < len(args):
1443
- self.ReplyBody = args[10]
1444
- if "ReplyBody" in kwargs:
1445
- self.ReplyBody = kwargs["ReplyBody"]
1446
- if 11 < len(args):
1447
- self.Attachments = args[11]
1448
- if "Attachments" in kwargs:
1449
- self.Attachments = kwargs["Attachments"]
1450
- if 12 < len(args):
1451
- self.Preview = args[12]
1452
- if "Preview" in kwargs:
1453
- self.Preview = kwargs["Preview"]
1454
- if 13 < len(args):
1455
- self.Location = args[13]
1456
- if "Location" in kwargs:
1457
- self.Location = kwargs["Location"]
1458
- if 14 < len(args):
1459
- self.MentionJIDs = args[14]
1460
- if "MentionJIDs" in kwargs:
1461
- self.MentionJIDs = kwargs["MentionJIDs"]
1462
- if 15 < len(args):
1463
- self.Receipts = args[15]
1464
- if "Receipts" in kwargs:
1465
- self.Receipts = kwargs["Receipts"]
1466
- if 16 < len(args):
1467
- self.Reactions = args[16]
1468
- if "Reactions" in kwargs:
1469
- self.Reactions = kwargs["Reactions"]
1470
2141
  def __del__(self):
1471
2142
  _whatsapp.DecRef(self.handle)
1472
2143
  def __str__(self):
1473
2144
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1474
- sv = 'whatsapp.Message{'
2145
+ sv = 'whatsapp.LinkedDevice{'
2146
+ first = True
2147
+ for v in pr:
2148
+ if callable(v[1]):
2149
+ continue
2150
+ if first:
2151
+ first = False
2152
+ else:
2153
+ sv += ', '
2154
+ sv += v[0] + '=' + str(v[1])
2155
+ return sv + '}'
2156
+ def __repr__(self):
2157
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2158
+ sv = 'whatsapp.LinkedDevice ( '
2159
+ for v in pr:
2160
+ if not callable(v[1]):
2161
+ sv += v[0] + '=' + str(v[1]) + ', '
2162
+ return sv + ')'
2163
+ @property
2164
+ def ID(self):
2165
+ """ID is an opaque string identifying this LinkedDevice to the Session. Noted that this string
2166
+ is currently equivalent to a password, and needs to be protected accordingly.
2167
+ """
2168
+ return _whatsapp.whatsapp_LinkedDevice_ID_Get(self.handle)
2169
+ @ID.setter
2170
+ def ID(self, value):
2171
+ if isinstance(value, go.GoClass):
2172
+ _whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value.handle)
2173
+ else:
2174
+ _whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value)
2175
+ def JID(self):
2176
+ """JID() object
2177
+
2178
+ JID returns the WhatsApp JID corresponding to the LinkedDevice ID. Empty or invalid device IDs
2179
+ may return invalid JIDs, and this function does not handle errors.
2180
+ """
2181
+ return go.types_JID(handle=_whatsapp.whatsapp_LinkedDevice_JID(self.handle))
2182
+
2183
+ # Python type for struct whatsapp.Location
2184
+ class Location(go.GoClass):
2185
+ """A Location represents additional metadata given to location messages.\n"""
2186
+ def __init__(self, *args, **kwargs):
2187
+ """
2188
+ handle=A Go-side object is always initialized with an explicit handle=arg
2189
+ otherwise parameters can be unnamed in order of field names or named fields
2190
+ in which case a new Go object is constructed first
2191
+ """
2192
+ if len(kwargs) == 1 and 'handle' in kwargs:
2193
+ self.handle = kwargs['handle']
2194
+ _whatsapp.IncRef(self.handle)
2195
+ elif len(args) == 1 and isinstance(args[0], go.GoClass):
2196
+ self.handle = args[0].handle
2197
+ _whatsapp.IncRef(self.handle)
2198
+ else:
2199
+ self.handle = _whatsapp.whatsapp_Location_CTor()
2200
+ _whatsapp.IncRef(self.handle)
2201
+ if 0 < len(args):
2202
+ self.Latitude = args[0]
2203
+ if "Latitude" in kwargs:
2204
+ self.Latitude = kwargs["Latitude"]
2205
+ if 1 < len(args):
2206
+ self.Longitude = args[1]
2207
+ if "Longitude" in kwargs:
2208
+ self.Longitude = kwargs["Longitude"]
2209
+ if 2 < len(args):
2210
+ self.Accuracy = args[2]
2211
+ if "Accuracy" in kwargs:
2212
+ self.Accuracy = kwargs["Accuracy"]
2213
+ if 3 < len(args):
2214
+ self.IsLive = args[3]
2215
+ if "IsLive" in kwargs:
2216
+ self.IsLive = kwargs["IsLive"]
2217
+ if 4 < len(args):
2218
+ self.Name = args[4]
2219
+ if "Name" in kwargs:
2220
+ self.Name = kwargs["Name"]
2221
+ if 5 < len(args):
2222
+ self.Address = args[5]
2223
+ if "Address" in kwargs:
2224
+ self.Address = kwargs["Address"]
2225
+ if 6 < len(args):
2226
+ self.URL = args[6]
2227
+ if "URL" in kwargs:
2228
+ self.URL = kwargs["URL"]
2229
+ def __del__(self):
2230
+ _whatsapp.DecRef(self.handle)
2231
+ def __str__(self):
2232
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2233
+ sv = 'whatsapp.Location{'
1475
2234
  first = True
1476
2235
  for v in pr:
1477
2236
  if callable(v[1]):
@@ -1484,168 +2243,80 @@ class Message(go.GoClass):
1484
2243
  return sv + '}'
1485
2244
  def __repr__(self):
1486
2245
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1487
- sv = 'whatsapp.Message ( '
2246
+ sv = 'whatsapp.Location ( '
1488
2247
  for v in pr:
1489
2248
  if not callable(v[1]):
1490
2249
  sv += v[0] + '=' + str(v[1]) + ', '
1491
2250
  return sv + ')'
1492
2251
  @property
1493
- def Kind(self):
1494
- return _whatsapp.whatsapp_Message_Kind_Get(self.handle)
1495
- @Kind.setter
1496
- def Kind(self, value):
1497
- if isinstance(value, go.GoClass):
1498
- _whatsapp.whatsapp_Message_Kind_Set(self.handle, value.handle)
1499
- else:
1500
- _whatsapp.whatsapp_Message_Kind_Set(self.handle, value)
1501
- @property
1502
- def ID(self):
1503
- return _whatsapp.whatsapp_Message_ID_Get(self.handle)
1504
- @ID.setter
1505
- def ID(self, value):
1506
- if isinstance(value, go.GoClass):
1507
- _whatsapp.whatsapp_Message_ID_Set(self.handle, value.handle)
1508
- else:
1509
- _whatsapp.whatsapp_Message_ID_Set(self.handle, value)
1510
- @property
1511
- def JID(self):
1512
- return _whatsapp.whatsapp_Message_JID_Get(self.handle)
1513
- @JID.setter
1514
- def JID(self, value):
1515
- if isinstance(value, go.GoClass):
1516
- _whatsapp.whatsapp_Message_JID_Set(self.handle, value.handle)
1517
- else:
1518
- _whatsapp.whatsapp_Message_JID_Set(self.handle, value)
1519
- @property
1520
- def GroupJID(self):
1521
- return _whatsapp.whatsapp_Message_GroupJID_Get(self.handle)
1522
- @GroupJID.setter
1523
- def GroupJID(self, value):
1524
- if isinstance(value, go.GoClass):
1525
- _whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value.handle)
1526
- else:
1527
- _whatsapp.whatsapp_Message_GroupJID_Set(self.handle, value)
1528
- @property
1529
- def OriginJID(self):
1530
- return _whatsapp.whatsapp_Message_OriginJID_Get(self.handle)
1531
- @OriginJID.setter
1532
- def OriginJID(self, value):
1533
- if isinstance(value, go.GoClass):
1534
- _whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value.handle)
1535
- else:
1536
- _whatsapp.whatsapp_Message_OriginJID_Set(self.handle, value)
1537
- @property
1538
- def Body(self):
1539
- return _whatsapp.whatsapp_Message_Body_Get(self.handle)
1540
- @Body.setter
1541
- def Body(self, value):
1542
- if isinstance(value, go.GoClass):
1543
- _whatsapp.whatsapp_Message_Body_Set(self.handle, value.handle)
1544
- else:
1545
- _whatsapp.whatsapp_Message_Body_Set(self.handle, value)
1546
- @property
1547
- def Timestamp(self):
1548
- return _whatsapp.whatsapp_Message_Timestamp_Get(self.handle)
1549
- @Timestamp.setter
1550
- def Timestamp(self, value):
1551
- if isinstance(value, go.GoClass):
1552
- _whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value.handle)
1553
- else:
1554
- _whatsapp.whatsapp_Message_Timestamp_Set(self.handle, value)
1555
- @property
1556
- def IsCarbon(self):
1557
- return _whatsapp.whatsapp_Message_IsCarbon_Get(self.handle)
1558
- @IsCarbon.setter
1559
- def IsCarbon(self, value):
1560
- if isinstance(value, go.GoClass):
1561
- _whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value.handle)
1562
- else:
1563
- _whatsapp.whatsapp_Message_IsCarbon_Set(self.handle, value)
1564
- @property
1565
- def IsForwarded(self):
1566
- return _whatsapp.whatsapp_Message_IsForwarded_Get(self.handle)
1567
- @IsForwarded.setter
1568
- def IsForwarded(self, value):
1569
- if isinstance(value, go.GoClass):
1570
- _whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value.handle)
1571
- else:
1572
- _whatsapp.whatsapp_Message_IsForwarded_Set(self.handle, value)
1573
- @property
1574
- def ReplyID(self):
1575
- return _whatsapp.whatsapp_Message_ReplyID_Get(self.handle)
1576
- @ReplyID.setter
1577
- def ReplyID(self, value):
1578
- if isinstance(value, go.GoClass):
1579
- _whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value.handle)
1580
- else:
1581
- _whatsapp.whatsapp_Message_ReplyID_Set(self.handle, value)
1582
- @property
1583
- def ReplyBody(self):
1584
- return _whatsapp.whatsapp_Message_ReplyBody_Get(self.handle)
1585
- @ReplyBody.setter
1586
- def ReplyBody(self, value):
2252
+ def Latitude(self):
2253
+ return _whatsapp.whatsapp_Location_Latitude_Get(self.handle)
2254
+ @Latitude.setter
2255
+ def Latitude(self, value):
1587
2256
  if isinstance(value, go.GoClass):
1588
- _whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value.handle)
2257
+ _whatsapp.whatsapp_Location_Latitude_Set(self.handle, value.handle)
1589
2258
  else:
1590
- _whatsapp.whatsapp_Message_ReplyBody_Set(self.handle, value)
2259
+ _whatsapp.whatsapp_Location_Latitude_Set(self.handle, value)
1591
2260
  @property
1592
- def Attachments(self):
1593
- return Slice_whatsapp_Attachment(handle=_whatsapp.whatsapp_Message_Attachments_Get(self.handle))
1594
- @Attachments.setter
1595
- def Attachments(self, value):
2261
+ def Longitude(self):
2262
+ return _whatsapp.whatsapp_Location_Longitude_Get(self.handle)
2263
+ @Longitude.setter
2264
+ def Longitude(self, value):
1596
2265
  if isinstance(value, go.GoClass):
1597
- _whatsapp.whatsapp_Message_Attachments_Set(self.handle, value.handle)
2266
+ _whatsapp.whatsapp_Location_Longitude_Set(self.handle, value.handle)
1598
2267
  else:
1599
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2268
+ _whatsapp.whatsapp_Location_Longitude_Set(self.handle, value)
1600
2269
  @property
1601
- def Preview(self):
1602
- return Preview(handle=_whatsapp.whatsapp_Message_Preview_Get(self.handle))
1603
- @Preview.setter
1604
- def Preview(self, value):
2270
+ def Accuracy(self):
2271
+ return _whatsapp.whatsapp_Location_Accuracy_Get(self.handle)
2272
+ @Accuracy.setter
2273
+ def Accuracy(self, value):
1605
2274
  if isinstance(value, go.GoClass):
1606
- _whatsapp.whatsapp_Message_Preview_Set(self.handle, value.handle)
2275
+ _whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value.handle)
1607
2276
  else:
1608
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2277
+ _whatsapp.whatsapp_Location_Accuracy_Set(self.handle, value)
1609
2278
  @property
1610
- def Location(self):
1611
- return Location(handle=_whatsapp.whatsapp_Message_Location_Get(self.handle))
1612
- @Location.setter
1613
- def Location(self, value):
2279
+ def IsLive(self):
2280
+ return _whatsapp.whatsapp_Location_IsLive_Get(self.handle)
2281
+ @IsLive.setter
2282
+ def IsLive(self, value):
1614
2283
  if isinstance(value, go.GoClass):
1615
- _whatsapp.whatsapp_Message_Location_Set(self.handle, value.handle)
2284
+ _whatsapp.whatsapp_Location_IsLive_Set(self.handle, value.handle)
1616
2285
  else:
1617
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2286
+ _whatsapp.whatsapp_Location_IsLive_Set(self.handle, value)
1618
2287
  @property
1619
- def MentionJIDs(self):
1620
- return go.Slice_string(handle=_whatsapp.whatsapp_Message_MentionJIDs_Get(self.handle))
1621
- @MentionJIDs.setter
1622
- def MentionJIDs(self, value):
2288
+ def Name(self):
2289
+ """Optional fields given for named locations.
2290
+ """
2291
+ return _whatsapp.whatsapp_Location_Name_Get(self.handle)
2292
+ @Name.setter
2293
+ def Name(self, value):
1623
2294
  if isinstance(value, go.GoClass):
1624
- _whatsapp.whatsapp_Message_MentionJIDs_Set(self.handle, value.handle)
2295
+ _whatsapp.whatsapp_Location_Name_Set(self.handle, value.handle)
1625
2296
  else:
1626
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2297
+ _whatsapp.whatsapp_Location_Name_Set(self.handle, value)
1627
2298
  @property
1628
- def Receipts(self):
1629
- return Slice_whatsapp_Receipt(handle=_whatsapp.whatsapp_Message_Receipts_Get(self.handle))
1630
- @Receipts.setter
1631
- def Receipts(self, value):
2299
+ def Address(self):
2300
+ return _whatsapp.whatsapp_Location_Address_Get(self.handle)
2301
+ @Address.setter
2302
+ def Address(self, value):
1632
2303
  if isinstance(value, go.GoClass):
1633
- _whatsapp.whatsapp_Message_Receipts_Set(self.handle, value.handle)
2304
+ _whatsapp.whatsapp_Location_Address_Set(self.handle, value.handle)
1634
2305
  else:
1635
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2306
+ _whatsapp.whatsapp_Location_Address_Set(self.handle, value)
1636
2307
  @property
1637
- def Reactions(self):
1638
- return Slice_whatsapp_Message(handle=_whatsapp.whatsapp_Message_Reactions_Get(self.handle))
1639
- @Reactions.setter
1640
- def Reactions(self, value):
2308
+ def URL(self):
2309
+ return _whatsapp.whatsapp_Location_URL_Get(self.handle)
2310
+ @URL.setter
2311
+ def URL(self, value):
1641
2312
  if isinstance(value, go.GoClass):
1642
- _whatsapp.whatsapp_Message_Reactions_Set(self.handle, value.handle)
2313
+ _whatsapp.whatsapp_Location_URL_Set(self.handle, value.handle)
1643
2314
  else:
1644
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2315
+ _whatsapp.whatsapp_Location_URL_Set(self.handle, value)
1645
2316
 
1646
- # Python type for struct whatsapp.GroupSubject
1647
- class GroupSubject(go.GoClass):
1648
- """A GroupSubject represents the user-defined group description and attached metadata thereof, for a\ngiven [Group].\n"""
2317
+ # Python type for struct whatsapp.Presence
2318
+ class Presence(go.GoClass):
2319
+ """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"""
1649
2320
  def __init__(self, *args, **kwargs):
1650
2321
  """
1651
2322
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -1659,25 +2330,25 @@ class GroupSubject(go.GoClass):
1659
2330
  self.handle = args[0].handle
1660
2331
  _whatsapp.IncRef(self.handle)
1661
2332
  else:
1662
- self.handle = _whatsapp.whatsapp_GroupSubject_CTor()
2333
+ self.handle = _whatsapp.whatsapp_Presence_CTor()
1663
2334
  _whatsapp.IncRef(self.handle)
1664
2335
  if 0 < len(args):
1665
- self.Subject = args[0]
1666
- if "Subject" in kwargs:
1667
- self.Subject = kwargs["Subject"]
2336
+ self.JID = args[0]
2337
+ if "JID" in kwargs:
2338
+ self.JID = kwargs["JID"]
1668
2339
  if 1 < len(args):
1669
- self.SetAt = args[1]
1670
- if "SetAt" in kwargs:
1671
- self.SetAt = kwargs["SetAt"]
2340
+ self.Kind = args[1]
2341
+ if "Kind" in kwargs:
2342
+ self.Kind = kwargs["Kind"]
1672
2343
  if 2 < len(args):
1673
- self.SetByJID = args[2]
1674
- if "SetByJID" in kwargs:
1675
- self.SetByJID = kwargs["SetByJID"]
2344
+ self.LastSeen = args[2]
2345
+ if "LastSeen" in kwargs:
2346
+ self.LastSeen = kwargs["LastSeen"]
1676
2347
  def __del__(self):
1677
2348
  _whatsapp.DecRef(self.handle)
1678
2349
  def __str__(self):
1679
2350
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1680
- sv = 'whatsapp.GroupSubject{'
2351
+ sv = 'whatsapp.Presence{'
1681
2352
  first = True
1682
2353
  for v in pr:
1683
2354
  if callable(v[1]):
@@ -1690,38 +2361,38 @@ class GroupSubject(go.GoClass):
1690
2361
  return sv + '}'
1691
2362
  def __repr__(self):
1692
2363
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1693
- sv = 'whatsapp.GroupSubject ( '
2364
+ sv = 'whatsapp.Presence ( '
1694
2365
  for v in pr:
1695
2366
  if not callable(v[1]):
1696
- sv += v[0] + '=' + str(v[1]) + ', '
1697
- return sv + ')'
1698
- @property
1699
- def Subject(self):
1700
- return _whatsapp.whatsapp_GroupSubject_Subject_Get(self.handle)
1701
- @Subject.setter
1702
- def Subject(self, value):
2367
+ sv += v[0] + '=' + str(v[1]) + ', '
2368
+ return sv + ')'
2369
+ @property
2370
+ def JID(self):
2371
+ return _whatsapp.whatsapp_Presence_JID_Get(self.handle)
2372
+ @JID.setter
2373
+ def JID(self, value):
1703
2374
  if isinstance(value, go.GoClass):
1704
- _whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value.handle)
2375
+ _whatsapp.whatsapp_Presence_JID_Set(self.handle, value.handle)
1705
2376
  else:
1706
- _whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value)
2377
+ _whatsapp.whatsapp_Presence_JID_Set(self.handle, value)
1707
2378
  @property
1708
- def SetAt(self):
1709
- return _whatsapp.whatsapp_GroupSubject_SetAt_Get(self.handle)
1710
- @SetAt.setter
1711
- def SetAt(self, value):
2379
+ def Kind(self):
2380
+ return _whatsapp.whatsapp_Presence_Kind_Get(self.handle)
2381
+ @Kind.setter
2382
+ def Kind(self, value):
1712
2383
  if isinstance(value, go.GoClass):
1713
- _whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value.handle)
2384
+ _whatsapp.whatsapp_Presence_Kind_Set(self.handle, value.handle)
1714
2385
  else:
1715
- _whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value)
2386
+ _whatsapp.whatsapp_Presence_Kind_Set(self.handle, value)
1716
2387
  @property
1717
- def SetByJID(self):
1718
- return _whatsapp.whatsapp_GroupSubject_SetByJID_Get(self.handle)
1719
- @SetByJID.setter
1720
- def SetByJID(self, value):
2388
+ def LastSeen(self):
2389
+ return _whatsapp.whatsapp_Presence_LastSeen_Get(self.handle)
2390
+ @LastSeen.setter
2391
+ def LastSeen(self, value):
1721
2392
  if isinstance(value, go.GoClass):
1722
- _whatsapp.whatsapp_GroupSubject_SetByJID_Set(self.handle, value.handle)
2393
+ _whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value.handle)
1723
2394
  else:
1724
- _whatsapp.whatsapp_GroupSubject_SetByJID_Set(self.handle, value)
2395
+ _whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value)
1725
2396
 
1726
2397
  # Python type for struct whatsapp.Preview
1727
2398
  class Preview(go.GoClass):
@@ -1829,9 +2500,9 @@ class Preview(go.GoClass):
1829
2500
  else:
1830
2501
  raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1831
2502
 
1832
- # Python type for struct whatsapp.Attachment
1833
- class Attachment(go.GoClass):
1834
- """A Attachment represents additional binary data (e.g. images, videos, documents) provided alongside\na message, for display or storage on the recepient client.\n"""
2503
+ # Python type for struct whatsapp.Receipt
2504
+ class Receipt(go.GoClass):
2505
+ """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"""
1835
2506
  def __init__(self, *args, **kwargs):
1836
2507
  """
1837
2508
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -1845,29 +2516,37 @@ class Attachment(go.GoClass):
1845
2516
  self.handle = args[0].handle
1846
2517
  _whatsapp.IncRef(self.handle)
1847
2518
  else:
1848
- self.handle = _whatsapp.whatsapp_Attachment_CTor()
2519
+ self.handle = _whatsapp.whatsapp_Receipt_CTor()
1849
2520
  _whatsapp.IncRef(self.handle)
1850
2521
  if 0 < len(args):
1851
- self.MIME = args[0]
1852
- if "MIME" in kwargs:
1853
- self.MIME = kwargs["MIME"]
2522
+ self.Kind = args[0]
2523
+ if "Kind" in kwargs:
2524
+ self.Kind = kwargs["Kind"]
1854
2525
  if 1 < len(args):
1855
- self.Filename = args[1]
1856
- if "Filename" in kwargs:
1857
- self.Filename = kwargs["Filename"]
2526
+ self.MessageIDs = args[1]
2527
+ if "MessageIDs" in kwargs:
2528
+ self.MessageIDs = kwargs["MessageIDs"]
1858
2529
  if 2 < len(args):
1859
- self.Caption = args[2]
1860
- if "Caption" in kwargs:
1861
- self.Caption = kwargs["Caption"]
2530
+ self.JID = args[2]
2531
+ if "JID" in kwargs:
2532
+ self.JID = kwargs["JID"]
1862
2533
  if 3 < len(args):
1863
- self.Data = args[3]
1864
- if "Data" in kwargs:
1865
- self.Data = kwargs["Data"]
2534
+ self.GroupJID = args[3]
2535
+ if "GroupJID" in kwargs:
2536
+ self.GroupJID = kwargs["GroupJID"]
2537
+ if 4 < len(args):
2538
+ self.Timestamp = args[4]
2539
+ if "Timestamp" in kwargs:
2540
+ self.Timestamp = kwargs["Timestamp"]
2541
+ if 5 < len(args):
2542
+ self.IsCarbon = args[5]
2543
+ if "IsCarbon" in kwargs:
2544
+ self.IsCarbon = kwargs["IsCarbon"]
1866
2545
  def __del__(self):
1867
2546
  _whatsapp.DecRef(self.handle)
1868
2547
  def __str__(self):
1869
2548
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1870
- sv = 'whatsapp.Attachment{'
2549
+ sv = 'whatsapp.Receipt{'
1871
2550
  first = True
1872
2551
  for v in pr:
1873
2552
  if callable(v[1]):
@@ -1880,124 +2559,69 @@ class Attachment(go.GoClass):
1880
2559
  return sv + '}'
1881
2560
  def __repr__(self):
1882
2561
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1883
- sv = 'whatsapp.Attachment ( '
2562
+ sv = 'whatsapp.Receipt ( '
1884
2563
  for v in pr:
1885
2564
  if not callable(v[1]):
1886
2565
  sv += v[0] + '=' + str(v[1]) + ', '
1887
2566
  return sv + ')'
1888
2567
  @property
1889
- def MIME(self):
1890
- return _whatsapp.whatsapp_Attachment_MIME_Get(self.handle)
1891
- @MIME.setter
1892
- def MIME(self, value):
2568
+ def Kind(self):
2569
+ return _whatsapp.whatsapp_Receipt_Kind_Get(self.handle)
2570
+ @Kind.setter
2571
+ def Kind(self, value):
1893
2572
  if isinstance(value, go.GoClass):
1894
- _whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value.handle)
2573
+ _whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value.handle)
1895
2574
  else:
1896
- _whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value)
2575
+ _whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value)
1897
2576
  @property
1898
- def Filename(self):
1899
- return _whatsapp.whatsapp_Attachment_Filename_Get(self.handle)
1900
- @Filename.setter
1901
- def Filename(self, value):
2577
+ def MessageIDs(self):
2578
+ return go.Slice_string(handle=_whatsapp.whatsapp_Receipt_MessageIDs_Get(self.handle))
2579
+ @MessageIDs.setter
2580
+ def MessageIDs(self, value):
1902
2581
  if isinstance(value, go.GoClass):
1903
- _whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value.handle)
2582
+ _whatsapp.whatsapp_Receipt_MessageIDs_Set(self.handle, value.handle)
1904
2583
  else:
1905
- _whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value)
2584
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1906
2585
  @property
1907
- def Caption(self):
1908
- return _whatsapp.whatsapp_Attachment_Caption_Get(self.handle)
1909
- @Caption.setter
1910
- def Caption(self, value):
2586
+ def JID(self):
2587
+ return _whatsapp.whatsapp_Receipt_JID_Get(self.handle)
2588
+ @JID.setter
2589
+ def JID(self, value):
1911
2590
  if isinstance(value, go.GoClass):
1912
- _whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value.handle)
2591
+ _whatsapp.whatsapp_Receipt_JID_Set(self.handle, value.handle)
1913
2592
  else:
1914
- _whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value)
2593
+ _whatsapp.whatsapp_Receipt_JID_Set(self.handle, value)
1915
2594
  @property
1916
- def Data(self):
1917
- return go.Slice_byte(handle=_whatsapp.whatsapp_Attachment_Data_Get(self.handle))
1918
- @Data.setter
1919
- def Data(self, value):
2595
+ def GroupJID(self):
2596
+ return _whatsapp.whatsapp_Receipt_GroupJID_Get(self.handle)
2597
+ @GroupJID.setter
2598
+ def GroupJID(self, value):
1920
2599
  if isinstance(value, go.GoClass):
1921
- _whatsapp.whatsapp_Attachment_Data_Set(self.handle, value.handle)
1922
- else:
1923
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
1924
- def GetSpec(self, ctx):
1925
- """GetSpec(object ctx) object, str
1926
-
1927
- GetSpec returns metadata for this attachment, as derived from the underlying attachment data.
1928
- """
1929
- return go.Ptr_media_Spec(handle=_whatsapp.whatsapp_Attachment_GetSpec(self.handle, ctx.handle))
1930
-
1931
- # Python type for struct whatsapp.Avatar
1932
- class Avatar(go.GoClass):
1933
- """A Avatar represents a small image set for a Contact or Group.\n"""
1934
- def __init__(self, *args, **kwargs):
1935
- """
1936
- handle=A Go-side object is always initialized with an explicit handle=arg
1937
- otherwise parameters can be unnamed in order of field names or named fields
1938
- in which case a new Go object is constructed first
1939
- """
1940
- if len(kwargs) == 1 and 'handle' in kwargs:
1941
- self.handle = kwargs['handle']
1942
- _whatsapp.IncRef(self.handle)
1943
- elif len(args) == 1 and isinstance(args[0], go.GoClass):
1944
- self.handle = args[0].handle
1945
- _whatsapp.IncRef(self.handle)
2600
+ _whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value.handle)
1946
2601
  else:
1947
- self.handle = _whatsapp.whatsapp_Avatar_CTor()
1948
- _whatsapp.IncRef(self.handle)
1949
- if 0 < len(args):
1950
- self.ID = args[0]
1951
- if "ID" in kwargs:
1952
- self.ID = kwargs["ID"]
1953
- if 1 < len(args):
1954
- self.URL = args[1]
1955
- if "URL" in kwargs:
1956
- self.URL = kwargs["URL"]
1957
- def __del__(self):
1958
- _whatsapp.DecRef(self.handle)
1959
- def __str__(self):
1960
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1961
- sv = 'whatsapp.Avatar{'
1962
- first = True
1963
- for v in pr:
1964
- if callable(v[1]):
1965
- continue
1966
- if first:
1967
- first = False
1968
- else:
1969
- sv += ', '
1970
- sv += v[0] + '=' + str(v[1])
1971
- return sv + '}'
1972
- def __repr__(self):
1973
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
1974
- sv = 'whatsapp.Avatar ( '
1975
- for v in pr:
1976
- if not callable(v[1]):
1977
- sv += v[0] + '=' + str(v[1]) + ', '
1978
- return sv + ')'
2602
+ _whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value)
1979
2603
  @property
1980
- def ID(self):
1981
- return _whatsapp.whatsapp_Avatar_ID_Get(self.handle)
1982
- @ID.setter
1983
- def ID(self, value):
2604
+ def Timestamp(self):
2605
+ return _whatsapp.whatsapp_Receipt_Timestamp_Get(self.handle)
2606
+ @Timestamp.setter
2607
+ def Timestamp(self, value):
1984
2608
  if isinstance(value, go.GoClass):
1985
- _whatsapp.whatsapp_Avatar_ID_Set(self.handle, value.handle)
2609
+ _whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value.handle)
1986
2610
  else:
1987
- _whatsapp.whatsapp_Avatar_ID_Set(self.handle, value)
2611
+ _whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value)
1988
2612
  @property
1989
- def URL(self):
1990
- return _whatsapp.whatsapp_Avatar_URL_Get(self.handle)
1991
- @URL.setter
1992
- def URL(self, value):
2613
+ def IsCarbon(self):
2614
+ return _whatsapp.whatsapp_Receipt_IsCarbon_Get(self.handle)
2615
+ @IsCarbon.setter
2616
+ def IsCarbon(self, value):
1993
2617
  if isinstance(value, go.GoClass):
1994
- _whatsapp.whatsapp_Avatar_URL_Set(self.handle, value.handle)
2618
+ _whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value.handle)
1995
2619
  else:
1996
- _whatsapp.whatsapp_Avatar_URL_Set(self.handle, value)
2620
+ _whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value)
1997
2621
 
1998
- # Python type for struct whatsapp.GroupParticipant
1999
- class GroupParticipant(go.GoClass):
2000
- """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"""
2622
+ # Python type for struct whatsapp.Attachment
2623
+ class Attachment(go.GoClass):
2624
+ """A Attachment represents additional binary data (e.g. images, videos, documents) provided alongside\na message, for display or storage on the recepient client.\n"""
2001
2625
  def __init__(self, *args, **kwargs):
2002
2626
  """
2003
2627
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -2011,25 +2635,29 @@ class GroupParticipant(go.GoClass):
2011
2635
  self.handle = args[0].handle
2012
2636
  _whatsapp.IncRef(self.handle)
2013
2637
  else:
2014
- self.handle = _whatsapp.whatsapp_GroupParticipant_CTor()
2638
+ self.handle = _whatsapp.whatsapp_Attachment_CTor()
2015
2639
  _whatsapp.IncRef(self.handle)
2016
2640
  if 0 < len(args):
2017
- self.JID = args[0]
2018
- if "JID" in kwargs:
2019
- self.JID = kwargs["JID"]
2641
+ self.MIME = args[0]
2642
+ if "MIME" in kwargs:
2643
+ self.MIME = kwargs["MIME"]
2020
2644
  if 1 < len(args):
2021
- self.Affiliation = args[1]
2022
- if "Affiliation" in kwargs:
2023
- self.Affiliation = kwargs["Affiliation"]
2645
+ self.Filename = args[1]
2646
+ if "Filename" in kwargs:
2647
+ self.Filename = kwargs["Filename"]
2024
2648
  if 2 < len(args):
2025
- self.Action = args[2]
2026
- if "Action" in kwargs:
2027
- self.Action = kwargs["Action"]
2649
+ self.Caption = args[2]
2650
+ if "Caption" in kwargs:
2651
+ self.Caption = kwargs["Caption"]
2652
+ if 3 < len(args):
2653
+ self.Data = args[3]
2654
+ if "Data" in kwargs:
2655
+ self.Data = kwargs["Data"]
2028
2656
  def __del__(self):
2029
2657
  _whatsapp.DecRef(self.handle)
2030
2658
  def __str__(self):
2031
2659
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2032
- sv = 'whatsapp.GroupParticipant{'
2660
+ sv = 'whatsapp.Attachment{'
2033
2661
  first = True
2034
2662
  for v in pr:
2035
2663
  if callable(v[1]):
@@ -2042,38 +2670,53 @@ class GroupParticipant(go.GoClass):
2042
2670
  return sv + '}'
2043
2671
  def __repr__(self):
2044
2672
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2045
- sv = 'whatsapp.GroupParticipant ( '
2673
+ sv = 'whatsapp.Attachment ( '
2046
2674
  for v in pr:
2047
2675
  if not callable(v[1]):
2048
2676
  sv += v[0] + '=' + str(v[1]) + ', '
2049
2677
  return sv + ')'
2050
2678
  @property
2051
- def JID(self):
2052
- return _whatsapp.whatsapp_GroupParticipant_JID_Get(self.handle)
2053
- @JID.setter
2054
- def JID(self, value):
2679
+ def MIME(self):
2680
+ return _whatsapp.whatsapp_Attachment_MIME_Get(self.handle)
2681
+ @MIME.setter
2682
+ def MIME(self, value):
2683
+ if isinstance(value, go.GoClass):
2684
+ _whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value.handle)
2685
+ else:
2686
+ _whatsapp.whatsapp_Attachment_MIME_Set(self.handle, value)
2687
+ @property
2688
+ def Filename(self):
2689
+ return _whatsapp.whatsapp_Attachment_Filename_Get(self.handle)
2690
+ @Filename.setter
2691
+ def Filename(self, value):
2055
2692
  if isinstance(value, go.GoClass):
2056
- _whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value.handle)
2693
+ _whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value.handle)
2057
2694
  else:
2058
- _whatsapp.whatsapp_GroupParticipant_JID_Set(self.handle, value)
2695
+ _whatsapp.whatsapp_Attachment_Filename_Set(self.handle, value)
2059
2696
  @property
2060
- def Affiliation(self):
2061
- return _whatsapp.whatsapp_GroupParticipant_Affiliation_Get(self.handle)
2062
- @Affiliation.setter
2063
- def Affiliation(self, value):
2697
+ def Caption(self):
2698
+ return _whatsapp.whatsapp_Attachment_Caption_Get(self.handle)
2699
+ @Caption.setter
2700
+ def Caption(self, value):
2064
2701
  if isinstance(value, go.GoClass):
2065
- _whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value.handle)
2702
+ _whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value.handle)
2066
2703
  else:
2067
- _whatsapp.whatsapp_GroupParticipant_Affiliation_Set(self.handle, value)
2704
+ _whatsapp.whatsapp_Attachment_Caption_Set(self.handle, value)
2068
2705
  @property
2069
- def Action(self):
2070
- return _whatsapp.whatsapp_GroupParticipant_Action_Get(self.handle)
2071
- @Action.setter
2072
- def Action(self, value):
2706
+ def Data(self):
2707
+ return go.Slice_byte(handle=_whatsapp.whatsapp_Attachment_Data_Get(self.handle))
2708
+ @Data.setter
2709
+ def Data(self, value):
2073
2710
  if isinstance(value, go.GoClass):
2074
- _whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value.handle)
2711
+ _whatsapp.whatsapp_Attachment_Data_Set(self.handle, value.handle)
2075
2712
  else:
2076
- _whatsapp.whatsapp_GroupParticipant_Action_Set(self.handle, value)
2713
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2714
+ def GetSpec(self, ctx):
2715
+ """GetSpec(object ctx) object, str
2716
+
2717
+ GetSpec returns metadata for this attachment, as derived from the underlying attachment data.
2718
+ """
2719
+ return go.Ptr_media_Spec(handle=_whatsapp.whatsapp_Attachment_GetSpec(self.handle, ctx.handle))
2077
2720
 
2078
2721
  # Python type for struct whatsapp.Group
2079
2722
  class Group(go.GoClass):
@@ -2181,153 +2824,9 @@ class Group(go.GoClass):
2181
2824
  else:
2182
2825
  raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2183
2826
 
2184
- # Python type for struct whatsapp.LinkedDevice
2185
- class LinkedDevice(go.GoClass):
2186
- """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"""
2187
- def __init__(self, *args, **kwargs):
2188
- """
2189
- handle=A Go-side object is always initialized with an explicit handle=arg
2190
- otherwise parameters can be unnamed in order of field names or named fields
2191
- in which case a new Go object is constructed first
2192
- """
2193
- if len(kwargs) == 1 and 'handle' in kwargs:
2194
- self.handle = kwargs['handle']
2195
- _whatsapp.IncRef(self.handle)
2196
- elif len(args) == 1 and isinstance(args[0], go.GoClass):
2197
- self.handle = args[0].handle
2198
- _whatsapp.IncRef(self.handle)
2199
- else:
2200
- self.handle = _whatsapp.whatsapp_LinkedDevice_CTor()
2201
- _whatsapp.IncRef(self.handle)
2202
- if 0 < len(args):
2203
- self.ID = args[0]
2204
- if "ID" in kwargs:
2205
- self.ID = kwargs["ID"]
2206
- def __del__(self):
2207
- _whatsapp.DecRef(self.handle)
2208
- def __str__(self):
2209
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2210
- sv = 'whatsapp.LinkedDevice{'
2211
- first = True
2212
- for v in pr:
2213
- if callable(v[1]):
2214
- continue
2215
- if first:
2216
- first = False
2217
- else:
2218
- sv += ', '
2219
- sv += v[0] + '=' + str(v[1])
2220
- return sv + '}'
2221
- def __repr__(self):
2222
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2223
- sv = 'whatsapp.LinkedDevice ( '
2224
- for v in pr:
2225
- if not callable(v[1]):
2226
- sv += v[0] + '=' + str(v[1]) + ', '
2227
- return sv + ')'
2228
- @property
2229
- def ID(self):
2230
- """ID is an opaque string identifying this LinkedDevice to the Session. Noted that this string
2231
- is currently equivalent to a password, and needs to be protected accordingly.
2232
- """
2233
- return _whatsapp.whatsapp_LinkedDevice_ID_Get(self.handle)
2234
- @ID.setter
2235
- def ID(self, value):
2236
- if isinstance(value, go.GoClass):
2237
- _whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value.handle)
2238
- else:
2239
- _whatsapp.whatsapp_LinkedDevice_ID_Set(self.handle, value)
2240
- def JID(self):
2241
- """JID() object
2242
-
2243
- JID returns the WhatsApp JID corresponding to the LinkedDevice ID. Empty or invalid device IDs
2244
- may return invalid JIDs, and this function does not handle errors.
2245
- """
2246
- return go.types_JID(handle=_whatsapp.whatsapp_LinkedDevice_JID(self.handle))
2247
-
2248
- # Python type for struct whatsapp.Presence
2249
- class Presence(go.GoClass):
2250
- """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"""
2251
- def __init__(self, *args, **kwargs):
2252
- """
2253
- handle=A Go-side object is always initialized with an explicit handle=arg
2254
- otherwise parameters can be unnamed in order of field names or named fields
2255
- in which case a new Go object is constructed first
2256
- """
2257
- if len(kwargs) == 1 and 'handle' in kwargs:
2258
- self.handle = kwargs['handle']
2259
- _whatsapp.IncRef(self.handle)
2260
- elif len(args) == 1 and isinstance(args[0], go.GoClass):
2261
- self.handle = args[0].handle
2262
- _whatsapp.IncRef(self.handle)
2263
- else:
2264
- self.handle = _whatsapp.whatsapp_Presence_CTor()
2265
- _whatsapp.IncRef(self.handle)
2266
- if 0 < len(args):
2267
- self.JID = args[0]
2268
- if "JID" in kwargs:
2269
- self.JID = kwargs["JID"]
2270
- if 1 < len(args):
2271
- self.Kind = args[1]
2272
- if "Kind" in kwargs:
2273
- self.Kind = kwargs["Kind"]
2274
- if 2 < len(args):
2275
- self.LastSeen = args[2]
2276
- if "LastSeen" in kwargs:
2277
- self.LastSeen = kwargs["LastSeen"]
2278
- def __del__(self):
2279
- _whatsapp.DecRef(self.handle)
2280
- def __str__(self):
2281
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2282
- sv = 'whatsapp.Presence{'
2283
- first = True
2284
- for v in pr:
2285
- if callable(v[1]):
2286
- continue
2287
- if first:
2288
- first = False
2289
- else:
2290
- sv += ', '
2291
- sv += v[0] + '=' + str(v[1])
2292
- return sv + '}'
2293
- def __repr__(self):
2294
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2295
- sv = 'whatsapp.Presence ( '
2296
- for v in pr:
2297
- if not callable(v[1]):
2298
- sv += v[0] + '=' + str(v[1]) + ', '
2299
- return sv + ')'
2300
- @property
2301
- def JID(self):
2302
- return _whatsapp.whatsapp_Presence_JID_Get(self.handle)
2303
- @JID.setter
2304
- def JID(self, value):
2305
- if isinstance(value, go.GoClass):
2306
- _whatsapp.whatsapp_Presence_JID_Set(self.handle, value.handle)
2307
- else:
2308
- _whatsapp.whatsapp_Presence_JID_Set(self.handle, value)
2309
- @property
2310
- def Kind(self):
2311
- return _whatsapp.whatsapp_Presence_Kind_Get(self.handle)
2312
- @Kind.setter
2313
- def Kind(self, value):
2314
- if isinstance(value, go.GoClass):
2315
- _whatsapp.whatsapp_Presence_Kind_Set(self.handle, value.handle)
2316
- else:
2317
- _whatsapp.whatsapp_Presence_Kind_Set(self.handle, value)
2318
- @property
2319
- def LastSeen(self):
2320
- return _whatsapp.whatsapp_Presence_LastSeen_Get(self.handle)
2321
- @LastSeen.setter
2322
- def LastSeen(self, value):
2323
- if isinstance(value, go.GoClass):
2324
- _whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value.handle)
2325
- else:
2326
- _whatsapp.whatsapp_Presence_LastSeen_Set(self.handle, value)
2327
-
2328
- # Python type for struct whatsapp.Receipt
2329
- class Receipt(go.GoClass):
2330
- """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"""
2827
+ # Python type for struct whatsapp.GroupSubject
2828
+ class GroupSubject(go.GoClass):
2829
+ """A GroupSubject represents the user-defined group description and attached metadata thereof, for a\ngiven [Group].\n"""
2331
2830
  def __init__(self, *args, **kwargs):
2332
2831
  """
2333
2832
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -2341,37 +2840,25 @@ class Receipt(go.GoClass):
2341
2840
  self.handle = args[0].handle
2342
2841
  _whatsapp.IncRef(self.handle)
2343
2842
  else:
2344
- self.handle = _whatsapp.whatsapp_Receipt_CTor()
2843
+ self.handle = _whatsapp.whatsapp_GroupSubject_CTor()
2345
2844
  _whatsapp.IncRef(self.handle)
2346
2845
  if 0 < len(args):
2347
- self.Kind = args[0]
2348
- if "Kind" in kwargs:
2349
- self.Kind = kwargs["Kind"]
2846
+ self.Subject = args[0]
2847
+ if "Subject" in kwargs:
2848
+ self.Subject = kwargs["Subject"]
2350
2849
  if 1 < len(args):
2351
- self.MessageIDs = args[1]
2352
- if "MessageIDs" in kwargs:
2353
- self.MessageIDs = kwargs["MessageIDs"]
2850
+ self.SetAt = args[1]
2851
+ if "SetAt" in kwargs:
2852
+ self.SetAt = kwargs["SetAt"]
2354
2853
  if 2 < len(args):
2355
- self.JID = args[2]
2356
- if "JID" in kwargs:
2357
- self.JID = kwargs["JID"]
2358
- if 3 < len(args):
2359
- self.GroupJID = args[3]
2360
- if "GroupJID" in kwargs:
2361
- self.GroupJID = kwargs["GroupJID"]
2362
- if 4 < len(args):
2363
- self.Timestamp = args[4]
2364
- if "Timestamp" in kwargs:
2365
- self.Timestamp = kwargs["Timestamp"]
2366
- if 5 < len(args):
2367
- self.IsCarbon = args[5]
2368
- if "IsCarbon" in kwargs:
2369
- self.IsCarbon = kwargs["IsCarbon"]
2854
+ self.SetByJID = args[2]
2855
+ if "SetByJID" in kwargs:
2856
+ self.SetByJID = kwargs["SetByJID"]
2370
2857
  def __del__(self):
2371
2858
  _whatsapp.DecRef(self.handle)
2372
2859
  def __str__(self):
2373
2860
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2374
- sv = 'whatsapp.Receipt{'
2861
+ sv = 'whatsapp.GroupSubject{'
2375
2862
  first = True
2376
2863
  for v in pr:
2377
2864
  if callable(v[1]):
@@ -2379,74 +2866,47 @@ class Receipt(go.GoClass):
2379
2866
  if first:
2380
2867
  first = False
2381
2868
  else:
2382
- sv += ', '
2383
- sv += v[0] + '=' + str(v[1])
2384
- return sv + '}'
2385
- def __repr__(self):
2386
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2387
- sv = 'whatsapp.Receipt ( '
2388
- for v in pr:
2389
- if not callable(v[1]):
2390
- sv += v[0] + '=' + str(v[1]) + ', '
2391
- return sv + ')'
2392
- @property
2393
- def Kind(self):
2394
- return _whatsapp.whatsapp_Receipt_Kind_Get(self.handle)
2395
- @Kind.setter
2396
- def Kind(self, value):
2397
- if isinstance(value, go.GoClass):
2398
- _whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value.handle)
2399
- else:
2400
- _whatsapp.whatsapp_Receipt_Kind_Set(self.handle, value)
2401
- @property
2402
- def MessageIDs(self):
2403
- return go.Slice_string(handle=_whatsapp.whatsapp_Receipt_MessageIDs_Get(self.handle))
2404
- @MessageIDs.setter
2405
- def MessageIDs(self, value):
2406
- if isinstance(value, go.GoClass):
2407
- _whatsapp.whatsapp_Receipt_MessageIDs_Set(self.handle, value.handle)
2408
- else:
2409
- raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2410
- @property
2411
- def JID(self):
2412
- return _whatsapp.whatsapp_Receipt_JID_Get(self.handle)
2413
- @JID.setter
2414
- def JID(self, value):
2415
- if isinstance(value, go.GoClass):
2416
- _whatsapp.whatsapp_Receipt_JID_Set(self.handle, value.handle)
2417
- else:
2418
- _whatsapp.whatsapp_Receipt_JID_Set(self.handle, value)
2869
+ sv += ', '
2870
+ sv += v[0] + '=' + str(v[1])
2871
+ return sv + '}'
2872
+ def __repr__(self):
2873
+ pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2874
+ sv = 'whatsapp.GroupSubject ( '
2875
+ for v in pr:
2876
+ if not callable(v[1]):
2877
+ sv += v[0] + '=' + str(v[1]) + ', '
2878
+ return sv + ')'
2419
2879
  @property
2420
- def GroupJID(self):
2421
- return _whatsapp.whatsapp_Receipt_GroupJID_Get(self.handle)
2422
- @GroupJID.setter
2423
- def GroupJID(self, value):
2880
+ def Subject(self):
2881
+ return _whatsapp.whatsapp_GroupSubject_Subject_Get(self.handle)
2882
+ @Subject.setter
2883
+ def Subject(self, value):
2424
2884
  if isinstance(value, go.GoClass):
2425
- _whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value.handle)
2885
+ _whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value.handle)
2426
2886
  else:
2427
- _whatsapp.whatsapp_Receipt_GroupJID_Set(self.handle, value)
2887
+ _whatsapp.whatsapp_GroupSubject_Subject_Set(self.handle, value)
2428
2888
  @property
2429
- def Timestamp(self):
2430
- return _whatsapp.whatsapp_Receipt_Timestamp_Get(self.handle)
2431
- @Timestamp.setter
2432
- def Timestamp(self, value):
2889
+ def SetAt(self):
2890
+ return _whatsapp.whatsapp_GroupSubject_SetAt_Get(self.handle)
2891
+ @SetAt.setter
2892
+ def SetAt(self, value):
2433
2893
  if isinstance(value, go.GoClass):
2434
- _whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value.handle)
2894
+ _whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value.handle)
2435
2895
  else:
2436
- _whatsapp.whatsapp_Receipt_Timestamp_Set(self.handle, value)
2896
+ _whatsapp.whatsapp_GroupSubject_SetAt_Set(self.handle, value)
2437
2897
  @property
2438
- def IsCarbon(self):
2439
- return _whatsapp.whatsapp_Receipt_IsCarbon_Get(self.handle)
2440
- @IsCarbon.setter
2441
- def IsCarbon(self, value):
2898
+ def SetByJID(self):
2899
+ return _whatsapp.whatsapp_GroupSubject_SetByJID_Get(self.handle)
2900
+ @SetByJID.setter
2901
+ def SetByJID(self, value):
2442
2902
  if isinstance(value, go.GoClass):
2443
- _whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value.handle)
2903
+ _whatsapp.whatsapp_GroupSubject_SetByJID_Set(self.handle, value.handle)
2444
2904
  else:
2445
- _whatsapp.whatsapp_Receipt_IsCarbon_Set(self.handle, value)
2905
+ _whatsapp.whatsapp_GroupSubject_SetByJID_Set(self.handle, value)
2446
2906
 
2447
- # Python type for struct whatsapp.Call
2448
- class Call(go.GoClass):
2449
- """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"""
2907
+ # Python type for struct whatsapp.Poll
2908
+ class Poll(go.GoClass):
2909
+ """A Poll represents a multiple-choice question, on which each choice might be voted for one or more\ntimes.\n"""
2450
2910
  def __init__(self, *args, **kwargs):
2451
2911
  """
2452
2912
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -2460,25 +2920,21 @@ class Call(go.GoClass):
2460
2920
  self.handle = args[0].handle
2461
2921
  _whatsapp.IncRef(self.handle)
2462
2922
  else:
2463
- self.handle = _whatsapp.whatsapp_Call_CTor()
2923
+ self.handle = _whatsapp.whatsapp_Poll_CTor()
2464
2924
  _whatsapp.IncRef(self.handle)
2465
2925
  if 0 < len(args):
2466
- self.State = args[0]
2467
- if "State" in kwargs:
2468
- self.State = kwargs["State"]
2926
+ self.Title = args[0]
2927
+ if "Title" in kwargs:
2928
+ self.Title = kwargs["Title"]
2469
2929
  if 1 < len(args):
2470
- self.JID = args[1]
2471
- if "JID" in kwargs:
2472
- self.JID = kwargs["JID"]
2473
- if 2 < len(args):
2474
- self.Timestamp = args[2]
2475
- if "Timestamp" in kwargs:
2476
- self.Timestamp = kwargs["Timestamp"]
2930
+ self.Options = args[1]
2931
+ if "Options" in kwargs:
2932
+ self.Options = kwargs["Options"]
2477
2933
  def __del__(self):
2478
2934
  _whatsapp.DecRef(self.handle)
2479
2935
  def __str__(self):
2480
2936
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2481
- sv = 'whatsapp.Call{'
2937
+ sv = 'whatsapp.Poll{'
2482
2938
  first = True
2483
2939
  for v in pr:
2484
2940
  if callable(v[1]):
@@ -2491,42 +2947,33 @@ class Call(go.GoClass):
2491
2947
  return sv + '}'
2492
2948
  def __repr__(self):
2493
2949
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2494
- sv = 'whatsapp.Call ( '
2950
+ sv = 'whatsapp.Poll ( '
2495
2951
  for v in pr:
2496
2952
  if not callable(v[1]):
2497
2953
  sv += v[0] + '=' + str(v[1]) + ', '
2498
2954
  return sv + ')'
2499
2955
  @property
2500
- def State(self):
2501
- return _whatsapp.whatsapp_Call_State_Get(self.handle)
2502
- @State.setter
2503
- def State(self, value):
2504
- if isinstance(value, go.GoClass):
2505
- _whatsapp.whatsapp_Call_State_Set(self.handle, value.handle)
2506
- else:
2507
- _whatsapp.whatsapp_Call_State_Set(self.handle, value)
2508
- @property
2509
- def JID(self):
2510
- return _whatsapp.whatsapp_Call_JID_Get(self.handle)
2511
- @JID.setter
2512
- def JID(self, value):
2956
+ def Title(self):
2957
+ return _whatsapp.whatsapp_Poll_Title_Get(self.handle)
2958
+ @Title.setter
2959
+ def Title(self, value):
2513
2960
  if isinstance(value, go.GoClass):
2514
- _whatsapp.whatsapp_Call_JID_Set(self.handle, value.handle)
2961
+ _whatsapp.whatsapp_Poll_Title_Set(self.handle, value.handle)
2515
2962
  else:
2516
- _whatsapp.whatsapp_Call_JID_Set(self.handle, value)
2963
+ _whatsapp.whatsapp_Poll_Title_Set(self.handle, value)
2517
2964
  @property
2518
- def Timestamp(self):
2519
- return _whatsapp.whatsapp_Call_Timestamp_Get(self.handle)
2520
- @Timestamp.setter
2521
- def Timestamp(self, value):
2965
+ def Options(self):
2966
+ return Slice_whatsapp_PollOption(handle=_whatsapp.whatsapp_Poll_Options_Get(self.handle))
2967
+ @Options.setter
2968
+ def Options(self, value):
2522
2969
  if isinstance(value, go.GoClass):
2523
- _whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value.handle)
2970
+ _whatsapp.whatsapp_Poll_Options_Set(self.handle, value.handle)
2524
2971
  else:
2525
- _whatsapp.whatsapp_Call_Timestamp_Set(self.handle, value)
2972
+ raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2526
2973
 
2527
- # Python type for struct whatsapp.ChatState
2528
- class ChatState(go.GoClass):
2529
- """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"""
2974
+ # Python type for struct whatsapp.Contact
2975
+ class Contact(go.GoClass):
2976
+ """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"""
2530
2977
  def __init__(self, *args, **kwargs):
2531
2978
  """
2532
2979
  handle=A Go-side object is always initialized with an explicit handle=arg
@@ -2540,25 +2987,21 @@ class ChatState(go.GoClass):
2540
2987
  self.handle = args[0].handle
2541
2988
  _whatsapp.IncRef(self.handle)
2542
2989
  else:
2543
- self.handle = _whatsapp.whatsapp_ChatState_CTor()
2990
+ self.handle = _whatsapp.whatsapp_Contact_CTor()
2544
2991
  _whatsapp.IncRef(self.handle)
2545
2992
  if 0 < len(args):
2546
- self.Kind = args[0]
2547
- if "Kind" in kwargs:
2548
- self.Kind = kwargs["Kind"]
2549
- if 1 < len(args):
2550
- self.JID = args[1]
2993
+ self.JID = args[0]
2551
2994
  if "JID" in kwargs:
2552
2995
  self.JID = kwargs["JID"]
2553
- if 2 < len(args):
2554
- self.GroupJID = args[2]
2555
- if "GroupJID" in kwargs:
2556
- self.GroupJID = kwargs["GroupJID"]
2996
+ if 1 < len(args):
2997
+ self.Name = args[1]
2998
+ if "Name" in kwargs:
2999
+ self.Name = kwargs["Name"]
2557
3000
  def __del__(self):
2558
3001
  _whatsapp.DecRef(self.handle)
2559
3002
  def __str__(self):
2560
3003
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2561
- sv = 'whatsapp.ChatState{'
3004
+ sv = 'whatsapp.Contact{'
2562
3005
  first = True
2563
3006
  for v in pr:
2564
3007
  if callable(v[1]):
@@ -2571,38 +3014,29 @@ class ChatState(go.GoClass):
2571
3014
  return sv + '}'
2572
3015
  def __repr__(self):
2573
3016
  pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2574
- sv = 'whatsapp.ChatState ( '
3017
+ sv = 'whatsapp.Contact ( '
2575
3018
  for v in pr:
2576
3019
  if not callable(v[1]):
2577
3020
  sv += v[0] + '=' + str(v[1]) + ', '
2578
3021
  return sv + ')'
2579
3022
  @property
2580
- def Kind(self):
2581
- return _whatsapp.whatsapp_ChatState_Kind_Get(self.handle)
2582
- @Kind.setter
2583
- def Kind(self, value):
2584
- if isinstance(value, go.GoClass):
2585
- _whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value.handle)
2586
- else:
2587
- _whatsapp.whatsapp_ChatState_Kind_Set(self.handle, value)
2588
- @property
2589
3023
  def JID(self):
2590
- return _whatsapp.whatsapp_ChatState_JID_Get(self.handle)
3024
+ return _whatsapp.whatsapp_Contact_JID_Get(self.handle)
2591
3025
  @JID.setter
2592
3026
  def JID(self, value):
2593
3027
  if isinstance(value, go.GoClass):
2594
- _whatsapp.whatsapp_ChatState_JID_Set(self.handle, value.handle)
3028
+ _whatsapp.whatsapp_Contact_JID_Set(self.handle, value.handle)
2595
3029
  else:
2596
- _whatsapp.whatsapp_ChatState_JID_Set(self.handle, value)
3030
+ _whatsapp.whatsapp_Contact_JID_Set(self.handle, value)
2597
3031
  @property
2598
- def GroupJID(self):
2599
- return _whatsapp.whatsapp_ChatState_GroupJID_Get(self.handle)
2600
- @GroupJID.setter
2601
- def GroupJID(self, value):
3032
+ def Name(self):
3033
+ return _whatsapp.whatsapp_Contact_Name_Get(self.handle)
3034
+ @Name.setter
3035
+ def Name(self, value):
2602
3036
  if isinstance(value, go.GoClass):
2603
- _whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value.handle)
3037
+ _whatsapp.whatsapp_Contact_Name_Set(self.handle, value.handle)
2604
3038
  else:
2605
- _whatsapp.whatsapp_ChatState_GroupJID_Set(self.handle, value)
3039
+ _whatsapp.whatsapp_Contact_Name_Set(self.handle, value)
2606
3040
 
2607
3041
  # Python type for struct whatsapp.EventPayload
2608
3042
  class EventPayload(go.GoClass):
@@ -2775,120 +3209,6 @@ class EventPayload(go.GoClass):
2775
3209
  else:
2776
3210
  raise TypeError("supplied argument type {t} is not a go.GoClass".format(t=type(value)))
2777
3211
 
2778
- # Python type for struct whatsapp.Gateway
2779
- class Gateway(go.GoClass):
2780
- """A Gateway represents a persistent process for establishing individual sessions between linked\ndevices and WhatsApp.\n"""
2781
- def __init__(self, *args, **kwargs):
2782
- """
2783
- handle=A Go-side object is always initialized with an explicit handle=arg
2784
- otherwise parameters can be unnamed in order of field names or named fields
2785
- in which case a new Go object is constructed first
2786
- """
2787
- if len(kwargs) == 1 and 'handle' in kwargs:
2788
- self.handle = kwargs['handle']
2789
- _whatsapp.IncRef(self.handle)
2790
- elif len(args) == 1 and isinstance(args[0], go.GoClass):
2791
- self.handle = args[0].handle
2792
- _whatsapp.IncRef(self.handle)
2793
- else:
2794
- self.handle = _whatsapp.whatsapp_Gateway_CTor()
2795
- _whatsapp.IncRef(self.handle)
2796
- if 0 < len(args):
2797
- self.DBPath = args[0]
2798
- if "DBPath" in kwargs:
2799
- self.DBPath = kwargs["DBPath"]
2800
- if 1 < len(args):
2801
- self.Name = args[1]
2802
- if "Name" in kwargs:
2803
- self.Name = kwargs["Name"]
2804
- if 2 < len(args):
2805
- self.LogLevel = args[2]
2806
- if "LogLevel" in kwargs:
2807
- self.LogLevel = kwargs["LogLevel"]
2808
- if 3 < len(args):
2809
- self.TempDir = args[3]
2810
- if "TempDir" in kwargs:
2811
- self.TempDir = kwargs["TempDir"]
2812
- def __del__(self):
2813
- _whatsapp.DecRef(self.handle)
2814
- def __str__(self):
2815
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2816
- sv = 'whatsapp.Gateway{'
2817
- first = True
2818
- for v in pr:
2819
- if callable(v[1]):
2820
- continue
2821
- if first:
2822
- first = False
2823
- else:
2824
- sv += ', '
2825
- sv += v[0] + '=' + str(v[1])
2826
- return sv + '}'
2827
- def __repr__(self):
2828
- pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
2829
- sv = 'whatsapp.Gateway ( '
2830
- for v in pr:
2831
- if not callable(v[1]):
2832
- sv += v[0] + '=' + str(v[1]) + ', '
2833
- return sv + ')'
2834
- @property
2835
- def DBPath(self):
2836
- return _whatsapp.whatsapp_Gateway_DBPath_Get(self.handle)
2837
- @DBPath.setter
2838
- def DBPath(self, value):
2839
- if isinstance(value, go.GoClass):
2840
- _whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value.handle)
2841
- else:
2842
- _whatsapp.whatsapp_Gateway_DBPath_Set(self.handle, value)
2843
- @property
2844
- def Name(self):
2845
- return _whatsapp.whatsapp_Gateway_Name_Get(self.handle)
2846
- @Name.setter
2847
- def Name(self, value):
2848
- if isinstance(value, go.GoClass):
2849
- _whatsapp.whatsapp_Gateway_Name_Set(self.handle, value.handle)
2850
- else:
2851
- _whatsapp.whatsapp_Gateway_Name_Set(self.handle, value)
2852
- @property
2853
- def LogLevel(self):
2854
- return _whatsapp.whatsapp_Gateway_LogLevel_Get(self.handle)
2855
- @LogLevel.setter
2856
- def LogLevel(self, value):
2857
- if isinstance(value, go.GoClass):
2858
- _whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value.handle)
2859
- else:
2860
- _whatsapp.whatsapp_Gateway_LogLevel_Set(self.handle, value)
2861
- @property
2862
- def TempDir(self):
2863
- return _whatsapp.whatsapp_Gateway_TempDir_Get(self.handle)
2864
- @TempDir.setter
2865
- def TempDir(self, value):
2866
- if isinstance(value, go.GoClass):
2867
- _whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value.handle)
2868
- else:
2869
- _whatsapp.whatsapp_Gateway_TempDir_Set(self.handle, value)
2870
- def Init(self):
2871
- """Init() str
2872
-
2873
- Init performs initialization procedures for the Gateway, and is expected to be run before any
2874
- calls to [Gateway.Session].
2875
- """
2876
- return _whatsapp.whatsapp_Gateway_Init(self.handle)
2877
- def NewSession(self, device):
2878
- """NewSession(object device) object
2879
-
2880
- NewSession returns a new [Session] for the LinkedDevice given. If the linked device does not have
2881
- a valid ID, a pair operation will be required, as described in [Session.Login].
2882
- """
2883
- return Session(handle=_whatsapp.whatsapp_Gateway_NewSession(self.handle, device.handle))
2884
- def CleanupSession(self, device):
2885
- """CleanupSession(object device) str
2886
-
2887
- CleanupSession will remove all invalid and obsolete references to the given device, and should be
2888
- used when pairing a new device or unregistering from the Gateway.
2889
- """
2890
- return _whatsapp.whatsapp_Gateway_CleanupSession(self.handle, device.handle)
2891
-
2892
3212
 
2893
3213
  # ---- Slices ---
2894
3214