@queenanya/baileys 9.2.1 → 9.4.1

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.
Files changed (327) hide show
  1. package/README.md +349 -1171
  2. package/WAProto/fix-imports.js +74 -18
  3. package/WAProto/index.js +201 -160
  4. package/engine-requirements.js +7 -7
  5. package/lib/Defaults/index.d.ts +19 -0
  6. package/lib/Defaults/index.d.ts.map +1 -1
  7. package/lib/Defaults/index.js +32 -6
  8. package/lib/Defaults/index.js.map +1 -1
  9. package/lib/Signal/libsignal.d.ts.map +1 -1
  10. package/lib/Signal/libsignal.js +61 -2
  11. package/lib/Signal/libsignal.js.map +1 -1
  12. package/lib/Signal/lid-mapping.d.ts +5 -9
  13. package/lib/Signal/lid-mapping.d.ts.map +1 -1
  14. package/lib/Signal/lid-mapping.js +170 -70
  15. package/lib/Signal/lid-mapping.js.map +1 -1
  16. package/lib/Socket/Client/websocket.d.ts +1 -1
  17. package/lib/Socket/Client/websocket.d.ts.map +1 -1
  18. package/lib/Socket/Client/websocket.js +5 -1
  19. package/lib/Socket/Client/websocket.js.map +1 -1
  20. package/lib/Socket/business.d.ts +125 -5
  21. package/lib/Socket/business.d.ts.map +1 -1
  22. package/lib/Socket/business.js +11 -8
  23. package/lib/Socket/business.js.map +1 -1
  24. package/lib/Socket/chats.d.ts +22 -3
  25. package/lib/Socket/chats.d.ts.map +1 -1
  26. package/lib/Socket/chats.js +277 -58
  27. package/lib/Socket/chats.js.map +1 -1
  28. package/lib/Socket/communities.d.ts +125 -5
  29. package/lib/Socket/communities.d.ts.map +1 -1
  30. package/lib/Socket/groups.d.ts +19 -3
  31. package/lib/Socket/groups.d.ts.map +1 -1
  32. package/lib/Socket/groups.js +7 -1
  33. package/lib/Socket/groups.js.map +1 -1
  34. package/lib/Socket/index.d.ts +125 -5
  35. package/lib/Socket/index.d.ts.map +1 -1
  36. package/lib/Socket/index.js +0 -6
  37. package/lib/Socket/index.js.map +1 -1
  38. package/lib/Socket/messages-recv.d.ts +126 -6
  39. package/lib/Socket/messages-recv.d.ts.map +1 -1
  40. package/lib/Socket/messages-recv.js +771 -177
  41. package/lib/Socket/messages-recv.js.map +1 -1
  42. package/lib/Socket/messages-send.d.ts +129 -7
  43. package/lib/Socket/messages-send.d.ts.map +1 -1
  44. package/lib/Socket/messages-send.js +430 -119
  45. package/lib/Socket/messages-send.js.map +1 -1
  46. package/lib/Socket/newsletter.d.ts +20 -5
  47. package/lib/Socket/newsletter.d.ts.map +1 -1
  48. package/lib/Socket/newsletter.js +2 -47
  49. package/lib/Socket/newsletter.js.map +1 -1
  50. package/lib/Socket/socket.d.ts +3 -1
  51. package/lib/Socket/socket.d.ts.map +1 -1
  52. package/lib/Socket/socket.js +151 -29
  53. package/lib/Socket/socket.js.map +1 -1
  54. package/lib/Types/Auth.d.ts +2 -0
  55. package/lib/Types/Auth.d.ts.map +1 -1
  56. package/lib/Types/Call.d.ts +10 -1
  57. package/lib/Types/Call.d.ts.map +1 -1
  58. package/lib/Types/Contact.d.ts +2 -0
  59. package/lib/Types/Contact.d.ts.map +1 -1
  60. package/lib/Types/Events.d.ts +60 -6
  61. package/lib/Types/Events.d.ts.map +1 -1
  62. package/lib/Types/GroupMetadata.d.ts +4 -0
  63. package/lib/Types/GroupMetadata.d.ts.map +1 -1
  64. package/lib/Types/Message.d.ts +530 -16
  65. package/lib/Types/Message.d.ts.map +1 -1
  66. package/lib/Types/Message.js.map +1 -1
  67. package/lib/Types/Newsletter.d.ts +32 -45
  68. package/lib/Types/Newsletter.d.ts.map +1 -1
  69. package/lib/Types/Newsletter.js +25 -23
  70. package/lib/Types/Newsletter.js.map +1 -1
  71. package/lib/Types/State.d.ts +54 -0
  72. package/lib/Types/State.d.ts.map +1 -1
  73. package/lib/Types/State.js +42 -0
  74. package/lib/Types/State.js.map +1 -1
  75. package/lib/Types/index.d.ts +9 -0
  76. package/lib/Types/index.d.ts.map +1 -1
  77. package/lib/Types/index.js.map +1 -1
  78. package/lib/Utils/auth-utils.d.ts.map +1 -1
  79. package/lib/Utils/auth-utils.js +53 -20
  80. package/lib/Utils/auth-utils.js.map +1 -1
  81. package/lib/Utils/browser-utils.d.ts +13 -0
  82. package/lib/Utils/browser-utils.d.ts.map +1 -1
  83. package/lib/Utils/browser-utils.js +90 -10
  84. package/lib/Utils/browser-utils.js.map +1 -1
  85. package/lib/Utils/chat-utils.d.ts +30 -0
  86. package/lib/Utils/chat-utils.d.ts.map +1 -1
  87. package/lib/Utils/chat-utils.js +134 -59
  88. package/lib/Utils/chat-utils.js.map +1 -1
  89. package/lib/Utils/companion-reg-client-utils.d.ts +17 -0
  90. package/lib/Utils/companion-reg-client-utils.d.ts.map +1 -0
  91. package/lib/Utils/companion-reg-client-utils.js +34 -0
  92. package/lib/Utils/companion-reg-client-utils.js.map +1 -0
  93. package/lib/Utils/crypto.d.ts +4 -8
  94. package/lib/Utils/crypto.d.ts.map +1 -1
  95. package/lib/Utils/crypto.js +2 -26
  96. package/lib/Utils/crypto.js.map +1 -1
  97. package/lib/Utils/decode-wa-message.d.ts +12 -0
  98. package/lib/Utils/decode-wa-message.d.ts.map +1 -1
  99. package/lib/Utils/decode-wa-message.js +16 -0
  100. package/lib/Utils/decode-wa-message.js.map +1 -1
  101. package/lib/Utils/event-buffer.d.ts.map +1 -1
  102. package/lib/Utils/event-buffer.js +43 -8
  103. package/lib/Utils/event-buffer.js.map +1 -1
  104. package/lib/Utils/generics.d.ts +3 -1
  105. package/lib/Utils/generics.d.ts.map +1 -1
  106. package/lib/Utils/generics.js +17 -4
  107. package/lib/Utils/generics.js.map +1 -1
  108. package/lib/Utils/history.d.ts +8 -3
  109. package/lib/Utils/history.d.ts.map +1 -1
  110. package/lib/Utils/history.js +60 -16
  111. package/lib/Utils/history.js.map +1 -1
  112. package/lib/Utils/identity-change-handler.d.ts +44 -0
  113. package/lib/Utils/identity-change-handler.d.ts.map +1 -0
  114. package/lib/Utils/identity-change-handler.js +50 -0
  115. package/lib/Utils/identity-change-handler.js.map +1 -0
  116. package/lib/Utils/index.d.ts +6 -0
  117. package/lib/Utils/index.d.ts.map +1 -1
  118. package/lib/Utils/index.js +6 -0
  119. package/lib/Utils/index.js.map +1 -1
  120. package/lib/Utils/interactive-message.d.ts +201 -0
  121. package/lib/Utils/interactive-message.d.ts.map +1 -0
  122. package/lib/Utils/interactive-message.js +256 -0
  123. package/lib/Utils/interactive-message.js.map +1 -0
  124. package/lib/Utils/lt-hash.d.ts +7 -12
  125. package/lib/Utils/lt-hash.d.ts.map +1 -1
  126. package/lib/Utils/lt-hash.js +2 -42
  127. package/lib/Utils/lt-hash.js.map +1 -1
  128. package/lib/Utils/make-mutex.d.ts +1 -0
  129. package/lib/Utils/make-mutex.d.ts.map +1 -1
  130. package/lib/Utils/make-mutex.js +20 -27
  131. package/lib/Utils/make-mutex.js.map +1 -1
  132. package/lib/Utils/message-composer.d.ts +5 -0
  133. package/lib/Utils/message-composer.d.ts.map +1 -0
  134. package/lib/Utils/message-composer.js +5 -0
  135. package/lib/Utils/message-composer.js.map +1 -0
  136. package/lib/Utils/message-retry-manager.d.ts +30 -2
  137. package/lib/Utils/message-retry-manager.d.ts.map +1 -1
  138. package/lib/Utils/message-retry-manager.js +58 -5
  139. package/lib/Utils/message-retry-manager.js.map +1 -1
  140. package/lib/Utils/messages-media.d.ts +35 -5
  141. package/lib/Utils/messages-media.d.ts.map +1 -1
  142. package/lib/Utils/messages-media.js +171 -51
  143. package/lib/Utils/messages-media.js.map +1 -1
  144. package/lib/Utils/messages.d.ts +2 -0
  145. package/lib/Utils/messages.d.ts.map +1 -1
  146. package/lib/Utils/messages.js +475 -35
  147. package/lib/Utils/messages.js.map +1 -1
  148. package/lib/Utils/noise-handler.d.ts +4 -4
  149. package/lib/Utils/noise-handler.d.ts.map +1 -1
  150. package/lib/Utils/noise-handler.js +139 -85
  151. package/lib/Utils/noise-handler.js.map +1 -1
  152. package/lib/Utils/offline-node-processor.d.ts +17 -0
  153. package/lib/Utils/offline-node-processor.d.ts.map +1 -0
  154. package/lib/Utils/offline-node-processor.js +40 -0
  155. package/lib/Utils/offline-node-processor.js.map +1 -0
  156. package/lib/Utils/process-message.d.ts.map +1 -1
  157. package/lib/Utils/process-message.js +115 -16
  158. package/lib/Utils/process-message.js.map +1 -1
  159. package/lib/Utils/reporting-utils.d.ts +11 -0
  160. package/lib/Utils/reporting-utils.d.ts.map +1 -0
  161. package/lib/Utils/reporting-utils.js +258 -0
  162. package/lib/Utils/reporting-utils.js.map +1 -0
  163. package/lib/Utils/stanza-ack.d.ts +11 -0
  164. package/lib/Utils/stanza-ack.d.ts.map +1 -0
  165. package/lib/Utils/stanza-ack.js +38 -0
  166. package/lib/Utils/stanza-ack.js.map +1 -0
  167. package/lib/Utils/sync-action-utils.d.ts +19 -0
  168. package/lib/Utils/sync-action-utils.d.ts.map +1 -0
  169. package/lib/Utils/sync-action-utils.js +49 -0
  170. package/lib/Utils/sync-action-utils.js.map +1 -0
  171. package/lib/Utils/tc-token-utils.d.ts +37 -0
  172. package/lib/Utils/tc-token-utils.d.ts.map +1 -0
  173. package/lib/Utils/tc-token-utils.js +163 -0
  174. package/lib/Utils/tc-token-utils.js.map +1 -0
  175. package/lib/Utils/use-mongo-file-auth-state.d.ts +16 -0
  176. package/lib/Utils/use-mongo-file-auth-state.d.ts.map +1 -0
  177. package/lib/Utils/use-mongo-file-auth-state.js +60 -0
  178. package/lib/Utils/use-mongo-file-auth-state.js.map +1 -0
  179. package/lib/Utils/use-multi-file-auth-state.js +1 -1
  180. package/lib/Utils/use-multi-file-auth-state.js.map +1 -1
  181. package/lib/Utils/use-single-file-auth-state.d.ts.map +1 -1
  182. package/lib/Utils/use-single-file-auth-state.js.map +1 -1
  183. package/lib/Utils/validate-connection.d.ts.map +1 -1
  184. package/lib/Utils/validate-connection.js +11 -1
  185. package/lib/Utils/validate-connection.js.map +1 -1
  186. package/lib/WABinary/decode.d.ts.map +1 -1
  187. package/lib/WABinary/decode.js +24 -0
  188. package/lib/WABinary/decode.js.map +1 -1
  189. package/lib/WABinary/encode.js +5 -1
  190. package/lib/WABinary/encode.js.map +1 -1
  191. package/lib/WABinary/generic-utils.d.ts +10 -1
  192. package/lib/WABinary/generic-utils.d.ts.map +1 -1
  193. package/lib/WABinary/generic-utils.js +42 -8
  194. package/lib/WABinary/generic-utils.js.map +1 -1
  195. package/lib/WABinary/jid-utils.js.map +1 -1
  196. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts.map +1 -1
  197. package/lib/WAUSync/Protocols/USyncContactProtocol.js +26 -3
  198. package/lib/WAUSync/Protocols/USyncContactProtocol.js.map +1 -1
  199. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +10 -0
  200. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts.map +1 -0
  201. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +25 -0
  202. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js.map +1 -0
  203. package/lib/WAUSync/Protocols/index.d.ts +1 -0
  204. package/lib/WAUSync/Protocols/index.d.ts.map +1 -1
  205. package/lib/WAUSync/Protocols/index.js +1 -0
  206. package/lib/WAUSync/Protocols/index.js.map +1 -1
  207. package/lib/WAUSync/USyncQuery.d.ts +1 -0
  208. package/lib/WAUSync/USyncQuery.d.ts.map +1 -1
  209. package/lib/WAUSync/USyncQuery.js +6 -2
  210. package/lib/WAUSync/USyncQuery.js.map +1 -1
  211. package/lib/WAUSync/USyncUser.d.ts +4 -0
  212. package/lib/WAUSync/USyncUser.d.ts.map +1 -1
  213. package/lib/WAUSync/USyncUser.js +8 -0
  214. package/lib/WAUSync/USyncUser.js.map +1 -1
  215. package/lib/addons/anti-delete.d.ts +72 -0
  216. package/lib/addons/anti-delete.d.ts.map +1 -0
  217. package/lib/addons/anti-delete.js +165 -0
  218. package/lib/addons/anti-delete.js.map +1 -0
  219. package/lib/addons/auto-reply.d.ts +67 -0
  220. package/lib/addons/auto-reply.d.ts.map +1 -0
  221. package/lib/addons/auto-reply.js +145 -0
  222. package/lib/addons/auto-reply.js.map +1 -0
  223. package/lib/addons/browser-presets.d.ts +16 -0
  224. package/lib/addons/browser-presets.d.ts.map +1 -0
  225. package/lib/addons/browser-presets.js +24 -0
  226. package/lib/addons/browser-presets.js.map +1 -0
  227. package/lib/addons/button-sender.d.ts +260 -0
  228. package/lib/addons/button-sender.d.ts.map +1 -0
  229. package/lib/addons/button-sender.js +771 -0
  230. package/lib/addons/button-sender.js.map +1 -0
  231. package/lib/addons/call-handler.d.ts +79 -0
  232. package/lib/addons/call-handler.d.ts.map +1 -0
  233. package/lib/addons/call-handler.js +342 -0
  234. package/lib/addons/call-handler.js.map +1 -0
  235. package/lib/addons/from-chats.d.ts +30 -0
  236. package/lib/addons/from-chats.d.ts.map +1 -0
  237. package/lib/addons/from-chats.js +38 -0
  238. package/lib/addons/from-chats.js.map +1 -0
  239. package/lib/addons/from-messages-recv.d.ts +59 -0
  240. package/lib/addons/from-messages-recv.d.ts.map +1 -0
  241. package/lib/addons/from-messages-recv.js +326 -0
  242. package/lib/addons/from-messages-recv.js.map +1 -0
  243. package/lib/addons/from-messages-send.d.ts +50 -0
  244. package/lib/addons/from-messages-send.d.ts.map +1 -0
  245. package/lib/addons/from-messages-send.js +148 -0
  246. package/lib/addons/from-messages-send.js.map +1 -0
  247. package/lib/addons/from-messages.d.ts +52 -0
  248. package/lib/addons/from-messages.d.ts.map +1 -0
  249. package/lib/addons/from-messages.js +304 -0
  250. package/lib/addons/from-messages.js.map +1 -0
  251. package/lib/addons/index.d.ts +67 -0
  252. package/lib/addons/index.d.ts.map +1 -0
  253. package/lib/addons/index.js +86 -0
  254. package/lib/addons/index.js.map +1 -0
  255. package/lib/addons/interactive-message.d.ts +201 -0
  256. package/lib/addons/interactive-message.d.ts.map +1 -0
  257. package/lib/addons/interactive-message.js +256 -0
  258. package/lib/addons/interactive-message.js.map +1 -0
  259. package/lib/addons/jid-plot.d.ts +49 -0
  260. package/lib/addons/jid-plot.d.ts.map +1 -0
  261. package/lib/addons/jid-plot.js +84 -0
  262. package/lib/addons/jid-plot.js.map +1 -0
  263. package/lib/addons/jid-plotting.d.ts +54 -0
  264. package/lib/addons/jid-plotting.d.ts.map +1 -0
  265. package/lib/addons/jid-plotting.js +150 -0
  266. package/lib/addons/jid-plotting.js.map +1 -0
  267. package/lib/addons/lid-support.d.ts +41 -0
  268. package/lib/addons/lid-support.d.ts.map +1 -0
  269. package/lib/addons/lid-support.js +42 -0
  270. package/lib/addons/lid-support.js.map +1 -0
  271. package/lib/addons/message-composer.d.ts +142 -0
  272. package/lib/addons/message-composer.d.ts.map +1 -0
  273. package/lib/addons/message-composer.js +377 -0
  274. package/lib/addons/message-composer.js.map +1 -0
  275. package/lib/addons/message-scheduler.d.ts +77 -0
  276. package/lib/addons/message-scheduler.d.ts.map +1 -0
  277. package/lib/addons/message-scheduler.js +108 -0
  278. package/lib/addons/message-scheduler.js.map +1 -0
  279. package/lib/addons/message-search.d.ts +51 -0
  280. package/lib/addons/message-search.d.ts.map +1 -0
  281. package/lib/addons/message-search.js +171 -0
  282. package/lib/addons/message-search.js.map +1 -0
  283. package/lib/addons/message-utils.d.ts +88 -0
  284. package/lib/addons/message-utils.d.ts.map +1 -0
  285. package/lib/addons/message-utils.js +292 -0
  286. package/lib/addons/message-utils.js.map +1 -0
  287. package/lib/addons/outgoing-calls.d.ts +64 -0
  288. package/lib/addons/outgoing-calls.d.ts.map +1 -0
  289. package/lib/addons/outgoing-calls.js +139 -0
  290. package/lib/addons/outgoing-calls.js.map +1 -0
  291. package/lib/addons/pairing-fix.d.ts +31 -0
  292. package/lib/addons/pairing-fix.d.ts.map +1 -0
  293. package/lib/addons/pairing-fix.js +74 -0
  294. package/lib/addons/pairing-fix.js.map +1 -0
  295. package/lib/addons/past-participants.d.ts +42 -0
  296. package/lib/addons/past-participants.d.ts.map +1 -0
  297. package/lib/addons/past-participants.js +41 -0
  298. package/lib/addons/past-participants.js.map +1 -0
  299. package/lib/addons/rich-response.d.ts +111 -0
  300. package/lib/addons/rich-response.d.ts.map +1 -0
  301. package/lib/addons/rich-response.js +152 -0
  302. package/lib/addons/rich-response.js.map +1 -0
  303. package/lib/addons/scheduling.d.ts +41 -0
  304. package/lib/addons/scheduling.d.ts.map +1 -0
  305. package/lib/addons/scheduling.js +110 -0
  306. package/lib/addons/scheduling.js.map +1 -0
  307. package/lib/addons/status-posting.d.ts +177 -0
  308. package/lib/addons/status-posting.d.ts.map +1 -0
  309. package/lib/addons/status-posting.js +240 -0
  310. package/lib/addons/status-posting.js.map +1 -0
  311. package/lib/addons/stickerpack.d.ts +37 -0
  312. package/lib/addons/stickerpack.d.ts.map +1 -0
  313. package/lib/addons/stickerpack.js +39 -0
  314. package/lib/addons/stickerpack.js.map +1 -0
  315. package/lib/addons/templates.d.ts +72 -0
  316. package/lib/addons/templates.d.ts.map +1 -0
  317. package/lib/addons/templates.js +145 -0
  318. package/lib/addons/templates.js.map +1 -0
  319. package/lib/addons/vcard.d.ts +59 -0
  320. package/lib/addons/vcard.d.ts.map +1 -0
  321. package/lib/addons/vcard.js +88 -0
  322. package/lib/addons/vcard.js.map +1 -0
  323. package/lib/index.d.ts +1 -0
  324. package/lib/index.d.ts.map +1 -1
  325. package/lib/index.js +1 -0
  326. package/lib/index.js.map +1 -1
  327. package/package.json +6 -3
