@divyacon/piece-telegram-bot 0.0.0-stage → 0.1.0

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 (223) hide show
  1. package/LICENSE.MIT-AP +24 -0
  2. package/README.md +8 -2
  3. package/dist/index.d.ts +3 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +122 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/lib/action/answer-callback-query.action.d.ts +8 -0
  8. package/dist/lib/action/answer-callback-query.action.d.ts.map +1 -0
  9. package/dist/lib/action/answer-callback-query.action.js +63 -0
  10. package/dist/lib/action/answer-callback-query.action.js.map +1 -0
  11. package/dist/lib/action/create-invite-link.d.ts +9 -0
  12. package/dist/lib/action/create-invite-link.d.ts.map +1 -0
  13. package/dist/lib/action/create-invite-link.js +66 -0
  14. package/dist/lib/action/create-invite-link.js.map +1 -0
  15. package/dist/lib/action/delete-message.action.d.ts +6 -0
  16. package/dist/lib/action/delete-message.action.d.ts.map +1 -0
  17. package/dist/lib/action/delete-message.action.js +42 -0
  18. package/dist/lib/action/delete-message.action.js.map +1 -0
  19. package/dist/lib/action/edit-message-text.action.d.ts +12 -0
  20. package/dist/lib/action/edit-message-text.action.d.ts.map +1 -0
  21. package/dist/lib/action/edit-message-text.action.js +76 -0
  22. package/dist/lib/action/edit-message-text.action.js.map +1 -0
  23. package/dist/lib/action/forward-message.action.d.ts +10 -0
  24. package/dist/lib/action/forward-message.action.d.ts.map +1 -0
  25. package/dist/lib/action/forward-message.action.js +59 -0
  26. package/dist/lib/action/forward-message.action.js.map +1 -0
  27. package/dist/lib/action/get-chat-member.d.ts +6 -0
  28. package/dist/lib/action/get-chat-member.d.ts.map +1 -0
  29. package/dist/lib/action/get-chat-member.js +49 -0
  30. package/dist/lib/action/get-chat-member.js.map +1 -0
  31. package/dist/lib/action/get-chat.action.d.ts +5 -0
  32. package/dist/lib/action/get-chat.action.d.ts.map +1 -0
  33. package/dist/lib/action/get-chat.action.js +42 -0
  34. package/dist/lib/action/get-chat.action.js.map +1 -0
  35. package/dist/lib/action/get-file.action.d.ts +5 -0
  36. package/dist/lib/action/get-file.action.d.ts.map +1 -0
  37. package/dist/lib/action/get-file.action.js +69 -0
  38. package/dist/lib/action/get-file.action.js.map +1 -0
  39. package/dist/lib/action/pin-message.action.d.ts +7 -0
  40. package/dist/lib/action/pin-message.action.d.ts.map +1 -0
  41. package/dist/lib/action/pin-message.action.js +50 -0
  42. package/dist/lib/action/pin-message.action.js.map +1 -0
  43. package/dist/lib/action/request-approval-message.d.ts +7 -0
  44. package/dist/lib/action/request-approval-message.d.ts.map +1 -0
  45. package/dist/lib/action/request-approval-message.js +84 -0
  46. package/dist/lib/action/request-approval-message.js.map +1 -0
  47. package/dist/lib/action/send-audio.action.d.ts +18 -0
  48. package/dist/lib/action/send-audio.action.d.ts.map +1 -0
  49. package/dist/lib/action/send-audio.action.js +128 -0
  50. package/dist/lib/action/send-audio.action.js.map +1 -0
  51. package/dist/lib/action/send-chat-action.action.d.ts +7 -0
  52. package/dist/lib/action/send-chat-action.action.d.ts.map +1 -0
  53. package/dist/lib/action/send-chat-action.action.js +61 -0
  54. package/dist/lib/action/send-chat-action.action.js.map +1 -0
  55. package/dist/lib/action/send-document.action.d.ts +15 -0
  56. package/dist/lib/action/send-document.action.d.ts.map +1 -0
  57. package/dist/lib/action/send-document.action.js +104 -0
  58. package/dist/lib/action/send-document.action.js.map +1 -0
  59. package/dist/lib/action/send-location.action.d.ts +16 -0
  60. package/dist/lib/action/send-location.action.d.ts.map +1 -0
  61. package/dist/lib/action/send-location.action.js +83 -0
  62. package/dist/lib/action/send-location.action.js.map +1 -0
  63. package/dist/lib/action/send-media-group.action.d.ts +11 -0
  64. package/dist/lib/action/send-media-group.action.d.ts.map +1 -0
  65. package/dist/lib/action/send-media-group.action.js +97 -0
  66. package/dist/lib/action/send-media-group.action.js.map +1 -0
  67. package/dist/lib/action/send-media.action.d.ts +14 -0
  68. package/dist/lib/action/send-media.action.d.ts.map +1 -0
  69. package/dist/lib/action/send-media.action.js +198 -0
  70. package/dist/lib/action/send-media.action.js.map +1 -0
  71. package/dist/lib/action/send-poll.action.d.ts +21 -0
  72. package/dist/lib/action/send-poll.action.d.ts.map +1 -0
  73. package/dist/lib/action/send-poll.action.js +145 -0
  74. package/dist/lib/action/send-poll.action.js.map +1 -0
  75. package/dist/lib/action/send-text-message.action.d.ts +14 -0
  76. package/dist/lib/action/send-text-message.action.d.ts.map +1 -0
  77. package/dist/lib/action/send-text-message.action.js +63 -0
  78. package/dist/lib/action/send-text-message.action.js.map +1 -0
  79. package/dist/lib/action/telegram-answer-callback-query.d.ts +8 -0
  80. package/dist/lib/action/telegram-answer-callback-query.d.ts.map +1 -0
  81. package/dist/lib/action/telegram-answer-callback-query.js +68 -0
  82. package/dist/lib/action/telegram-answer-callback-query.js.map +1 -0
  83. package/dist/lib/action/telegram-create-invite-link.d.ts +8 -0
  84. package/dist/lib/action/telegram-create-invite-link.d.ts.map +1 -0
  85. package/dist/lib/action/telegram-create-invite-link.js +68 -0
  86. package/dist/lib/action/telegram-create-invite-link.js.map +1 -0
  87. package/dist/lib/action/telegram-delete-message.d.ts +5 -0
  88. package/dist/lib/action/telegram-delete-message.d.ts.map +1 -0
  89. package/dist/lib/action/telegram-delete-message.js +44 -0
  90. package/dist/lib/action/telegram-delete-message.js.map +1 -0
  91. package/dist/lib/action/telegram-edit-message-text.d.ts +10 -0
  92. package/dist/lib/action/telegram-edit-message-text.d.ts.map +1 -0
  93. package/dist/lib/action/telegram-edit-message-text.js +93 -0
  94. package/dist/lib/action/telegram-edit-message-text.js.map +1 -0
  95. package/dist/lib/action/telegram-forward-message.d.ts +9 -0
  96. package/dist/lib/action/telegram-forward-message.d.ts.map +1 -0
  97. package/dist/lib/action/telegram-forward-message.js +61 -0
  98. package/dist/lib/action/telegram-forward-message.js.map +1 -0
  99. package/dist/lib/action/telegram-get-bot-info.d.ts +2 -0
  100. package/dist/lib/action/telegram-get-bot-info.d.ts.map +1 -0
  101. package/dist/lib/action/telegram-get-bot-info.js +39 -0
  102. package/dist/lib/action/telegram-get-bot-info.js.map +1 -0
  103. package/dist/lib/action/telegram-get-chat-administrators.d.ts +4 -0
  104. package/dist/lib/action/telegram-get-chat-administrators.d.ts.map +1 -0
  105. package/dist/lib/action/telegram-get-chat-administrators.js +44 -0
  106. package/dist/lib/action/telegram-get-chat-administrators.js.map +1 -0
  107. package/dist/lib/action/telegram-get-chat-member-count.d.ts +4 -0
  108. package/dist/lib/action/telegram-get-chat-member-count.d.ts.map +1 -0
  109. package/dist/lib/action/telegram-get-chat-member-count.js +44 -0
  110. package/dist/lib/action/telegram-get-chat-member-count.js.map +1 -0
  111. package/dist/lib/action/telegram-get-chat-member.d.ts +5 -0
  112. package/dist/lib/action/telegram-get-chat-member.d.ts.map +1 -0
  113. package/dist/lib/action/telegram-get-chat-member.js +51 -0
  114. package/dist/lib/action/telegram-get-chat-member.js.map +1 -0
  115. package/dist/lib/action/telegram-get-chat.d.ts +4 -0
  116. package/dist/lib/action/telegram-get-chat.d.ts.map +1 -0
  117. package/dist/lib/action/telegram-get-chat.js +44 -0
  118. package/dist/lib/action/telegram-get-chat.js.map +1 -0
  119. package/dist/lib/action/telegram-get-file.d.ts +5 -0
  120. package/dist/lib/action/telegram-get-file.d.ts.map +1 -0
  121. package/dist/lib/action/telegram-get-file.js +72 -0
  122. package/dist/lib/action/telegram-get-file.js.map +1 -0
  123. package/dist/lib/action/telegram-pin-message.d.ts +6 -0
  124. package/dist/lib/action/telegram-pin-message.d.ts.map +1 -0
  125. package/dist/lib/action/telegram-pin-message.js +52 -0
  126. package/dist/lib/action/telegram-pin-message.js.map +1 -0
  127. package/dist/lib/action/telegram-send-audio.d.ts +16 -0
  128. package/dist/lib/action/telegram-send-audio.d.ts.map +1 -0
  129. package/dist/lib/action/telegram-send-audio.js +149 -0
  130. package/dist/lib/action/telegram-send-audio.js.map +1 -0
  131. package/dist/lib/action/telegram-send-chat-action.d.ts +6 -0
  132. package/dist/lib/action/telegram-send-chat-action.d.ts.map +1 -0
  133. package/dist/lib/action/telegram-send-chat-action.js +67 -0
  134. package/dist/lib/action/telegram-send-chat-action.js.map +1 -0
  135. package/dist/lib/action/telegram-send-document.d.ts +13 -0
  136. package/dist/lib/action/telegram-send-document.d.ts.map +1 -0
  137. package/dist/lib/action/telegram-send-document.js +125 -0
  138. package/dist/lib/action/telegram-send-document.js.map +1 -0
  139. package/dist/lib/action/telegram-send-location.d.ts +15 -0
  140. package/dist/lib/action/telegram-send-location.d.ts.map +1 -0
  141. package/dist/lib/action/telegram-send-location.js +93 -0
  142. package/dist/lib/action/telegram-send-location.js.map +1 -0
  143. package/dist/lib/action/telegram-send-media-group.d.ts +10 -0
  144. package/dist/lib/action/telegram-send-media-group.d.ts.map +1 -0
  145. package/dist/lib/action/telegram-send-media-group.js +115 -0
  146. package/dist/lib/action/telegram-send-media-group.js.map +1 -0
  147. package/dist/lib/action/telegram-send-message.d.ts +12 -0
  148. package/dist/lib/action/telegram-send-message.d.ts.map +1 -0
  149. package/dist/lib/action/telegram-send-message.js +84 -0
  150. package/dist/lib/action/telegram-send-message.js.map +1 -0
  151. package/dist/lib/action/telegram-send-photo-or-video.d.ts +12 -0
  152. package/dist/lib/action/telegram-send-photo-or-video.d.ts.map +1 -0
  153. package/dist/lib/action/telegram-send-photo-or-video.js +219 -0
  154. package/dist/lib/action/telegram-send-photo-or-video.js.map +1 -0
  155. package/dist/lib/action/telegram-send-poll.d.ts +20 -0
  156. package/dist/lib/action/telegram-send-poll.d.ts.map +1 -0
  157. package/dist/lib/action/telegram-send-poll.js +167 -0
  158. package/dist/lib/action/telegram-send-poll.js.map +1 -0
  159. package/dist/lib/action/telegram-unpin-message.d.ts +5 -0
  160. package/dist/lib/action/telegram-unpin-message.d.ts.map +1 -0
  161. package/dist/lib/action/telegram-unpin-message.js +45 -0
  162. package/dist/lib/action/telegram-unpin-message.js.map +1 -0
  163. package/dist/lib/action/unpin-message.action.d.ts +6 -0
  164. package/dist/lib/action/unpin-message.action.d.ts.map +1 -0
  165. package/dist/lib/action/unpin-message.action.js +43 -0
  166. package/dist/lib/action/unpin-message.action.js.map +1 -0
  167. package/dist/lib/common/index.d.ts +25 -0
  168. package/dist/lib/common/index.d.ts.map +1 -0
  169. package/dist/lib/common/index.js +104 -0
  170. package/dist/lib/common/index.js.map +1 -0
  171. package/dist/lib/output-schemas.d.ts +41 -0
  172. package/dist/lib/output-schemas.d.ts.map +1 -0
  173. package/dist/lib/output-schemas.js +1853 -0
  174. package/dist/lib/output-schemas.js.map +1 -0
  175. package/dist/lib/trigger/new-message.d.ts +15 -0
  176. package/dist/lib/trigger/new-message.d.ts.map +1 -0
  177. package/dist/lib/trigger/new-message.js +121 -0
  178. package/dist/lib/trigger/new-message.js.map +1 -0
  179. package/package.json +44 -3
  180. package/src/index.ts +119 -0
  181. package/src/lib/action/answer-callback-query.action.ts +58 -0
  182. package/src/lib/action/create-invite-link.ts +59 -0
  183. package/src/lib/action/delete-message.action.ts +34 -0
  184. package/src/lib/action/edit-message-text.action.ts +71 -0
  185. package/src/lib/action/forward-message.action.ts +50 -0
  186. package/src/lib/action/get-chat-member.ts +40 -0
  187. package/src/lib/action/get-chat.action.ts +33 -0
  188. package/src/lib/action/get-file.action.ts +79 -0
  189. package/src/lib/action/pin-message.action.ts +41 -0
  190. package/src/lib/action/request-approval-message.ts +85 -0
  191. package/src/lib/action/send-audio.action.ts +123 -0
  192. package/src/lib/action/send-chat-action.action.ts +53 -0
  193. package/src/lib/action/send-document.action.ts +105 -0
  194. package/src/lib/action/send-location.action.ts +76 -0
  195. package/src/lib/action/send-media-group.action.ts +98 -0
  196. package/src/lib/action/send-media.action.ts +209 -0
  197. package/src/lib/action/send-poll.action.ts +140 -0
  198. package/src/lib/action/send-text-message.action.ts +54 -0
  199. package/src/lib/action/telegram-answer-callback-query.ts +64 -0
  200. package/src/lib/action/telegram-create-invite-link.ts +62 -0
  201. package/src/lib/action/telegram-delete-message.ts +37 -0
  202. package/src/lib/action/telegram-edit-message-text.ts +92 -0
  203. package/src/lib/action/telegram-forward-message.ts +54 -0
  204. package/src/lib/action/telegram-get-bot-info.ts +31 -0
  205. package/src/lib/action/telegram-get-chat-administrators.ts +36 -0
  206. package/src/lib/action/telegram-get-chat-member-count.ts +36 -0
  207. package/src/lib/action/telegram-get-chat-member.ts +43 -0
  208. package/src/lib/action/telegram-get-chat.ts +36 -0
  209. package/src/lib/action/telegram-get-file.ts +83 -0
  210. package/src/lib/action/telegram-pin-message.ts +45 -0
  211. package/src/lib/action/telegram-send-audio.ts +157 -0
  212. package/src/lib/action/telegram-send-chat-action.ts +61 -0
  213. package/src/lib/action/telegram-send-document.ts +136 -0
  214. package/src/lib/action/telegram-send-location.ts +89 -0
  215. package/src/lib/action/telegram-send-media-group.ts +119 -0
  216. package/src/lib/action/telegram-send-message.ts +79 -0
  217. package/src/lib/action/telegram-send-photo-or-video.ts +238 -0
  218. package/src/lib/action/telegram-send-poll.ts +170 -0
  219. package/src/lib/action/telegram-unpin-message.ts +38 -0
  220. package/src/lib/action/unpin-message.action.ts +36 -0
  221. package/src/lib/common/index.ts +147 -0
  222. package/src/lib/output-schemas.ts +1909 -0
  223. package/src/lib/trigger/new-message.ts +127 -0
