@mtcute/core 0.19.0 → 0.19.2

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 (592) hide show
  1. package/client.cjs +12 -4
  2. package/client.js +10 -2
  3. package/highlevel/base.cjs +3 -3
  4. package/highlevel/base.d.cts +1 -1
  5. package/highlevel/base.d.ts +1 -1
  6. package/highlevel/base.js +1 -1
  7. package/highlevel/client.d.cts +55 -0
  8. package/highlevel/client.d.ts +55 -0
  9. package/highlevel/client.types.d.cts +1 -1
  10. package/highlevel/client.types.d.ts +1 -1
  11. package/highlevel/managers/app-config-manager.cjs +2 -2
  12. package/highlevel/managers/timers.cjs +2 -2
  13. package/highlevel/methods/auth/check-password.cjs +2 -2
  14. package/highlevel/methods/auth/get-password-hint.cjs +2 -2
  15. package/highlevel/methods/auth/log-out.cjs +2 -2
  16. package/highlevel/methods/auth/recover-password.cjs +2 -2
  17. package/highlevel/methods/auth/resend-code.cjs +2 -2
  18. package/highlevel/methods/auth/run.cjs +2 -2
  19. package/highlevel/methods/auth/send-code.cjs +3 -3
  20. package/highlevel/methods/auth/send-code.js +1 -1
  21. package/highlevel/methods/auth/send-recovery-code.cjs +2 -2
  22. package/highlevel/methods/auth/sign-in-bot.cjs +3 -3
  23. package/highlevel/methods/auth/sign-in-bot.js +1 -1
  24. package/highlevel/methods/auth/sign-in-qr.cjs +13 -10
  25. package/highlevel/methods/auth/sign-in-qr.js +11 -8
  26. package/highlevel/methods/auth/sign-in.cjs +2 -2
  27. package/highlevel/methods/auth/start-test.cjs +2 -2
  28. package/highlevel/methods/auth/start.cjs +2 -2
  29. package/highlevel/methods/auth/utils.cjs +2 -2
  30. package/highlevel/methods/bots/answer-callback-query.cjs +2 -2
  31. package/highlevel/methods/bots/answer-inline-query.cjs +2 -2
  32. package/highlevel/methods/bots/answer-pre-checkout-query.cjs +2 -2
  33. package/highlevel/methods/bots/delete-my-commands.cjs +2 -2
  34. package/highlevel/methods/bots/get-bot-info.cjs +2 -2
  35. package/highlevel/methods/bots/get-bot-menu-button.cjs +2 -2
  36. package/highlevel/methods/bots/get-callback-answer.cjs +2 -2
  37. package/highlevel/methods/bots/get-game-high-scores.cjs +2 -2
  38. package/highlevel/methods/bots/get-my-commands.cjs +2 -2
  39. package/highlevel/methods/bots/normalize-command-scope.cjs +2 -2
  40. package/highlevel/methods/bots/open-webview.cjs +2 -2
  41. package/highlevel/methods/bots/prepare-inline-message.cjs +2 -2
  42. package/highlevel/methods/bots/set-bot-info.cjs +2 -2
  43. package/highlevel/methods/bots/set-bot-menu-button.cjs +2 -2
  44. package/highlevel/methods/bots/set-game-score.cjs +2 -2
  45. package/highlevel/methods/bots/set-my-commands.cjs +2 -2
  46. package/highlevel/methods/bots/set-my-default-rights.cjs +2 -2
  47. package/highlevel/methods/bots/toggle-emoji-status-permission.cjs +2 -2
  48. package/highlevel/methods/chats/add-chat-members.cjs +2 -2
  49. package/highlevel/methods/chats/archive-chats.cjs +2 -2
  50. package/highlevel/methods/chats/ban-chat-member.cjs +2 -2
  51. package/highlevel/methods/chats/batched-queries.cjs +2 -2
  52. package/highlevel/methods/chats/create-channel.cjs +2 -2
  53. package/highlevel/methods/chats/create-group.cjs +2 -2
  54. package/highlevel/methods/chats/create-supergroup.cjs +2 -2
  55. package/highlevel/methods/chats/delete-channel.cjs +2 -2
  56. package/highlevel/methods/chats/delete-chat-photo.cjs +2 -2
  57. package/highlevel/methods/chats/delete-group.cjs +2 -2
  58. package/highlevel/methods/chats/delete-history.cjs +2 -2
  59. package/highlevel/methods/chats/delete-user-history.cjs +2 -2
  60. package/highlevel/methods/chats/edit-admin-rights.cjs +2 -2
  61. package/highlevel/methods/chats/get-chat-event-log.cjs +2 -2
  62. package/highlevel/methods/chats/get-chat-member.cjs +2 -2
  63. package/highlevel/methods/chats/get-chat-members.cjs +2 -2
  64. package/highlevel/methods/chats/get-chat-preview.cjs +2 -2
  65. package/highlevel/methods/chats/get-chat.cjs +2 -2
  66. package/highlevel/methods/chats/get-full-chat.cjs +2 -2
  67. package/highlevel/methods/chats/get-full-user.cjs +2 -2
  68. package/highlevel/methods/chats/get-nearby-chats.cjs +2 -2
  69. package/highlevel/methods/chats/get-similar-channels.cjs +2 -2
  70. package/highlevel/methods/chats/get-user.cjs +2 -2
  71. package/highlevel/methods/chats/iter-chat-event-log.cjs +2 -2
  72. package/highlevel/methods/chats/iter-chat-members.cjs +2 -2
  73. package/highlevel/methods/chats/join-chat.cjs +2 -2
  74. package/highlevel/methods/chats/kick-chat-member.cjs +2 -2
  75. package/highlevel/methods/chats/leave-chat.cjs +2 -2
  76. package/highlevel/methods/chats/mark-chat-unread.cjs +2 -2
  77. package/highlevel/methods/chats/open-chat.cjs +2 -2
  78. package/highlevel/methods/chats/reorder-usernames.cjs +2 -2
  79. package/highlevel/methods/chats/restrict-chat-member.cjs +2 -2
  80. package/highlevel/methods/chats/save-draft.cjs +2 -2
  81. package/highlevel/methods/chats/set-chat-color.cjs +2 -2
  82. package/highlevel/methods/chats/set-chat-default-permissions.cjs +2 -2
  83. package/highlevel/methods/chats/set-chat-description.cjs +2 -2
  84. package/highlevel/methods/chats/set-chat-photo.cjs +2 -2
  85. package/highlevel/methods/chats/set-chat-title.cjs +2 -2
  86. package/highlevel/methods/chats/set-chat-ttl.cjs +2 -2
  87. package/highlevel/methods/chats/set-chat-username.cjs +2 -2
  88. package/highlevel/methods/chats/set-slow-mode.cjs +2 -2
  89. package/highlevel/methods/chats/toggle-content-protection.cjs +2 -2
  90. package/highlevel/methods/chats/toggle-fragment-username.cjs +2 -2
  91. package/highlevel/methods/chats/toggle-join-requests.cjs +2 -2
  92. package/highlevel/methods/chats/toggle-join-to-send.cjs +2 -2
  93. package/highlevel/methods/chats/unarchive-chats.cjs +2 -2
  94. package/highlevel/methods/chats/unban-chat-member.cjs +2 -2
  95. package/highlevel/methods/contacts/add-contact.cjs +2 -2
  96. package/highlevel/methods/contacts/delete-contacts.cjs +2 -2
  97. package/highlevel/methods/contacts/get-contacts.cjs +2 -2
  98. package/highlevel/methods/contacts/import-contacts.cjs +2 -2
  99. package/highlevel/methods/dialogs/create-folder.cjs +2 -2
  100. package/highlevel/methods/dialogs/delete-folder.cjs +2 -2
  101. package/highlevel/methods/dialogs/edit-folder.cjs +3 -3
  102. package/highlevel/methods/dialogs/edit-folder.js +1 -1
  103. package/highlevel/methods/dialogs/find-dialogs.cjs +2 -2
  104. package/highlevel/methods/dialogs/find-folder.cjs +3 -3
  105. package/highlevel/methods/dialogs/find-folder.js +1 -1
  106. package/highlevel/methods/dialogs/get-chatlist-preview.cjs +2 -2
  107. package/highlevel/methods/dialogs/get-folders.cjs +3 -3
  108. package/highlevel/methods/dialogs/get-folders.js +1 -1
  109. package/highlevel/methods/dialogs/get-peer-dialogs.cjs +2 -2
  110. package/highlevel/methods/dialogs/iter-dialogs.cjs +3 -3
  111. package/highlevel/methods/dialogs/iter-dialogs.js +1 -1
  112. package/highlevel/methods/dialogs/join-chatlist.cjs +2 -2
  113. package/highlevel/methods/dialogs/set-folders-order.cjs +2 -2
  114. package/highlevel/methods/files/download-buffer.cjs +2 -2
  115. package/highlevel/methods/files/download-iterable.cjs +2 -2
  116. package/highlevel/methods/files/download-stream.cjs +2 -2
  117. package/highlevel/methods/files/normalize-file-to-document.cjs +2 -2
  118. package/highlevel/methods/files/normalize-input-file.cjs +2 -2
  119. package/highlevel/methods/files/normalize-input-media.cjs +2 -2
  120. package/highlevel/methods/files/upload-file.cjs +2 -2
  121. package/highlevel/methods/files/upload-media.cjs +2 -2
  122. package/highlevel/methods/forums/create-forum-topic.cjs +2 -2
  123. package/highlevel/methods/forums/delete-forum-topic-history.cjs +2 -2
  124. package/highlevel/methods/forums/edit-forum-topic.cjs +2 -2
  125. package/highlevel/methods/forums/get-forum-topics-by-id.cjs +2 -2
  126. package/highlevel/methods/forums/get-forum-topics.cjs +2 -2
  127. package/highlevel/methods/forums/iter-forum-topics.cjs +2 -2
  128. package/highlevel/methods/forums/reorder-pinned-forum-topics.cjs +2 -2
  129. package/highlevel/methods/forums/toggle-forum-topic-closed.cjs +2 -2
  130. package/highlevel/methods/forums/toggle-forum-topic-pinned.cjs +2 -2
  131. package/highlevel/methods/forums/toggle-forum.cjs +2 -2
  132. package/highlevel/methods/forums/toggle-general-topic-hidden.cjs +2 -2
  133. package/highlevel/methods/invite-links/create-invite-link.cjs +2 -2
  134. package/highlevel/methods/invite-links/edit-invite-link.cjs +2 -2
  135. package/highlevel/methods/invite-links/export-invite-link.cjs +2 -2
  136. package/highlevel/methods/invite-links/get-invite-link-members.cjs +2 -2
  137. package/highlevel/methods/invite-links/get-invite-link.cjs +2 -2
  138. package/highlevel/methods/invite-links/get-invite-links.cjs +2 -2
  139. package/highlevel/methods/invite-links/get-primary-invite-link.cjs +2 -2
  140. package/highlevel/methods/invite-links/hide-all-join-requests.cjs +2 -2
  141. package/highlevel/methods/invite-links/hide-join-request.cjs +2 -2
  142. package/highlevel/methods/invite-links/iter-invite-link-members.cjs +2 -2
  143. package/highlevel/methods/invite-links/iter-invite-links.cjs +2 -2
  144. package/highlevel/methods/invite-links/revoke-invite-link.cjs +2 -2
  145. package/highlevel/methods/messages/_business-connection.cjs +2 -2
  146. package/highlevel/methods/messages/close-poll.cjs +2 -2
  147. package/highlevel/methods/messages/delete-messages.cjs +2 -2
  148. package/highlevel/methods/messages/delete-scheduled-messages.cjs +2 -2
  149. package/highlevel/methods/messages/edit-inline-message.cjs +2 -2
  150. package/highlevel/methods/messages/edit-message.cjs +2 -2
  151. package/highlevel/methods/messages/find-in-update.cjs +2 -2
  152. package/highlevel/methods/messages/forward-messages.cjs +2 -2
  153. package/highlevel/methods/messages/get-all-scheduled-messages.cjs +2 -2
  154. package/highlevel/methods/messages/get-available-effects.cjs +2 -2
  155. package/highlevel/methods/messages/get-callback-query-message.cjs +2 -2
  156. package/highlevel/methods/messages/get-discussion-message.cjs +2 -2
  157. package/highlevel/methods/messages/get-fact-check.cjs +2 -2
  158. package/highlevel/methods/messages/get-history.cjs +2 -2
  159. package/highlevel/methods/messages/get-message-by-link.cjs +2 -2
  160. package/highlevel/methods/messages/get-message-group.cjs +2 -2
  161. package/highlevel/methods/messages/get-message-reactions.cjs +2 -2
  162. package/highlevel/methods/messages/get-messages-unsafe.cjs +2 -2
  163. package/highlevel/methods/messages/get-messages.cjs +2 -2
  164. package/highlevel/methods/messages/get-reaction-users.cjs +2 -2
  165. package/highlevel/methods/messages/get-reply-to.cjs +2 -2
  166. package/highlevel/methods/messages/get-scheduled-messages.cjs +2 -2
  167. package/highlevel/methods/messages/iter-history.cjs +2 -2
  168. package/highlevel/methods/messages/iter-reaction-users.cjs +2 -2
  169. package/highlevel/methods/messages/iter-search-global.cjs +2 -2
  170. package/highlevel/methods/messages/iter-search-messages.cjs +2 -2
  171. package/highlevel/methods/messages/pin-message.cjs +2 -2
  172. package/highlevel/methods/messages/read-history.cjs +3 -5
  173. package/highlevel/methods/messages/read-history.js +1 -3
  174. package/highlevel/methods/messages/read-reactions.cjs +2 -2
  175. package/highlevel/methods/messages/search-global.cjs +2 -2
  176. package/highlevel/methods/messages/search-hashtag.cjs +2 -2
  177. package/highlevel/methods/messages/search-messages.cjs +2 -2
  178. package/highlevel/methods/messages/send-answer.cjs +2 -2
  179. package/highlevel/methods/messages/send-comment.cjs +2 -2
  180. package/highlevel/methods/messages/send-common.cjs +2 -2
  181. package/highlevel/methods/messages/send-copy-group.cjs +2 -2
  182. package/highlevel/methods/messages/send-copy.cjs +2 -2
  183. package/highlevel/methods/messages/send-media-group.cjs +2 -2
  184. package/highlevel/methods/messages/send-media.cjs +2 -2
  185. package/highlevel/methods/messages/send-paid-reaction.cjs +2 -2
  186. package/highlevel/methods/messages/send-quote.cjs +2 -2
  187. package/highlevel/methods/messages/send-reaction.cjs +2 -2
  188. package/highlevel/methods/messages/send-reply.cjs +2 -2
  189. package/highlevel/methods/messages/send-scheduled.cjs +2 -2
  190. package/highlevel/methods/messages/send-text.cjs +2 -2
  191. package/highlevel/methods/messages/send-typing.cjs +2 -2
  192. package/highlevel/methods/messages/send-vote.cjs +2 -2
  193. package/highlevel/methods/messages/set-typing.cjs +2 -2
  194. package/highlevel/methods/messages/translate-message.cjs +2 -2
  195. package/highlevel/methods/messages/translate-text.cjs +2 -2
  196. package/highlevel/methods/messages/unpin-all-messages.cjs +2 -2
  197. package/highlevel/methods/messages/unpin-message.cjs +2 -2
  198. package/highlevel/methods/misc/chain-id.cjs +2 -2
  199. package/highlevel/methods/misc/get-collectible-info.cjs +2 -2
  200. package/highlevel/methods/misc/init-takeout-session.cjs +2 -2
  201. package/highlevel/methods/misc/normalize-privacy-rules.cjs +2 -2
  202. package/highlevel/methods/misc/normalize-text.cjs +2 -2
  203. package/highlevel/methods/misc/with-params.cjs +2 -2
  204. package/highlevel/methods/password/change-cloud-password.cjs +2 -2
  205. package/highlevel/methods/password/enable-cloud-password.cjs +2 -2
  206. package/highlevel/methods/password/password-email.cjs +2 -2
  207. package/highlevel/methods/password/remove-cloud-password.cjs +2 -2
  208. package/highlevel/methods/premium/accept-star-gift.cjs +3 -8
  209. package/highlevel/methods/premium/accept-star-gift.d.cts +4 -2
  210. package/highlevel/methods/premium/accept-star-gift.d.ts +4 -2
  211. package/highlevel/methods/premium/accept-star-gift.js +1 -6
  212. package/highlevel/methods/premium/apply-boost.cjs +2 -2
  213. package/highlevel/methods/premium/can-apply-boost.cjs +2 -2
  214. package/highlevel/methods/premium/create-business-chat-link.cjs +2 -2
  215. package/highlevel/methods/premium/edit-business-chat-link.cjs +2 -2
  216. package/highlevel/methods/premium/get-boost-stats.cjs +2 -2
  217. package/highlevel/methods/premium/get-boosts.cjs +2 -2
  218. package/highlevel/methods/premium/get-business-chat-links.cjs +2 -2
  219. package/highlevel/methods/premium/get-business-connection.cjs +2 -2
  220. package/highlevel/methods/premium/get-my-boost-slots.cjs +2 -2
  221. package/highlevel/methods/premium/get-star-gift-options.cjs +9 -3
  222. package/highlevel/methods/premium/get-star-gift-options.js +7 -1
  223. package/highlevel/methods/premium/get-star-gifts.cjs +2 -2
  224. package/highlevel/methods/premium/get-stars-transactions.cjs +2 -2
  225. package/highlevel/methods/premium/iter-boosters.cjs +2 -2
  226. package/highlevel/methods/premium/iter-star-gifts.cjs +2 -2
  227. package/highlevel/methods/premium/iter-stars-transactions.cjs +2 -2
  228. package/highlevel/methods/premium/send-star-gift.cjs +12 -4
  229. package/highlevel/methods/premium/send-star-gift.d.cts +2 -0
  230. package/highlevel/methods/premium/send-star-gift.d.ts +2 -0
  231. package/highlevel/methods/premium/send-star-gift.js +10 -2
  232. package/highlevel/methods/premium/set-business-intro.cjs +2 -2
  233. package/highlevel/methods/premium/set-business-work-hours.cjs +2 -2
  234. package/highlevel/methods/premium/transfer-star-gift.cjs +31 -0
  235. package/highlevel/methods/premium/transfer-star-gift.d.cts +24 -0
  236. package/highlevel/methods/premium/transfer-star-gift.d.ts +24 -0
  237. package/highlevel/methods/premium/transfer-star-gift.js +26 -0
  238. package/highlevel/methods/premium/upgrade-star-gift.cjs +30 -0
  239. package/highlevel/methods/premium/upgrade-star-gift.d.cts +26 -0
  240. package/highlevel/methods/premium/upgrade-star-gift.d.ts +26 -0
  241. package/highlevel/methods/premium/upgrade-star-gift.js +25 -0
  242. package/highlevel/methods/stickers/_utils.cjs +2 -2
  243. package/highlevel/methods/stickers/add-sticker-to-set.cjs +2 -2
  244. package/highlevel/methods/stickers/create-sticker-set.cjs +2 -2
  245. package/highlevel/methods/stickers/delete-sticker-from-set.cjs +2 -2
  246. package/highlevel/methods/stickers/get-custom-emojis.cjs +2 -2
  247. package/highlevel/methods/stickers/get-installed-stickers.cjs +2 -2
  248. package/highlevel/methods/stickers/get-my-sticker-sets.cjs +2 -2
  249. package/highlevel/methods/stickers/get-sticker-set.cjs +2 -2
  250. package/highlevel/methods/stickers/move-sticker-in-set.cjs +2 -2
  251. package/highlevel/methods/stickers/replace-sticker-in-set.cjs +2 -2
  252. package/highlevel/methods/stickers/set-chat-sticker-set.cjs +2 -2
  253. package/highlevel/methods/stickers/set-sticker-set-thumb.cjs +2 -2
  254. package/highlevel/methods/stories/can-send-story.cjs +2 -2
  255. package/highlevel/methods/stories/delete-stories.cjs +2 -2
  256. package/highlevel/methods/stories/edit-story.cjs +2 -2
  257. package/highlevel/methods/stories/find-in-update.cjs +2 -2
  258. package/highlevel/methods/stories/get-all-stories.cjs +2 -2
  259. package/highlevel/methods/stories/get-peer-stories.cjs +2 -2
  260. package/highlevel/methods/stories/get-profile-stories.cjs +2 -2
  261. package/highlevel/methods/stories/get-stories-by-id.cjs +2 -2
  262. package/highlevel/methods/stories/get-stories-interactions.cjs +2 -2
  263. package/highlevel/methods/stories/get-story-link.cjs +2 -2
  264. package/highlevel/methods/stories/get-story-viewers.cjs +2 -2
  265. package/highlevel/methods/stories/hide-my-stories-views.cjs +2 -2
  266. package/highlevel/methods/stories/increment-stories-views.cjs +2 -2
  267. package/highlevel/methods/stories/iter-all-stories.cjs +2 -2
  268. package/highlevel/methods/stories/iter-profile-stories.cjs +2 -2
  269. package/highlevel/methods/stories/iter-story-viewers.cjs +2 -2
  270. package/highlevel/methods/stories/read-stories.cjs +2 -2
  271. package/highlevel/methods/stories/send-story-reaction.cjs +2 -2
  272. package/highlevel/methods/stories/send-story.cjs +2 -2
  273. package/highlevel/methods/stories/toggle-peer-stories-archived.cjs +2 -2
  274. package/highlevel/methods/stories/toggle-stories-pinned.cjs +2 -2
  275. package/highlevel/methods/users/block-user.cjs +2 -2
  276. package/highlevel/methods/users/delete-profile-photos.cjs +2 -2
  277. package/highlevel/methods/users/edit-close-friends.cjs +2 -2
  278. package/highlevel/methods/users/get-common-chats.cjs +2 -2
  279. package/highlevel/methods/users/get-global-ttl.cjs +2 -2
  280. package/highlevel/methods/users/get-me.cjs +2 -2
  281. package/highlevel/methods/users/get-my-username.cjs +2 -2
  282. package/highlevel/methods/users/get-profile-photo.cjs +2 -2
  283. package/highlevel/methods/users/get-profile-photos.cjs +2 -2
  284. package/highlevel/methods/users/get-users.cjs +2 -2
  285. package/highlevel/methods/users/is-peer-available.cjs +2 -2
  286. package/highlevel/methods/users/iter-profile-photos.cjs +2 -2
  287. package/highlevel/methods/users/resolve-peer-many.cjs +2 -2
  288. package/highlevel/methods/users/resolve-peer.cjs +2 -2
  289. package/highlevel/methods/users/set-emoji-status.cjs +2 -2
  290. package/highlevel/methods/users/set-global-ttl.cjs +2 -2
  291. package/highlevel/methods/users/set-my-birthday.cjs +2 -2
  292. package/highlevel/methods/users/set-my-profile-photo.cjs +2 -2
  293. package/highlevel/methods/users/set-my-username.cjs +2 -2
  294. package/highlevel/methods/users/set-online.cjs +2 -2
  295. package/highlevel/methods/users/unblock-user.cjs +2 -2
  296. package/highlevel/methods/users/update-profile.cjs +2 -2
  297. package/highlevel/methods.d.cts +2 -0
  298. package/highlevel/methods.d.ts +2 -0
  299. package/highlevel/storage/service/current-user.cjs +2 -2
  300. package/highlevel/storage/service/peers.cjs +2 -2
  301. package/highlevel/storage/service/ref-messages.cjs +2 -2
  302. package/highlevel/storage/service/updates.cjs +2 -2
  303. package/highlevel/storage/storage.cjs +2 -2
  304. package/highlevel/types/auth/sent-code.cjs +2 -2
  305. package/highlevel/types/bots/command-scope/inner.cjs +2 -2
  306. package/highlevel/types/bots/game-high-score.cjs +2 -2
  307. package/highlevel/types/bots/inline-message/factories.cjs +2 -2
  308. package/highlevel/types/bots/inline-result/factories.cjs +2 -2
  309. package/highlevel/types/bots/keyboards/builder.cjs +2 -2
  310. package/highlevel/types/bots/keyboards/factories.cjs +2 -2
  311. package/highlevel/types/bots/webview.cjs +2 -2
  312. package/highlevel/types/conversation.cjs +2 -2
  313. package/highlevel/types/errors.cjs +2 -2
  314. package/highlevel/types/files/file-location.cjs +2 -2
  315. package/highlevel/types/files/uploaded-file.cjs +2 -2
  316. package/highlevel/types/files/web-document.cjs +2 -2
  317. package/highlevel/types/index.d.cts +0 -1
  318. package/highlevel/types/index.d.ts +0 -1
  319. package/highlevel/types/media/audio.cjs +2 -2
  320. package/highlevel/types/media/contact.cjs +2 -2
  321. package/highlevel/types/media/dice.cjs +2 -2
  322. package/highlevel/types/media/document-utils.cjs +2 -2
  323. package/highlevel/types/media/document.cjs +2 -2
  324. package/highlevel/types/media/extended-media.cjs +2 -2
  325. package/highlevel/types/media/game.cjs +2 -2
  326. package/highlevel/types/media/input-media/factories.cjs +2 -2
  327. package/highlevel/types/media/invoice.cjs +2 -2
  328. package/highlevel/types/media/location.cjs +2 -2
  329. package/highlevel/types/media/paid-media.cjs +2 -2
  330. package/highlevel/types/media/photo.cjs +2 -2
  331. package/highlevel/types/media/poll.cjs +2 -2
  332. package/highlevel/types/media/sticker.cjs +2 -2
  333. package/highlevel/types/media/story.cjs +2 -2
  334. package/highlevel/types/media/thumbnail.cjs +2 -2
  335. package/highlevel/types/media/venue.cjs +2 -2
  336. package/highlevel/types/media/video.cjs +2 -2
  337. package/highlevel/types/media/voice.cjs +2 -2
  338. package/highlevel/types/media/web-page.cjs +2 -2
  339. package/highlevel/types/messages/dialog.cjs +5 -3
  340. package/highlevel/types/messages/dialog.js +3 -1
  341. package/highlevel/types/messages/draft-message.cjs +2 -2
  342. package/highlevel/types/messages/fact-check.cjs +2 -2
  343. package/highlevel/types/messages/input-message-id.cjs +2 -2
  344. package/highlevel/types/messages/message-action.cjs +11 -6
  345. package/highlevel/types/messages/message-action.d.cts +14 -3
  346. package/highlevel/types/messages/message-action.d.ts +14 -3
  347. package/highlevel/types/messages/message-action.js +9 -4
  348. package/highlevel/types/messages/message-effect.cjs +2 -2
  349. package/highlevel/types/messages/message-entity.cjs +2 -2
  350. package/highlevel/types/messages/message-forward.cjs +2 -2
  351. package/highlevel/types/messages/message-media.cjs +2 -2
  352. package/highlevel/types/messages/message-reactions.cjs +2 -2
  353. package/highlevel/types/messages/message-replies.cjs +2 -2
  354. package/highlevel/types/messages/message.cjs +13 -3
  355. package/highlevel/types/messages/message.d.cts +7 -0
  356. package/highlevel/types/messages/message.d.ts +7 -0
  357. package/highlevel/types/messages/message.js +11 -1
  358. package/highlevel/types/messages/replied-message.cjs +2 -2
  359. package/highlevel/types/messages/search-filters.cjs +2 -2
  360. package/highlevel/types/misc/collectible-info.cjs +2 -2
  361. package/highlevel/types/misc/entities.cjs +2 -2
  362. package/highlevel/types/misc/input-privacy-rule/allow.cjs +2 -2
  363. package/highlevel/types/misc/input-privacy-rule/bundle.cjs +2 -2
  364. package/highlevel/types/misc/input-privacy-rule/disallow.cjs +2 -2
  365. package/highlevel/types/misc/sticker-set.cjs +2 -2
  366. package/highlevel/types/misc/takeout-session.cjs +2 -2
  367. package/highlevel/types/peers/bot-info.cjs +5 -2
  368. package/highlevel/types/peers/bot-info.d.cts +1 -0
  369. package/highlevel/types/peers/bot-info.d.ts +1 -0
  370. package/highlevel/types/peers/bot-info.js +3 -0
  371. package/highlevel/types/peers/bot-verification.cjs +27 -0
  372. package/highlevel/types/peers/bot-verification.d.cts +12 -0
  373. package/highlevel/types/peers/bot-verification.d.ts +12 -0
  374. package/highlevel/types/peers/bot-verification.js +22 -0
  375. package/highlevel/types/peers/chat-colors.cjs +2 -2
  376. package/highlevel/types/peers/chat-event/actions.cjs +2 -2
  377. package/highlevel/types/peers/chat-event/filters.cjs +2 -2
  378. package/highlevel/types/peers/chat-event/index.cjs +2 -2
  379. package/highlevel/types/peers/chat-invite-link-member.cjs +2 -2
  380. package/highlevel/types/peers/chat-invite-link.cjs +2 -2
  381. package/highlevel/types/peers/chat-location.cjs +2 -2
  382. package/highlevel/types/peers/chat-member.cjs +2 -2
  383. package/highlevel/types/peers/chat-permissions.cjs +2 -2
  384. package/highlevel/types/peers/chat-photo.cjs +2 -2
  385. package/highlevel/types/peers/chat-preview.cjs +10 -2
  386. package/highlevel/types/peers/chat-preview.d.cts +6 -0
  387. package/highlevel/types/peers/chat-preview.d.ts +6 -0
  388. package/highlevel/types/peers/chat-preview.js +8 -0
  389. package/highlevel/types/peers/chat.cjs +10 -2
  390. package/highlevel/types/peers/chat.d.cts +5 -0
  391. package/highlevel/types/peers/chat.d.ts +5 -0
  392. package/highlevel/types/peers/chat.js +8 -0
  393. package/highlevel/types/peers/chatlist-preview.cjs +3 -3
  394. package/highlevel/types/peers/chatlist-preview.d.cts +2 -1
  395. package/highlevel/types/peers/chatlist-preview.d.ts +2 -1
  396. package/highlevel/types/peers/chatlist-preview.js +1 -1
  397. package/highlevel/types/peers/forum-topic.cjs +2 -2
  398. package/highlevel/types/peers/full-chat.cjs +10 -3
  399. package/highlevel/types/peers/full-chat.d.cts +3 -0
  400. package/highlevel/types/peers/full-chat.d.ts +3 -0
  401. package/highlevel/types/peers/full-chat.js +8 -1
  402. package/highlevel/types/peers/full-user.cjs +10 -3
  403. package/highlevel/types/peers/full-user.d.cts +3 -0
  404. package/highlevel/types/peers/full-user.d.ts +3 -0
  405. package/highlevel/types/peers/full-user.js +8 -1
  406. package/highlevel/types/peers/index.d.cts +1 -0
  407. package/highlevel/types/peers/index.d.ts +1 -0
  408. package/highlevel/types/peers/peer.cjs +2 -2
  409. package/highlevel/types/peers/peers-index.cjs +2 -2
  410. package/highlevel/types/peers/user.cjs +9 -2
  411. package/highlevel/types/peers/user.d.cts +5 -0
  412. package/highlevel/types/peers/user.d.ts +5 -0
  413. package/highlevel/types/peers/user.js +7 -0
  414. package/highlevel/types/premium/boost-slot.cjs +2 -2
  415. package/highlevel/types/premium/boost-stats.cjs +2 -2
  416. package/highlevel/types/premium/boost.cjs +2 -2
  417. package/highlevel/types/premium/business-account.cjs +2 -2
  418. package/highlevel/types/premium/business-chat-link.cjs +2 -2
  419. package/highlevel/types/premium/business-connection.cjs +2 -2
  420. package/highlevel/types/premium/business-intro.cjs +2 -2
  421. package/highlevel/types/premium/business-location.cjs +2 -2
  422. package/highlevel/types/premium/business-work-hours.cjs +2 -2
  423. package/highlevel/types/premium/index.d.cts +1 -0
  424. package/highlevel/types/premium/index.d.ts +1 -0
  425. package/highlevel/types/premium/stars-gift-unique.cjs +148 -0
  426. package/highlevel/types/premium/stars-gift-unique.d.cts +70 -0
  427. package/highlevel/types/premium/stars-gift-unique.d.ts +70 -0
  428. package/highlevel/types/premium/stars-gift-unique.js +143 -0
  429. package/highlevel/types/premium/stars-gift.cjs +33 -4
  430. package/highlevel/types/premium/stars-gift.d.cts +19 -4
  431. package/highlevel/types/premium/stars-gift.d.ts +19 -4
  432. package/highlevel/types/premium/stars-gift.js +31 -2
  433. package/highlevel/types/premium/stars-status.cjs +2 -2
  434. package/highlevel/types/premium/stars-transaction.cjs +34 -17
  435. package/highlevel/types/premium/stars-transaction.d.cts +15 -0
  436. package/highlevel/types/premium/stars-transaction.d.ts +15 -0
  437. package/highlevel/types/premium/stars-transaction.js +32 -15
  438. package/highlevel/types/reactions/emoji-status.cjs +2 -2
  439. package/highlevel/types/reactions/peer-reaction.cjs +2 -2
  440. package/highlevel/types/reactions/reaction-count.cjs +2 -2
  441. package/highlevel/types/reactions/types.cjs +2 -2
  442. package/highlevel/types/stories/all-stories.cjs +2 -2
  443. package/highlevel/types/stories/interactive/base.cjs +2 -2
  444. package/highlevel/types/stories/interactive/channel-post.cjs +2 -2
  445. package/highlevel/types/stories/interactive/index.cjs +2 -2
  446. package/highlevel/types/stories/interactive/input.cjs +2 -2
  447. package/highlevel/types/stories/interactive/location.cjs +2 -2
  448. package/highlevel/types/stories/interactive/reaction.cjs +2 -2
  449. package/highlevel/types/stories/interactive/url.cjs +2 -2
  450. package/highlevel/types/stories/interactive/venue.cjs +2 -2
  451. package/highlevel/types/stories/interactive/weather.cjs +2 -2
  452. package/highlevel/types/stories/peer-stories.cjs +2 -2
  453. package/highlevel/types/stories/stealth-mode.cjs +2 -2
  454. package/highlevel/types/stories/story-interactions.cjs +2 -2
  455. package/highlevel/types/stories/story-viewer.cjs +2 -2
  456. package/highlevel/types/stories/story.cjs +2 -2
  457. package/highlevel/types/updates/bot-chat-join-request.cjs +2 -2
  458. package/highlevel/types/updates/bot-reaction.cjs +2 -2
  459. package/highlevel/types/updates/bot-stopped.cjs +2 -2
  460. package/highlevel/types/updates/business-message.cjs +2 -3
  461. package/highlevel/types/updates/business-message.d.cts +0 -1
  462. package/highlevel/types/updates/business-message.d.ts +0 -1
  463. package/highlevel/types/updates/business-message.js +0 -1
  464. package/highlevel/types/updates/callback-query.cjs +2 -2
  465. package/highlevel/types/updates/chat-join-request.cjs +2 -2
  466. package/highlevel/types/updates/chat-member-update.cjs +2 -2
  467. package/highlevel/types/updates/chosen-inline-result.cjs +2 -2
  468. package/highlevel/types/updates/delete-business-message-update.cjs +2 -2
  469. package/highlevel/types/updates/delete-message-update.cjs +2 -2
  470. package/highlevel/types/updates/delete-story-update.cjs +2 -2
  471. package/highlevel/types/updates/history-read-update.cjs +2 -2
  472. package/highlevel/types/updates/inline-query.cjs +2 -2
  473. package/highlevel/types/updates/parse-update.cjs +2 -2
  474. package/highlevel/types/updates/poll-update.cjs +2 -2
  475. package/highlevel/types/updates/poll-vote.cjs +2 -2
  476. package/highlevel/types/updates/pre-checkout-query.cjs +2 -2
  477. package/highlevel/types/updates/story-update.cjs +2 -2
  478. package/highlevel/types/updates/user-status-update.cjs +2 -2
  479. package/highlevel/types/updates/user-typing-update.cjs +2 -2
  480. package/highlevel/updates/manager.cjs +2 -2
  481. package/highlevel/updates/parsed.cjs +2 -2
  482. package/highlevel/updates/types.cjs +2 -2
  483. package/highlevel/updates/utils.cjs +2 -2
  484. package/highlevel/utils/convert-file-id.cjs +2 -2
  485. package/highlevel/utils/entities.cjs +2 -2
  486. package/highlevel/utils/file-type.cjs +2 -2
  487. package/highlevel/utils/file-utils.cjs +2 -2
  488. package/highlevel/utils/inline-utils.cjs +2 -2
  489. package/highlevel/utils/inspectable.cjs +2 -2
  490. package/highlevel/utils/memoize.cjs +2 -2
  491. package/highlevel/utils/misc-utils.cjs +2 -2
  492. package/highlevel/utils/peer-utils.cjs +2 -2
  493. package/highlevel/utils/query-batcher.cjs +2 -2
  494. package/highlevel/utils/rps-meter.cjs +2 -2
  495. package/highlevel/utils/stream-utils.cjs +2 -2
  496. package/highlevel/utils/string-session.cjs +2 -2
  497. package/highlevel/utils/voice-utils.cjs +2 -2
  498. package/highlevel/worker/app-config.cjs +2 -2
  499. package/highlevel/worker/errors.cjs +2 -2
  500. package/highlevel/worker/invoker.cjs +2 -2
  501. package/highlevel/worker/port.cjs +4 -4
  502. package/highlevel/worker/port.d.cts +1 -1
  503. package/highlevel/worker/port.d.ts +1 -1
  504. package/highlevel/worker/port.js +2 -2
  505. package/highlevel/worker/protocol.cjs +2 -2
  506. package/highlevel/worker/storage.cjs +2 -2
  507. package/highlevel/worker/worker.cjs +2 -2
  508. package/index.cjs +9 -5
  509. package/index.js +7 -3
  510. package/methods.cjs +6 -2
  511. package/methods.js +4 -0
  512. package/network/auth-key.cjs +2 -2
  513. package/network/authorization.cjs +2 -2
  514. package/network/client.cjs +2 -2
  515. package/network/config-manager.cjs +2 -2
  516. package/network/middlewares/bundle.cjs +2 -2
  517. package/network/middlewares/default.cjs +2 -2
  518. package/network/middlewares/flood-waiter.cjs +2 -2
  519. package/network/middlewares/internal-errors.cjs +2 -2
  520. package/network/middlewares/on-error.cjs +2 -2
  521. package/network/middlewares/on-method.cjs +2 -2
  522. package/network/mtproto-session.cjs +2 -2
  523. package/network/mtproxy/_fake-tls.cjs +2 -2
  524. package/network/mtproxy/index.cjs +2 -2
  525. package/network/multi-session-connection.cjs +2 -2
  526. package/network/network-manager.cjs +3 -3
  527. package/network/network-manager.js +1 -1
  528. package/network/persistent-connection.cjs +2 -2
  529. package/network/server-salt.cjs +2 -2
  530. package/network/session-connection.cjs +2 -2
  531. package/network/transports/abstract.cjs +2 -2
  532. package/network/transports/intermediate.cjs +2 -2
  533. package/network/transports/obfuscated.cjs +2 -2
  534. package/package.json +4 -5
  535. package/storage/driver.cjs +2 -2
  536. package/storage/memory/driver.cjs +2 -2
  537. package/storage/memory/index.cjs +2 -2
  538. package/storage/memory/repository/auth-keys.cjs +2 -2
  539. package/storage/memory/repository/kv.cjs +2 -2
  540. package/storage/memory/repository/peers.cjs +2 -2
  541. package/storage/memory/repository/ref-messages.cjs +2 -2
  542. package/storage/service/auth-keys.cjs +2 -2
  543. package/storage/service/base.cjs +2 -2
  544. package/storage/service/default-dcs.cjs +2 -2
  545. package/storage/service/future-salts.cjs +2 -2
  546. package/storage/sqlite/driver.cjs +2 -2
  547. package/storage/sqlite/index.cjs +2 -2
  548. package/storage/sqlite/repository/auth-keys.cjs +2 -2
  549. package/storage/sqlite/repository/kv.cjs +2 -2
  550. package/storage/sqlite/repository/peers.cjs +2 -2
  551. package/storage/sqlite/repository/ref-messages.cjs +2 -2
  552. package/storage/storage.cjs +2 -2
  553. package/types/errors.cjs +2 -2
  554. package/types/utils.cjs +2 -2
  555. package/utils/abort-signal.cjs +2 -2
  556. package/utils/bigint-utils.cjs +2 -2
  557. package/utils/binary/asn1-parser.cjs +2 -2
  558. package/utils/crypto/abstract.cjs +2 -2
  559. package/utils/crypto/factorization.cjs +2 -2
  560. package/utils/crypto/keys.cjs +2 -2
  561. package/utils/crypto/miller-rabin.cjs +2 -2
  562. package/utils/crypto/mtproto.cjs +2 -2
  563. package/utils/crypto/password.cjs +2 -2
  564. package/utils/dcs.cjs +2 -2
  565. package/utils/early-timer.cjs +2 -2
  566. package/utils/error-reporting.cjs +2 -2
  567. package/utils/function-utils.cjs +2 -2
  568. package/utils/linked-list.cjs +2 -2
  569. package/utils/links/bots.cjs +2 -2
  570. package/utils/links/bundle.cjs +2 -2
  571. package/utils/links/calls.cjs +2 -2
  572. package/utils/links/chat.cjs +2 -2
  573. package/utils/links/common.cjs +2 -2
  574. package/utils/links/misc.cjs +2 -2
  575. package/utils/links/proxy.cjs +2 -2
  576. package/utils/links/stickers.cjs +2 -2
  577. package/utils/links/user.cjs +2 -2
  578. package/utils/logger.cjs +2 -2
  579. package/utils/long-utils.cjs +2 -2
  580. package/utils/misc-utils.cjs +2 -2
  581. package/utils/peer-utils.cjs +2 -2
  582. package/utils/sorted-array.cjs +2 -2
  583. package/utils/tl-json.cjs +2 -2
  584. package/utils/type-assertions.cjs +2 -2
  585. package/utils.cjs +2 -2
  586. package/worker.cjs +2 -2
  587. package/highlevel/types/calls/discard-reason.cjs +0 -38
  588. package/highlevel/types/calls/discard-reason.d.cts +0 -13
  589. package/highlevel/types/calls/discard-reason.d.ts +0 -13
  590. package/highlevel/types/calls/discard-reason.js +0 -33
  591. package/highlevel/types/calls/index.d.cts +0 -1
  592. package/highlevel/types/calls/index.d.ts +0 -1
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -1,12 +1,13 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
8
8
  const memoize = require("../../utils/memoize.cjs");
