slidge-whatsapp 0.2.2__cp312-cp312-manylinux_2_36_aarch64.whl → 0.2.6__cp312-cp312-manylinux_2_36_aarch64.whl

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

Potentially problematic release.


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

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