package/WAProto/index.js CHANGED
@@ -5,6 +5,47 @@ const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.
5
5
 
6
6
  const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
7
7
 
8
+ function longToString(value, unsigned) {
9
+ if (typeof value === "string") {
10
+ return value;
11
+ }
12
+ if (typeof value === "number") {
13
+ return String(value);
14
+ }
15
+ // Fast path: convert Long {low, high} directly via native BigInt
16
+ // BigInt.toString() is a native C++ operation, much faster than Long's pure JS division loops
17
+ if (value && typeof value.low === "number" && typeof value.high === "number") {
18
+ const lo = BigInt(value.low >>> 0);
19
+ const hi = BigInt(value.high >>> 0);
20
+ const combined = (hi << 32n) | lo;
21
+ if (!unsigned && value.high < 0) {
22
+ return (combined - (1n << 64n)).toString();
23
+ }
24
+ return combined.toString();
25
+ }
26
+ return String(value);
27
+ }
28
+
29
+ function longToNumber(value, unsigned) {
30
+ if (typeof value === "number") {
31
+ return value;
32
+ }
33
+ if (typeof value === "string") {
34
+ return Number(value);
35
+ }
36
+ // Fast path: convert Long {low, high} directly via native BigInt
37
+ if (value && typeof value.low === "number" && typeof value.high === "number") {
38
+ const lo = BigInt(value.low >>> 0);
39
+ const hi = BigInt(value.high >>> 0);
40
+ const combined = (hi << 32n) | lo;
41
+ if (!unsigned && value.high < 0) {
42
+ return Number(combined - (1n << 64n));
43
+ }
44
+ return Number(combined);
45
+ }
46
+ return Number(value);
47
+ }
48
+
8
49
  export const proto = $root.proto = (() => {
9
50
 
10
51
  const proto = {};
@@ -181,7 +222,7 @@ export const proto = $root.proto = (() => {
181
222
  if (typeof m.timestamp === "number")
182
223
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
183
224
  else
184
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber(true) : m.timestamp;
225
+ d.timestamp = o.longs === String ? longToString(m.timestamp, true) : o.longs === Number ? longToNumber(m.timestamp, true) : m.timestamp;
185
226
  if (o.oneofs)
186
227
  d._timestamp = "timestamp";
187
228
  }
@@ -397,7 +438,7 @@ export const proto = $root.proto = (() => {
397
438
  if (typeof m.timestamp === "number")
398
439
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
399
440
  else
400
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber(true) : m.timestamp;
441
+ d.timestamp = o.longs === String ? longToString(m.timestamp, true) : o.longs === Number ? longToNumber(m.timestamp, true) : m.timestamp;
401
442
  if (o.oneofs)
402
443
  d._timestamp = "timestamp";
403
444
  }
@@ -1010,7 +1051,7 @@ export const proto = $root.proto = (() => {
1010
1051
  if (typeof m.lastFetchTime === "number")
1011
1052
  d.lastFetchTime = o.longs === String ? String(m.lastFetchTime) : m.lastFetchTime;
1012
1053
  else
1013
- d.lastFetchTime = o.longs === String ? $util.Long.prototype.toString.call(m.lastFetchTime) : o.longs === Number ? new $util.LongBits(m.lastFetchTime.low >>> 0, m.lastFetchTime.high >>> 0).toNumber() : m.lastFetchTime;
1054
+ d.lastFetchTime = o.longs === String ? longToString(m.lastFetchTime) : o.longs === Number ? longToNumber(m.lastFetchTime) : m.lastFetchTime;
1014
1055
  if (o.oneofs)
1015
1056
  d._lastFetchTime = "lastFetchTime";
1016
1057
  }
@@ -1410,7 +1451,7 @@ export const proto = $root.proto = (() => {
1410
1451
  if (typeof m.timestamp === "number")
1411
1452
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
1412
1453
  else
1413
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
1454
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
1414
1455
  if (o.oneofs)
1415
1456
  d._timestamp = "timestamp";
1416
1457
  }
@@ -1531,7 +1572,7 @@ export const proto = $root.proto = (() => {
1531
1572
  if (typeof m.responseTimestampMs === "number")
1532
1573
  d.responseTimestampMs = o.longs === String ? String(m.responseTimestampMs) : m.responseTimestampMs;
1533
1574
  else
1534
- d.responseTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.responseTimestampMs) : o.longs === Number ? new $util.LongBits(m.responseTimestampMs.low >>> 0, m.responseTimestampMs.high >>> 0).toNumber() : m.responseTimestampMs;
1575
+ d.responseTimestampMs = o.longs === String ? longToString(m.responseTimestampMs) : o.longs === Number ? longToNumber(m.responseTimestampMs) : m.responseTimestampMs;
1535
1576
  if (o.oneofs)
1536
1577
  d._responseTimestampMs = "responseTimestampMs";
1537
1578
  }
@@ -2346,7 +2387,7 @@ export const proto = $root.proto = (() => {
2346
2387
  if (typeof m.version === "number")
2347
2388
  d.version = o.longs === String ? String(m.version) : m.version;
2348
2389
  else
2349
- d.version = o.longs === String ? $util.Long.prototype.toString.call(m.version) : o.longs === Number ? new $util.LongBits(m.version.low >>> 0, m.version.high >>> 0).toNumber(true) : m.version;
2390
+ d.version = o.longs === String ? longToString(m.version, true) : o.longs === Number ? longToNumber(m.version, true) : m.version;
2350
2391
  if (o.oneofs)
2351
2392
  d._version = "version";
2352
2393
  }
@@ -5433,7 +5474,7 @@ export const proto = $root.proto = (() => {
5433
5474
  if (typeof m.whatsappBizAcctFbid === "number")
5434
5475
  d.whatsappBizAcctFbid = o.longs === String ? String(m.whatsappBizAcctFbid) : m.whatsappBizAcctFbid;
5435
5476
  else
5436
- d.whatsappBizAcctFbid = o.longs === String ? $util.Long.prototype.toString.call(m.whatsappBizAcctFbid) : o.longs === Number ? new $util.LongBits(m.whatsappBizAcctFbid.low >>> 0, m.whatsappBizAcctFbid.high >>> 0).toNumber(true) : m.whatsappBizAcctFbid;
5477
+ d.whatsappBizAcctFbid = o.longs === String ? longToString(m.whatsappBizAcctFbid, true) : o.longs === Number ? longToNumber(m.whatsappBizAcctFbid, true) : m.whatsappBizAcctFbid;
5437
5478
  if (o.oneofs)
5438
5479
  d._whatsappBizAcctFbid = "whatsappBizAcctFbid";
5439
5480
  }
@@ -5446,7 +5487,7 @@ export const proto = $root.proto = (() => {
5446
5487
  if (typeof m.issueTime === "number")
5447
5488
  d.issueTime = o.longs === String ? String(m.issueTime) : m.issueTime;
5448
5489
  else
5449
- d.issueTime = o.longs === String ? $util.Long.prototype.toString.call(m.issueTime) : o.longs === Number ? new $util.LongBits(m.issueTime.low >>> 0, m.issueTime.high >>> 0).toNumber(true) : m.issueTime;
5490
+ d.issueTime = o.longs === String ? longToString(m.issueTime, true) : o.longs === Number ? longToNumber(m.issueTime, true) : m.issueTime;
5450
5491
  if (o.oneofs)
5451
5492
  d._issueTime = "issueTime";
5452
5493
  }
@@ -5875,7 +5916,7 @@ export const proto = $root.proto = (() => {
5875
5916
  if (typeof m.privacyModeTs === "number")
5876
5917
  d.privacyModeTs = o.longs === String ? String(m.privacyModeTs) : m.privacyModeTs;
5877
5918
  else
5878
- d.privacyModeTs = o.longs === String ? $util.Long.prototype.toString.call(m.privacyModeTs) : o.longs === Number ? new $util.LongBits(m.privacyModeTs.low >>> 0, m.privacyModeTs.high >>> 0).toNumber(true) : m.privacyModeTs;
5919
+ d.privacyModeTs = o.longs === String ? longToString(m.privacyModeTs, true) : o.longs === Number ? longToNumber(m.privacyModeTs, true) : m.privacyModeTs;
5879
5920
  if (o.oneofs)
5880
5921
  d._privacyModeTs = "privacyModeTs";
5881
5922
  }
@@ -5883,7 +5924,7 @@ export const proto = $root.proto = (() => {
5883
5924
  if (typeof m.featureControls === "number")
5884
5925
  d.featureControls = o.longs === String ? String(m.featureControls) : m.featureControls;
5885
5926
  else
5886
- d.featureControls = o.longs === String ? $util.Long.prototype.toString.call(m.featureControls) : o.longs === Number ? new $util.LongBits(m.featureControls.low >>> 0, m.featureControls.high >>> 0).toNumber(true) : m.featureControls;
5927
+ d.featureControls = o.longs === String ? longToString(m.featureControls, true) : o.longs === Number ? longToNumber(m.featureControls, true) : m.featureControls;
5887
5928
  if (o.oneofs)
5888
5929
  d._featureControls = "featureControls";
5889
5930
  }
@@ -6887,7 +6928,7 @@ export const proto = $root.proto = (() => {
6887
6928
  if (typeof m.kindNegative === "number")
6888
6929
  d.kindNegative = o.longs === String ? String(m.kindNegative) : m.kindNegative;
6889
6930
  else
6890
- d.kindNegative = o.longs === String ? $util.Long.prototype.toString.call(m.kindNegative) : o.longs === Number ? new $util.LongBits(m.kindNegative.low >>> 0, m.kindNegative.high >>> 0).toNumber(true) : m.kindNegative;
6931
+ d.kindNegative = o.longs === String ? longToString(m.kindNegative, true) : o.longs === Number ? longToNumber(m.kindNegative, true) : m.kindNegative;
6891
6932
  if (o.oneofs)
6892
6933
  d._kindNegative = "kindNegative";
6893
6934
  }
@@ -6895,7 +6936,7 @@ export const proto = $root.proto = (() => {
6895
6936
  if (typeof m.kindPositive === "number")
6896
6937
  d.kindPositive = o.longs === String ? String(m.kindPositive) : m.kindPositive;
6897
6938
  else
6898
- d.kindPositive = o.longs === String ? $util.Long.prototype.toString.call(m.kindPositive) : o.longs === Number ? new $util.LongBits(m.kindPositive.low >>> 0, m.kindPositive.high >>> 0).toNumber(true) : m.kindPositive;
6939
+ d.kindPositive = o.longs === String ? longToString(m.kindPositive, true) : o.longs === Number ? longToNumber(m.kindPositive, true) : m.kindPositive;
6899
6940
  if (o.oneofs)
6900
6941
  d._kindPositive = "kindPositive";
6901
6942
  }
@@ -8662,7 +8703,7 @@ export const proto = $root.proto = (() => {
8662
8703
  if (typeof m.mediaKeyTimestamp === "number")
8663
8704
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
8664
8705
  else
8665
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
8706
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
8666
8707
  if (o.oneofs)
8667
8708
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
8668
8709
  }
@@ -12870,7 +12911,7 @@ export const proto = $root.proto = (() => {
12870
12911
  if (typeof m.expirationTimestamp === "number")
12871
12912
  d.expirationTimestamp = o.longs === String ? String(m.expirationTimestamp) : m.expirationTimestamp;
12872
12913
  else
12873
- d.expirationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.expirationTimestamp) : o.longs === Number ? new $util.LongBits(m.expirationTimestamp.low >>> 0, m.expirationTimestamp.high >>> 0).toNumber(true) : m.expirationTimestamp;
12914
+ d.expirationTimestamp = o.longs === String ? longToString(m.expirationTimestamp, true) : o.longs === Number ? longToNumber(m.expirationTimestamp, true) : m.expirationTimestamp;
12874
12915
  if (o.oneofs)
12875
12916
  d._expirationTimestamp = "expirationTimestamp";
12876
12917
  }
@@ -13105,7 +13146,7 @@ export const proto = $root.proto = (() => {
13105
13146
  if (typeof m.nextTriggerTimestamp === "number")
13106
13147
  d.nextTriggerTimestamp = o.longs === String ? String(m.nextTriggerTimestamp) : m.nextTriggerTimestamp;
13107
13148
  else
13108
- d.nextTriggerTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.nextTriggerTimestamp) : o.longs === Number ? new $util.LongBits(m.nextTriggerTimestamp.low >>> 0, m.nextTriggerTimestamp.high >>> 0).toNumber(true) : m.nextTriggerTimestamp;
13149
+ d.nextTriggerTimestamp = o.longs === String ? longToString(m.nextTriggerTimestamp, true) : o.longs === Number ? longToNumber(m.nextTriggerTimestamp, true) : m.nextTriggerTimestamp;
13109
13150
  if (o.oneofs)
13110
13151
  d._nextTriggerTimestamp = "nextTriggerTimestamp";
13111
13152
  }
@@ -15087,7 +15128,7 @@ export const proto = $root.proto = (() => {
15087
15128
  if (typeof m.duration === "number")
15088
15129
  d.duration = o.longs === String ? String(m.duration) : m.duration;
15089
15130
  else
15090
- d.duration = o.longs === String ? $util.Long.prototype.toString.call(m.duration) : o.longs === Number ? new $util.LongBits(m.duration.low >>> 0, m.duration.high >>> 0).toNumber() : m.duration;
15131
+ d.duration = o.longs === String ? longToString(m.duration) : o.longs === Number ? longToNumber(m.duration) : m.duration;
15091
15132
  if (o.oneofs)
15092
15133
  d._duration = "duration";
15093
15134
  }
@@ -15095,7 +15136,7 @@ export const proto = $root.proto = (() => {
15095
15136
  if (typeof m.startTime === "number")
15096
15137
  d.startTime = o.longs === String ? String(m.startTime) : m.startTime;
15097
15138
  else
15098
- d.startTime = o.longs === String ? $util.Long.prototype.toString.call(m.startTime) : o.longs === Number ? new $util.LongBits(m.startTime.low >>> 0, m.startTime.high >>> 0).toNumber() : m.startTime;
15139
+ d.startTime = o.longs === String ? longToString(m.startTime) : o.longs === Number ? longToNumber(m.startTime) : m.startTime;
15099
15140
  if (o.oneofs)
15100
15141
  d._startTime = "startTime";
15101
15142
  }
@@ -15746,7 +15787,7 @@ export const proto = $root.proto = (() => {
15746
15787
  if (typeof m.notBefore === "number")
15747
15788
  d.notBefore = o.longs === String ? String(m.notBefore) : m.notBefore;
15748
15789
  else
15749
- d.notBefore = o.longs === String ? $util.Long.prototype.toString.call(m.notBefore) : o.longs === Number ? new $util.LongBits(m.notBefore.low >>> 0, m.notBefore.high >>> 0).toNumber(true) : m.notBefore;
15790
+ d.notBefore = o.longs === String ? longToString(m.notBefore, true) : o.longs === Number ? longToNumber(m.notBefore, true) : m.notBefore;
15750
15791
  if (o.oneofs)
15751
15792
  d._notBefore = "notBefore";
15752
15793
  }
@@ -15754,7 +15795,7 @@ export const proto = $root.proto = (() => {
15754
15795
  if (typeof m.notAfter === "number")
15755
15796
  d.notAfter = o.longs === String ? String(m.notAfter) : m.notAfter;
15756
15797
  else
15757
- d.notAfter = o.longs === String ? $util.Long.prototype.toString.call(m.notAfter) : o.longs === Number ? new $util.LongBits(m.notAfter.low >>> 0, m.notAfter.high >>> 0).toNumber(true) : m.notAfter;
15798
+ d.notAfter = o.longs === String ? longToString(m.notAfter, true) : o.longs === Number ? longToNumber(m.notAfter, true) : m.notAfter;
15758
15799
  if (o.oneofs)
15759
15800
  d._notAfter = "notAfter";
15760
15801
  }
@@ -16144,7 +16185,7 @@ export const proto = $root.proto = (() => {
16144
16185
  if (typeof m.timestamp === "number")
16145
16186
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
16146
16187
  else
16147
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
16188
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
16148
16189
  if (o.oneofs)
16149
16190
  d._timestamp = "timestamp";
16150
16191
  }
@@ -17733,7 +17774,7 @@ export const proto = $root.proto = (() => {
17733
17774
  if (typeof m.username === "number")
17734
17775
  d.username = o.longs === String ? String(m.username) : m.username;
17735
17776
  else
17736
- d.username = o.longs === String ? $util.Long.prototype.toString.call(m.username) : o.longs === Number ? new $util.LongBits(m.username.low >>> 0, m.username.high >>> 0).toNumber(true) : m.username;
17777
+ d.username = o.longs === String ? longToString(m.username, true) : o.longs === Number ? longToNumber(m.username, true) : m.username;
17737
17778
  if (o.oneofs)
17738
17779
  d._username = "username";
17739
17780
  }
@@ -17837,7 +17878,7 @@ export const proto = $root.proto = (() => {
17837
17878
  if (typeof m.fbAppId === "number")
17838
17879
  d.fbAppId = o.longs === String ? String(m.fbAppId) : m.fbAppId;
17839
17880
  else
17840
- d.fbAppId = o.longs === String ? $util.Long.prototype.toString.call(m.fbAppId) : o.longs === Number ? new $util.LongBits(m.fbAppId.low >>> 0, m.fbAppId.high >>> 0).toNumber(true) : m.fbAppId;
17881
+ d.fbAppId = o.longs === String ? longToString(m.fbAppId, true) : o.longs === Number ? longToNumber(m.fbAppId, true) : m.fbAppId;
17841
17882
  if (o.oneofs)
17842
17883
  d._fbAppId = "fbAppId";
17843
17884
  }
@@ -18487,7 +18528,7 @@ export const proto = $root.proto = (() => {
18487
18528
  if (typeof m.accountId === "number")
18488
18529
  d.accountId = o.longs === String ? String(m.accountId) : m.accountId;
18489
18530
  else
18490
- d.accountId = o.longs === String ? $util.Long.prototype.toString.call(m.accountId) : o.longs === Number ? new $util.LongBits(m.accountId.low >>> 0, m.accountId.high >>> 0).toNumber(true) : m.accountId;
18531
+ d.accountId = o.longs === String ? longToString(m.accountId, true) : o.longs === Number ? longToNumber(m.accountId, true) : m.accountId;
18491
18532
  if (o.oneofs)
18492
18533
  d._accountId = "accountId";
18493
18534
  }
@@ -21672,7 +21713,7 @@ export const proto = $root.proto = (() => {
21672
21713
  if (typeof m.ephemeralSettingTimestamp === "number")
21673
21714
  d.ephemeralSettingTimestamp = o.longs === String ? String(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
21674
21715
  else
21675
- d.ephemeralSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.ephemeralSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.ephemeralSettingTimestamp.low >>> 0, m.ephemeralSettingTimestamp.high >>> 0).toNumber() : m.ephemeralSettingTimestamp;
21716
+ d.ephemeralSettingTimestamp = o.longs === String ? longToString(m.ephemeralSettingTimestamp) : o.longs === Number ? longToNumber(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
21676
21717
  if (o.oneofs)
21677
21718
  d._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
21678
21719
  }
@@ -22482,7 +22523,7 @@ export const proto = $root.proto = (() => {
22482
22523
  if (typeof m.intData === "number")
22483
22524
  d.intData = o.longs === String ? String(m.intData) : m.intData;
22484
22525
  else
22485
- d.intData = o.longs === String ? $util.Long.prototype.toString.call(m.intData) : o.longs === Number ? new $util.LongBits(m.intData.low >>> 0, m.intData.high >>> 0).toNumber() : m.intData;
22526
+ d.intData = o.longs === String ? longToString(m.intData) : o.longs === Number ? longToNumber(m.intData) : m.intData;
22486
22527
  if (o.oneofs)
22487
22528
  d._intData = "intData";
22488
22529
  }
@@ -25062,7 +25103,7 @@ export const proto = $root.proto = (() => {
25062
25103
  if (typeof m.lastMsgTimestamp === "number")
25063
25104
  d.lastMsgTimestamp = o.longs === String ? String(m.lastMsgTimestamp) : m.lastMsgTimestamp;
25064
25105
  else
25065
- d.lastMsgTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.lastMsgTimestamp) : o.longs === Number ? new $util.LongBits(m.lastMsgTimestamp.low >>> 0, m.lastMsgTimestamp.high >>> 0).toNumber(true) : m.lastMsgTimestamp;
25106
+ d.lastMsgTimestamp = o.longs === String ? longToString(m.lastMsgTimestamp, true) : o.longs === Number ? longToNumber(m.lastMsgTimestamp, true) : m.lastMsgTimestamp;
25066
25107
  if (o.oneofs)
25067
25108
  d._lastMsgTimestamp = "lastMsgTimestamp";
25068
25109
  }
@@ -25090,7 +25131,7 @@ export const proto = $root.proto = (() => {
25090
25131
  if (typeof m.ephemeralSettingTimestamp === "number")
25091
25132
  d.ephemeralSettingTimestamp = o.longs === String ? String(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
25092
25133
  else
25093
- d.ephemeralSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.ephemeralSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.ephemeralSettingTimestamp.low >>> 0, m.ephemeralSettingTimestamp.high >>> 0).toNumber() : m.ephemeralSettingTimestamp;
25134
+ d.ephemeralSettingTimestamp = o.longs === String ? longToString(m.ephemeralSettingTimestamp) : o.longs === Number ? longToNumber(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
25094
25135
  if (o.oneofs)
25095
25136
  d._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
25096
25137
  }
@@ -25103,7 +25144,7 @@ export const proto = $root.proto = (() => {
25103
25144
  if (typeof m.conversationTimestamp === "number")
25104
25145
  d.conversationTimestamp = o.longs === String ? String(m.conversationTimestamp) : m.conversationTimestamp;
25105
25146
  else
25106
- d.conversationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.conversationTimestamp) : o.longs === Number ? new $util.LongBits(m.conversationTimestamp.low >>> 0, m.conversationTimestamp.high >>> 0).toNumber(true) : m.conversationTimestamp;
25147
+ d.conversationTimestamp = o.longs === String ? longToString(m.conversationTimestamp, true) : o.longs === Number ? longToNumber(m.conversationTimestamp, true) : m.conversationTimestamp;
25107
25148
  if (o.oneofs)
25108
25149
  d._conversationTimestamp = "conversationTimestamp";
25109
25150
  }
@@ -25157,7 +25198,7 @@ export const proto = $root.proto = (() => {
25157
25198
  if (typeof m.tcTokenTimestamp === "number")
25158
25199
  d.tcTokenTimestamp = o.longs === String ? String(m.tcTokenTimestamp) : m.tcTokenTimestamp;
25159
25200
  else
25160
- d.tcTokenTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.tcTokenTimestamp) : o.longs === Number ? new $util.LongBits(m.tcTokenTimestamp.low >>> 0, m.tcTokenTimestamp.high >>> 0).toNumber(true) : m.tcTokenTimestamp;
25201
+ d.tcTokenTimestamp = o.longs === String ? longToString(m.tcTokenTimestamp, true) : o.longs === Number ? longToNumber(m.tcTokenTimestamp, true) : m.tcTokenTimestamp;
25161
25202
  if (o.oneofs)
25162
25203
  d._tcTokenTimestamp = "tcTokenTimestamp";
25163
25204
  }
@@ -25175,7 +25216,7 @@ export const proto = $root.proto = (() => {
25175
25216
  if (typeof m.muteEndTime === "number")
25176
25217
  d.muteEndTime = o.longs === String ? String(m.muteEndTime) : m.muteEndTime;
25177
25218
  else
25178
- d.muteEndTime = o.longs === String ? $util.Long.prototype.toString.call(m.muteEndTime) : o.longs === Number ? new $util.LongBits(m.muteEndTime.low >>> 0, m.muteEndTime.high >>> 0).toNumber(true) : m.muteEndTime;
25219
+ d.muteEndTime = o.longs === String ? longToString(m.muteEndTime, true) : o.longs === Number ? longToNumber(m.muteEndTime, true) : m.muteEndTime;
25179
25220
  if (o.oneofs)
25180
25221
  d._muteEndTime = "muteEndTime";
25181
25222
  }
@@ -25193,7 +25234,7 @@ export const proto = $root.proto = (() => {
25193
25234
  if (typeof m.tcTokenSenderTimestamp === "number")
25194
25235
  d.tcTokenSenderTimestamp = o.longs === String ? String(m.tcTokenSenderTimestamp) : m.tcTokenSenderTimestamp;
25195
25236
  else
25196
- d.tcTokenSenderTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.tcTokenSenderTimestamp) : o.longs === Number ? new $util.LongBits(m.tcTokenSenderTimestamp.low >>> 0, m.tcTokenSenderTimestamp.high >>> 0).toNumber(true) : m.tcTokenSenderTimestamp;
25237
+ d.tcTokenSenderTimestamp = o.longs === String ? longToString(m.tcTokenSenderTimestamp, true) : o.longs === Number ? longToNumber(m.tcTokenSenderTimestamp, true) : m.tcTokenSenderTimestamp;
25197
25238
  if (o.oneofs)
25198
25239
  d._tcTokenSenderTimestamp = "tcTokenSenderTimestamp";
25199
25240
  }
@@ -25211,7 +25252,7 @@ export const proto = $root.proto = (() => {
25211
25252
  if (typeof m.createdAt === "number")
25212
25253
  d.createdAt = o.longs === String ? String(m.createdAt) : m.createdAt;
25213
25254
  else
25214
- d.createdAt = o.longs === String ? $util.Long.prototype.toString.call(m.createdAt) : o.longs === Number ? new $util.LongBits(m.createdAt.low >>> 0, m.createdAt.high >>> 0).toNumber(true) : m.createdAt;
25255
+ d.createdAt = o.longs === String ? longToString(m.createdAt, true) : o.longs === Number ? longToNumber(m.createdAt, true) : m.createdAt;
25215
25256
  if (o.oneofs)
25216
25257
  d._createdAt = "createdAt";
25217
25258
  }
@@ -25314,7 +25355,7 @@ export const proto = $root.proto = (() => {
25314
25355
  if (typeof m.limitSharingSettingTimestamp === "number")
25315
25356
  d.limitSharingSettingTimestamp = o.longs === String ? String(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
25316
25357
  else
25317
- d.limitSharingSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.limitSharingSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.limitSharingSettingTimestamp.low >>> 0, m.limitSharingSettingTimestamp.high >>> 0).toNumber() : m.limitSharingSettingTimestamp;
25358
+ d.limitSharingSettingTimestamp = o.longs === String ? longToString(m.limitSharingSettingTimestamp) : o.longs === Number ? longToNumber(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
25318
25359
  if (o.oneofs)
25319
25360
  d._limitSharingSettingTimestamp = "limitSharingSettingTimestamp";
25320
25361
  }
@@ -25740,7 +25781,7 @@ export const proto = $root.proto = (() => {
25740
25781
  if (typeof m.chatDbMigrationTimestamp === "number")
25741
25782
  d.chatDbMigrationTimestamp = o.longs === String ? String(m.chatDbMigrationTimestamp) : m.chatDbMigrationTimestamp;
25742
25783
  else
25743
- d.chatDbMigrationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.chatDbMigrationTimestamp) : o.longs === Number ? new $util.LongBits(m.chatDbMigrationTimestamp.low >>> 0, m.chatDbMigrationTimestamp.high >>> 0).toNumber(true) : m.chatDbMigrationTimestamp;
25784
+ d.chatDbMigrationTimestamp = o.longs === String ? longToString(m.chatDbMigrationTimestamp, true) : o.longs === Number ? longToNumber(m.chatDbMigrationTimestamp, true) : m.chatDbMigrationTimestamp;
25744
25785
  if (o.oneofs)
25745
25786
  d._chatDbMigrationTimestamp = "chatDbMigrationTimestamp";
25746
25787
  }
@@ -26231,7 +26272,7 @@ export const proto = $root.proto = (() => {
26231
26272
  if (typeof m.senderTimestamp === "number")
26232
26273
  d.senderTimestamp = o.longs === String ? String(m.senderTimestamp) : m.senderTimestamp;
26233
26274
  else
26234
- d.senderTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestamp) : o.longs === Number ? new $util.LongBits(m.senderTimestamp.low >>> 0, m.senderTimestamp.high >>> 0).toNumber(true) : m.senderTimestamp;
26275
+ d.senderTimestamp = o.longs === String ? longToString(m.senderTimestamp, true) : o.longs === Number ? longToNumber(m.senderTimestamp, true) : m.senderTimestamp;
26235
26276
  if (o.oneofs)
26236
26277
  d._senderTimestamp = "senderTimestamp";
26237
26278
  }
@@ -26260,7 +26301,7 @@ export const proto = $root.proto = (() => {
26260
26301
  if (typeof m.recipientTimestamp === "number")
26261
26302
  d.recipientTimestamp = o.longs === String ? String(m.recipientTimestamp) : m.recipientTimestamp;
26262
26303
  else
26263
- d.recipientTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.recipientTimestamp) : o.longs === Number ? new $util.LongBits(m.recipientTimestamp.low >>> 0, m.recipientTimestamp.high >>> 0).toNumber(true) : m.recipientTimestamp;
26304
+ d.recipientTimestamp = o.longs === String ? longToString(m.recipientTimestamp, true) : o.longs === Number ? longToNumber(m.recipientTimestamp, true) : m.recipientTimestamp;
26264
26305
  if (o.oneofs)
26265
26306
  d._recipientTimestamp = "recipientTimestamp";
26266
26307
  }
@@ -28040,7 +28081,7 @@ export const proto = $root.proto = (() => {
28040
28081
  if (typeof m.musicSongStartTimeInMs === "number")
28041
28082
  d.musicSongStartTimeInMs = o.longs === String ? String(m.musicSongStartTimeInMs) : m.musicSongStartTimeInMs;
28042
28083
  else
28043
- d.musicSongStartTimeInMs = o.longs === String ? $util.Long.prototype.toString.call(m.musicSongStartTimeInMs) : o.longs === Number ? new $util.LongBits(m.musicSongStartTimeInMs.low >>> 0, m.musicSongStartTimeInMs.high >>> 0).toNumber() : m.musicSongStartTimeInMs;
28084
+ d.musicSongStartTimeInMs = o.longs === String ? longToString(m.musicSongStartTimeInMs) : o.longs === Number ? longToNumber(m.musicSongStartTimeInMs) : m.musicSongStartTimeInMs;
28044
28085
  if (o.oneofs)
28045
28086
  d._musicSongStartTimeInMs = "musicSongStartTimeInMs";
28046
28087
  }
@@ -28048,7 +28089,7 @@ export const proto = $root.proto = (() => {
28048
28089
  if (typeof m.derivedContentStartTimeInMs === "number")
28049
28090
  d.derivedContentStartTimeInMs = o.longs === String ? String(m.derivedContentStartTimeInMs) : m.derivedContentStartTimeInMs;
28050
28091
  else
28051
- d.derivedContentStartTimeInMs = o.longs === String ? $util.Long.prototype.toString.call(m.derivedContentStartTimeInMs) : o.longs === Number ? new $util.LongBits(m.derivedContentStartTimeInMs.low >>> 0, m.derivedContentStartTimeInMs.high >>> 0).toNumber() : m.derivedContentStartTimeInMs;
28092
+ d.derivedContentStartTimeInMs = o.longs === String ? longToString(m.derivedContentStartTimeInMs) : o.longs === Number ? longToNumber(m.derivedContentStartTimeInMs) : m.derivedContentStartTimeInMs;
28052
28093
  if (o.oneofs)
28053
28094
  d._derivedContentStartTimeInMs = "derivedContentStartTimeInMs";
28054
28095
  }
@@ -28056,7 +28097,7 @@ export const proto = $root.proto = (() => {
28056
28097
  if (typeof m.overlapDurationInMs === "number")
28057
28098
  d.overlapDurationInMs = o.longs === String ? String(m.overlapDurationInMs) : m.overlapDurationInMs;
28058
28099
  else
28059
- d.overlapDurationInMs = o.longs === String ? $util.Long.prototype.toString.call(m.overlapDurationInMs) : o.longs === Number ? new $util.LongBits(m.overlapDurationInMs.low >>> 0, m.overlapDurationInMs.high >>> 0).toNumber() : m.overlapDurationInMs;
28100
+ d.overlapDurationInMs = o.longs === String ? longToString(m.overlapDurationInMs) : o.longs === Number ? longToNumber(m.overlapDurationInMs) : m.overlapDurationInMs;
28060
28101
  if (o.oneofs)
28061
28102
  d._overlapDurationInMs = "overlapDurationInMs";
28062
28103
  }
@@ -28290,7 +28331,7 @@ export const proto = $root.proto = (() => {
28290
28331
  if (typeof m.timestamp === "number")
28291
28332
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
28292
28333
  else
28293
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
28334
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
28294
28335
  if (o.oneofs)
28295
28336
  d._timestamp = "timestamp";
28296
28337
  }
@@ -28533,7 +28574,7 @@ export const proto = $root.proto = (() => {
28533
28574
  if (typeof m.timestampMs === "number")
28534
28575
  d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
28535
28576
  else
28536
- d.timestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.timestampMs) : o.longs === Number ? new $util.LongBits(m.timestampMs.low >>> 0, m.timestampMs.high >>> 0).toNumber() : m.timestampMs;
28577
+ d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
28537
28578
  if (o.oneofs)
28538
28579
  d._timestampMs = "timestampMs";
28539
28580
  }
@@ -28657,7 +28698,7 @@ export const proto = $root.proto = (() => {
28657
28698
  if (typeof m.code === "number")
28658
28699
  d.code = o.longs === String ? String(m.code) : m.code;
28659
28700
  else
28660
- d.code = o.longs === String ? $util.Long.prototype.toString.call(m.code) : o.longs === Number ? new $util.LongBits(m.code.low >>> 0, m.code.high >>> 0).toNumber(true) : m.code;
28701
+ d.code = o.longs === String ? longToString(m.code, true) : o.longs === Number ? longToNumber(m.code, true) : m.code;
28661
28702
  if (o.oneofs)
28662
28703
  d._code = "code";
28663
28704
  }
@@ -28864,7 +28905,7 @@ export const proto = $root.proto = (() => {
28864
28905
  if (typeof m.fileSizeBytes === "number")
28865
28906
  d.fileSizeBytes = o.longs === String ? String(m.fileSizeBytes) : m.fileSizeBytes;
28866
28907
  else
28867
- d.fileSizeBytes = o.longs === String ? $util.Long.prototype.toString.call(m.fileSizeBytes) : o.longs === Number ? new $util.LongBits(m.fileSizeBytes.low >>> 0, m.fileSizeBytes.high >>> 0).toNumber(true) : m.fileSizeBytes;
28908
+ d.fileSizeBytes = o.longs === String ? longToString(m.fileSizeBytes, true) : o.longs === Number ? longToNumber(m.fileSizeBytes, true) : m.fileSizeBytes;
28868
28909
  if (o.oneofs)
28869
28910
  d._fileSizeBytes = "fileSizeBytes";
28870
28911
  }
@@ -29695,7 +29736,7 @@ export const proto = $root.proto = (() => {
29695
29736
  if (typeof m.disappearingModeTimestamp === "number")
29696
29737
  d.disappearingModeTimestamp = o.longs === String ? String(m.disappearingModeTimestamp) : m.disappearingModeTimestamp;
29697
29738
  else
29698
- d.disappearingModeTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.disappearingModeTimestamp) : o.longs === Number ? new $util.LongBits(m.disappearingModeTimestamp.low >>> 0, m.disappearingModeTimestamp.high >>> 0).toNumber() : m.disappearingModeTimestamp;
29739
+ d.disappearingModeTimestamp = o.longs === String ? longToString(m.disappearingModeTimestamp) : o.longs === Number ? longToNumber(m.disappearingModeTimestamp) : m.disappearingModeTimestamp;
29699
29740
  if (o.oneofs)
29700
29741
  d._disappearingModeTimestamp = "disappearingModeTimestamp";
29701
29742
  }
@@ -29748,7 +29789,7 @@ export const proto = $root.proto = (() => {
29748
29789
  if (typeof m.chatDbLidMigrationTimestamp === "number")
29749
29790
  d.chatDbLidMigrationTimestamp = o.longs === String ? String(m.chatDbLidMigrationTimestamp) : m.chatDbLidMigrationTimestamp;
29750
29791
  else
29751
- d.chatDbLidMigrationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.chatDbLidMigrationTimestamp) : o.longs === Number ? new $util.LongBits(m.chatDbLidMigrationTimestamp.low >>> 0, m.chatDbLidMigrationTimestamp.high >>> 0).toNumber() : m.chatDbLidMigrationTimestamp;
29792
+ d.chatDbLidMigrationTimestamp = o.longs === String ? longToString(m.chatDbLidMigrationTimestamp) : o.longs === Number ? longToNumber(m.chatDbLidMigrationTimestamp) : m.chatDbLidMigrationTimestamp;
29752
29793
  if (o.oneofs)
29753
29794
  d._chatDbLidMigrationTimestamp = "chatDbLidMigrationTimestamp";
29754
29795
  }
@@ -31567,7 +31608,7 @@ export const proto = $root.proto = (() => {
31567
31608
  if (typeof m.msgOrderId === "number")
31568
31609
  d.msgOrderId = o.longs === String ? String(m.msgOrderId) : m.msgOrderId;
31569
31610
  else
31570
- d.msgOrderId = o.longs === String ? $util.Long.prototype.toString.call(m.msgOrderId) : o.longs === Number ? new $util.LongBits(m.msgOrderId.low >>> 0, m.msgOrderId.high >>> 0).toNumber(true) : m.msgOrderId;
31611
+ d.msgOrderId = o.longs === String ? longToString(m.msgOrderId, true) : o.longs === Number ? longToNumber(m.msgOrderId, true) : m.msgOrderId;
31571
31612
  if (o.oneofs)
31572
31613
  d._msgOrderId = "msgOrderId";
31573
31614
  }
@@ -33604,7 +33645,7 @@ export const proto = $root.proto = (() => {
33604
33645
  if (typeof m.serverTimestamp === "number")
33605
33646
  d.serverTimestamp = o.longs === String ? String(m.serverTimestamp) : m.serverTimestamp;
33606
33647
  else
33607
- d.serverTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestamp) : o.longs === Number ? new $util.LongBits(m.serverTimestamp.low >>> 0, m.serverTimestamp.high >>> 0).toNumber() : m.serverTimestamp;
33648
+ d.serverTimestamp = o.longs === String ? longToString(m.serverTimestamp) : o.longs === Number ? longToNumber(m.serverTimestamp) : m.serverTimestamp;
33608
33649
  if (o.oneofs)
33609
33650
  d._serverTimestamp = "serverTimestamp";
33610
33651
  }
@@ -33622,7 +33663,7 @@ export const proto = $root.proto = (() => {
33622
33663
  if (typeof m.clientTimestampMs === "number")
33623
33664
  d.clientTimestampMs = o.longs === String ? String(m.clientTimestampMs) : m.clientTimestampMs;
33624
33665
  else
33625
- d.clientTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.clientTimestampMs) : o.longs === Number ? new $util.LongBits(m.clientTimestampMs.low >>> 0, m.clientTimestampMs.high >>> 0).toNumber() : m.clientTimestampMs;
33666
+ d.clientTimestampMs = o.longs === String ? longToString(m.clientTimestampMs) : o.longs === Number ? longToNumber(m.clientTimestampMs) : m.clientTimestampMs;
33626
33667
  if (o.oneofs)
33627
33668
  d._clientTimestampMs = "clientTimestampMs";
33628
33669
  }
@@ -33630,7 +33671,7 @@ export const proto = $root.proto = (() => {
33630
33671
  if (typeof m.serverTimestampMs === "number")
33631
33672
  d.serverTimestampMs = o.longs === String ? String(m.serverTimestampMs) : m.serverTimestampMs;
33632
33673
  else
33633
- d.serverTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestampMs) : o.longs === Number ? new $util.LongBits(m.serverTimestampMs.low >>> 0, m.serverTimestampMs.high >>> 0).toNumber() : m.serverTimestampMs;
33674
+ d.serverTimestampMs = o.longs === String ? longToString(m.serverTimestampMs) : o.longs === Number ? longToNumber(m.serverTimestampMs) : m.serverTimestampMs;
33634
33675
  if (o.oneofs)
33635
33676
  d._serverTimestampMs = "serverTimestampMs";
33636
33677
  }
@@ -34057,19 +34098,19 @@ export const proto = $root.proto = (() => {
34057
34098
  if (typeof m.pn === "number")
34058
34099
  d.pn = o.longs === String ? String(m.pn) : m.pn;
34059
34100
  else
34060
- d.pn = o.longs === String ? $util.Long.prototype.toString.call(m.pn) : o.longs === Number ? new $util.LongBits(m.pn.low >>> 0, m.pn.high >>> 0).toNumber(true) : m.pn;
34101
+ d.pn = o.longs === String ? longToString(m.pn, true) : o.longs === Number ? longToNumber(m.pn, true) : m.pn;
34061
34102
  }
34062
34103
  if (m.assignedLid != null && m.hasOwnProperty("assignedLid")) {
34063
34104
  if (typeof m.assignedLid === "number")
34064
34105
  d.assignedLid = o.longs === String ? String(m.assignedLid) : m.assignedLid;
34065
34106
  else
34066
- d.assignedLid = o.longs === String ? $util.Long.prototype.toString.call(m.assignedLid) : o.longs === Number ? new $util.LongBits(m.assignedLid.low >>> 0, m.assignedLid.high >>> 0).toNumber(true) : m.assignedLid;
34107
+ d.assignedLid = o.longs === String ? longToString(m.assignedLid, true) : o.longs === Number ? longToNumber(m.assignedLid, true) : m.assignedLid;
34067
34108
  }
34068
34109
  if (m.latestLid != null && m.hasOwnProperty("latestLid")) {
34069
34110
  if (typeof m.latestLid === "number")
34070
34111
  d.latestLid = o.longs === String ? String(m.latestLid) : m.latestLid;
34071
34112
  else
34072
- d.latestLid = o.longs === String ? $util.Long.prototype.toString.call(m.latestLid) : o.longs === Number ? new $util.LongBits(m.latestLid.low >>> 0, m.latestLid.high >>> 0).toNumber(true) : m.latestLid;
34113
+ d.latestLid = o.longs === String ? longToString(m.latestLid, true) : o.longs === Number ? longToNumber(m.latestLid, true) : m.latestLid;
34073
34114
  if (o.oneofs)
34074
34115
  d._latestLid = "latestLid";
34075
34116
  }
@@ -34289,7 +34330,7 @@ export const proto = $root.proto = (() => {
34289
34330
  if (typeof m.chatDbMigrationTimestamp === "number")
34290
34331
  d.chatDbMigrationTimestamp = o.longs === String ? String(m.chatDbMigrationTimestamp) : m.chatDbMigrationTimestamp;
34291
34332
  else
34292
- d.chatDbMigrationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.chatDbMigrationTimestamp) : o.longs === Number ? new $util.LongBits(m.chatDbMigrationTimestamp.low >>> 0, m.chatDbMigrationTimestamp.high >>> 0).toNumber(true) : m.chatDbMigrationTimestamp;
34333
+ d.chatDbMigrationTimestamp = o.longs === String ? longToString(m.chatDbMigrationTimestamp, true) : o.longs === Number ? longToNumber(m.chatDbMigrationTimestamp, true) : m.chatDbMigrationTimestamp;
34293
34334
  if (o.oneofs)
34294
34335
  d._chatDbMigrationTimestamp = "chatDbMigrationTimestamp";
34295
34336
  }
@@ -34579,7 +34620,7 @@ export const proto = $root.proto = (() => {
34579
34620
  if (typeof m.limitSharingSettingTimestamp === "number")
34580
34621
  d.limitSharingSettingTimestamp = o.longs === String ? String(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
34581
34622
  else
34582
- d.limitSharingSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.limitSharingSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.limitSharingSettingTimestamp.low >>> 0, m.limitSharingSettingTimestamp.high >>> 0).toNumber() : m.limitSharingSettingTimestamp;
34623
+ d.limitSharingSettingTimestamp = o.longs === String ? longToString(m.limitSharingSettingTimestamp) : o.longs === Number ? longToNumber(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
34583
34624
  if (o.oneofs)
34584
34625
  d._limitSharingSettingTimestamp = "limitSharingSettingTimestamp";
34585
34626
  }
@@ -35084,7 +35125,7 @@ export const proto = $root.proto = (() => {
35084
35125
  if (typeof m.fileLength === "number")
35085
35126
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
35086
35127
  else
35087
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
35128
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
35088
35129
  if (o.oneofs)
35089
35130
  d._fileLength = "fileLength";
35090
35131
  }
@@ -35395,7 +35436,7 @@ export const proto = $root.proto = (() => {
35395
35436
  if (typeof m.labelTimestamp === "number")
35396
35437
  d.labelTimestamp = o.longs === String ? String(m.labelTimestamp) : m.labelTimestamp;
35397
35438
  else
35398
- d.labelTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.labelTimestamp) : o.longs === Number ? new $util.LongBits(m.labelTimestamp.low >>> 0, m.labelTimestamp.high >>> 0).toNumber() : m.labelTimestamp;
35439
+ d.labelTimestamp = o.longs === String ? longToString(m.labelTimestamp) : o.longs === Number ? longToNumber(m.labelTimestamp) : m.labelTimestamp;
35399
35440
  if (o.oneofs)
35400
35441
  d._labelTimestamp = "labelTimestamp";
35401
35442
  }
@@ -37901,7 +37942,7 @@ export const proto = $root.proto = (() => {
37901
37942
  if (typeof m.timestamp === "number")
37902
37943
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
37903
37944
  else
37904
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
37945
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
37905
37946
  if (o.oneofs)
37906
37947
  d._timestamp = "timestamp";
37907
37948
  }
@@ -38159,7 +38200,7 @@ export const proto = $root.proto = (() => {
38159
38200
  if (typeof m.timestamp === "number")
38160
38201
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
38161
38202
  else
38162
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
38203
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
38163
38204
  if (o.oneofs)
38164
38205
  d._timestamp = "timestamp";
38165
38206
  }
@@ -39005,7 +39046,7 @@ export const proto = $root.proto = (() => {
39005
39046
  if (typeof m.fileLength === "number")
39006
39047
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
39007
39048
  else
39008
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
39049
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
39009
39050
  if (o.oneofs)
39010
39051
  d._fileLength = "fileLength";
39011
39052
  }
@@ -39038,7 +39079,7 @@ export const proto = $root.proto = (() => {
39038
39079
  if (typeof m.mediaKeyTimestamp === "number")
39039
39080
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
39040
39081
  else
39041
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
39082
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
39042
39083
  if (o.oneofs)
39043
39084
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
39044
39085
  }
@@ -40620,7 +40661,7 @@ export const proto = $root.proto = (() => {
40620
40661
  if (typeof m.durationSecs === "number")
40621
40662
  d.durationSecs = o.longs === String ? String(m.durationSecs) : m.durationSecs;
40622
40663
  else
40623
- d.durationSecs = o.longs === String ? $util.Long.prototype.toString.call(m.durationSecs) : o.longs === Number ? new $util.LongBits(m.durationSecs.low >>> 0, m.durationSecs.high >>> 0).toNumber() : m.durationSecs;
40664
+ d.durationSecs = o.longs === String ? longToString(m.durationSecs) : o.longs === Number ? longToNumber(m.durationSecs) : m.durationSecs;
40624
40665
  if (o.oneofs)
40625
40666
  d._durationSecs = "durationSecs";
40626
40667
  }
@@ -41199,7 +41240,7 @@ export const proto = $root.proto = (() => {
41199
41240
  if (typeof m.senderNotificationTimestampMs === "number")
41200
41241
  d.senderNotificationTimestampMs = o.longs === String ? String(m.senderNotificationTimestampMs) : m.senderNotificationTimestampMs;
41201
41242
  else
41202
- d.senderNotificationTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderNotificationTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderNotificationTimestampMs.low >>> 0, m.senderNotificationTimestampMs.high >>> 0).toNumber() : m.senderNotificationTimestampMs;
41243
+ d.senderNotificationTimestampMs = o.longs === String ? longToString(m.senderNotificationTimestampMs) : o.longs === Number ? longToNumber(m.senderNotificationTimestampMs) : m.senderNotificationTimestampMs;
41203
41244
  if (o.oneofs)
41204
41245
  d._senderNotificationTimestampMs = "senderNotificationTimestampMs";
41205
41246
  }
@@ -42451,7 +42492,7 @@ export const proto = $root.proto = (() => {
42451
42492
  if (typeof m.fileLength === "number")
42452
42493
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
42453
42494
  else
42454
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
42495
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
42455
42496
  if (o.oneofs)
42456
42497
  d._fileLength = "fileLength";
42457
42498
  }
@@ -42484,7 +42525,7 @@ export const proto = $root.proto = (() => {
42484
42525
  if (typeof m.mediaKeyTimestamp === "number")
42485
42526
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
42486
42527
  else
42487
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
42528
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
42488
42529
  if (o.oneofs)
42489
42530
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
42490
42531
  }
@@ -43275,7 +43316,7 @@ export const proto = $root.proto = (() => {
43275
43316
  if (typeof m.startTime === "number")
43276
43317
  d.startTime = o.longs === String ? String(m.startTime) : m.startTime;
43277
43318
  else
43278
- d.startTime = o.longs === String ? $util.Long.prototype.toString.call(m.startTime) : o.longs === Number ? new $util.LongBits(m.startTime.low >>> 0, m.startTime.high >>> 0).toNumber() : m.startTime;
43319
+ d.startTime = o.longs === String ? longToString(m.startTime) : o.longs === Number ? longToNumber(m.startTime) : m.startTime;
43279
43320
  if (o.oneofs)
43280
43321
  d._startTime = "startTime";
43281
43322
  }
@@ -43283,7 +43324,7 @@ export const proto = $root.proto = (() => {
43283
43324
  if (typeof m.endTime === "number")
43284
43325
  d.endTime = o.longs === String ? String(m.endTime) : m.endTime;
43285
43326
  else
43286
- d.endTime = o.longs === String ? $util.Long.prototype.toString.call(m.endTime) : o.longs === Number ? new $util.LongBits(m.endTime.low >>> 0, m.endTime.high >>> 0).toNumber() : m.endTime;
43327
+ d.endTime = o.longs === String ? longToString(m.endTime) : o.longs === Number ? longToNumber(m.endTime) : m.endTime;
43287
43328
  if (o.oneofs)
43288
43329
  d._endTime = "endTime";
43289
43330
  }
@@ -43306,7 +43347,7 @@ export const proto = $root.proto = (() => {
43306
43347
  if (typeof m.reminderOffsetSec === "number")
43307
43348
  d.reminderOffsetSec = o.longs === String ? String(m.reminderOffsetSec) : m.reminderOffsetSec;
43308
43349
  else
43309
- d.reminderOffsetSec = o.longs === String ? $util.Long.prototype.toString.call(m.reminderOffsetSec) : o.longs === Number ? new $util.LongBits(m.reminderOffsetSec.low >>> 0, m.reminderOffsetSec.high >>> 0).toNumber() : m.reminderOffsetSec;
43350
+ d.reminderOffsetSec = o.longs === String ? longToString(m.reminderOffsetSec) : o.longs === Number ? longToNumber(m.reminderOffsetSec) : m.reminderOffsetSec;
43310
43351
  if (o.oneofs)
43311
43352
  d._reminderOffsetSec = "reminderOffsetSec";
43312
43353
  }
@@ -43462,7 +43503,7 @@ export const proto = $root.proto = (() => {
43462
43503
  if (typeof m.timestampMs === "number")
43463
43504
  d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
43464
43505
  else
43465
- d.timestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.timestampMs) : o.longs === Number ? new $util.LongBits(m.timestampMs.low >>> 0, m.timestampMs.high >>> 0).toNumber() : m.timestampMs;
43506
+ d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
43466
43507
  if (o.oneofs)
43467
43508
  d._timestampMs = "timestampMs";
43468
43509
  }
@@ -44289,7 +44330,7 @@ export const proto = $root.proto = (() => {
44289
44330
  if (typeof m.mediaKeyTimestamp === "number")
44290
44331
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
44291
44332
  else
44292
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
44333
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
44293
44334
  if (o.oneofs)
44294
44335
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
44295
44336
  }
@@ -44819,7 +44860,7 @@ export const proto = $root.proto = (() => {
44819
44860
  if (typeof m.inviteExpiration === "number")
44820
44861
  d.inviteExpiration = o.longs === String ? String(m.inviteExpiration) : m.inviteExpiration;
44821
44862
  else
44822
- d.inviteExpiration = o.longs === String ? $util.Long.prototype.toString.call(m.inviteExpiration) : o.longs === Number ? new $util.LongBits(m.inviteExpiration.low >>> 0, m.inviteExpiration.high >>> 0).toNumber() : m.inviteExpiration;
44863
+ d.inviteExpiration = o.longs === String ? longToString(m.inviteExpiration) : o.longs === Number ? longToNumber(m.inviteExpiration) : m.inviteExpiration;
44823
44864
  if (o.oneofs)
44824
44865
  d._inviteExpiration = "inviteExpiration";
44825
44866
  }
@@ -45365,7 +45406,7 @@ export const proto = $root.proto = (() => {
45365
45406
  if (typeof m.amount1000 === "number")
45366
45407
  d.amount1000 = o.longs === String ? String(m.amount1000) : m.amount1000;
45367
45408
  else
45368
- d.amount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.amount1000) : o.longs === Number ? new $util.LongBits(m.amount1000.low >>> 0, m.amount1000.high >>> 0).toNumber() : m.amount1000;
45409
+ d.amount1000 = o.longs === String ? longToString(m.amount1000) : o.longs === Number ? longToNumber(m.amount1000) : m.amount1000;
45369
45410
  if (o.oneofs)
45370
45411
  d._amount1000 = "amount1000";
45371
45412
  }
@@ -45845,7 +45886,7 @@ export const proto = $root.proto = (() => {
45845
45886
  if (typeof m.timestamp === "number")
45846
45887
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
45847
45888
  else
45848
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
45889
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
45849
45890
  if (o.oneofs)
45850
45891
  d._timestamp = "timestamp";
45851
45892
  }
@@ -46333,7 +46374,7 @@ export const proto = $root.proto = (() => {
46333
46374
  if (typeof m.fileLength === "number")
46334
46375
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
46335
46376
  else
46336
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
46377
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
46337
46378
  if (o.oneofs)
46338
46379
  d._fileLength = "fileLength";
46339
46380
  }
@@ -46376,7 +46417,7 @@ export const proto = $root.proto = (() => {
46376
46417
  if (typeof m.oldestMsgInChunkTimestampSec === "number")
46377
46418
  d.oldestMsgInChunkTimestampSec = o.longs === String ? String(m.oldestMsgInChunkTimestampSec) : m.oldestMsgInChunkTimestampSec;
46378
46419
  else
46379
- d.oldestMsgInChunkTimestampSec = o.longs === String ? $util.Long.prototype.toString.call(m.oldestMsgInChunkTimestampSec) : o.longs === Number ? new $util.LongBits(m.oldestMsgInChunkTimestampSec.low >>> 0, m.oldestMsgInChunkTimestampSec.high >>> 0).toNumber() : m.oldestMsgInChunkTimestampSec;
46420
+ d.oldestMsgInChunkTimestampSec = o.longs === String ? longToString(m.oldestMsgInChunkTimestampSec) : o.longs === Number ? longToNumber(m.oldestMsgInChunkTimestampSec) : m.oldestMsgInChunkTimestampSec;
46380
46421
  if (o.oneofs)
46381
46422
  d._oldestMsgInChunkTimestampSec = "oldestMsgInChunkTimestampSec";
46382
46423
  }
@@ -47126,7 +47167,7 @@ export const proto = $root.proto = (() => {
47126
47167
  if (typeof m.fileLength === "number")
47127
47168
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
47128
47169
  else
47129
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
47170
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
47130
47171
  if (o.oneofs)
47131
47172
  d._fileLength = "fileLength";
47132
47173
  }
@@ -47165,7 +47206,7 @@ export const proto = $root.proto = (() => {
47165
47206
  if (typeof m.mediaKeyTimestamp === "number")
47166
47207
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
47167
47208
  else
47168
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
47209
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
47169
47210
  if (o.oneofs)
47170
47211
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
47171
47212
  }
@@ -49461,7 +49502,7 @@ export const proto = $root.proto = (() => {
49461
49502
  if (typeof m.attachmentMediaKeyTimestamp === "number")
49462
49503
  d.attachmentMediaKeyTimestamp = o.longs === String ? String(m.attachmentMediaKeyTimestamp) : m.attachmentMediaKeyTimestamp;
49463
49504
  else
49464
- d.attachmentMediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.attachmentMediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.attachmentMediaKeyTimestamp.low >>> 0, m.attachmentMediaKeyTimestamp.high >>> 0).toNumber() : m.attachmentMediaKeyTimestamp;
49505
+ d.attachmentMediaKeyTimestamp = o.longs === String ? longToString(m.attachmentMediaKeyTimestamp) : o.longs === Number ? longToNumber(m.attachmentMediaKeyTimestamp) : m.attachmentMediaKeyTimestamp;
49465
49506
  if (o.oneofs)
49466
49507
  d._attachmentMediaKeyTimestamp = "attachmentMediaKeyTimestamp";
49467
49508
  }
@@ -49647,7 +49688,7 @@ export const proto = $root.proto = (() => {
49647
49688
  if (typeof m.timestampMs === "number")
49648
49689
  d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
49649
49690
  else
49650
- d.timestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.timestampMs) : o.longs === Number ? new $util.LongBits(m.timestampMs.low >>> 0, m.timestampMs.high >>> 0).toNumber() : m.timestampMs;
49691
+ d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
49651
49692
  if (o.oneofs)
49652
49693
  d._timestampMs = "timestampMs";
49653
49694
  }
@@ -51494,7 +51535,7 @@ export const proto = $root.proto = (() => {
51494
51535
  if (typeof m.sequenceNumber === "number")
51495
51536
  d.sequenceNumber = o.longs === String ? String(m.sequenceNumber) : m.sequenceNumber;
51496
51537
  else
51497
- d.sequenceNumber = o.longs === String ? $util.Long.prototype.toString.call(m.sequenceNumber) : o.longs === Number ? new $util.LongBits(m.sequenceNumber.low >>> 0, m.sequenceNumber.high >>> 0).toNumber() : m.sequenceNumber;
51538
+ d.sequenceNumber = o.longs === String ? longToString(m.sequenceNumber) : o.longs === Number ? longToNumber(m.sequenceNumber) : m.sequenceNumber;
51498
51539
  if (o.oneofs)
51499
51540
  d._sequenceNumber = "sequenceNumber";
51500
51541
  }
@@ -52097,7 +52138,7 @@ export const proto = $root.proto = (() => {
52097
52138
  if (typeof m.mediaKeyTimestamp === "number")
52098
52139
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
52099
52140
  else
52100
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
52141
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
52101
52142
  if (o.oneofs)
52102
52143
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
52103
52144
  }
@@ -52370,7 +52411,7 @@ export const proto = $root.proto = (() => {
52370
52411
  if (typeof m.mediaKeyTimestamp === "number")
52371
52412
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
52372
52413
  else
52373
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
52414
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
52374
52415
  if (o.oneofs)
52375
52416
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
52376
52417
  }
@@ -52530,7 +52571,7 @@ export const proto = $root.proto = (() => {
52530
52571
  if (typeof m.oldestMessageTimestamp === "number")
52531
52572
  d.oldestMessageTimestamp = o.longs === String ? String(m.oldestMessageTimestamp) : m.oldestMessageTimestamp;
52532
52573
  else
52533
- d.oldestMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.oldestMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.oldestMessageTimestamp.low >>> 0, m.oldestMessageTimestamp.high >>> 0).toNumber() : m.oldestMessageTimestamp;
52574
+ d.oldestMessageTimestamp = o.longs === String ? longToString(m.oldestMessageTimestamp) : o.longs === Number ? longToNumber(m.oldestMessageTimestamp) : m.oldestMessageTimestamp;
52534
52575
  if (o.oneofs)
52535
52576
  d._oldestMessageTimestamp = "oldestMessageTimestamp";
52536
52577
  }
@@ -52538,7 +52579,7 @@ export const proto = $root.proto = (() => {
52538
52579
  if (typeof m.messageCount === "number")
52539
52580
  d.messageCount = o.longs === String ? String(m.messageCount) : m.messageCount;
52540
52581
  else
52541
- d.messageCount = o.longs === String ? $util.Long.prototype.toString.call(m.messageCount) : o.longs === Number ? new $util.LongBits(m.messageCount.low >>> 0, m.messageCount.high >>> 0).toNumber() : m.messageCount;
52582
+ d.messageCount = o.longs === String ? longToString(m.messageCount) : o.longs === Number ? longToNumber(m.messageCount) : m.messageCount;
52542
52583
  if (o.oneofs)
52543
52584
  d._messageCount = "messageCount";
52544
52585
  }
@@ -52854,7 +52895,7 @@ export const proto = $root.proto = (() => {
52854
52895
  if (typeof m.inviteExpiration === "number")
52855
52896
  d.inviteExpiration = o.longs === String ? String(m.inviteExpiration) : m.inviteExpiration;
52856
52897
  else
52857
- d.inviteExpiration = o.longs === String ? $util.Long.prototype.toString.call(m.inviteExpiration) : o.longs === Number ? new $util.LongBits(m.inviteExpiration.low >>> 0, m.inviteExpiration.high >>> 0).toNumber() : m.inviteExpiration;
52898
+ d.inviteExpiration = o.longs === String ? longToString(m.inviteExpiration) : o.longs === Number ? longToNumber(m.inviteExpiration) : m.inviteExpiration;
52858
52899
  if (o.oneofs)
52859
52900
  d._inviteExpiration = "inviteExpiration";
52860
52901
  }
@@ -53436,7 +53477,7 @@ export const proto = $root.proto = (() => {
53436
53477
  if (typeof m.totalAmount1000 === "number")
53437
53478
  d.totalAmount1000 = o.longs === String ? String(m.totalAmount1000) : m.totalAmount1000;
53438
53479
  else
53439
- d.totalAmount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.totalAmount1000) : o.longs === Number ? new $util.LongBits(m.totalAmount1000.low >>> 0, m.totalAmount1000.high >>> 0).toNumber() : m.totalAmount1000;
53480
+ d.totalAmount1000 = o.longs === String ? longToString(m.totalAmount1000) : o.longs === Number ? longToNumber(m.totalAmount1000) : m.totalAmount1000;
53440
53481
  if (o.oneofs)
53441
53482
  d._totalAmount1000 = "totalAmount1000";
53442
53483
  }
@@ -53745,7 +53786,7 @@ export const proto = $root.proto = (() => {
53745
53786
  if (typeof m.expiryTimestamp === "number")
53746
53787
  d.expiryTimestamp = o.longs === String ? String(m.expiryTimestamp) : m.expiryTimestamp;
53747
53788
  else
53748
- d.expiryTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.expiryTimestamp) : o.longs === Number ? new $util.LongBits(m.expiryTimestamp.low >>> 0, m.expiryTimestamp.high >>> 0).toNumber() : m.expiryTimestamp;
53789
+ d.expiryTimestamp = o.longs === String ? longToString(m.expiryTimestamp) : o.longs === Number ? longToNumber(m.expiryTimestamp) : m.expiryTimestamp;
53749
53790
  if (o.oneofs)
53750
53791
  d._expiryTimestamp = "expiryTimestamp";
53751
53792
  }
@@ -55164,7 +55205,7 @@ export const proto = $root.proto = (() => {
55164
55205
  if (typeof m.oldestMsgTimestampMs === "number")
55165
55206
  d.oldestMsgTimestampMs = o.longs === String ? String(m.oldestMsgTimestampMs) : m.oldestMsgTimestampMs;
55166
55207
  else
55167
- d.oldestMsgTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.oldestMsgTimestampMs) : o.longs === Number ? new $util.LongBits(m.oldestMsgTimestampMs.low >>> 0, m.oldestMsgTimestampMs.high >>> 0).toNumber() : m.oldestMsgTimestampMs;
55208
+ d.oldestMsgTimestampMs = o.longs === String ? longToString(m.oldestMsgTimestampMs) : o.longs === Number ? longToNumber(m.oldestMsgTimestampMs) : m.oldestMsgTimestampMs;
55168
55209
  if (o.oneofs)
55169
55210
  d._oldestMsgTimestampMs = "oldestMsgTimestampMs";
55170
55211
  }
@@ -55575,7 +55616,7 @@ export const proto = $root.proto = (() => {
55575
55616
  if (typeof m.timestamp === "number")
55576
55617
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
55577
55618
  else
55578
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
55619
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
55579
55620
  if (o.oneofs)
55580
55621
  d._timestamp = "timestamp";
55581
55622
  }
@@ -57164,7 +57205,7 @@ export const proto = $root.proto = (() => {
57164
57205
  if (typeof m.mediaKeyTimestampMs === "number")
57165
57206
  d.mediaKeyTimestampMs = o.longs === String ? String(m.mediaKeyTimestampMs) : m.mediaKeyTimestampMs;
57166
57207
  else
57167
- d.mediaKeyTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestampMs) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestampMs.low >>> 0, m.mediaKeyTimestampMs.high >>> 0).toNumber() : m.mediaKeyTimestampMs;
57208
+ d.mediaKeyTimestampMs = o.longs === String ? longToString(m.mediaKeyTimestampMs) : o.longs === Number ? longToNumber(m.mediaKeyTimestampMs) : m.mediaKeyTimestampMs;
57168
57209
  if (o.oneofs)
57169
57210
  d._mediaKeyTimestampMs = "mediaKeyTimestampMs";
57170
57211
  }
@@ -57780,7 +57821,7 @@ export const proto = $root.proto = (() => {
57780
57821
  if (typeof m.senderTimestampMs === "number")
57781
57822
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
57782
57823
  else
57783
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
57824
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
57784
57825
  if (o.oneofs)
57785
57826
  d._senderTimestampMs = "senderTimestampMs";
57786
57827
  }
@@ -58697,7 +58738,7 @@ export const proto = $root.proto = (() => {
58697
58738
  if (typeof m.optionVoteCount === "number")
58698
58739
  d.optionVoteCount = o.longs === String ? String(m.optionVoteCount) : m.optionVoteCount;
58699
58740
  else
58700
- d.optionVoteCount = o.longs === String ? $util.Long.prototype.toString.call(m.optionVoteCount) : o.longs === Number ? new $util.LongBits(m.optionVoteCount.low >>> 0, m.optionVoteCount.high >>> 0).toNumber() : m.optionVoteCount;
58741
+ d.optionVoteCount = o.longs === String ? longToString(m.optionVoteCount) : o.longs === Number ? longToNumber(m.optionVoteCount) : m.optionVoteCount;
58701
58742
  if (o.oneofs)
58702
58743
  d._optionVoteCount = "optionVoteCount";
58703
58744
  }
@@ -58874,7 +58915,7 @@ export const proto = $root.proto = (() => {
58874
58915
  if (typeof m.senderTimestampMs === "number")
58875
58916
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
58876
58917
  else
58877
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
58918
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
58878
58919
  if (o.oneofs)
58879
58920
  d._senderTimestampMs = "senderTimestampMs";
58880
58921
  }
@@ -59667,7 +59708,7 @@ export const proto = $root.proto = (() => {
59667
59708
  if (typeof m.priceAmount1000 === "number")
59668
59709
  d.priceAmount1000 = o.longs === String ? String(m.priceAmount1000) : m.priceAmount1000;
59669
59710
  else
59670
- d.priceAmount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.priceAmount1000) : o.longs === Number ? new $util.LongBits(m.priceAmount1000.low >>> 0, m.priceAmount1000.high >>> 0).toNumber() : m.priceAmount1000;
59711
+ d.priceAmount1000 = o.longs === String ? longToString(m.priceAmount1000) : o.longs === Number ? longToNumber(m.priceAmount1000) : m.priceAmount1000;
59671
59712
  if (o.oneofs)
59672
59713
  d._priceAmount1000 = "priceAmount1000";
59673
59714
  }
@@ -59695,7 +59736,7 @@ export const proto = $root.proto = (() => {
59695
59736
  if (typeof m.salePriceAmount1000 === "number")
59696
59737
  d.salePriceAmount1000 = o.longs === String ? String(m.salePriceAmount1000) : m.salePriceAmount1000;
59697
59738
  else
59698
- d.salePriceAmount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.salePriceAmount1000) : o.longs === Number ? new $util.LongBits(m.salePriceAmount1000.low >>> 0, m.salePriceAmount1000.high >>> 0).toNumber() : m.salePriceAmount1000;
59739
+ d.salePriceAmount1000 = o.longs === String ? longToString(m.salePriceAmount1000) : o.longs === Number ? longToNumber(m.salePriceAmount1000) : m.salePriceAmount1000;
59699
59740
  if (o.oneofs)
59700
59741
  d._salePriceAmount1000 = "salePriceAmount1000";
59701
59742
  }
@@ -60339,7 +60380,7 @@ export const proto = $root.proto = (() => {
60339
60380
  if (typeof m.ephemeralSettingTimestamp === "number")
60340
60381
  d.ephemeralSettingTimestamp = o.longs === String ? String(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
60341
60382
  else
60342
- d.ephemeralSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.ephemeralSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.ephemeralSettingTimestamp.low >>> 0, m.ephemeralSettingTimestamp.high >>> 0).toNumber() : m.ephemeralSettingTimestamp;
60383
+ d.ephemeralSettingTimestamp = o.longs === String ? longToString(m.ephemeralSettingTimestamp) : o.longs === Number ? longToNumber(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
60343
60384
  if (o.oneofs)
60344
60385
  d._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
60345
60386
  }
@@ -60382,7 +60423,7 @@ export const proto = $root.proto = (() => {
60382
60423
  if (typeof m.timestampMs === "number")
60383
60424
  d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
60384
60425
  else
60385
- d.timestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.timestampMs) : o.longs === Number ? new $util.LongBits(m.timestampMs.low >>> 0, m.timestampMs.high >>> 0).toNumber() : m.timestampMs;
60426
+ d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
60386
60427
  if (o.oneofs)
60387
60428
  d._timestampMs = "timestampMs";
60388
60429
  }
@@ -60747,7 +60788,7 @@ export const proto = $root.proto = (() => {
60747
60788
  if (typeof m.senderTimestampMs === "number")
60748
60789
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
60749
60790
  else
60750
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
60791
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
60751
60792
  if (o.oneofs)
60752
60793
  d._senderTimestampMs = "senderTimestampMs";
60753
60794
  }
@@ -60959,7 +61000,7 @@ export const proto = $root.proto = (() => {
60959
61000
  if (typeof m.amount1000 === "number")
60960
61001
  d.amount1000 = o.longs === String ? String(m.amount1000) : m.amount1000;
60961
61002
  else
60962
- d.amount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.amount1000) : o.longs === Number ? new $util.LongBits(m.amount1000.low >>> 0, m.amount1000.high >>> 0).toNumber(true) : m.amount1000;
61003
+ d.amount1000 = o.longs === String ? longToString(m.amount1000, true) : o.longs === Number ? longToNumber(m.amount1000, true) : m.amount1000;
60963
61004
  if (o.oneofs)
60964
61005
  d._amount1000 = "amount1000";
60965
61006
  }
@@ -60977,7 +61018,7 @@ export const proto = $root.proto = (() => {
60977
61018
  if (typeof m.expiryTimestamp === "number")
60978
61019
  d.expiryTimestamp = o.longs === String ? String(m.expiryTimestamp) : m.expiryTimestamp;
60979
61020
  else
60980
- d.expiryTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.expiryTimestamp) : o.longs === Number ? new $util.LongBits(m.expiryTimestamp.low >>> 0, m.expiryTimestamp.high >>> 0).toNumber() : m.expiryTimestamp;
61021
+ d.expiryTimestamp = o.longs === String ? longToString(m.expiryTimestamp) : o.longs === Number ? longToNumber(m.expiryTimestamp) : m.expiryTimestamp;
60981
61022
  if (o.oneofs)
60982
61023
  d._expiryTimestamp = "expiryTimestamp";
60983
61024
  }
@@ -61332,7 +61373,7 @@ export const proto = $root.proto = (() => {
61332
61373
  if (typeof m.scheduledTimestampMs === "number")
61333
61374
  d.scheduledTimestampMs = o.longs === String ? String(m.scheduledTimestampMs) : m.scheduledTimestampMs;
61334
61375
  else
61335
- d.scheduledTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.scheduledTimestampMs) : o.longs === Number ? new $util.LongBits(m.scheduledTimestampMs.low >>> 0, m.scheduledTimestampMs.high >>> 0).toNumber() : m.scheduledTimestampMs;
61376
+ d.scheduledTimestampMs = o.longs === String ? longToString(m.scheduledTimestampMs) : o.longs === Number ? longToNumber(m.scheduledTimestampMs) : m.scheduledTimestampMs;
61336
61377
  if (o.oneofs)
61337
61378
  d._scheduledTimestampMs = "scheduledTimestampMs";
61338
61379
  }
@@ -63046,7 +63087,7 @@ export const proto = $root.proto = (() => {
63046
63087
  if (typeof m.fileLength === "number")
63047
63088
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
63048
63089
  else
63049
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
63090
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
63050
63091
  if (o.oneofs)
63051
63092
  d._fileLength = "fileLength";
63052
63093
  }
@@ -63054,7 +63095,7 @@ export const proto = $root.proto = (() => {
63054
63095
  if (typeof m.mediaKeyTimestamp === "number")
63055
63096
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
63056
63097
  else
63057
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
63098
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
63058
63099
  if (o.oneofs)
63059
63100
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
63060
63101
  }
@@ -63087,7 +63128,7 @@ export const proto = $root.proto = (() => {
63087
63128
  if (typeof m.stickerSentTs === "number")
63088
63129
  d.stickerSentTs = o.longs === String ? String(m.stickerSentTs) : m.stickerSentTs;
63089
63130
  else
63090
- d.stickerSentTs = o.longs === String ? $util.Long.prototype.toString.call(m.stickerSentTs) : o.longs === Number ? new $util.LongBits(m.stickerSentTs.low >>> 0, m.stickerSentTs.high >>> 0).toNumber() : m.stickerSentTs;
63131
+ d.stickerSentTs = o.longs === String ? longToString(m.stickerSentTs) : o.longs === Number ? longToNumber(m.stickerSentTs) : m.stickerSentTs;
63091
63132
  if (o.oneofs)
63092
63133
  d._stickerSentTs = "stickerSentTs";
63093
63134
  }
@@ -63624,7 +63665,7 @@ export const proto = $root.proto = (() => {
63624
63665
  if (typeof m.fileLength === "number")
63625
63666
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
63626
63667
  else
63627
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
63668
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
63628
63669
  if (o.oneofs)
63629
63670
  d._fileLength = "fileLength";
63630
63671
  }
@@ -63667,7 +63708,7 @@ export const proto = $root.proto = (() => {
63667
63708
  if (typeof m.mediaKeyTimestamp === "number")
63668
63709
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
63669
63710
  else
63670
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
63711
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
63671
63712
  if (o.oneofs)
63672
63713
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
63673
63714
  }
@@ -63710,7 +63751,7 @@ export const proto = $root.proto = (() => {
63710
63751
  if (typeof m.stickerPackSize === "number")
63711
63752
  d.stickerPackSize = o.longs === String ? String(m.stickerPackSize) : m.stickerPackSize;
63712
63753
  else
63713
- d.stickerPackSize = o.longs === String ? $util.Long.prototype.toString.call(m.stickerPackSize) : o.longs === Number ? new $util.LongBits(m.stickerPackSize.low >>> 0, m.stickerPackSize.high >>> 0).toNumber(true) : m.stickerPackSize;
63754
+ d.stickerPackSize = o.longs === String ? longToString(m.stickerPackSize, true) : o.longs === Number ? longToNumber(m.stickerPackSize, true) : m.stickerPackSize;
63714
63755
  if (o.oneofs)
63715
63756
  d._stickerPackSize = "stickerPackSize";
63716
63757
  }
@@ -64072,7 +64113,7 @@ export const proto = $root.proto = (() => {
64072
64113
  if (typeof m.requestTimestamp === "number")
64073
64114
  d.requestTimestamp = o.longs === String ? String(m.requestTimestamp) : m.requestTimestamp;
64074
64115
  else
64075
- d.requestTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.requestTimestamp) : o.longs === Number ? new $util.LongBits(m.requestTimestamp.low >>> 0, m.requestTimestamp.high >>> 0).toNumber() : m.requestTimestamp;
64116
+ d.requestTimestamp = o.longs === String ? longToString(m.requestTimestamp) : o.longs === Number ? longToNumber(m.requestTimestamp) : m.requestTimestamp;
64076
64117
  if (o.oneofs)
64077
64118
  d._requestTimestamp = "requestTimestamp";
64078
64119
  }
@@ -65863,7 +65904,7 @@ export const proto = $root.proto = (() => {
65863
65904
  if (typeof m.fileLength === "number")
65864
65905
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
65865
65906
  else
65866
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
65907
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
65867
65908
  if (o.oneofs)
65868
65909
  d._fileLength = "fileLength";
65869
65910
  }
@@ -65917,7 +65958,7 @@ export const proto = $root.proto = (() => {
65917
65958
  if (typeof m.mediaKeyTimestamp === "number")
65918
65959
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
65919
65960
  else
65920
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
65961
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
65921
65962
  if (o.oneofs)
65922
65963
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
65923
65964
  }
@@ -65992,7 +66033,7 @@ export const proto = $root.proto = (() => {
65992
66033
  if (typeof m.motionPhotoPresentationOffsetMs === "number")
65993
66034
  d.motionPhotoPresentationOffsetMs = o.longs === String ? String(m.motionPhotoPresentationOffsetMs) : m.motionPhotoPresentationOffsetMs;
65994
66035
  else
65995
- d.motionPhotoPresentationOffsetMs = o.longs === String ? $util.Long.prototype.toString.call(m.motionPhotoPresentationOffsetMs) : o.longs === Number ? new $util.LongBits(m.motionPhotoPresentationOffsetMs.low >>> 0, m.motionPhotoPresentationOffsetMs.high >>> 0).toNumber(true) : m.motionPhotoPresentationOffsetMs;
66036
+ d.motionPhotoPresentationOffsetMs = o.longs === String ? longToString(m.motionPhotoPresentationOffsetMs, true) : o.longs === Number ? longToNumber(m.motionPhotoPresentationOffsetMs, true) : m.motionPhotoPresentationOffsetMs;
65996
66037
  if (o.oneofs)
65997
66038
  d._motionPhotoPresentationOffsetMs = "motionPhotoPresentationOffsetMs";
65998
66039
  }
@@ -66315,7 +66356,7 @@ export const proto = $root.proto = (() => {
66315
66356
  if (typeof m.senderTimestampMs === "number")
66316
66357
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
66317
66358
  else
66318
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
66359
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
66319
66360
  if (o.oneofs)
66320
66361
  d._senderTimestampMs = "senderTimestampMs";
66321
66362
  }
@@ -66323,7 +66364,7 @@ export const proto = $root.proto = (() => {
66323
66364
  if (typeof m.serverTimestampMs === "number")
66324
66365
  d.serverTimestampMs = o.longs === String ? String(m.serverTimestampMs) : m.serverTimestampMs;
66325
66366
  else
66326
- d.serverTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestampMs) : o.longs === Number ? new $util.LongBits(m.serverTimestampMs.low >>> 0, m.serverTimestampMs.high >>> 0).toNumber() : m.serverTimestampMs;
66367
+ d.serverTimestampMs = o.longs === String ? longToString(m.serverTimestampMs) : o.longs === Number ? longToNumber(m.serverTimestampMs) : m.serverTimestampMs;
66327
66368
  if (o.oneofs)
66328
66369
  d._serverTimestampMs = "serverTimestampMs";
66329
66370
  }
@@ -67599,7 +67640,7 @@ export const proto = $root.proto = (() => {
67599
67640
  if (typeof m.value === "number")
67600
67641
  d.value = o.longs === String ? String(m.value) : m.value;
67601
67642
  else
67602
- d.value = o.longs === String ? $util.Long.prototype.toString.call(m.value) : o.longs === Number ? new $util.LongBits(m.value.low >>> 0, m.value.high >>> 0).toNumber() : m.value;
67643
+ d.value = o.longs === String ? longToString(m.value) : o.longs === Number ? longToNumber(m.value) : m.value;
67603
67644
  if (o.oneofs)
67604
67645
  d._value = "value";
67605
67646
  }
@@ -68548,7 +68589,7 @@ export const proto = $root.proto = (() => {
68548
68589
  if (typeof m.senderTimestampMs === "number")
68549
68590
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
68550
68591
  else
68551
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
68592
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
68552
68593
  if (o.oneofs)
68553
68594
  d._senderTimestampMs = "senderTimestampMs";
68554
68595
  }
@@ -68626,7 +68667,7 @@ export const proto = $root.proto = (() => {
68626
68667
  if (typeof m.eventStartTime === "number")
68627
68668
  d.eventStartTime = o.longs === String ? String(m.eventStartTime) : m.eventStartTime;
68628
68669
  else
68629
- d.eventStartTime = o.longs === String ? $util.Long.prototype.toString.call(m.eventStartTime) : o.longs === Number ? new $util.LongBits(m.eventStartTime.low >>> 0, m.eventStartTime.high >>> 0).toNumber() : m.eventStartTime;
68670
+ d.eventStartTime = o.longs === String ? longToString(m.eventStartTime) : o.longs === Number ? longToNumber(m.eventStartTime) : m.eventStartTime;
68630
68671
  if (o.oneofs)
68631
68672
  d._eventStartTime = "eventStartTime";
68632
68673
  }
@@ -68639,7 +68680,7 @@ export const proto = $root.proto = (() => {
68639
68680
  if (typeof m.eventEndTime === "number")
68640
68681
  d.eventEndTime = o.longs === String ? String(m.eventEndTime) : m.eventEndTime;
68641
68682
  else
68642
- d.eventEndTime = o.longs === String ? $util.Long.prototype.toString.call(m.eventEndTime) : o.longs === Number ? new $util.LongBits(m.eventEndTime.low >>> 0, m.eventEndTime.high >>> 0).toNumber() : m.eventEndTime;
68683
+ d.eventEndTime = o.longs === String ? longToString(m.eventEndTime) : o.longs === Number ? longToNumber(m.eventEndTime) : m.eventEndTime;
68643
68684
  if (o.oneofs)
68644
68685
  d._eventEndTime = "eventEndTime";
68645
68686
  }
@@ -69684,7 +69725,7 @@ export const proto = $root.proto = (() => {
69684
69725
  if (typeof m.expires === "number")
69685
69726
  d.expires = o.longs === String ? String(m.expires) : m.expires;
69686
69727
  else
69687
- d.expires = o.longs === String ? $util.Long.prototype.toString.call(m.expires) : o.longs === Number ? new $util.LongBits(m.expires.low >>> 0, m.expires.high >>> 0).toNumber(true) : m.expires;
69728
+ d.expires = o.longs === String ? longToString(m.expires, true) : o.longs === Number ? longToNumber(m.expires, true) : m.expires;
69688
69729
  if (o.oneofs)
69689
69730
  d._expires = "expires";
69690
69731
  }
@@ -69857,7 +69898,7 @@ export const proto = $root.proto = (() => {
69857
69898
  if (typeof m.messageTimestamp === "number")
69858
69899
  d.messageTimestamp = o.longs === String ? String(m.messageTimestamp) : m.messageTimestamp;
69859
69900
  else
69860
- d.messageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.messageTimestamp) : o.longs === Number ? new $util.LongBits(m.messageTimestamp.low >>> 0, m.messageTimestamp.high >>> 0).toNumber(true) : m.messageTimestamp;
69901
+ d.messageTimestamp = o.longs === String ? longToString(m.messageTimestamp, true) : o.longs === Number ? longToNumber(m.messageTimestamp, true) : m.messageTimestamp;
69861
69902
  if (o.oneofs)
69862
69903
  d._messageTimestamp = "messageTimestamp";
69863
69904
  }
@@ -70347,7 +70388,7 @@ export const proto = $root.proto = (() => {
70347
70388
  if (typeof m.leaveTs === "number")
70348
70389
  d.leaveTs = o.longs === String ? String(m.leaveTs) : m.leaveTs;
70349
70390
  else
70350
- d.leaveTs = o.longs === String ? $util.Long.prototype.toString.call(m.leaveTs) : o.longs === Number ? new $util.LongBits(m.leaveTs.low >>> 0, m.leaveTs.high >>> 0).toNumber(true) : m.leaveTs;
70391
+ d.leaveTs = o.longs === String ? longToString(m.leaveTs, true) : o.longs === Number ? longToNumber(m.leaveTs, true) : m.leaveTs;
70351
70392
  if (o.oneofs)
70352
70393
  d._leaveTs = "leaveTs";
70353
70394
  }
@@ -71121,7 +71162,7 @@ export const proto = $root.proto = (() => {
71121
71162
  if (typeof m.fileLength === "number")
71122
71163
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
71123
71164
  else
71124
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
71165
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
71125
71166
  if (o.oneofs)
71126
71167
  d._fileLength = "fileLength";
71127
71168
  }
@@ -71334,7 +71375,7 @@ export const proto = $root.proto = (() => {
71334
71375
  if (typeof m.mediaKeyTimestamp === "number")
71335
71376
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
71336
71377
  else
71337
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
71378
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
71338
71379
  if (o.oneofs)
71339
71380
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
71340
71381
  }
@@ -71873,7 +71914,7 @@ export const proto = $root.proto = (() => {
71873
71914
  if (typeof m.amount1000 === "number")
71874
71915
  d.amount1000 = o.longs === String ? String(m.amount1000) : m.amount1000;
71875
71916
  else
71876
- d.amount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.amount1000) : o.longs === Number ? new $util.LongBits(m.amount1000.low >>> 0, m.amount1000.high >>> 0).toNumber(true) : m.amount1000;
71917
+ d.amount1000 = o.longs === String ? longToString(m.amount1000, true) : o.longs === Number ? longToNumber(m.amount1000, true) : m.amount1000;
71877
71918
  if (o.oneofs)
71878
71919
  d._amount1000 = "amount1000";
71879
71920
  }
@@ -71891,7 +71932,7 @@ export const proto = $root.proto = (() => {
71891
71932
  if (typeof m.transactionTimestamp === "number")
71892
71933
  d.transactionTimestamp = o.longs === String ? String(m.transactionTimestamp) : m.transactionTimestamp;
71893
71934
  else
71894
- d.transactionTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.transactionTimestamp) : o.longs === Number ? new $util.LongBits(m.transactionTimestamp.low >>> 0, m.transactionTimestamp.high >>> 0).toNumber(true) : m.transactionTimestamp;
71935
+ d.transactionTimestamp = o.longs === String ? longToString(m.transactionTimestamp, true) : o.longs === Number ? longToNumber(m.transactionTimestamp, true) : m.transactionTimestamp;
71895
71936
  if (o.oneofs)
71896
71937
  d._transactionTimestamp = "transactionTimestamp";
71897
71938
  }
@@ -71904,7 +71945,7 @@ export const proto = $root.proto = (() => {
71904
71945
  if (typeof m.expiryTimestamp === "number")
71905
71946
  d.expiryTimestamp = o.longs === String ? String(m.expiryTimestamp) : m.expiryTimestamp;
71906
71947
  else
71907
- d.expiryTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.expiryTimestamp) : o.longs === Number ? new $util.LongBits(m.expiryTimestamp.low >>> 0, m.expiryTimestamp.high >>> 0).toNumber(true) : m.expiryTimestamp;
71948
+ d.expiryTimestamp = o.longs === String ? longToString(m.expiryTimestamp, true) : o.longs === Number ? longToNumber(m.expiryTimestamp, true) : m.expiryTimestamp;
71908
71949
  if (o.oneofs)
71909
71950
  d._expiryTimestamp = "expiryTimestamp";
71910
71951
  }
@@ -72440,7 +72481,7 @@ export const proto = $root.proto = (() => {
72440
72481
  if (typeof m.senderTimestampMs === "number")
72441
72482
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
72442
72483
  else
72443
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
72484
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
72444
72485
  if (o.oneofs)
72445
72486
  d._senderTimestampMs = "senderTimestampMs";
72446
72487
  }
@@ -72448,7 +72489,7 @@ export const proto = $root.proto = (() => {
72448
72489
  if (typeof m.serverTimestampMs === "number")
72449
72490
  d.serverTimestampMs = o.longs === String ? String(m.serverTimestampMs) : m.serverTimestampMs;
72450
72491
  else
72451
- d.serverTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestampMs) : o.longs === Number ? new $util.LongBits(m.serverTimestampMs.low >>> 0, m.serverTimestampMs.high >>> 0).toNumber() : m.serverTimestampMs;
72492
+ d.serverTimestampMs = o.longs === String ? longToString(m.serverTimestampMs) : o.longs === Number ? longToNumber(m.serverTimestampMs) : m.serverTimestampMs;
72452
72493
  if (o.oneofs)
72453
72494
  d._serverTimestampMs = "serverTimestampMs";
72454
72495
  }
@@ -72998,7 +73039,7 @@ export const proto = $root.proto = (() => {
72998
73039
  if (typeof m.senderTimestampMs === "number")
72999
73040
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
73000
73041
  else
73001
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
73042
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
73002
73043
  if (o.oneofs)
73003
73044
  d._senderTimestampMs = "senderTimestampMs";
73004
73045
  }
@@ -73006,7 +73047,7 @@ export const proto = $root.proto = (() => {
73006
73047
  if (typeof m.serverTimestampMs === "number")
73007
73048
  d.serverTimestampMs = o.longs === String ? String(m.serverTimestampMs) : m.serverTimestampMs;
73008
73049
  else
73009
- d.serverTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestampMs) : o.longs === Number ? new $util.LongBits(m.serverTimestampMs.low >>> 0, m.serverTimestampMs.high >>> 0).toNumber() : m.serverTimestampMs;
73050
+ d.serverTimestampMs = o.longs === String ? longToString(m.serverTimestampMs) : o.longs === Number ? longToNumber(m.serverTimestampMs) : m.serverTimestampMs;
73010
73051
  if (o.oneofs)
73011
73052
  d._serverTimestampMs = "serverTimestampMs";
73012
73053
  }
@@ -73821,7 +73862,7 @@ export const proto = $root.proto = (() => {
73821
73862
  if (typeof m.fileLength === "number")
73822
73863
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
73823
73864
  else
73824
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
73865
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
73825
73866
  if (o.oneofs)
73826
73867
  d._fileLength = "fileLength";
73827
73868
  }
@@ -74360,7 +74401,7 @@ export const proto = $root.proto = (() => {
74360
74401
  if (typeof m.senderTimestampMs === "number")
74361
74402
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
74362
74403
  else
74363
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
74404
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
74364
74405
  if (o.oneofs)
74365
74406
  d._senderTimestampMs = "senderTimestampMs";
74366
74407
  }
@@ -77487,7 +77528,7 @@ export const proto = $root.proto = (() => {
77487
77528
  if (typeof m.timestamp === "number")
77488
77529
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
77489
77530
  else
77490
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
77531
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
77491
77532
  if (o.oneofs)
77492
77533
  d._timestamp = "timestamp";
77493
77534
  }
@@ -78990,13 +79031,13 @@ export const proto = $root.proto = (() => {
78990
79031
  if (typeof m.campaignId === "number")
78991
79032
  d.campaignId = o.longs === String ? String(m.campaignId) : m.campaignId;
78992
79033
  else
78993
- d.campaignId = o.longs === String ? $util.Long.prototype.toString.call(m.campaignId) : o.longs === Number ? new $util.LongBits(m.campaignId.low >>> 0, m.campaignId.high >>> 0).toNumber(true) : m.campaignId;
79034
+ d.campaignId = o.longs === String ? longToString(m.campaignId, true) : o.longs === Number ? longToNumber(m.campaignId, true) : m.campaignId;
78994
79035
  }
78995
79036
  if (m.campaignExpirationTimestamp != null && m.hasOwnProperty("campaignExpirationTimestamp")) {
78996
79037
  if (typeof m.campaignExpirationTimestamp === "number")
78997
79038
  d.campaignExpirationTimestamp = o.longs === String ? String(m.campaignExpirationTimestamp) : m.campaignExpirationTimestamp;
78998
79039
  else
78999
- d.campaignExpirationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.campaignExpirationTimestamp) : o.longs === Number ? new $util.LongBits(m.campaignExpirationTimestamp.low >>> 0, m.campaignExpirationTimestamp.high >>> 0).toNumber(true) : m.campaignExpirationTimestamp;
79040
+ d.campaignExpirationTimestamp = o.longs === String ? longToString(m.campaignExpirationTimestamp, true) : o.longs === Number ? longToNumber(m.campaignExpirationTimestamp, true) : m.campaignExpirationTimestamp;
79000
79041
  if (o.oneofs)
79001
79042
  d._campaignExpirationTimestamp = "campaignExpirationTimestamp";
79002
79043
  }
@@ -79358,7 +79399,7 @@ export const proto = $root.proto = (() => {
79358
79399
  if (typeof m.fileLength === "number")
79359
79400
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
79360
79401
  else
79361
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
79402
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
79362
79403
  if (o.oneofs)
79363
79404
  d._fileLength = "fileLength";
79364
79405
  }
@@ -79371,7 +79412,7 @@ export const proto = $root.proto = (() => {
79371
79412
  if (typeof m.lastStickerSentTs === "number")
79372
79413
  d.lastStickerSentTs = o.longs === String ? String(m.lastStickerSentTs) : m.lastStickerSentTs;
79373
79414
  else
79374
- d.lastStickerSentTs = o.longs === String ? $util.Long.prototype.toString.call(m.lastStickerSentTs) : o.longs === Number ? new $util.LongBits(m.lastStickerSentTs.low >>> 0, m.lastStickerSentTs.high >>> 0).toNumber() : m.lastStickerSentTs;
79415
+ d.lastStickerSentTs = o.longs === String ? longToString(m.lastStickerSentTs) : o.longs === Number ? longToNumber(m.lastStickerSentTs) : m.lastStickerSentTs;
79375
79416
  if (o.oneofs)
79376
79417
  d._lastStickerSentTs = "lastStickerSentTs";
79377
79418
  }
@@ -80867,7 +80908,7 @@ export const proto = $root.proto = (() => {
80867
80908
  if (typeof m.timestamp === "number")
80868
80909
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
80869
80910
  else
80870
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
80911
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
80871
80912
  if (o.oneofs)
80872
80913
  d._timestamp = "timestamp";
80873
80914
  }
@@ -83471,7 +83512,7 @@ export const proto = $root.proto = (() => {
83471
83512
  if (typeof m.messageTimestamp === "number")
83472
83513
  d.messageTimestamp = o.longs === String ? String(m.messageTimestamp) : m.messageTimestamp;
83473
83514
  else
83474
- d.messageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.messageTimestamp) : o.longs === Number ? new $util.LongBits(m.messageTimestamp.low >>> 0, m.messageTimestamp.high >>> 0).toNumber() : m.messageTimestamp;
83515
+ d.messageTimestamp = o.longs === String ? longToString(m.messageTimestamp) : o.longs === Number ? longToNumber(m.messageTimestamp) : m.messageTimestamp;
83475
83516
  if (o.oneofs)
83476
83517
  d._messageTimestamp = "messageTimestamp";
83477
83518
  }
@@ -84414,7 +84455,7 @@ export const proto = $root.proto = (() => {
84414
84455
  if (typeof m.muteEndTimeMs === "number")
84415
84456
  d.muteEndTimeMs = o.longs === String ? String(m.muteEndTimeMs) : m.muteEndTimeMs;
84416
84457
  else
84417
- d.muteEndTimeMs = o.longs === String ? $util.Long.prototype.toString.call(m.muteEndTimeMs) : o.longs === Number ? new $util.LongBits(m.muteEndTimeMs.low >>> 0, m.muteEndTimeMs.high >>> 0).toNumber() : m.muteEndTimeMs;
84458
+ d.muteEndTimeMs = o.longs === String ? longToString(m.muteEndTimeMs) : o.longs === Number ? longToNumber(m.muteEndTimeMs) : m.muteEndTimeMs;
84418
84459
  if (o.oneofs)
84419
84460
  d._muteEndTimeMs = "muteEndTimeMs";
84420
84461
  }
@@ -85285,7 +85326,7 @@ export const proto = $root.proto = (() => {
85285
85326
  if (typeof m.createdAt === "number")
85286
85327
  d.createdAt = o.longs === String ? String(m.createdAt) : m.createdAt;
85287
85328
  else
85288
- d.createdAt = o.longs === String ? $util.Long.prototype.toString.call(m.createdAt) : o.longs === Number ? new $util.LongBits(m.createdAt.low >>> 0, m.createdAt.high >>> 0).toNumber() : m.createdAt;
85329
+ d.createdAt = o.longs === String ? longToString(m.createdAt) : o.longs === Number ? longToNumber(m.createdAt) : m.createdAt;
85289
85330
  if (o.oneofs)
85290
85331
  d._createdAt = "createdAt";
85291
85332
  }
@@ -85293,7 +85334,7 @@ export const proto = $root.proto = (() => {
85293
85334
  if (typeof m.lastSentAt === "number")
85294
85335
  d.lastSentAt = o.longs === String ? String(m.lastSentAt) : m.lastSentAt;
85295
85336
  else
85296
- d.lastSentAt = o.longs === String ? $util.Long.prototype.toString.call(m.lastSentAt) : o.longs === Number ? new $util.LongBits(m.lastSentAt.low >>> 0, m.lastSentAt.high >>> 0).toNumber() : m.lastSentAt;
85337
+ d.lastSentAt = o.longs === String ? longToString(m.lastSentAt) : o.longs === Number ? longToNumber(m.lastSentAt) : m.lastSentAt;
85297
85338
  if (o.oneofs)
85298
85339
  d._lastSentAt = "lastSentAt";
85299
85340
  }
@@ -85827,7 +85868,7 @@ export const proto = $root.proto = (() => {
85827
85868
  if (typeof m.muteEndTimestamp === "number")
85828
85869
  d.muteEndTimestamp = o.longs === String ? String(m.muteEndTimestamp) : m.muteEndTimestamp;
85829
85870
  else
85830
- d.muteEndTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.muteEndTimestamp) : o.longs === Number ? new $util.LongBits(m.muteEndTimestamp.low >>> 0, m.muteEndTimestamp.high >>> 0).toNumber() : m.muteEndTimestamp;
85871
+ d.muteEndTimestamp = o.longs === String ? longToString(m.muteEndTimestamp) : o.longs === Number ? longToNumber(m.muteEndTimestamp) : m.muteEndTimestamp;
85831
85872
  if (o.oneofs)
85832
85873
  d._muteEndTimestamp = "muteEndTimestamp";
85833
85874
  }
@@ -86105,7 +86146,7 @@ export const proto = $root.proto = (() => {
86105
86146
  if (typeof m.createdAt === "number")
86106
86147
  d.createdAt = o.longs === String ? String(m.createdAt) : m.createdAt;
86107
86148
  else
86108
- d.createdAt = o.longs === String ? $util.Long.prototype.toString.call(m.createdAt) : o.longs === Number ? new $util.LongBits(m.createdAt.low >>> 0, m.createdAt.high >>> 0).toNumber() : m.createdAt;
86149
+ d.createdAt = o.longs === String ? longToString(m.createdAt) : o.longs === Number ? longToNumber(m.createdAt) : m.createdAt;
86109
86150
  if (o.oneofs)
86110
86151
  d._createdAt = "createdAt";
86111
86152
  }
@@ -87723,7 +87764,7 @@ export const proto = $root.proto = (() => {
87723
87764
  if (typeof m.lastStickerSentTs === "number")
87724
87765
  d.lastStickerSentTs = o.longs === String ? String(m.lastStickerSentTs) : m.lastStickerSentTs;
87725
87766
  else
87726
- d.lastStickerSentTs = o.longs === String ? $util.Long.prototype.toString.call(m.lastStickerSentTs) : o.longs === Number ? new $util.LongBits(m.lastStickerSentTs.low >>> 0, m.lastStickerSentTs.high >>> 0).toNumber() : m.lastStickerSentTs;
87767
+ d.lastStickerSentTs = o.longs === String ? longToString(m.lastStickerSentTs) : o.longs === Number ? longToNumber(m.lastStickerSentTs) : m.lastStickerSentTs;
87727
87768
  if (o.oneofs)
87728
87769
  d._lastStickerSentTs = "lastStickerSentTs";
87729
87770
  }
@@ -88377,7 +88418,7 @@ export const proto = $root.proto = (() => {
88377
88418
  if (typeof m.fileLength === "number")
88378
88419
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
88379
88420
  else
88380
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
88421
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
88381
88422
  if (o.oneofs)
88382
88423
  d._fileLength = "fileLength";
88383
88424
  }
@@ -88542,7 +88583,7 @@ export const proto = $root.proto = (() => {
88542
88583
  if (typeof m.expirationDate === "number")
88543
88584
  d.expirationDate = o.longs === String ? String(m.expirationDate) : m.expirationDate;
88544
88585
  else
88545
- d.expirationDate = o.longs === String ? $util.Long.prototype.toString.call(m.expirationDate) : o.longs === Number ? new $util.LongBits(m.expirationDate.low >>> 0, m.expirationDate.high >>> 0).toNumber() : m.expirationDate;
88586
+ d.expirationDate = o.longs === String ? longToString(m.expirationDate) : o.longs === Number ? longToNumber(m.expirationDate) : m.expirationDate;
88546
88587
  if (o.oneofs)
88547
88588
  d._expirationDate = "expirationDate";
88548
88589
  }
@@ -88663,7 +88704,7 @@ export const proto = $root.proto = (() => {
88663
88704
  if (typeof m.timestamp === "number")
88664
88705
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
88665
88706
  else
88666
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
88707
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
88667
88708
  if (o.oneofs)
88668
88709
  d._timestamp = "timestamp";
88669
88710
  }
@@ -88809,7 +88850,7 @@ export const proto = $root.proto = (() => {
88809
88850
  if (typeof m.lastMessageTimestamp === "number")
88810
88851
  d.lastMessageTimestamp = o.longs === String ? String(m.lastMessageTimestamp) : m.lastMessageTimestamp;
88811
88852
  else
88812
- d.lastMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.lastMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.lastMessageTimestamp.low >>> 0, m.lastMessageTimestamp.high >>> 0).toNumber() : m.lastMessageTimestamp;
88853
+ d.lastMessageTimestamp = o.longs === String ? longToString(m.lastMessageTimestamp) : o.longs === Number ? longToNumber(m.lastMessageTimestamp) : m.lastMessageTimestamp;
88813
88854
  if (o.oneofs)
88814
88855
  d._lastMessageTimestamp = "lastMessageTimestamp";
88815
88856
  }
@@ -88817,7 +88858,7 @@ export const proto = $root.proto = (() => {
88817
88858
  if (typeof m.lastSystemMessageTimestamp === "number")
88818
88859
  d.lastSystemMessageTimestamp = o.longs === String ? String(m.lastSystemMessageTimestamp) : m.lastSystemMessageTimestamp;
88819
88860
  else
88820
- d.lastSystemMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.lastSystemMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.lastSystemMessageTimestamp.low >>> 0, m.lastSystemMessageTimestamp.high >>> 0).toNumber() : m.lastSystemMessageTimestamp;
88861
+ d.lastSystemMessageTimestamp = o.longs === String ? longToString(m.lastSystemMessageTimestamp) : o.longs === Number ? longToNumber(m.lastSystemMessageTimestamp) : m.lastSystemMessageTimestamp;
88821
88862
  if (o.oneofs)
88822
88863
  d._lastSystemMessageTimestamp = "lastSystemMessageTimestamp";
88823
88864
  }
@@ -90584,7 +90625,7 @@ export const proto = $root.proto = (() => {
90584
90625
  if (typeof m.version === "number")
90585
90626
  d.version = o.longs === String ? String(m.version) : m.version;
90586
90627
  else
90587
- d.version = o.longs === String ? $util.Long.prototype.toString.call(m.version) : o.longs === Number ? new $util.LongBits(m.version.low >>> 0, m.version.high >>> 0).toNumber(true) : m.version;
90628
+ d.version = o.longs === String ? longToString(m.version, true) : o.longs === Number ? longToNumber(m.version, true) : m.version;
90588
90629
  if (o.oneofs)
90589
90630
  d._version = "version";
90590
90631
  }
@@ -92186,7 +92227,7 @@ export const proto = $root.proto = (() => {
92186
92227
  if (typeof m.receiptTimestamp === "number")
92187
92228
  d.receiptTimestamp = o.longs === String ? String(m.receiptTimestamp) : m.receiptTimestamp;
92188
92229
  else
92189
- d.receiptTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.receiptTimestamp) : o.longs === Number ? new $util.LongBits(m.receiptTimestamp.low >>> 0, m.receiptTimestamp.high >>> 0).toNumber() : m.receiptTimestamp;
92230
+ d.receiptTimestamp = o.longs === String ? longToString(m.receiptTimestamp) : o.longs === Number ? longToNumber(m.receiptTimestamp) : m.receiptTimestamp;
92190
92231
  if (o.oneofs)
92191
92232
  d._receiptTimestamp = "receiptTimestamp";
92192
92233
  }
@@ -92194,7 +92235,7 @@ export const proto = $root.proto = (() => {
92194
92235
  if (typeof m.readTimestamp === "number")
92195
92236
  d.readTimestamp = o.longs === String ? String(m.readTimestamp) : m.readTimestamp;
92196
92237
  else
92197
- d.readTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.readTimestamp) : o.longs === Number ? new $util.LongBits(m.readTimestamp.low >>> 0, m.readTimestamp.high >>> 0).toNumber() : m.readTimestamp;
92238
+ d.readTimestamp = o.longs === String ? longToString(m.readTimestamp) : o.longs === Number ? longToNumber(m.readTimestamp) : m.readTimestamp;
92198
92239
  if (o.oneofs)
92199
92240
  d._readTimestamp = "readTimestamp";
92200
92241
  }
@@ -92202,7 +92243,7 @@ export const proto = $root.proto = (() => {
92202
92243
  if (typeof m.playedTimestamp === "number")
92203
92244
  d.playedTimestamp = o.longs === String ? String(m.playedTimestamp) : m.playedTimestamp;
92204
92245
  else
92205
- d.playedTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.playedTimestamp) : o.longs === Number ? new $util.LongBits(m.playedTimestamp.low >>> 0, m.playedTimestamp.high >>> 0).toNumber() : m.playedTimestamp;
92246
+ d.playedTimestamp = o.longs === String ? longToString(m.playedTimestamp) : o.longs === Number ? longToNumber(m.playedTimestamp) : m.playedTimestamp;
92206
92247
  if (o.oneofs)
92207
92248
  d._playedTimestamp = "playedTimestamp";
92208
92249
  }
@@ -92528,7 +92569,7 @@ export const proto = $root.proto = (() => {
92528
92569
  if (typeof m.serial === "number")
92529
92570
  d.serial = o.longs === String ? String(m.serial) : m.serial;
92530
92571
  else
92531
- d.serial = o.longs === String ? $util.Long.prototype.toString.call(m.serial) : o.longs === Number ? new $util.LongBits(m.serial.low >>> 0, m.serial.high >>> 0).toNumber(true) : m.serial;
92572
+ d.serial = o.longs === String ? longToString(m.serial, true) : o.longs === Number ? longToNumber(m.serial, true) : m.serial;
92532
92573
  if (o.oneofs)
92533
92574
  d._serial = "serial";
92534
92575
  }
@@ -92552,7 +92593,7 @@ export const proto = $root.proto = (() => {
92552
92593
  if (typeof m.issueTime === "number")
92553
92594
  d.issueTime = o.longs === String ? String(m.issueTime) : m.issueTime;
92554
92595
  else
92555
- d.issueTime = o.longs === String ? $util.Long.prototype.toString.call(m.issueTime) : o.longs === Number ? new $util.LongBits(m.issueTime.low >>> 0, m.issueTime.high >>> 0).toNumber(true) : m.issueTime;
92596
+ d.issueTime = o.longs === String ? longToString(m.issueTime, true) : o.longs === Number ? longToNumber(m.issueTime, true) : m.issueTime;
92556
92597
  if (o.oneofs)
92557
92598
  d._issueTime = "issueTime";
92558
92599
  }
@@ -96868,7 +96909,7 @@ export const proto = $root.proto = (() => {
96868
96909
  if (typeof m.messageTimestamp === "number")
96869
96910
  d.messageTimestamp = o.longs === String ? String(m.messageTimestamp) : m.messageTimestamp;
96870
96911
  else
96871
- d.messageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.messageTimestamp) : o.longs === Number ? new $util.LongBits(m.messageTimestamp.low >>> 0, m.messageTimestamp.high >>> 0).toNumber(true) : m.messageTimestamp;
96912
+ d.messageTimestamp = o.longs === String ? longToString(m.messageTimestamp, true) : o.longs === Number ? longToNumber(m.messageTimestamp, true) : m.messageTimestamp;
96872
96913
  if (o.oneofs)
96873
96914
  d._messageTimestamp = "messageTimestamp";
96874
96915
  }
@@ -96886,7 +96927,7 @@ export const proto = $root.proto = (() => {
96886
96927
  if (typeof m.messageC2STimestamp === "number")
96887
96928
  d.messageC2STimestamp = o.longs === String ? String(m.messageC2STimestamp) : m.messageC2STimestamp;
96888
96929
  else
96889
- d.messageC2STimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.messageC2STimestamp) : o.longs === Number ? new $util.LongBits(m.messageC2STimestamp.low >>> 0, m.messageC2STimestamp.high >>> 0).toNumber(true) : m.messageC2STimestamp;
96930
+ d.messageC2STimestamp = o.longs === String ? longToString(m.messageC2STimestamp, true) : o.longs === Number ? longToNumber(m.messageC2STimestamp, true) : m.messageC2STimestamp;
96890
96931
  if (o.oneofs)
96891
96932
  d._messageC2STimestamp = "messageC2STimestamp";
96892
96933
  }
@@ -96976,7 +97017,7 @@ export const proto = $root.proto = (() => {
96976
97017
  if (typeof m.ephemeralStartTimestamp === "number")
96977
97018
  d.ephemeralStartTimestamp = o.longs === String ? String(m.ephemeralStartTimestamp) : m.ephemeralStartTimestamp;
96978
97019
  else
96979
- d.ephemeralStartTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.ephemeralStartTimestamp) : o.longs === Number ? new $util.LongBits(m.ephemeralStartTimestamp.low >>> 0, m.ephemeralStartTimestamp.high >>> 0).toNumber(true) : m.ephemeralStartTimestamp;
97020
+ d.ephemeralStartTimestamp = o.longs === String ? longToString(m.ephemeralStartTimestamp, true) : o.longs === Number ? longToNumber(m.ephemeralStartTimestamp, true) : m.ephemeralStartTimestamp;
96980
97021
  if (o.oneofs)
96981
97022
  d._ephemeralStartTimestamp = "ephemeralStartTimestamp";
96982
97023
  }
@@ -97082,7 +97123,7 @@ export const proto = $root.proto = (() => {
97082
97123
  if (typeof m.revokeMessageTimestamp === "number")
97083
97124
  d.revokeMessageTimestamp = o.longs === String ? String(m.revokeMessageTimestamp) : m.revokeMessageTimestamp;
97084
97125
  else
97085
- d.revokeMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.revokeMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.revokeMessageTimestamp.low >>> 0, m.revokeMessageTimestamp.high >>> 0).toNumber(true) : m.revokeMessageTimestamp;
97126
+ d.revokeMessageTimestamp = o.longs === String ? longToString(m.revokeMessageTimestamp, true) : o.longs === Number ? longToNumber(m.revokeMessageTimestamp, true) : m.revokeMessageTimestamp;
97086
97127
  if (o.oneofs)
97087
97128
  d._revokeMessageTimestamp = "revokeMessageTimestamp";
97088
97129
  }
@@ -97131,7 +97172,7 @@ export const proto = $root.proto = (() => {
97131
97172
  if (typeof m.newsletterServerId === "number")
97132
97173
  d.newsletterServerId = o.longs === String ? String(m.newsletterServerId) : m.newsletterServerId;
97133
97174
  else
97134
- d.newsletterServerId = o.longs === String ? $util.Long.prototype.toString.call(m.newsletterServerId) : o.longs === Number ? new $util.LongBits(m.newsletterServerId.low >>> 0, m.newsletterServerId.high >>> 0).toNumber(true) : m.newsletterServerId;
97175
+ d.newsletterServerId = o.longs === String ? longToString(m.newsletterServerId, true) : o.longs === Number ? longToNumber(m.newsletterServerId, true) : m.newsletterServerId;
97135
97176
  if (o.oneofs)
97136
97177
  d._newsletterServerId = "newsletterServerId";
97137
97178
  }
@@ -97607,7 +97648,7 @@ export const proto = $root.proto = (() => {
97607
97648
  if (typeof m.timestamp === "number")
97608
97649
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
97609
97650
  else
97610
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber(true) : m.timestamp;
97651
+ d.timestamp = o.longs === String ? longToString(m.timestamp, true) : o.longs === Number ? longToNumber(m.timestamp, true) : m.timestamp;
97611
97652
  if (o.oneofs)
97612
97653
  d._timestamp = "timestamp";
97613
97654
  }