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