@xbibzlibrary/telebibz 0.1.2 → 0.1.3

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 (117) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/README.id.md +158 -0
  3. package/README.md +53 -33
  4. package/README.zh-CN.md +158 -0
  5. package/RELEASE_AUTOMATION.md +66 -0
  6. package/RELEASE_POLICY.md +2 -2
  7. package/assets/readme-preview.html +75 -0
  8. package/assets/telebibz-readme-preview.png +0 -0
  9. package/dist/src/api/index.d.ts +1 -0
  10. package/dist/src/api/index.d.ts.map +1 -1
  11. package/dist/src/api/index.js +1 -0
  12. package/dist/src/api/index.js.map +1 -1
  13. package/dist/src/api/telegram-types/LICENSE +21 -0
  14. package/dist/src/api/telegram-types/api.d.ts +22 -0
  15. package/dist/src/api/telegram-types/checklist.d.ts +72 -0
  16. package/dist/src/api/telegram-types/inline.d.ts +692 -0
  17. package/dist/src/api/telegram-types/langs.d.ts +193 -0
  18. package/dist/src/api/telegram-types/manage.d.ts +1144 -0
  19. package/dist/src/api/telegram-types/markup.d.ts +268 -0
  20. package/dist/src/api/telegram-types/message.d.ts +1537 -0
  21. package/dist/src/api/telegram-types/methods.d.ts +2870 -0
  22. package/dist/src/api/telegram-types/mod.d.ts +14 -0
  23. package/dist/src/api/telegram-types/passport.d.ts +163 -0
  24. package/dist/src/api/telegram-types/payment.d.ts +570 -0
  25. package/dist/src/api/telegram-types/rich.d.ts +1010 -0
  26. package/dist/src/api/telegram-types/settings.d.ts +120 -0
  27. package/dist/src/api/telegram-types/story.d.ts +89 -0
  28. package/dist/src/api/telegram-types/update.d.ts +84 -0
  29. package/dist/src/api/telegram.d.ts +7 -0
  30. package/dist/src/api/telegram.d.ts.map +1 -0
  31. package/dist/src/api/telegram.js +2 -0
  32. package/dist/src/api/telegram.js.map +1 -0
  33. package/dist/src/approval/approval.d.ts +8 -0
  34. package/dist/src/approval/approval.d.ts.map +1 -1
  35. package/dist/src/approval/approval.js +9 -0
  36. package/dist/src/approval/approval.js.map +1 -1
  37. package/dist/src/cache/cache.d.ts +6 -5
  38. package/dist/src/cache/cache.d.ts.map +1 -1
  39. package/dist/src/cache/cache.js +7 -3
  40. package/dist/src/cache/cache.js.map +1 -1
  41. package/dist/src/context/context.d.ts.map +1 -1
  42. package/dist/src/context/context.js +26 -3
  43. package/dist/src/context/context.js.map +1 -1
  44. package/dist/src/core/bot.d.ts +6 -4
  45. package/dist/src/core/bot.d.ts.map +1 -1
  46. package/dist/src/core/bot.js +48 -7
  47. package/dist/src/core/bot.js.map +1 -1
  48. package/dist/src/core/events.d.ts +4 -0
  49. package/dist/src/core/events.d.ts.map +1 -1
  50. package/dist/src/core/events.js.map +1 -1
  51. package/dist/src/index.d.ts +1 -0
  52. package/dist/src/index.d.ts.map +1 -1
  53. package/dist/src/index.js +1 -0
  54. package/dist/src/index.js.map +1 -1
  55. package/dist/src/queue/queue.d.ts +25 -0
  56. package/dist/src/queue/queue.d.ts.map +1 -1
  57. package/dist/src/queue/queue.js +175 -51
  58. package/dist/src/queue/queue.js.map +1 -1
  59. package/dist/src/router/router.d.ts +8 -1
  60. package/dist/src/router/router.d.ts.map +1 -1
  61. package/dist/src/router/router.js +75 -17
  62. package/dist/src/router/router.js.map +1 -1
  63. package/dist/src/state/conversation.d.ts +6 -0
  64. package/dist/src/state/conversation.d.ts.map +1 -1
  65. package/dist/src/state/conversation.js +79 -11
  66. package/dist/src/state/conversation.js.map +1 -1
  67. package/dist/src/state/menu.d.ts +53 -5
  68. package/dist/src/state/menu.d.ts.map +1 -1
  69. package/dist/src/state/menu.js +116 -17
  70. package/dist/src/state/menu.js.map +1 -1
  71. package/dist/src/storage/storage.d.ts +115 -12
  72. package/dist/src/storage/storage.d.ts.map +1 -1
  73. package/dist/src/storage/storage.js +130 -4
  74. package/dist/src/storage/storage.js.map +1 -1
  75. package/dist/src/telegram-features.d.ts +33 -0
  76. package/dist/src/telegram-features.d.ts.map +1 -0
  77. package/dist/src/telegram-features.js +69 -0
  78. package/dist/src/telegram-features.js.map +1 -0
  79. package/dist/src/testing.d.ts +1 -0
  80. package/dist/src/testing.d.ts.map +1 -1
  81. package/dist/src/testing.js +16 -0
  82. package/dist/src/testing.js.map +1 -1
  83. package/dist-cjs/src/api/index.js +1 -0
  84. package/dist-cjs/src/api/telegram-types/LICENSE +21 -0
  85. package/dist-cjs/src/api/telegram-types/api.d.ts +22 -0
  86. package/dist-cjs/src/api/telegram-types/checklist.d.ts +72 -0
  87. package/dist-cjs/src/api/telegram-types/inline.d.ts +692 -0
  88. package/dist-cjs/src/api/telegram-types/langs.d.ts +193 -0
  89. package/dist-cjs/src/api/telegram-types/manage.d.ts +1144 -0
  90. package/dist-cjs/src/api/telegram-types/markup.d.ts +268 -0
  91. package/dist-cjs/src/api/telegram-types/message.d.ts +1537 -0
  92. package/dist-cjs/src/api/telegram-types/methods.d.ts +2870 -0
  93. package/dist-cjs/src/api/telegram-types/mod.d.ts +14 -0
  94. package/dist-cjs/src/api/telegram-types/passport.d.ts +163 -0
  95. package/dist-cjs/src/api/telegram-types/payment.d.ts +570 -0
  96. package/dist-cjs/src/api/telegram-types/rich.d.ts +1010 -0
  97. package/dist-cjs/src/api/telegram-types/settings.d.ts +120 -0
  98. package/dist-cjs/src/api/telegram-types/story.d.ts +89 -0
  99. package/dist-cjs/src/api/telegram-types/update.d.ts +84 -0
  100. package/dist-cjs/src/api/telegram.js +2 -0
  101. package/dist-cjs/src/approval/approval.js +11 -1
  102. package/dist-cjs/src/cache/cache.js +7 -3
  103. package/dist-cjs/src/context/context.js +26 -3
  104. package/dist-cjs/src/core/bot.js +48 -7
  105. package/dist-cjs/src/index.js +1 -0
  106. package/dist-cjs/src/queue/queue.js +177 -51
  107. package/dist-cjs/src/router/router.js +75 -17
  108. package/dist-cjs/src/state/conversation.js +79 -11
  109. package/dist-cjs/src/state/menu.js +118 -18
  110. package/dist-cjs/src/storage/storage.js +135 -5
  111. package/dist-cjs/src/telegram-features.js +74 -0
  112. package/dist-cjs/src/testing.js +17 -0
  113. package/docs/API.id.md +1800 -0
  114. package/docs/API.md +1799 -0
  115. package/docs/API.zh-CN.md +1794 -0
  116. package/docs/README.md +26 -15
  117. package/package.json +13 -2