9
9
  const photo = require("../media/photo.cjs");
10
+ const botVerification = require("./bot-verification.cjs");
10
11
  const user = require("./user.cjs");
11
12
  const inspectable = require("../../utils/inspectable.cjs");
12
13
  class ChatPreview {
@@ -64,6 +65,13 @@ class ChatPreview {
64
65
  get withApproval() {
65
66
  return this.invite.requestNeeded;
66
67
  }
68
+ /**
69
+ * If non-null, this user was verified by a bot, and this field contains
70
+ * the ID of the custom emoji to display as the verification icon.
71
+ */
72
+ get customVerification() {
73
+ return this.invite.botVerification ? new botVerification.BotVerification(this.invite.botVerification) : null;
74
+ }
67
75
  }
68
76
  const ChatPreview$1 = /* @__PURE__ */ memoize.memoizeGetters(ChatPreview, ["photo", "someMembers"]);
69
77
  const ChatPreview$2 = /* @__PURE__ */ inspectable.makeInspectable(ChatPreview$1, ["link"]);
@@ -1,5 +1,6 @@
1
1
  import { tl } from '@mtcute/tl';
2
2
  import { Photo } from '../media/photo.js';
3
+ import { BotVerification } from './bot-verification.js';
3
4
  import { User } from './user.js';
4
5
  /**
5
6
  * Chat type. Can be:
@@ -52,4 +53,9 @@ export declare class ChatPreview {
52
53
  * to wait for admin approval.
53
54
  */
54
55
  get withApproval(): boolean;
56
+ /**
57
+ * If non-null, this user was verified by a bot, and this field contains
58
+ * the ID of the custom emoji to display as the verification icon.
59
+ */
60
+ get customVerification(): BotVerification | null;
55
61
  }