@@ -0,0 +1,1853 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createInviteLinkActionOutputSchema = exports.editMessageTextActionOutputSchema = exports.forwardMessageActionOutputSchema = exports.getFileActionOutputSchema = exports.requestApprovalMessageActionOutputSchema = exports.sendAudioActionOutputSchema = exports.sendDocumentActionOutputSchema = exports.sendMediaActionOutputSchema = exports.unpinMessageActionOutputSchema = exports.pinMessageActionOutputSchema = exports.getChatMemberActionOutputSchema = exports.getChatActionOutputSchema = exports.deleteMessageActionOutputSchema = exports.sendChatActionActionOutputSchema = exports.sendPollActionOutputSchema = exports.sendMediaGroupActionOutputSchema = exports.sendLocationActionOutputSchema = exports.sendTextMessageActionOutputSchema = exports.telegramAnswerCallbackQueryActionOutputSchema = exports.telegramCreateInviteLinkActionOutputSchema = exports.telegramEditMessageTextActionOutputSchema = exports.telegramForwardMessageActionOutputSchema = exports.telegramGetFileActionOutputSchema = exports.telegramGetBotInfoActionOutputSchema = exports.telegramGetChatMemberCountActionOutputSchema = exports.telegramGetChatAdministratorsActionOutputSchema = exports.telegramGetChatMemberActionOutputSchema = exports.telegramGetChatActionOutputSchema = exports.telegramUnpinMessageActionOutputSchema = exports.telegramPinMessageActionOutputSchema = exports.telegramDeleteMessageActionOutputSchema = exports.telegramSendChatActionActionOutputSchema = exports.telegramSendPollActionOutputSchema = exports.telegramSendMediaGroupActionOutputSchema = exports.telegramSendLocationActionOutputSchema = exports.telegramSendDocumentActionOutputSchema = exports.telegramSendAudioActionOutputSchema = exports.telegramSendPhotoOrVideoActionOutputSchema = exports.telegramSendMessageActionOutputSchema = void 0;
4
+ const telegramChatFields = [
5
+ { key: 'id', label: 'Chat ID', value: 'id' },
6
+ { key: 'type', label: 'Chat Type', value: 'type' },
7
+ { key: 'title', label: 'Title', value: 'title' },
8
+ ];
9
+ const telegramFromFields = [
10
+ { key: 'id', label: 'Bot ID', value: 'id' },
11
+ { key: 'username', label: 'Username', value: 'username' },
12
+ { key: 'is_bot', label: 'Is Bot', value: 'is_bot', format: 'boolean' },
13
+ ];
14
+ const telegramPhotoSizeFields = [
15
+ { key: 'file_id', label: 'File ID', value: 'file_id' },
16
+ { key: 'file_unique_id', label: 'File Unique ID', value: 'file_unique_id' },
17
+ { key: 'width', label: 'Width', value: 'width', format: 'number' },
18
+ { key: 'height', label: 'Height', value: 'height', format: 'number' },
19
+ { key: 'file_size', label: 'File Size', value: 'file_size', format: 'filesize' },
20
+ ];
21
+ const telegramVideoFields = [
22
+ { key: 'file_id', label: 'File ID', value: 'file_id' },
23
+ { key: 'file_unique_id', label: 'File Unique ID', value: 'file_unique_id' },
24
+ { key: 'width', label: 'Width', value: 'width', format: 'number' },
25
+ { key: 'height', label: 'Height', value: 'height', format: 'number' },
26
+ { key: 'duration', label: 'Duration (s)', value: 'duration', format: 'number' },
27
+ { key: 'file_name', label: 'File Name', value: 'file_name' },
28
+ { key: 'mime_type', label: 'MIME Type', value: 'mime_type' },
29
+ { key: 'file_size', label: 'File Size', value: 'file_size', format: 'filesize' },
30
+ ];
31
+ const telegramAnimationFields = [
32
+ { key: 'file_id', label: 'File ID', value: 'file_id' },
33
+ { key: 'file_unique_id', label: 'File Unique ID', value: 'file_unique_id' },
34
+ { key: 'width', label: 'Width', value: 'width', format: 'number' },
35
+ { key: 'height', label: 'Height', value: 'height', format: 'number' },
36
+ { key: 'duration', label: 'Duration (s)', value: 'duration', format: 'number' },
37
+ { key: 'file_name', label: 'File Name', value: 'file_name' },
38
+ { key: 'mime_type', label: 'MIME Type', value: 'mime_type' },
39
+ { key: 'file_size', label: 'File Size', value: 'file_size', format: 'filesize' },
40
+ ];
41
+ const telegramStickerFields = [
42
+ { key: 'file_id', label: 'File ID', value: 'file_id' },
43
+ { key: 'file_unique_id', label: 'File Unique ID', value: 'file_unique_id' },
44
+ { key: 'width', label: 'Width', value: 'width', format: 'number' },
45
+ { key: 'height', label: 'Height', value: 'height', format: 'number' },
46
+ { key: 'emoji', label: 'Emoji', value: 'emoji' },
47
+ { key: 'set_name', label: 'Sticker Set Name', value: 'set_name' },
48
+ { key: 'file_size', label: 'File Size', value: 'file_size', format: 'filesize' },
49
+ ];
50
+ const telegramAudioFields = [
51
+ { key: 'file_id', label: 'File ID', value: 'file_id' },
52
+ { key: 'file_unique_id', label: 'File Unique ID', value: 'file_unique_id' },
53
+ { key: 'duration', label: 'Duration (s)', value: 'duration', format: 'number' },
54
+ { key: 'performer', label: 'Performer', value: 'performer' },
55
+ { key: 'title', label: 'Track Title', value: 'title' },
56
+ { key: 'file_name', label: 'File Name', value: 'file_name' },
57
+ { key: 'mime_type', label: 'MIME Type', value: 'mime_type' },
58
+ { key: 'file_size', label: 'File Size', value: 'file_size', format: 'filesize' },
59
+ ];
60
+ const telegramDocumentFields = [
61
+ { key: 'file_id', label: 'File ID', value: 'file_id' },
62
+ { key: 'file_unique_id', label: 'File Unique ID', value: 'file_unique_id' },
63
+ { key: 'file_name', label: 'File Name', value: 'file_name' },
64
+ { key: 'mime_type', label: 'MIME Type', value: 'mime_type' },
65
+ { key: 'file_size', label: 'File Size', value: 'file_size', format: 'filesize' },
66
+ ];
67
+ const telegramLocationFields = [
68
+ { key: 'latitude', label: 'Latitude', value: 'latitude', format: 'number' },
69
+ { key: 'longitude', label: 'Longitude', value: 'longitude', format: 'number' },
70
+ ];
71
+ exports.telegramSendMessageActionOutputSchema = {
72
+ fields: [
73
+ { key: 'ok', label: 'OK', value: 'body.ok', format: 'boolean' },
74
+ { key: 'message_id', label: 'Message ID', value: 'body.result.message_id' },
75
+ { key: 'text', label: 'Message Text', value: 'body.result.text' },
76
+ { key: 'date', label: 'Date', value: 'body.result.date', format: 'datetime' },
77
+ { key: 'chat', label: 'Chat', value: 'body.result.chat', children: telegramChatFields },
78
+ { key: 'from', label: 'From', value: 'body.result.from', children: telegramFromFields },
79
+ { key: 'status', label: 'Status Code', value: 'status' },
80
+ ],
81
+ };
82
+ exports.telegramSendPhotoOrVideoActionOutputSchema = {
83
+ fields: [
84
+ { key: 'ok', label: 'OK', value: 'body.ok', format: 'boolean' },
85
+ { key: 'message_id', label: 'Message ID', value: 'body.result.message_id' },
86
+ { key: 'caption', label: 'Caption', value: 'body.result.caption' },
87
+ { key: 'date', label: 'Date', value: 'body.result.date', format: 'datetime' },
88
+ {
89
+ key: 'photo',
90
+ label: 'Photo Sizes',
91
+ value: 'body.result.photo',
92
+ listItems: telegramPhotoSizeFields,
93
+ },
94
+ { key: 'video', label: 'Video', value: 'body.result.video', children: telegramVideoFields },
95
+ {
96
+ key: 'sticker',
97
+ label: 'Sticker',
98
+ value: 'body.result.sticker',
99
+ children: telegramStickerFields,
100
+ },
101
+ {
102
+ key: 'animation',
103
+ label: 'Animation',
104
+ value: 'body.result.animation',
105
+ children: telegramAnimationFields,
106
+ },
107
+ { key: 'chat', label: 'Chat', value: 'body.result.chat', children: telegramChatFields },
108
+ { key: 'from', label: 'From', value: 'body.result.from', children: telegramFromFields },
109
+ { key: 'status', label: 'Status Code', value: 'status' },
110
+ ],
111
+ };
112
+ exports.telegramSendAudioActionOutputSchema = {
113
+ fields: [
114
+ { key: 'ok', label: 'OK', value: 'body.ok', format: 'boolean' },
115
+ { key: 'message_id', label: 'Message ID', value: 'body.result.message_id' },
116
+ { key: 'caption', label: 'Caption', value: 'body.result.caption' },
117
+ { key: 'date', label: 'Date', value: 'body.result.date', format: 'datetime' },
118
+ { key: 'audio', label: 'Audio', value: 'body.result.audio', children: telegramAudioFields },
119
+ { key: 'chat', label: 'Chat', value: 'body.result.chat', children: telegramChatFields },
120
+ { key: 'from', label: 'From', value: 'body.result.from', children: telegramFromFields },
121
+ { key: 'status', label: 'Status Code', value: 'status' },
122
+ ],
123
+ };
124
+ exports.telegramSendDocumentActionOutputSchema = {
125
+ fields: [
126
+ { key: 'ok', label: 'OK', value: 'body.ok', format: 'boolean' },
127
+ { key: 'message_id', label: 'Message ID', value: 'body.result.message_id' },
128
+ { key: 'caption', label: 'Caption', value: 'body.result.caption' },
129
+ { key: 'date', label: 'Date', value: 'body.result.date', format: 'datetime' },
130
+ {
131
+ key: 'document',
132
+ label: 'Document',
133
+ value: 'body.result.document',
134
+ children: telegramDocumentFields,
135
+ },
136
+ { key: 'chat', label: 'Chat', value: 'body.result.chat', children: telegramChatFields },
137
+ { key: 'from', label: 'From', value: 'body.result.from', children: telegramFromFields },
138
+ { key: 'status', label: 'Status Code', value: 'status' },
139
+ ],
140
+ };
141
+ exports.telegramSendLocationActionOutputSchema = {
142
+ fields: [
143
+ { key: 'ok', label: 'OK', value: 'body.ok', format: 'boolean' },
144
+ { key: 'message_id', label: 'Message ID', value: 'body.result.message_id' },
145
+ { key: 'date', label: 'Date', value: 'body.result.date', format: 'datetime' },
146
+ {
147
+ key: 'location',
148
+ label: 'Location',
149
+ value: 'body.result.location',
150
+ children: telegramLocationFields,
151
+ },
152
+ { key: 'chat', label: 'Chat', value: 'body.result.chat', children: telegramChatFields },
153
+ { key: 'from', label: 'From', value: 'body.result.from', children: telegramFromFields },
154
+ { key: 'status', label: 'Status Code', value: 'status' },
155
+ ],
156
+ };
157
+ const telegramMediaGroupItemFields = [
158
+ { key: 'message_id', label: 'Message ID', value: 'message_id' },
159
+ { key: 'caption', label: 'Caption', value: 'caption' },
160
+ { key: 'media_group_id', label: 'Media Group ID', value: 'media_group_id' },
161
+ { key: 'photo', label: 'Photo Sizes', value: 'photo', listItems: telegramPhotoSizeFields },
162
+ { key: 'video', label: 'Video', value: 'video', children: telegramVideoFields },
163
+ { key: 'audio', label: 'Audio', value: 'audio', children: telegramAudioFields },
164
+ { key: 'document', label: 'Document', value: 'document', children: telegramDocumentFields },
165
+ { key: 'chat', label: 'Chat', value: 'chat', children: telegramChatFields },
166
+ { key: 'from', label: 'From', value: 'from', children: telegramFromFields },
167
+ ];
168
+ const telegramPollOptionFields = [
169
+ { key: 'text', label: 'Text', value: 'text' },
170
+ { key: 'voter_count', label: 'Voter Count', value: 'voter_count', format: 'number' },
171
+ ];
172
+ const telegramPollFields = [
173
+ { key: 'id', label: 'Poll ID', value: 'id' },
174
+ { key: 'question', label: 'Question', value: 'question' },
175
+ {
176
+ key: 'options',
177
+ label: 'Options',
178
+ value: 'options',
179
+ labelKey: 'text',
180
+ listItems: telegramPollOptionFields,
181
+ },
182
+ { key: 'total_voter_count', label: 'Total Voter Count', value: 'total_voter_count', format: 'number' },
183
+ { key: 'is_closed', label: 'Is Closed', value: 'is_closed', format: 'boolean' },
184
+ { key: 'is_anonymous', label: 'Is Anonymous', value: 'is_anonymous', format: 'boolean' },
185
+ { key: 'type', label: 'Poll Type', value: 'type' },
186
+ {
187
+ key: 'allows_multiple_answers',
188
+ label: 'Allows Multiple Answers',
189
+ value: 'allows_multiple_answers',
190
+ format: 'boolean',
191
+ },
192
+ ];
193
+ const telegramBooleanResultFields = [
194
+ { key: 'ok', label: 'OK', value: 'body.ok', format: 'boolean' },
195
+ { key: 'result', label: 'Result', value: 'body.result', format: 'boolean' },
196
+ { key: 'status', label: 'Status Code', value: 'status' },
197
+ ];
198
+ exports.telegramSendMediaGroupActionOutputSchema = {
199
+ fields: [
200
+ { key: 'ok', label: 'OK', value: 'body.ok', format: 'boolean' },
201
+ {
202
+ key: 'result',
203
+ label: 'Messages',
204
+ value: 'body.result',
205
+ listItems: telegramMediaGroupItemFields,
206
+ },
207
+ { key: 'status', label: 'Status Code', value: 'status' },
208
+ ],
209
+ };
210
+ exports.telegramSendPollActionOutputSchema = {
211
+ fields: [
212
+ { key: 'ok', label: 'OK', value: 'body.ok', format: 'boolean' },
213
+ { key: 'message_id', label: 'Message ID', value: 'body.result.message_id' },
214
+ { key: 'date', label: 'Date', value: 'body.result.date', format: 'datetime' },
215
+ { key: 'poll', label: 'Poll', value: 'body.result.poll', children: telegramPollFields },
216
+ { key: 'chat', label: 'Chat', value: 'body.result.chat', children: telegramChatFields },
217
+ { key: 'from', label: 'From', value: 'body.result.from', children: telegramFromFields },
218
+ { key: 'status', label: 'Status Code', value: 'status' },
219
+ ],
220
+ };
221
+ exports.telegramSendChatActionActionOutputSchema = {
222
+ fields: telegramBooleanResultFields,
223
+ };
224
+ exports.telegramDeleteMessageActionOutputSchema = {
225
+ fields: telegramBooleanResultFields,
226
+ };
227
+ exports.telegramPinMessageActionOutputSchema = {
228
+ fields: telegramBooleanResultFields,
229
+ };
230
+ exports.telegramUnpinMessageActionOutputSchema = {
231
+ fields: telegramBooleanResultFields,
232
+ };
233
+ const telegramChatFullInfoFields = [
234
+ { key: 'id', label: 'Chat ID', value: 'id' },
235
+ { key: 'type', label: 'Chat Type', value: 'type' },
236
+ { key: 'title', label: 'Title', value: 'title' },
237
+ { key: 'username', label: 'Username', value: 'username' },
238
+ { key: 'first_name', label: 'First Name', value: 'first_name' },
239
+ { key: 'last_name', label: 'Last Name', value: 'last_name' },
240
+ { key: 'description', label: 'Description', value: 'description' },
241
+ { key: 'invite_link', label: 'Invite Link', value: 'invite_link', format: 'url' },
242
+ ];
243
+ exports.telegramGetChatActionOutputSchema = {
244
+ fields: [
245
+ { key: 'ok', label: 'OK', value: 'ok', format: 'boolean' },
246
+ { key: 'result', label: 'Chat', value: 'result', children: telegramChatFullInfoFields },
247
+ ],
248
+ };
249
+ const telegramChatMemberUserFields = [
250
+ { key: 'id', label: 'User ID', value: 'id' },
251
+ { key: 'is_bot', label: 'Is Bot', value: 'is_bot', format: 'boolean' },
252
+ { key: 'first_name', label: 'First Name', value: 'first_name' },
253
+ { key: 'username', label: 'Username', value: 'username' },
254
+ ];
255
+ const telegramChatMemberFields = [
256
+ { key: 'status', label: 'Status', value: 'status' },
257
+ { key: 'user', label: 'User', value: 'user', children: telegramChatMemberUserFields },
258
+ { key: 'is_anonymous', label: 'Is Anonymous', value: 'is_anonymous', format: 'boolean' },
259
+ { key: 'can_pin_messages', label: 'Can Pin Messages', value: 'can_pin_messages', format: 'boolean' },
260
+ { key: 'can_invite_users', label: 'Can Invite Users', value: 'can_invite_users', format: 'boolean' },
261
+ {
262
+ key: 'can_delete_messages',
263
+ label: 'Can Delete Messages',
264
+ value: 'can_delete_messages',
265
+ format: 'boolean',
266
+ },
267
+ ];
268
+ exports.telegramGetChatMemberActionOutputSchema = {
269
+ fields: [
270
+ { key: 'ok', label: 'OK', value: 'ok', format: 'boolean' },
271
+ { key: 'result', label: 'Member', value: 'result', children: telegramChatMemberFields },
272
+ ],
273
+ };
274
+ exports.telegramGetChatAdministratorsActionOutputSchema = {
275
+ fields: [
276
+ { key: 'ok', label: 'OK', value: 'ok', format: 'boolean' },
277
+ {
278
+ key: 'result',
279
+ label: 'Administrators',
280
+ value: 'result',
281
+ labelKey: 'status',
282
+ listItems: telegramChatMemberFields,
283
+ },
284
+ ],
285
+ };
286
+ exports.telegramGetChatMemberCountActionOutputSchema = {
287
+ fields: [
288
+ { key: 'ok', label: 'OK', value: 'ok', format: 'boolean' },
289
+ { key: 'result', label: 'Member Count', value: 'result', format: 'number' },
290
+ ],
291
+ };
292
+ const telegramBotUserFields = [
293
+ { key: 'id', label: 'Bot ID', value: 'id' },
294
+ { key: 'is_bot', label: 'Is Bot', value: 'is_bot', format: 'boolean' },
295
+ { key: 'first_name', label: 'First Name', value: 'first_name' },
296
+ { key: 'username', label: 'Username', value: 'username' },
297
+ { key: 'can_join_groups', label: 'Can Join Groups', value: 'can_join_groups', format: 'boolean' },
298
+ {
299
+ key: 'can_read_all_group_messages',
300
+ label: 'Can Read All Group Messages',
301
+ value: 'can_read_all_group_messages',
302
+ format: 'boolean',
303
+ },
304
+ {
305
+ key: 'supports_inline_queries',
306
+ label: 'Supports Inline Queries',
307
+ value: 'supports_inline_queries',
308
+ format: 'boolean',
309
+ },
310
+ ];
311
+ exports.telegramGetBotInfoActionOutputSchema = {
312
+ fields: [
313
+ { key: 'ok', label: 'OK', value: 'ok', format: 'boolean' },
314
+ { key: 'result', label: 'Bot', value: 'result', children: telegramBotUserFields },
315
+ ],
316
+ };
317
+ const telegramGetFileInfoFields = [
318
+ { key: 'file_id', label: 'File ID', value: 'file_id' },
319
+ { key: 'file_unique_id', label: 'File Unique ID', value: 'file_unique_id' },
320
+ { key: 'file_size', label: 'File Size', value: 'file_size', format: 'filesize' },
321
+ { key: 'file_path', label: 'File Path', value: 'file_path' },
322
+ ];
323
+ exports.telegramGetFileActionOutputSchema = {
324
+ fields: [
325
+ {
326
+ key: 'file_info',
327
+ label: 'File Info',
328
+ value: 'file_info',
329
+ children: telegramGetFileInfoFields,
330
+ },
331
+ { key: 'file_url', label: 'File URL', value: 'file_url', format: 'url' },
332
+ { key: 'file_content_base64', label: 'File Content (Base64)', value: 'file_content_base64' },
333
+ ],
334
+ };
335
+ exports.telegramForwardMessageActionOutputSchema = {
336
+ fields: [
337
+ { key: 'ok', label: 'OK', value: 'body.ok', format: 'boolean' },
338
+ { key: 'message_id', label: 'Message ID', value: 'body.result.message_id' },
339
+ { key: 'date', label: 'Date', value: 'body.result.date', format: 'datetime' },
340
+ {
341
+ key: 'forward_date',
342
+ label: 'Forward Date',
343
+ value: 'body.result.forward_date',
344
+ format: 'datetime',
345
+ },
346
+ { key: 'chat', label: 'Chat', value: 'body.result.chat', children: telegramChatFields },
347
+ { key: 'from', label: 'From', value: 'body.result.from', children: telegramFromFields },
348
+ { key: 'status', label: 'Status Code', value: 'status' },
349
+ ],
350
+ };
351
+ exports.telegramEditMessageTextActionOutputSchema = {
352
+ fields: [
353
+ { key: 'ok', label: 'OK', value: 'body.ok', format: 'boolean' },
354
+ { key: 'message_id', label: 'Message ID', value: 'body.result.message_id' },
355
+ { key: 'text', label: 'Message Text', value: 'body.result.text' },
356
+ { key: 'date', label: 'Date', value: 'body.result.date', format: 'datetime' },
357
+ { key: 'edit_date', label: 'Edit Date', value: 'body.result.edit_date', format: 'datetime' },
358
+ { key: 'chat', label: 'Chat', value: 'body.result.chat', children: telegramChatFields },
359
+ { key: 'from', label: 'From', value: 'body.result.from', children: telegramFromFields },
360
+ { key: 'status', label: 'Status Code', value: 'status' },
361
+ ],
362
+ };
363
+ const telegramInviteLinkCreatorFields = [
364
+ { key: 'id', label: 'User ID', value: 'id' },
365
+ { key: 'first_name', label: 'First Name', value: 'first_name' },
366
+ { key: 'username', label: 'Username', value: 'username' },
367
+ ];
368
+ const telegramInviteLinkFields = [
369
+ { key: 'invite_link', label: 'Invite Link', value: 'invite_link', format: 'url' },
370
+ { key: 'name', label: 'Name', value: 'name' },
371
+ { key: 'creator', label: 'Creator', value: 'creator', children: telegramInviteLinkCreatorFields },
372
+ {
373
+ key: 'creates_join_request',
374
+ label: 'Creates Join Request',
375
+ value: 'creates_join_request',
376
+ format: 'boolean',
377
+ },
378
+ { key: 'is_primary', label: 'Is Primary', value: 'is_primary', format: 'boolean' },
379
+ { key: 'is_revoked', label: 'Is Revoked', value: 'is_revoked', format: 'boolean' },
380
+ ];
381
+ exports.telegramCreateInviteLinkActionOutputSchema = {
382
+ fields: [
383
+ { key: 'ok', label: 'OK', value: 'ok', format: 'boolean' },
384
+ { key: 'result', label: 'Invite Link', value: 'result', children: telegramInviteLinkFields },
385
+ ],
386
+ };
387
+ exports.telegramAnswerCallbackQueryActionOutputSchema = {
388
+ fields: telegramBooleanResultFields,
389
+ };
390
+ exports.sendTextMessageActionOutputSchema = {
391
+ fields: [
392
+ {
393
+ key: 'ok',
394
+ label: 'OK',
395
+ value: 'body.ok',
396
+ format: 'boolean',
397
+ },
398
+ {
399
+ key: 'text',
400
+ label: 'Message Text',
401
+ value: 'body.result.text',
402
+ },
403
+ {
404
+ key: 'message_id',
405
+ label: 'Message ID',
406
+ value: 'body.result.message_id',
407
+ },
408
+ {
409
+ key: 'date',
410
+ label: 'Date',
411
+ value: 'body.result.date',
412
+ format: 'datetime',
413
+ },
414
+ {
415
+ key: 'chat',
416
+ label: 'Chat',
417
+ value: 'body.result.chat',
418
+ children: [
419
+ {
420
+ key: 'id',
421
+ label: 'Chat ID',
422
+ value: 'id',
423
+ },
424
+ {
425
+ key: 'username',
426
+ label: 'Username',
427
+ value: 'username',
428
+ },
429
+ {
430
+ key: 'first_name',
431
+ label: 'First Name',
432
+ value: 'first_name',
433
+ },
434
+ {
435
+ key: 'last_name',
436
+ label: 'Last Name',
437
+ value: 'last_name',
438
+ },
439
+ {
440
+ key: 'type',
441
+ label: 'Chat Type',
442
+ value: 'type',
443
+ },
444
+ ],
445
+ },
446
+ {
447
+ key: 'from',
448
+ label: 'From',
449
+ value: 'body.result.from',
450
+ children: [
451
+ {
452
+ key: 'id',
453
+ label: 'Bot ID',
454
+ value: 'id',
455
+ },
456
+ {
457
+ key: 'username',
458
+ label: 'Username',
459
+ value: 'username',
460
+ },
461
+ {
462
+ key: 'first_name',
463
+ label: 'First Name',
464
+ value: 'first_name',
465
+ },
466
+ {
467
+ key: 'is_bot',
468
+ label: 'Is Bot',
469
+ value: 'is_bot',
470
+ format: 'boolean',
471
+ },
472
+ ],
473
+ },
474
+ {
475
+ key: 'status',
476
+ label: 'Status Code',
477
+ value: 'status',
478
+ },
479
+ ],
480
+ };
481
+ exports.sendLocationActionOutputSchema = {
482
+ fields: [
483
+ {
484
+ key: 'ok',
485
+ label: 'Success',
486
+ value: 'body.ok',
487
+ format: 'boolean',
488
+ },
489
+ {
490
+ key: 'message_id',
491
+ label: 'Message ID',
492
+ value: 'body.result.message_id',
493
+ },
494
+ {
495
+ key: 'date',
496
+ label: 'Sent Date',
497
+ value: 'body.result.date',
498
+ format: 'datetime',
499
+ },
500
+ {
501
+ key: 'location',
502
+ label: 'Location',
503
+ value: 'body.result.location',
504
+ children: [
505
+ {
506
+ key: 'latitude',
507
+ label: 'Latitude',
508
+ value: 'latitude',
509
+ format: 'number',
510
+ },
511
+ {
512
+ key: 'longitude',
513
+ label: 'Longitude',
514
+ value: 'longitude',
515
+ format: 'number',
516
+ },
517
+ ],
518
+ },
519
+ {
520
+ key: 'chat',
521
+ label: 'Chat',
522
+ value: 'body.result.chat',
523
+ children: [
524
+ {
525
+ key: 'id',
526
+ label: 'Chat ID',
527
+ value: 'id',
528
+ },
529
+ {
530
+ key: 'first_name',
531
+ label: 'First Name',
532
+ value: 'first_name',
533
+ },
534
+ {
535
+ key: 'last_name',
536
+ label: 'Last Name',
537
+ value: 'last_name',
538
+ },
539
+ {
540
+ key: 'username',
541
+ label: 'Username',
542
+ value: 'username',
543
+ },
544
+ {
545
+ key: 'type',
546
+ label: 'Type',
547
+ value: 'type',
548
+ },
549
+ ],
550
+ },
551
+ {
552
+ key: 'from',
553
+ label: 'From',
554
+ value: 'body.result.from',
555
+ children: [
556
+ {
557
+ key: 'id',
558
+ label: 'Bot ID',
559
+ value: 'id',
560
+ },
561
+ {
562
+ key: 'first_name',
563
+ label: 'First Name',
564
+ value: 'first_name',
565
+ },
566
+ {
567
+ key: 'username',
568
+ label: 'Username',
569
+ value: 'username',
570
+ },
571
+ {
572
+ key: 'is_bot',
573
+ label: 'Is Bot',
574
+ value: 'is_bot',
575
+ format: 'boolean',
576
+ },
577
+ ],
578
+ },
579
+ ],
580
+ };
581
+ exports.sendMediaGroupActionOutputSchema = {
582
+ fields: [
583
+ {
584
+ key: 'ok',
585
+ label: 'OK',
586
+ value: 'body.ok',
587
+ format: 'boolean',
588
+ },
589
+ {
590
+ key: 'result',
591
+ label: 'Messages',
592
+ value: 'body.result',
593
+ labelKey: 'caption',
594
+ listItems: [
595
+ {
596
+ key: 'message_id',
597
+ label: 'Message ID',
598
+ value: 'message_id',
599
+ },
600
+ {
601
+ key: 'caption',
602
+ label: 'Caption',
603
+ value: 'caption',
604
+ },
605
+ {
606
+ key: 'media_group_id',
607
+ label: 'Media Group ID',
608
+ value: 'media_group_id',
609
+ },
610
+ {
611
+ key: 'date',
612
+ label: 'Date',
613
+ value: 'date',
614
+ format: 'datetime',
615
+ },
616
+ {
617
+ key: 'chat',
618
+ label: 'Chat',
619
+ value: 'chat',
620
+ children: [
621
+ {
622
+ key: 'id',
623
+ label: 'Chat ID',
624
+ value: 'id',
625
+ },
626
+ {
627
+ key: 'first_name',
628
+ label: 'First Name',
629
+ value: 'first_name',
630
+ },
631
+ {
632
+ key: 'last_name',
633
+ label: 'Last Name',
634
+ value: 'last_name',
635
+ },
636
+ {
637
+ key: 'username',
638
+ label: 'Username',
639
+ value: 'username',
640
+ },
641
+ {
642
+ key: 'type',
643
+ label: 'Type',
644
+ value: 'type',
645
+ },
646
+ ],
647
+ },
648
+ {
649
+ key: 'from',
650
+ label: 'From',
651
+ value: 'from',
652
+ children: [
653
+ {
654
+ key: 'id',
655
+ label: 'Bot ID',
656
+ value: 'id',
657
+ },
658
+ {
659
+ key: 'first_name',
660
+ label: 'First Name',
661
+ value: 'first_name',
662
+ },
663
+ {
664
+ key: 'username',
665
+ label: 'Username',
666
+ value: 'username',
667
+ },
668
+ {
669
+ key: 'is_bot',
670
+ label: 'Is Bot',
671
+ value: 'is_bot',
672
+ format: 'boolean',
673
+ },
674
+ ],
675
+ },
676
+ {
677
+ key: 'photo',
678
+ label: 'Photo Sizes',
679
+ value: 'photo',
680
+ labelKey: 'width',
681
+ listItems: [
682
+ {
683
+ key: 'file_id',
684
+ label: 'File ID',
685
+ value: 'file_id',
686
+ },
687
+ {
688
+ key: 'file_unique_id',
689
+ label: 'File Unique ID',
690
+ value: 'file_unique_id',
691
+ },
692
+ {
693
+ key: 'width',
694
+ label: 'Width',
695
+ value: 'width',
696
+ format: 'number',
697
+ },
698
+ {
699
+ key: 'height',
700
+ label: 'Height',
701
+ value: 'height',
702
+ format: 'number',
703
+ },
704
+ {
705
+ key: 'file_size',
706
+ label: 'File Size',
707
+ value: 'file_size',
708
+ format: 'filesize',
709
+ },
710
+ ],
711
+ },
712
+ ],
713
+ },
714
+ ],
715
+ };
716
+ exports.sendPollActionOutputSchema = {
717
+ fields: [
718
+ {
719
+ key: 'ok',
720
+ label: 'Success',
721
+ value: 'body.ok',
722
+ format: 'boolean',
723
+ },
724
+ {
725
+ key: 'result',
726
+ label: 'Result',
727
+ value: 'body.result',
728
+ children: [
729
+ {
730
+ key: 'message_id',
731
+ label: 'Message ID',
732
+ value: 'message_id',
733
+ },
734
+ {
735
+ key: 'date',
736
+ label: 'Date',
737
+ value: 'date',
738
+ format: 'datetime',
739
+ },
740
+ {
741
+ key: 'chat',
742
+ label: 'Chat',
743
+ value: 'chat',
744
+ children: [
745
+ {
746
+ key: 'id',
747
+ label: 'Chat ID',
748
+ value: 'id',
749
+ },
750
+ {
751
+ key: 'first_name',
752
+ label: 'First Name',
753
+ value: 'first_name',
754
+ },
755
+ {
756
+ key: 'last_name',
757
+ label: 'Last Name',
758
+ value: 'last_name',
759
+ },
760
+ {
761
+ key: 'username',
762
+ label: 'Username',
763
+ value: 'username',
764
+ },
765
+ {
766
+ key: 'type',
767
+ label: 'Type',
768
+ value: 'type',
769
+ },
770
+ ],
771
+ },
772
+ {
773
+ key: 'from',
774
+ label: 'From',
775
+ value: 'from',
776
+ children: [
777
+ {
778
+ key: 'id',
779
+ label: 'Bot ID',
780
+ value: 'id',
781
+ },
782
+ {
783
+ key: 'first_name',
784
+ label: 'First Name',
785
+ value: 'first_name',
786
+ },
787
+ {
788
+ key: 'username',
789
+ label: 'Username',
790
+ value: 'username',
791
+ },
792
+ {
793
+ key: 'is_bot',
794
+ label: 'Is Bot',
795
+ value: 'is_bot',
796
+ format: 'boolean',
797
+ },
798
+ ],
799
+ },
800
+ {
801
+ key: 'poll',
802
+ label: 'Poll',
803
+ value: 'poll',
804
+ children: [
805
+ {
806
+ key: 'question',
807
+ label: 'Question',
808
+ value: 'question',
809
+ },
810
+ {
811
+ key: 'id',
812
+ label: 'Poll ID',
813
+ value: 'id',
814
+ },
815
+ {
816
+ key: 'type',
817
+ label: 'Type',
818
+ value: 'type',
819
+ },
820
+ {
821
+ key: 'total_voter_count',
822
+ label: 'Total Voter Count',
823
+ value: 'total_voter_count',
824
+ format: 'number',
825
+ },
826
+ {
827
+ key: 'is_closed',
828
+ label: 'Is Closed',
829
+ value: 'is_closed',
830
+ format: 'boolean',
831
+ },
832
+ {
833
+ key: 'is_anonymous',
834
+ label: 'Is Anonymous',
835
+ value: 'is_anonymous',
836
+ format: 'boolean',
837
+ },
838
+ {
839
+ key: 'allows_multiple_answers',
840
+ label: 'Allows Multiple Answers',
841
+ value: 'allows_multiple_answers',
842
+ format: 'boolean',
843
+ },
844
+ {
845
+ key: 'allows_revoting',
846
+ label: 'Allows Revoting',
847
+ value: 'allows_revoting',
848
+ format: 'boolean',
849
+ },
850
+ {
851
+ key: 'options',
852
+ label: 'Options',
853
+ value: 'options',
854
+ labelKey: 'text',
855
+ listItems: [
856
+ {
857
+ key: 'text',
858
+ label: 'Text',
859
+ value: 'text',
860
+ },
861
+ {
862
+ key: 'persistent_id',
863
+ label: 'Option ID',
864
+ value: 'persistent_id',
865
+ },
866
+ {
867
+ key: 'voter_count',
868
+ label: 'Voter Count',
869
+ value: 'voter_count',
870
+ format: 'number',
871
+ },
872
+ ],
873
+ },
874
+ ],
875
+ },
876
+ ],
877
+ },
878
+ ],
879
+ };
880
+ exports.sendChatActionActionOutputSchema = {
881
+ fields: [
882
+ {
883
+ key: 'ok',
884
+ label: 'OK',
885
+ value: 'body.ok',
886
+ format: 'boolean',
887
+ },
888
+ {
889
+ key: 'result',
890
+ label: 'Result',
891
+ value: 'body.result',
892
+ format: 'boolean',
893
+ },
894
+ {
895
+ key: 'status',
896
+ label: 'Status Code',
897
+ value: 'status',
898
+ },
899
+ ],
900
+ };
901
+ exports.deleteMessageActionOutputSchema = {
902
+ fields: [
903
+ {
904
+ key: 'ok',
905
+ label: 'OK',
906
+ value: 'body.ok',
907
+ format: 'boolean',
908
+ },
909
+ {
910
+ key: 'result',
911
+ label: 'Result',
912
+ value: 'body.result',
913
+ format: 'boolean',
914
+ },
915
+ {
916
+ key: 'status',
917
+ label: 'Status',
918
+ value: 'status',
919
+ },
920
+ ],
921
+ };
922
+ exports.getChatActionOutputSchema = {
923
+ fields: [
924
+ {
925
+ key: 'ok',
926
+ label: 'Success',
927
+ value: 'ok',
928
+ format: 'boolean',
929
+ },
930
+ {
931
+ key: 'result',
932
+ label: 'Chat',
933
+ value: 'result',
934
+ children: [
935
+ {
936
+ key: 'username',
937
+ label: 'Username',
938
+ value: 'username',
939
+ },
940
+ {
941
+ key: 'first_name',
942
+ label: 'First Name',
943
+ value: 'first_name',
944
+ },
945
+ {
946
+ key: 'last_name',
947
+ label: 'Last Name',
948
+ value: 'last_name',
949
+ },
950
+ {
951
+ key: 'type',
952
+ label: 'Chat Type',
953
+ value: 'type',
954
+ },
955
+ {
956
+ key: 'id',
957
+ label: 'Chat ID',
958
+ value: 'id',
959
+ },
960
+ {
961
+ key: 'max_reaction_count',
962
+ label: 'Max Reaction Count',
963
+ value: 'max_reaction_count',
964
+ format: 'number',
965
+ },
966
+ {
967
+ key: 'can_send_gift',
968
+ label: 'Can Send Gift',
969
+ value: 'can_send_gift',
970
+ format: 'boolean',
971
+ },
972
+ {
973
+ key: 'active_usernames',
974
+ label: 'Active Usernames',
975
+ value: 'active_usernames',
976
+ },
977
+ {
978
+ key: 'accepted_gift_types',
979
+ label: 'Accepted Gift Types',
980
+ value: 'accepted_gift_types',
981
+ children: [
982
+ {
983
+ key: 'unlimited_gifts',
984
+ label: 'Unlimited Gifts',
985
+ value: 'unlimited_gifts',
986
+ format: 'boolean',
987
+ },
988
+ {
989
+ key: 'limited_gifts',
990
+ label: 'Limited Gifts',
991
+ value: 'limited_gifts',
992
+ format: 'boolean',
993
+ },
994
+ {
995
+ key: 'unique_gifts',
996
+ label: 'Unique Gifts',
997
+ value: 'unique_gifts',
998
+ format: 'boolean',
999
+ },
1000
+ {
1001
+ key: 'premium_subscription',
1002
+ label: 'Premium Subscription',
1003
+ value: 'premium_subscription',
1004
+ format: 'boolean',
1005
+ },
1006
+ {
1007
+ key: 'gifts_from_channels',
1008
+ label: 'Gifts From Channels',
1009
+ value: 'gifts_from_channels',
1010
+ format: 'boolean',
1011
+ },
1012
+ ],
1013
+ },
1014
+ ],
1015
+ },
1016
+ ],
1017
+ };
1018
+ exports.getChatMemberActionOutputSchema = {
1019
+ fields: [
1020
+ {
1021
+ key: 'ok',
1022
+ label: 'OK',
1023
+ value: 'ok',
1024
+ format: 'boolean',
1025
+ },
1026
+ {
1027
+ key: 'result',
1028
+ label: 'Member',
1029
+ value: 'result',
1030
+ children: [
1031
+ {
1032
+ key: 'status',
1033
+ label: 'Status',
1034
+ value: 'status',
1035
+ },
1036
+ {
1037
+ key: 'user',
1038
+ label: 'User',
1039
+ value: 'user',
1040
+ children: [
1041
+ {
1042
+ key: 'first_name',
1043
+ label: 'First Name',
1044
+ value: 'first_name',
1045
+ },
1046
+ {
1047
+ key: 'last_name',
1048
+ label: 'Last Name',
1049
+ value: 'last_name',
1050
+ },
1051
+ {
1052
+ key: 'username',
1053
+ label: 'Username',
1054
+ value: 'username',
1055
+ },
1056
+ {
1057
+ key: 'id',
1058
+ label: 'User ID',
1059
+ value: 'id',
1060
+ },
1061
+ {
1062
+ key: 'is_bot',
1063
+ label: 'Is Bot',
1064
+ value: 'is_bot',
1065
+ format: 'boolean',
1066
+ },
1067
+ {
1068
+ key: 'language_code',
1069
+ label: 'Language Code',
1070
+ value: 'language_code',
1071
+ },
1072
+ ],
1073
+ },
1074
+ ],
1075
+ },
1076
+ ],
1077
+ };
1078
+ exports.pinMessageActionOutputSchema = {
1079
+ fields: [
1080
+ {
1081
+ key: 'ok',
1082
+ label: 'OK',
1083
+ value: 'body.ok',
1084
+ format: 'boolean',
1085
+ },
1086
+ {
1087
+ key: 'result',
1088
+ label: 'Result',
1089
+ value: 'body.result',
1090
+ format: 'boolean',
1091
+ },
1092
+ {
1093
+ key: 'status',
1094
+ label: 'Status Code',
1095
+ value: 'status',
1096
+ },
1097
+ ],
1098
+ };
1099
+ exports.unpinMessageActionOutputSchema = {
1100
+ fields: [
1101
+ {
1102
+ key: 'ok',
1103
+ label: 'OK',
1104
+ value: 'body.ok',
1105
+ format: 'boolean',
1106
+ },
1107
+ {
1108
+ key: 'result',
1109
+ label: 'Result',
1110
+ value: 'body.result',
1111
+ format: 'boolean',
1112
+ },
1113
+ {
1114
+ key: 'status',
1115
+ label: 'Status Code',
1116
+ value: 'status',
1117
+ },
1118
+ ],
1119
+ };
1120
+ exports.sendMediaActionOutputSchema = {
1121
+ fields: [
1122
+ {
1123
+ key: 'ok',
1124
+ label: 'OK',
1125
+ value: 'body.ok',
1126
+ format: 'boolean',
1127
+ },
1128
+ {
1129
+ key: 'message_id',
1130
+ label: 'Message ID',
1131
+ value: 'body.result.message_id',
1132
+ },
1133
+ {
1134
+ key: 'date',
1135
+ label: 'Date',
1136
+ value: 'body.result.date',
1137
+ format: 'datetime',
1138
+ },
1139
+ {
1140
+ key: 'from',
1141
+ label: 'From',
1142
+ value: 'body.result.from',
1143
+ children: [
1144
+ {
1145
+ key: 'first_name',
1146
+ label: 'First Name',
1147
+ value: 'first_name',
1148
+ },
1149
+ {
1150
+ key: 'username',
1151
+ label: 'Username',
1152
+ value: 'username',
1153
+ },
1154
+ {
1155
+ key: 'is_bot',
1156
+ label: 'Is Bot',
1157
+ value: 'is_bot',
1158
+ format: 'boolean',
1159
+ },
1160
+ {
1161
+ key: 'id',
1162
+ label: 'ID',
1163
+ value: 'id',
1164
+ },
1165
+ ],
1166
+ },
1167
+ {
1168
+ key: 'chat',
1169
+ label: 'Chat',
1170
+ value: 'body.result.chat',
1171
+ children: [
1172
+ {
1173
+ key: 'first_name',
1174
+ label: 'First Name',
1175
+ value: 'first_name',
1176
+ },
1177
+ {
1178
+ key: 'last_name',
1179
+ label: 'Last Name',
1180
+ value: 'last_name',
1181
+ },
1182
+ {
1183
+ key: 'username',
1184
+ label: 'Username',
1185
+ value: 'username',
1186
+ },
1187
+ {
1188
+ key: 'type',
1189
+ label: 'Type',
1190
+ value: 'type',
1191
+ },
1192
+ {
1193
+ key: 'id',
1194
+ label: 'Chat ID',
1195
+ value: 'id',
1196
+ },
1197
+ ],
1198
+ },
1199
+ {
1200
+ key: 'photo',
1201
+ label: 'Photo',
1202
+ value: 'body.result.photo',
1203
+ labelKey: 'width',
1204
+ listItems: [
1205
+ {
1206
+ key: 'file_id',
1207
+ label: 'File ID',
1208
+ value: 'file_id',
1209
+ },
1210
+ {
1211
+ key: 'file_unique_id',
1212
+ label: 'File Unique ID',
1213
+ value: 'file_unique_id',
1214
+ },
1215
+ {
1216
+ key: 'width',
1217
+ label: 'Width',
1218
+ value: 'width',
1219
+ format: 'number',
1220
+ },
1221
+ {
1222
+ key: 'height',
1223
+ label: 'Height',
1224
+ value: 'height',
1225
+ format: 'number',
1226
+ },
1227
+ {
1228
+ key: 'file_size',
1229
+ label: 'File Size',
1230
+ value: 'file_size',
1231
+ format: 'filesize',
1232
+ },
1233
+ ],
1234
+ },
1235
+ ],
1236
+ };
1237
+ exports.sendDocumentActionOutputSchema = {
1238
+ fields: [
1239
+ {
1240
+ key: 'ok',
1241
+ label: 'OK',
1242
+ value: 'body.ok',
1243
+ format: 'boolean',
1244
+ },
1245
+ {
1246
+ key: 'message_id',
1247
+ label: 'Message ID',
1248
+ value: 'body.result.message_id',
1249
+ },
1250
+ {
1251
+ key: 'date',
1252
+ label: 'Date',
1253
+ value: 'body.result.date',
1254
+ format: 'datetime',
1255
+ },
1256
+ {
1257
+ key: 'chat',
1258
+ label: 'Chat',
1259
+ value: 'body.result.chat',
1260
+ children: [
1261
+ {
1262
+ key: 'id',
1263
+ label: 'Chat ID',
1264
+ value: 'id',
1265
+ },
1266
+ {
1267
+ key: 'first_name',
1268
+ label: 'First Name',
1269
+ value: 'first_name',
1270
+ },
1271
+ {
1272
+ key: 'last_name',
1273
+ label: 'Last Name',
1274
+ value: 'last_name',
1275
+ },
1276
+ {
1277
+ key: 'username',
1278
+ label: 'Username',
1279
+ value: 'username',
1280
+ },
1281
+ {
1282
+ key: 'type',
1283
+ label: 'Type',
1284
+ value: 'type',
1285
+ },
1286
+ ],
1287
+ },
1288
+ {
1289
+ key: 'from',
1290
+ label: 'From',
1291
+ value: 'body.result.from',
1292
+ children: [
1293
+ {
1294
+ key: 'id',
1295
+ label: 'Bot ID',
1296
+ value: 'id',
1297
+ },
1298
+ {
1299
+ key: 'first_name',
1300
+ label: 'First Name',
1301
+ value: 'first_name',
1302
+ },
1303
+ {
1304
+ key: 'username',
1305
+ label: 'Username',
1306
+ value: 'username',
1307
+ },
1308
+ {
1309
+ key: 'is_bot',
1310
+ label: 'Is Bot',
1311
+ value: 'is_bot',
1312
+ format: 'boolean',
1313
+ },
1314
+ ],
1315
+ },
1316
+ {
1317
+ key: 'document',
1318
+ label: 'Document',
1319
+ value: 'body.result.document',
1320
+ children: [
1321
+ {
1322
+ key: 'file_name',
1323
+ label: 'File Name',
1324
+ value: 'file_name',
1325
+ },
1326
+ {
1327
+ key: 'mime_type',
1328
+ label: 'MIME Type',
1329
+ value: 'mime_type',
1330
+ },
1331
+ {
1332
+ key: 'file_size',
1333
+ label: 'File Size',
1334
+ value: 'file_size',
1335
+ format: 'filesize',
1336
+ },
1337
+ {
1338
+ key: 'file_id',
1339
+ label: 'File ID',
1340
+ value: 'file_id',
1341
+ },
1342
+ {
1343
+ key: 'file_unique_id',
1344
+ label: 'File Unique ID',
1345
+ value: 'file_unique_id',
1346
+ },
1347
+ ],
1348
+ },
1349
+ ],
1350
+ };
1351
+ exports.sendAudioActionOutputSchema = {
1352
+ fields: [
1353
+ {
1354
+ key: 'ok',
1355
+ label: 'OK',
1356
+ value: 'body.ok',
1357
+ format: 'boolean',
1358
+ },
1359
+ {
1360
+ key: 'message_id',
1361
+ label: 'Message ID',
1362
+ value: 'body.result.message_id',
1363
+ },
1364
+ {
1365
+ key: 'date',
1366
+ label: 'Sent Date',
1367
+ value: 'body.result.date',
1368
+ format: 'datetime',
1369
+ },
1370
+ {
1371
+ key: 'audio',
1372
+ label: 'Audio',
1373
+ value: 'body.result.audio',
1374
+ children: [
1375
+ {
1376
+ key: 'file_name',
1377
+ label: 'File Name',
1378
+ value: 'file_name',
1379
+ },
1380
+ {
1381
+ key: 'duration',
1382
+ label: 'Duration',
1383
+ value: 'duration',
1384
+ format: 'duration',
1385
+ },
1386
+ {
1387
+ key: 'mime_type',
1388
+ label: 'MIME Type',
1389
+ value: 'mime_type',
1390
+ },
1391
+ {
1392
+ key: 'file_size',
1393
+ label: 'File Size',
1394
+ value: 'file_size',
1395
+ format: 'filesize',
1396
+ },
1397
+ {
1398
+ key: 'file_id',
1399
+ label: 'File ID',
1400
+ value: 'file_id',
1401
+ },
1402
+ {
1403
+ key: 'file_unique_id',
1404
+ label: 'File Unique ID',
1405
+ value: 'file_unique_id',
1406
+ },
1407
+ ],
1408
+ },
1409
+ {
1410
+ key: 'chat',
1411
+ label: 'Chat',
1412
+ value: 'body.result.chat',
1413
+ children: [
1414
+ {
1415
+ key: 'id',
1416
+ label: 'Chat ID',
1417
+ value: 'id',
1418
+ },
1419
+ {
1420
+ key: 'first_name',
1421
+ label: 'First Name',
1422
+ value: 'first_name',
1423
+ },
1424
+ {
1425
+ key: 'last_name',
1426
+ label: 'Last Name',
1427
+ value: 'last_name',
1428
+ },
1429
+ {
1430
+ key: 'username',
1431
+ label: 'Username',
1432
+ value: 'username',
1433
+ },
1434
+ {
1435
+ key: 'type',
1436
+ label: 'Type',
1437
+ value: 'type',
1438
+ },
1439
+ ],
1440
+ },
1441
+ {
1442
+ key: 'from',
1443
+ label: 'From',
1444
+ value: 'body.result.from',
1445
+ children: [
1446
+ {
1447
+ key: 'id',
1448
+ label: 'Bot ID',
1449
+ value: 'id',
1450
+ },
1451
+ {
1452
+ key: 'first_name',
1453
+ label: 'First Name',
1454
+ value: 'first_name',
1455
+ },
1456
+ {
1457
+ key: 'username',
1458
+ label: 'Username',
1459
+ value: 'username',
1460
+ },
1461
+ {
1462
+ key: 'is_bot',
1463
+ label: 'Is Bot',
1464
+ value: 'is_bot',
1465
+ format: 'boolean',
1466
+ },
1467
+ ],
1468
+ },
1469
+ ],
1470
+ };
1471
+ exports.requestApprovalMessageActionOutputSchema = {
1472
+ fields: [
1473
+ {
1474
+ key: 'approved',
1475
+ label: 'Approved',
1476
+ format: 'boolean',
1477
+ },
1478
+ {
1479
+ key: 'chatId',
1480
+ label: 'Chat ID',
1481
+ },
1482
+ ],
1483
+ };
1484
+ exports.getFileActionOutputSchema = {
1485
+ fields: [
1486
+ {
1487
+ key: 'file_url',
1488
+ label: 'File URL',
1489
+ value: 'file_url',
1490
+ format: 'url',
1491
+ },
1492
+ {
1493
+ key: 'file_info',
1494
+ label: 'File Info',
1495
+ value: 'file_info',
1496
+ children: [
1497
+ {
1498
+ key: 'file_path',
1499
+ label: 'File Path',
1500
+ value: 'file_path',
1501
+ },
1502
+ {
1503
+ key: 'file_size',
1504
+ label: 'File Size',
1505
+ value: 'file_size',
1506
+ format: 'filesize',
1507
+ },
1508
+ {
1509
+ key: 'file_id',
1510
+ label: 'File ID',
1511
+ value: 'file_id',
1512
+ },
1513
+ {
1514
+ key: 'file_unique_id',
1515
+ label: 'File Unique ID',
1516
+ value: 'file_unique_id',
1517
+ },
1518
+ ],
1519
+ },
1520
+ ],
1521
+ };
1522
+ exports.forwardMessageActionOutputSchema = {
1523
+ fields: [
1524
+ {
1525
+ key: 'ok',
1526
+ label: 'OK',
1527
+ value: 'body.ok',
1528
+ format: 'boolean',
1529
+ },
1530
+ {
1531
+ key: 'text',
1532
+ label: 'Message Text',
1533
+ value: 'body.result.text',
1534
+ },
1535
+ {
1536
+ key: 'message_id',
1537
+ label: 'Message ID',
1538
+ value: 'body.result.message_id',
1539
+ },
1540
+ {
1541
+ key: 'date',
1542
+ label: 'Date',
1543
+ value: 'body.result.date',
1544
+ format: 'datetime',
1545
+ },
1546
+ {
1547
+ key: 'forward_date',
1548
+ label: 'Forward Date',
1549
+ value: 'body.result.forward_date',
1550
+ format: 'datetime',
1551
+ },
1552
+ {
1553
+ key: 'chat',
1554
+ label: 'Chat',
1555
+ value: 'body.result.chat',
1556
+ children: [
1557
+ {
1558
+ key: 'id',
1559
+ label: 'Chat ID',
1560
+ value: 'id',
1561
+ },
1562
+ {
1563
+ key: 'type',
1564
+ label: 'Type',
1565
+ value: 'type',
1566
+ },
1567
+ {
1568
+ key: 'username',
1569
+ label: 'Username',
1570
+ value: 'username',
1571
+ },
1572
+ {
1573
+ key: 'first_name',
1574
+ label: 'First Name',
1575
+ value: 'first_name',
1576
+ },
1577
+ {
1578
+ key: 'last_name',
1579
+ label: 'Last Name',
1580
+ value: 'last_name',
1581
+ },
1582
+ ],
1583
+ },
1584
+ {
1585
+ key: 'from',
1586
+ label: 'From',
1587
+ value: 'body.result.from',
1588
+ children: [
1589
+ {
1590
+ key: 'id',
1591
+ label: 'User ID',
1592
+ value: 'id',
1593
+ },
1594
+ {
1595
+ key: 'first_name',
1596
+ label: 'First Name',
1597
+ value: 'first_name',
1598
+ },
1599
+ {
1600
+ key: 'username',
1601
+ label: 'Username',
1602
+ value: 'username',
1603
+ },
1604
+ {
1605
+ key: 'is_bot',
1606
+ label: 'Is Bot',
1607
+ value: 'is_bot',
1608
+ format: 'boolean',
1609
+ },
1610
+ ],
1611
+ },
1612
+ {
1613
+ key: 'forward_from',
1614
+ label: 'Forward From',
1615
+ value: 'body.result.forward_from',
1616
+ children: [
1617
+ {
1618
+ key: 'id',
1619
+ label: 'User ID',
1620
+ value: 'id',
1621
+ },
1622
+ {
1623
+ key: 'first_name',
1624
+ label: 'First Name',
1625
+ value: 'first_name',
1626
+ },
1627
+ {
1628
+ key: 'username',
1629
+ label: 'Username',
1630
+ value: 'username',
1631
+ },
1632
+ {
1633
+ key: 'is_bot',
1634
+ label: 'Is Bot',
1635
+ value: 'is_bot',
1636
+ format: 'boolean',
1637
+ },
1638
+ ],
1639
+ },
1640
+ {
1641
+ key: 'forward_origin',
1642
+ label: 'Forward Origin',
1643
+ value: 'body.result.forward_origin',
1644
+ children: [
1645
+ {
1646
+ key: 'type',
1647
+ label: 'Type',
1648
+ value: 'type',
1649
+ },
1650
+ {
1651
+ key: 'date',
1652
+ label: 'Date',
1653
+ value: 'date',
1654
+ format: 'datetime',
1655
+ },
1656
+ {
1657
+ key: 'sender_user',
1658
+ label: 'Sender User',
1659
+ value: 'sender_user',
1660
+ children: [
1661
+ {
1662
+ key: 'id',
1663
+ label: 'User ID',
1664
+ value: 'id',
1665
+ },
1666
+ {
1667
+ key: 'first_name',
1668
+ label: 'First Name',
1669
+ value: 'first_name',
1670
+ },
1671
+ {
1672
+ key: 'username',
1673
+ label: 'Username',
1674
+ value: 'username',
1675
+ },
1676
+ ],
1677
+ },
1678
+ ],
1679
+ },
1680
+ ],
1681
+ };
1682
+ exports.editMessageTextActionOutputSchema = {
1683
+ fields: [
1684
+ {
1685
+ key: 'ok',
1686
+ label: 'OK',
1687
+ value: 'body.ok',
1688
+ format: 'boolean',
1689
+ },
1690
+ {
1691
+ key: 'result',
1692
+ label: 'Result',
1693
+ value: 'body.result',
1694
+ children: [
1695
+ {
1696
+ key: 'text',
1697
+ label: 'Message Text',
1698
+ value: 'text',
1699
+ },
1700
+ {
1701
+ key: 'message_id',
1702
+ label: 'Message ID',
1703
+ value: 'message_id',
1704
+ },
1705
+ {
1706
+ key: 'date',
1707
+ label: 'Sent Date',
1708
+ value: 'date',
1709
+ format: 'datetime',
1710
+ },
1711
+ {
1712
+ key: 'edit_date',
1713
+ label: 'Edit Date',
1714
+ value: 'edit_date',
1715
+ format: 'datetime',
1716
+ },
1717
+ {
1718
+ key: 'from',
1719
+ label: 'From',
1720
+ value: 'from',
1721
+ children: [
1722
+ {
1723
+ key: 'first_name',
1724
+ label: 'First Name',
1725
+ value: 'first_name',
1726
+ },
1727
+ {
1728
+ key: 'username',
1729
+ label: 'Username',
1730
+ value: 'username',
1731
+ },
1732
+ {
1733
+ key: 'id',
1734
+ label: 'User ID',
1735
+ value: 'id',
1736
+ },
1737
+ {
1738
+ key: 'is_bot',
1739
+ label: 'Is Bot',
1740
+ value: 'is_bot',
1741
+ format: 'boolean',
1742
+ },
1743
+ ],
1744
+ },
1745
+ {
1746
+ key: 'chat',
1747
+ label: 'Chat',
1748
+ value: 'chat',
1749
+ children: [
1750
+ {
1751
+ key: 'first_name',
1752
+ label: 'First Name',
1753
+ value: 'first_name',
1754
+ },
1755
+ {
1756
+ key: 'last_name',
1757
+ label: 'Last Name',
1758
+ value: 'last_name',
1759
+ },
1760
+ {
1761
+ key: 'username',
1762
+ label: 'Username',
1763
+ value: 'username',
1764
+ },
1765
+ {
1766
+ key: 'type',
1767
+ label: 'Chat Type',
1768
+ value: 'type',
1769
+ },
1770
+ {
1771
+ key: 'id',
1772
+ label: 'Chat ID',
1773
+ value: 'id',
1774
+ },
1775
+ ],
1776
+ },
1777
+ ],
1778
+ },
1779
+ {
1780
+ key: 'status',
1781
+ label: 'Status Code',
1782
+ value: 'status',
1783
+ },
1784
+ ],
1785
+ };
1786
+ exports.createInviteLinkActionOutputSchema = {
1787
+ fields: [
1788
+ {
1789
+ key: 'ok',
1790
+ label: 'OK',
1791
+ value: 'ok',
1792
+ format: 'boolean',
1793
+ },
1794
+ {
1795
+ key: 'invite_link',
1796
+ label: 'Invite Link',
1797
+ value: 'result.invite_link',
1798
+ format: 'url',
1799
+ },
1800
+ {
1801
+ key: 'name',
1802
+ label: 'Name',
1803
+ value: 'result.name',
1804
+ },
1805
+ {
1806
+ key: 'creates_join_request',
1807
+ label: 'Creates Join Request',
1808
+ value: 'result.creates_join_request',
1809
+ format: 'boolean',
1810
+ },
1811
+ {
1812
+ key: 'is_primary',
1813
+ label: 'Is Primary',
1814
+ value: 'result.is_primary',
1815
+ format: 'boolean',
1816
+ },
1817
+ {
1818
+ key: 'is_revoked',
1819
+ label: 'Is Revoked',
1820
+ value: 'result.is_revoked',
1821
+ format: 'boolean',
1822
+ },
1823
+ {
1824
+ key: 'creator',
1825
+ label: 'Creator',
1826
+ value: 'result.creator',
1827
+ children: [
1828
+ {
1829
+ key: 'first_name',
1830
+ label: 'First Name',
1831
+ value: 'first_name',
1832
+ },
1833
+ {
1834
+ key: 'username',
1835
+ label: 'Username',
1836
+ value: 'username',
1837
+ },
1838
+ {
1839
+ key: 'id',
1840
+ label: 'Creator ID',
1841
+ value: 'id',
1842
+ },
1843
+ {
1844
+ key: 'is_bot',
1845
+ label: 'Is Bot',
1846
+ value: 'is_bot',
1847
+ format: 'boolean',
1848
+ },
1849
+ ],
1850
+ },
1851
+ ],
1852
+ };
1853
+ //# sourceMappingURL=output-schemas.js.map