@@ -0,0 +1,72 @@
1
+ import type { Chat, User } from "./manage.js";
2
+ import type { Message, MessageEntity, ParseMode } from "./message.js";
3
+ /** Describes a task in a checklist. */
4
+ export interface ChecklistTask {
5
+ /** Unique identifier of the task */
6
+ id: number;
7
+ /** Text of the task */
8
+ text: string;
9
+ /** Special entities that appear in the task text */
10
+ text_entities?: MessageEntity[];
11
+ /** User that completed the task; omitted if the task wasn't completed by a user */
12
+ completed_by_user?: User;
13
+ /** Chat that completed the task; omitted if the task wasn't completed by a chat */
14
+ completed_by_chat?: Chat;
15
+ /** Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed */
16
+ completion_date?: number;
17
+ }
18
+ /** Describes a checklist. */
19
+ export interface Checklist {
20
+ /** Title of the checklist */
21
+ title: string;
22
+ /** Special entities that appear in the checklist title */
23
+ title_entities?: MessageEntity[];
24
+ /** List of tasks in the checklist */
25
+ tasks: ChecklistTask[];
26
+ /** True, if users other than the creator of the list can add tasks to the list */
27
+ others_can_add_tasks?: true;
28
+ /** True, if users other than the creator of the list can mark tasks as done or not done */
29
+ others_can_mark_tasks_as_done?: true;
30
+ }
31
+ /** Describes a task to add to a checklist. */
32
+ export interface InputChecklistTask {
33
+ /** Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist */
34
+ id: number;
35
+ /** Text of the task; 1-100 characters after entities parsing */
36
+ text: string;
37
+ /** Mode for parsing entities in the text. See formatting options for more details. */
38
+ parse_mode?: ParseMode;
39
+ /** List of special entities that appear in the text, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, custom_emoji, and date_time entities are allowed. */
40
+ text_entities?: MessageEntity[];
41
+ }
42
+ /** Describes a checklist to create. */
43
+ export interface InputChecklist {
44
+ /** Title of the checklist; 1-255 characters after entities parsing */
45
+ title: string;
46
+ /** Mode for parsing entities in the title. See formatting options for more details. */
47
+ parse_mode?: ParseMode;
48
+ /** List of special entities that appear in the title, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, custom_emoji, and date_time entities are allowed. */
49
+ title_entities?: MessageEntity[];
50
+ /** List of 1-30 tasks in the checklist */
51
+ tasks: InputChecklistTask[];
52
+ /** Pass True if other users can add tasks to the checklist */
53
+ others_can_add_tasks?: boolean;
54
+ /** Pass True if other users can mark tasks as done or not done in the checklist */
55
+ others_can_mark_tasks_as_done?: true;
56
+ }
57
+ /** Describes a service message about checklist tasks marked as done or not done. */
58
+ export interface ChecklistTasksDone {
59
+ /** Message containing the checklist whose tasks were marked as done or not done. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply. */
60
+ checklist_message?: Message;
61
+ /** Identifiers of the tasks that were marked as done */
62
+ marked_as_done_task_ids?: number[];
63
+ /** Identifiers of the tasks that were marked as not done */
64
+ marked_as_not_done_task_ids?: number[];
65
+ }
66
+ /** Describes a service message about tasks added to a checklist. */
67
+ export interface ChecklistTasksAdded {
68
+ /** Message containing the checklist to which the tasks were added. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply. */
69
+ checklist_message?: Message;
70
+ /** List of tasks added to the checklist */
71
+ tasks: ChecklistTask[];
72
+ }