@@ -1,5 +1,6 @@
1
1
  import { tl } from '@mtcute/tl';
2
2
  import { Photo } from '../media/photo.js';
3
+ import { BotVerification } from './bot-verification.js';
3
4
  import { User } from './user.js';
4
5
  /**
5
6
  * Chat type. Can be:
@@ -52,4 +53,9 @@ export declare class ChatPreview {
52
53
  * to wait for admin approval.
53
54
  */
54
55
  get withApproval(): boolean;
56
+ /**
57
+ * If non-null, this user was verified by a bot, and this field contains
58
+ * the ID of the custom emoji to display as the verification icon.
59
+ */
60
+ get customVerification(): BotVerification | null;
55
61
  }
@@ -1,5 +1,6 @@
1
1
  import { memoizeGetters } from "../../utils/memoize.js";
2
2
  import { Photo as Photo$2 } from "../media/photo.js";
3
+ import { BotVerification as BotVerification$1 } from "./bot-verification.js";
3
4
  import { User as User$2 } from "./user.js";
4
5
  import { makeInspectable } from "../../utils/inspectable.js";
5
6
  class ChatPreview {
@@ -57,6 +58,13 @@ class ChatPreview {
57
58
  get withApproval() {
58
59
  return this.invite.requestNeeded;
59
60
  }
61
+ /**
62
+ * If non-null, this user was verified by a bot, and this field contains
63
+ * the ID of the custom emoji to display as the verification icon.
64
+ */
65
+ get customVerification() {
66
+ return this.invite.botVerification ? new BotVerification$1(this.invite.botVerification) : null;
67
+ }
60
68
  }
61
69
  const ChatPreview$1 = /* @__PURE__ */ memoizeGetters(ChatPreview, ["photo", "someMembers"]);
62
70
  const ChatPreview$2 = /* @__PURE__ */ makeInspectable(ChatPreview$1, ["link"]);
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -334,6 +334,14 @@ class Chat {
334
334
  if (!this.raw.emojiStatus || this.raw.emojiStatus._ === "emojiStatusEmpty") return null;
335
335
  return new emojiStatus.EmojiStatus(this.raw.emojiStatus);
336
336
  }
337
+ /**
338
+ * If non-null, this user was verified by a bot, and this field contains
339
+ * the ID of the custom emoji to display as the verification icon.
340
+ */
341
+ get customVerificationEmojiId() {
342
+ if (this.raw._ !== "channel") return null;
343
+ return this.raw.botVerificationIcon ?? null;
344
+ }
337
345
  /**
338
346
  * Color that should be used when rendering the header of
339
347
  * the user's profile
@@ -188,6 +188,11 @@ export declare class Chat {
188
188
  * Chat's emoji status, if any.
189
189
  */
190
190
  get emojiStatus(): EmojiStatus | null;
191
+ /**
192
+ * If non-null, this user was verified by a bot, and this field contains
193
+ * the ID of the custom emoji to display as the verification icon.
194
+ */
195
+ get customVerificationEmojiId(): tl.Long | null;
191
196
  /**
192
197
  * Color that should be used when rendering the header of
193
198
  * the user's profile
@@ -188,6 +188,11 @@ export declare class Chat {
188
188
  * Chat's emoji status, if any.
189
189
  */
190
190
  get emojiStatus(): EmojiStatus | null;
191
+ /**
192
+ * If non-null, this user was verified by a bot, and this field contains
193
+ * the ID of the custom emoji to display as the verification icon.
194
+ */
195
+ get customVerificationEmojiId(): tl.Long | null;
191
196
  /**
192
197
  * Color that should be used when rendering the header of
193
198
  * the user's profile
@@ -327,6 +327,14 @@ class Chat {
327
327
  if (!this.raw.emojiStatus || this.raw.emojiStatus._ === "emojiStatusEmpty") return null;
328
328
  return new EmojiStatus$1(this.raw.emojiStatus);
329
329
  }
330
+ /**
331
+ * If non-null, this user was verified by a bot, and this field contains
332
+ * the ID of the custom emoji to display as the verification icon.
333
+ */
334
+ get customVerificationEmojiId() {
335
+ if (this.raw._ !== "channel") return null;
336
+ return this.raw.botVerificationIcon ?? null;
337
+ }
330
338
  /**
331
339
  * Color that should be used when rendering the header of
332
340
  * the user's profile
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -25,7 +25,7 @@ class ChatlistPreview {
25
25
  }
26
26
  /** Title of the chatlist (only available for non-joined chatlists) */
27
27
  get title() {
28
- return this.raw._ === "chatlists.chatlistInvite" ? this.raw.title : "";
28
+ return this.raw._ === "chatlists.chatlistInvite" ? this.raw.title : { text: "", entities: [] };
29
29
  }
30
30
  /** Emoji representing an icon of the chatlist (may only be available for non-joined chatlists) */
31
31
  get emoji() {
@@ -1,4 +1,5 @@
1
1
  import { tl } from '@mtcute/tl';
2
+ import { TextWithEntities } from '../misc/entities.js';
2
3
  import { Peer } from './peer.js';
3
4
  import { PeersIndex } from './peers-index.js';
4
5
  /**
@@ -13,7 +14,7 @@ export declare class ChatlistPreview {
13
14
  /** If we joined the chatlist, ID of the folder representing it */
14
15
  get folderId(): number | null;
15
16
  /** Title of the chatlist (only available for non-joined chatlists) */
16
- get title(): string;
17
+ get title(): TextWithEntities;
17
18
  /** Emoji representing an icon of the chatlist (may only be available for non-joined chatlists) */
18
19
  get emoji(): string | null;
19
20
  /** List of all chats contained in the chatlist */
@@ -1,4 +1,5 @@
1
1
  import { tl } from '@mtcute/tl';
2
+ import { TextWithEntities } from '../misc/entities.js';
2
3
  import { Peer } from './peer.js';
3
4
  import { PeersIndex } from './peers-index.js';
4
5
  /**
@@ -13,7 +14,7 @@ export declare class ChatlistPreview {
13
14
  /** If we joined the chatlist, ID of the folder representing it */
14
15
  get folderId(): number | null;
15
16
  /** Title of the chatlist (only available for non-joined chatlists) */
16
- get title(): string;
17
+ get title(): TextWithEntities;
17
18
  /** Emoji representing an icon of the chatlist (may only be available for non-joined chatlists) */
18
19
  get emoji(): string | null;
19
20
  /** List of all chats contained in the chatlist */
@@ -18,7 +18,7 @@ class ChatlistPreview {
18
18
  }
19
19
  /** Title of the chatlist (only available for non-joined chatlists) */
20
20
  get title() {
21
- return this.raw._ === "chatlists.chatlistInvite" ? this.raw.title : "";
21
+ return this.raw._ === "chatlists.chatlistInvite" ? this.raw.title : { text: "", entities: [] };
22
22
  }
23
23
  /** Emoji representing an icon of the chatlist (may only be available for non-joined chatlists) */
24
24
  get emoji() {
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -11,6 +11,7 @@ const photo = require("../media/photo.cjs");
11
11
  const stickerSet = require("../misc/sticker-set.cjs");
12
12
  const peerStories = require("../stories/peer-stories.cjs");
13
13
  const botInfo = require("./bot-info.cjs");
14
+ const botVerification = require("./bot-verification.cjs");
14
15
  const chatInviteLink = require("./chat-invite-link.cjs");
15
16
  const chatLocation = require("./chat-location.cjs");
16
17
  const chat = require("./chat.cjs");
@@ -292,6 +293,11 @@ class FullChat extends chat.Chat {
292
293
  if (this.full._ !== "channelFull" || !this.full.stories) return null;
293
294
  return new peerStories.PeerStories(this.full.stories, this.peers);
294
295
  }
296
+ /** Information about a bot-issued verification (if any) */
297
+ get botVerification() {
298
+ if (this.full._ !== "channelFull" || !this.full.botVerification) return null;
299
+ return new botVerification.BotVerification(this.full.botVerification);
300
+ }
295
301
  }
296
302
  const FullChat$1 = /* @__PURE__ */ memoize.memoizeGetters(FullChat, [
297
303
  "fullPhoto",
@@ -302,7 +308,8 @@ const FullChat$1 = /* @__PURE__ */ memoize.memoizeGetters(FullChat, [
302
308
  "botInfo",
303
309
  "linkedChat",
304
310
  "recentRequesters",
305
- "stories"
311
+ "stories",
312
+ "botVerification"
306
313
  ]);
307
314
  const FullChat$2 = /* @__PURE__ */ inspectable.makeInspectable(FullChat$1);
308
315
  exports.FullChat = FullChat$2;
@@ -3,6 +3,7 @@ import { Photo } from '../media/photo.js';
3
3
  import { StickerSet } from '../misc/sticker-set.js';
4
4
  import { PeerStories } from '../stories/peer-stories.js';
5
5
  import { BotInfo } from './bot-info.js';
6
+ import { BotVerification } from './bot-verification.js';
6
7
  import { ChatInviteLink } from './chat-invite-link.js';
7
8
  import { ChatLocation } from './chat-location.js';
8
9
  import { Chat } from './chat.js';
@@ -158,4 +159,6 @@ export declare class FullChat extends Chat {
158
159
  get maxReactions(): number | null;
159
160
  /** Channel stories */
160
161
  get stories(): PeerStories | null;
162
+ /** Information about a bot-issued verification (if any) */
163
+ get botVerification(): BotVerification | null;
161
164
  }
@@ -3,6 +3,7 @@ import { Photo } from '../media/photo.js';
3
3
  import { StickerSet } from '../misc/sticker-set.js';
4
4
  import { PeerStories } from '../stories/peer-stories.js';
5
5
  import { BotInfo } from './bot-info.js';
6
+ import { BotVerification } from './bot-verification.js';
6
7
  import { ChatInviteLink } from './chat-invite-link.js';
7
8
  import { ChatLocation } from './chat-location.js';
8
9
  import { Chat } from './chat.js';
@@ -158,4 +159,6 @@ export declare class FullChat extends Chat {
158
159
  get maxReactions(): number | null;
159
160
  /** Channel stories */
160
161
  get stories(): PeerStories | null;
162
+ /** Information about a bot-issued verification (if any) */
163
+ get botVerification(): BotVerification | null;
161
164
  }
@@ -4,6 +4,7 @@ import { Photo as Photo$2 } from "../media/photo.js";
4
4
  import { StickerSet as StickerSet$2 } from "../misc/sticker-set.js";
5
5
  import { PeerStories as PeerStories$2 } from "../stories/peer-stories.js";
6
6
  import { BotInfo as BotInfo$2 } from "./bot-info.js";
7
+ import { BotVerification as BotVerification$1 } from "./bot-verification.js";
7
8
  import { ChatInviteLink as ChatInviteLink$2 } from "./chat-invite-link.js";
8
9
  import { ChatLocation as ChatLocation$2 } from "./chat-location.js";
9
10
  import { Chat as Chat$2 } from "./chat.js";
@@ -285,6 +286,11 @@ class FullChat extends Chat$2 {
285
286
  if (this.full._ !== "channelFull" || !this.full.stories) return null;
286
287
  return new PeerStories$2(this.full.stories, this.peers);
287
288
  }
289
+ /** Information about a bot-issued verification (if any) */
290
+ get botVerification() {
291
+ if (this.full._ !== "channelFull" || !this.full.botVerification) return null;
292
+ return new BotVerification$1(this.full.botVerification);
293
+ }
288
294
  }
289
295
  const FullChat$1 = /* @__PURE__ */ memoizeGetters(FullChat, [
290
296
  "fullPhoto",
@@ -295,7 +301,8 @@ const FullChat$1 = /* @__PURE__ */ memoizeGetters(FullChat, [
295
301
  "botInfo",
296
302
  "linkedChat",
297
303
  "recentRequesters",
298
- "stories"
304
+ "stories",
305
+ "botVerification"
299
306
  ]);
300
307
  const FullChat$2 = /* @__PURE__ */ makeInspectable(FullChat$1);
301
308
  export {
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -9,6 +9,7 @@ const inspectable = require("../../utils/inspectable.cjs");
9
9
  const memoize = require("../../utils/memoize.cjs");
10
10
  const photo = require("../media/photo.cjs");
11
11
  const businessAccount = require("../premium/business-account.cjs");
12
+ const botVerification = require("./bot-verification.cjs");
12
13
  const chat = require("./chat.cjs");
13
14
  const peersIndex = require("./peers-index.cjs");
14
15
  const user = require("./user.cjs");
@@ -202,6 +203,11 @@ class FullUser extends user.User {
202
203
  }
203
204
  return null;
204
205
  }
206
+ /** Information about a bot-issued verification (if any) */
207
+ get botVerification() {
208
+ if (!this.full.botVerification) return null;
209
+ return new botVerification.BotVerification(this.full.botVerification);
210
+ }
205
211
  }
206
212
  const FullUser$1 = /* @__PURE__ */ memoize.memoizeGetters(FullUser, [
207
213
  "fullPhoto",
@@ -209,7 +215,8 @@ const FullUser$1 = /* @__PURE__ */ memoize.memoizeGetters(FullUser, [
209
215
  "realPhoto",
210
216
  "publicPhoto",
211
217
  "personalChannel",
212
- "business"
218
+ "business",
219
+ "botVerification"
213
220
  ]);
214
221
  const FullUser$2 = /* @__PURE__ */ inspectable.makeInspectable(FullUser$1);
215
222
  exports.FullUser = FullUser$2;
@@ -1,6 +1,7 @@
1
1
  import { tl } from '@mtcute/tl';
2
2
  import { Photo } from '../media/photo.js';
3
3
  import { BusinessAccount } from '../premium/business-account.js';
4
+ import { BotVerification } from './bot-verification.js';
4
5
  import { Chat } from './chat.js';
5
6
  import { PeersIndex } from './peers-index.js';
6
7
  import { User } from './user.js';
@@ -112,4 +113,6 @@ export declare class FullUser extends User {
112
113
  * If this is a business account, information about the business.
113
114
  */
114
115
  get business(): BusinessAccount | null;
116
+ /** Information about a bot-issued verification (if any) */
117
+ get botVerification(): BotVerification | null;
115
118
  }
@@ -1,6 +1,7 @@
1
1
  import { tl } from '@mtcute/tl';
2
2
  import { Photo } from '../media/photo.js';
3
3
  import { BusinessAccount } from '../premium/business-account.js';
4
+ import { BotVerification } from './bot-verification.js';
4
5
  import { Chat } from './chat.js';
5
6
  import { PeersIndex } from './peers-index.js';
6
7
  import { User } from './user.js';
@@ -112,4 +113,6 @@ export declare class FullUser extends User {
112
113
  * If this is a business account, information about the business.
113
114
  */
114
115
  get business(): BusinessAccount | null;
116
+ /** Information about a bot-issued verification (if any) */
117
+ get botVerification(): BotVerification | null;
115
118
  }
@@ -2,6 +2,7 @@ import { makeInspectable } from "../../utils/inspectable.js";
2
2
  import { memoizeGetters } from "../../utils/memoize.js";
3
3
  import { Photo as Photo$2 } from "../media/photo.js";
4
4
  import { BusinessAccount as BusinessAccount$2 } from "../premium/business-account.js";
5
+ import { BotVerification as BotVerification$1 } from "./bot-verification.js";
5
6
  import { Chat as Chat$2 } from "./chat.js";
6
7
  import { PeersIndex } from "./peers-index.js";
7
8
  import { User as User$2 } from "./user.js";
@@ -195,6 +196,11 @@ class FullUser extends User$2 {
195
196
  }
196
197
  return null;
197
198
  }
199
+ /** Information about a bot-issued verification (if any) */
200
+ get botVerification() {
201
+ if (!this.full.botVerification) return null;
202
+ return new BotVerification$1(this.full.botVerification);
203
+ }
198
204
  }
199
205
  const FullUser$1 = /* @__PURE__ */ memoizeGetters(FullUser, [
200
206
  "fullPhoto",
@@ -202,7 +208,8 @@ const FullUser$1 = /* @__PURE__ */ memoizeGetters(FullUser, [
202
208
  "realPhoto",
203
209
  "publicPhoto",
204
210
  "personalChannel",
205
- "business"
211
+ "business",
212
+ "botVerification"
206
213
  ]);
207
214
  const FullUser$2 = /* @__PURE__ */ makeInspectable(FullUser$1);
208
215
  export {
@@ -1,4 +1,5 @@
1
1
  export * from './bot-info.js';
2
+ export * from './bot-verification.js';
2
3
  export * from './chat-colors.js';
3
4
  export * from './chat-event/index.js';
4
5
  export * from './chat-invite-link-member.js';
@@ -1,4 +1,5 @@
1
1
  export * from './bot-info.js';
2
+ export * from './bot-verification.js';
2
3
  export * from './chat-colors.js';
3
4
  export * from './chat-event/index.js';
4
5
  export * from './chat-invite-link-member.js';
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -111,6 +111,13 @@ class User {
111
111
  get isVerified() {
112
112
  return this.raw.verified;
113
113
  }
114
+ /**
115
+ * If non-null, this user was verified by a bot, and this field contains
116
+ * the ID of the custom emoji to display as the verification icon.
117
+ */
118
+ get customVerificationEmojiId() {
119
+ return this.raw.botVerificationIcon ?? null;
120
+ }
114
121
  /**
115
122
  * Whether this user has been restricted. Bots only.
116
123
  * See {@link restrictionReason} for details
@@ -84,6 +84,11 @@ export declare class User {
84
84
  get isBotEditable(): boolean;
85
85
  /** Whether this user has been verified by Telegram */
86
86
  get isVerified(): boolean;
87
+ /**
88
+ * If non-null, this user was verified by a bot, and this field contains
89
+ * the ID of the custom emoji to display as the verification icon.
90
+ */
91
+ get customVerificationEmojiId(): tl.Long | null;
87
92
  /**
88
93
  * Whether this user has been restricted. Bots only.
89
94
  * See {@link restrictionReason} for details
@@ -84,6 +84,11 @@ export declare class User {
84
84
  get isBotEditable(): boolean;
85
85
  /** Whether this user has been verified by Telegram */
86
86
  get isVerified(): boolean;
87
+ /**
88
+ * If non-null, this user was verified by a bot, and this field contains
89
+ * the ID of the custom emoji to display as the verification icon.
90
+ */
91
+ get customVerificationEmojiId(): tl.Long | null;
87
92
  /**
88
93
  * Whether this user has been restricted. Bots only.
89
94
  * See {@link restrictionReason} for details
@@ -104,6 +104,13 @@ class User {
104
104
  get isVerified() {
105
105
  return this.raw.verified;
106
106
  }
107
+ /**
108
+ * If non-null, this user was verified by a bot, and this field contains
109
+ * the ID of the custom emoji to display as the verification icon.
110
+ */
111
+ get customVerificationEmojiId() {
112
+ return this.raw.botVerificationIcon ?? null;
113
+ }
107
114
  /**
108
115
  * Whether this user has been restricted. Bots only.
109
116
  * See {@link restrictionReason} for details
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -1,7 +1,7 @@
1
1
  if (typeof globalThis !== "undefined" && !globalThis._MTCUTE_CJS_DEPRECATION_WARNED) {
2
2
  globalThis._MTCUTE_CJS_DEPRECATION_WARNED = true;
3
- console.warn("[mtcute-workspace] CommonJS support is deprecated and will be removed in 0.20.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
- console.warn("[mtcute-workspace] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
3
+ console.warn("[@mtcute/core] CommonJS support is deprecated and will be removed in 0.25.0. Please consider switching to ESM, it's " + (/* @__PURE__ */ new Date()).getFullYear() + " already.");
4
+ console.warn("[@mtcute/core] Learn more about switching to ESM: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c");
5
5
  }
6
6
  "use strict";
7
7
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });