telegrinder 0.3.0.post2__tar.gz → 0.3.2__tar.gz

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.

Potentially problematic release.


This version of telegrinder might be problematic. Click here for more details.

Files changed (164) hide show
  1. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/LICENSE +22 -22
  2. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/PKG-INFO +1 -1
  3. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/pyproject.toml +100 -100
  4. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/readme.md +73 -73
  5. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/__init__.py +144 -144
  6. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/api/__init__.py +8 -8
  7. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/api/api.py +93 -93
  8. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/api/error.py +16 -16
  9. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/api/response.py +20 -20
  10. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/api/token.py +36 -36
  11. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/__init__.py +66 -66
  12. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/bot.py +76 -76
  13. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/cute_types/__init__.py +11 -11
  14. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/cute_types/base.py +258 -234
  15. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/cute_types/callback_query.py +382 -382
  16. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/cute_types/chat_join_request.py +61 -61
  17. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/cute_types/chat_member_updated.py +160 -160
  18. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/cute_types/inline_query.py +53 -53
  19. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/cute_types/message.py +2631 -2631
  20. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/cute_types/update.py +75 -75
  21. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/cute_types/utils.py +92 -92
  22. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/__init__.py +55 -55
  23. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/abc.py +77 -77
  24. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/context.py +92 -92
  25. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/dispatch.py +202 -201
  26. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/handler/__init__.py +13 -13
  27. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/handler/abc.py +24 -24
  28. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/handler/audio_reply.py +44 -44
  29. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/handler/base.py +57 -57
  30. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/handler/document_reply.py +44 -44
  31. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/handler/func.py +128 -123
  32. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/handler/media_group_reply.py +43 -43
  33. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/handler/message_reply.py +36 -36
  34. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/handler/photo_reply.py +44 -44
  35. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/handler/sticker_reply.py +37 -37
  36. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/handler/video_reply.py +44 -44
  37. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/middleware/__init__.py +3 -3
  38. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/middleware/abc.py +16 -16
  39. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/process.py +132 -132
  40. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/return_manager/__init__.py +13 -13
  41. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/return_manager/abc.py +108 -108
  42. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/return_manager/callback_query.py +20 -20
  43. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/return_manager/inline_query.py +15 -15
  44. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/return_manager/message.py +36 -36
  45. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/view/__init__.py +13 -13
  46. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/view/abc.py +41 -41
  47. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/view/base.py +200 -211
  48. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/view/box.py +129 -129
  49. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/view/callback_query.py +17 -17
  50. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/view/chat_join_request.py +16 -16
  51. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/view/chat_member.py +39 -39
  52. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/view/inline_query.py +17 -17
  53. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/view/message.py +44 -44
  54. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/view/raw.py +114 -118
  55. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/waiter_machine/__init__.py +17 -17
  56. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/waiter_machine/actions.py +13 -13
  57. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/waiter_machine/hasher/__init__.py +8 -8
  58. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/waiter_machine/hasher/callback.py +57 -57
  59. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/waiter_machine/hasher/hasher.py +57 -57
  60. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/waiter_machine/hasher/message.py +53 -53
  61. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/waiter_machine/hasher/state.py +19 -19
  62. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/waiter_machine/machine.py +168 -170
  63. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/waiter_machine/middleware.py +89 -89
  64. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/dispatch/waiter_machine/short_state.py +65 -65
  65. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/polling/__init__.py +4 -4
  66. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/polling/abc.py +25 -25
  67. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/polling/polling.py +131 -131
  68. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/__init__.py +62 -62
  69. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/abc.py +238 -233
  70. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/adapter/__init__.py +9 -9
  71. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/adapter/abc.py +29 -29
  72. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/adapter/errors.py +5 -5
  73. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/adapter/event.py +76 -76
  74. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/adapter/node.py +48 -48
  75. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/adapter/raw_update.py +30 -30
  76. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/callback_data.py +171 -171
  77. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/chat_join.py +48 -48
  78. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/command.py +126 -126
  79. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/enum_text.py +36 -33
  80. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/func.py +26 -26
  81. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/fuzzy.py +24 -24
  82. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/inline.py +60 -60
  83. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/integer.py +20 -20
  84. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/is_from.py +146 -146
  85. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/markup.py +43 -43
  86. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/mention.py +14 -14
  87. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/message.py +17 -17
  88. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/message_entities.py +35 -35
  89. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/node.py +27 -27
  90. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/regex.py +37 -37
  91. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/rule_enum.py +72 -72
  92. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/start.py +42 -42
  93. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/state.py +37 -37
  94. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/text.py +33 -33
  95. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/rules/update.py +15 -15
  96. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/scenario/__init__.py +5 -5
  97. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/scenario/abc.py +19 -19
  98. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/scenario/checkbox.py +167 -139
  99. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/bot/scenario/choice.py +46 -44
  100. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/client/__init__.py +4 -4
  101. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/client/abc.py +75 -75
  102. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/client/aiohttp.py +130 -130
  103. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/model.py +244 -244
  104. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/modules.py +237 -237
  105. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/msgspec_json.py +14 -14
  106. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/msgspec_utils.py +410 -410
  107. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/__init__.py +20 -20
  108. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/attachment.py +92 -92
  109. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/base.py +143 -144
  110. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/callback_query.py +14 -14
  111. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/command.py +33 -33
  112. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/composer.py +196 -184
  113. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/container.py +27 -27
  114. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/event.py +71 -73
  115. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/me.py +16 -16
  116. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/message.py +14 -14
  117. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/polymorphic.py +48 -52
  118. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/rule.py +76 -76
  119. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/scope.py +38 -38
  120. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/source.py +71 -71
  121. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/text.py +21 -21
  122. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/tools/__init__.py +3 -3
  123. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/tools/generator.py +40 -40
  124. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/node/update.py +15 -15
  125. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/rules.py +0 -0
  126. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/__init__.py +74 -74
  127. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/buttons.py +79 -79
  128. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/error_handler/__init__.py +7 -7
  129. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/error_handler/abc.py +33 -33
  130. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/error_handler/error.py +9 -9
  131. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/error_handler/error_handler.py +193 -193
  132. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/formatting/__init__.py +46 -46
  133. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/formatting/html.py +308 -308
  134. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/formatting/links.py +33 -33
  135. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/formatting/spec_html_formats.py +111 -111
  136. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/functional.py +12 -12
  137. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/global_context/__init__.py +7 -7
  138. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/global_context/abc.py +63 -63
  139. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/global_context/global_context.py +412 -412
  140. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/global_context/telegrinder_ctx.py +27 -27
  141. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/i18n/__init__.py +12 -12
  142. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/i18n/abc.py +32 -32
  143. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/i18n/middleware/__init__.py +3 -3
  144. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/i18n/middleware/abc.py +25 -25
  145. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/i18n/simple.py +43 -43
  146. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/kb_set/__init__.py +4 -4
  147. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/kb_set/base.py +15 -15
  148. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/kb_set/yaml.py +63 -63
  149. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/keyboard.py +128 -128
  150. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/limited_dict.py +37 -37
  151. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/loop_wrapper/__init__.py +4 -4
  152. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/loop_wrapper/abc.py +15 -15
  153. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/loop_wrapper/loop_wrapper.py +216 -216
  154. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/magic.py +168 -164
  155. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/parse_mode.py +6 -6
  156. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/state_storage/__init__.py +4 -4
  157. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/state_storage/abc.py +35 -35
  158. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/tools/state_storage/memory.py +25 -25
  159. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/types/__init__.py +6 -6
  160. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/types/enums.py +672 -672
  161. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/types/methods.py +4633 -4633
  162. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/types/objects.py +6317 -6317
  163. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/verification_utils.py +32 -32
  164. {telegrinder-0.3.0.post2 → telegrinder-0.3.2}/telegrinder/py.typed +0 -0
@@ -1,22 +1,22 @@
1
- MIT License
2
-
3
- Copyright (c) 2022-2024 timoniq
4
- Copyright (c) 2024 luwqz1
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2022-2024 timoniq
4
+ Copyright (c) 2024 luwqz1
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: telegrinder
3
- Version: 0.3.0.post2
3
+ Version: 0.3.2
4
4
  Summary: Modern visionary telegram bot framework.
5
5
  Home-page: https://github.com/timoniq/telegrinder
6
6
  License: MIT
@@ -1,100 +1,100 @@
1
- [tool.poetry]
2
- name = "telegrinder"
3
- version = "0.3.0.post2"
4
- description = "Modern visionary telegram bot framework."
5
- authors = ["timoniq <tesseradecades@mail.ru>"]
6
- maintainers = ["luwqz1 <howluwqz1@gmail.com>"]
7
- license = "MIT"
8
- readme = "readme.md"
9
- homepage = "https://github.com/timoniq/telegrinder"
10
- repository = "https://github.com/timoniq/telegrinder"
11
- keywords = [
12
- "asyncio",
13
- "api schema",
14
- "async",
15
- "bot building",
16
- "bot api",
17
- "custom rules",
18
- "telegram",
19
- "telegram bot api framework",
20
- "telegrinder framework",
21
- "middleware",
22
- "composition",
23
- "framework",
24
- "telegrinder",
25
- "waiter machine"
26
- ]
27
- classifiers = [
28
- "Environment :: Console",
29
- "Intended Audience :: Developers",
30
- "License :: OSI Approved :: MIT License",
31
- "Programming Language :: Python :: 3.11",
32
- "Programming Language :: Python :: 3.12",
33
- "Topic :: Software Development :: Libraries :: Python Modules",
34
- "Topic :: Software Development :: Quality Assurance",
35
- "Typing :: Typed",
36
- ]
37
-
38
- [tool.poetry.urls]
39
- "Bug Tracker" = "https://github.com/timoniq/telegrinder/issues"
40
-
41
- [tool.poetry.dependencies]
42
- python = "^3.11"
43
- aiohttp = "^3.8.1"
44
- colorama = "^0.4.0"
45
- vbml = "^1.1.post1"
46
- choicelib = "^0.1.5"
47
- envparse = "^0.2.0"
48
- PyYAML = "^6.0"
49
- certifi = "^2024.2.2"
50
- msgspec = "^0.18.6"
51
- requests = "^2.28.1"
52
- typing-extensions = "^4.10.0"
53
- fntypes = "^0.1.3"
54
-
55
- [tool.poetry.group.dev.dependencies]
56
- pre-commit = "^3.8.0"
57
- ruff = ">=0.5,<0.7"
58
- basedpyright = "^1.12.1"
59
- sort-all = "^1.2.0"
60
- libcst = "^1.4.0"
61
- pytest = "^8.0.0"
62
- pytest-asyncio = ">=0.23.5,<0.25.0"
63
- pytest-cov = "^5.0.0"
64
- pytest-mock = "^3.10.0"
65
-
66
- [build-system]
67
- requires = ["poetry-core>=1.0.0"]
68
- build-backend = "poetry.core.masonry.api"
69
-
70
- [tool.ruff]
71
- line-length = 110
72
- target-version = "py311"
73
- lint.select = ["I", "N", "ANN", "COM", "YTT", "TCH", "SIM"]
74
- lint.ignore = [
75
- "ANN001", "ANN002", "ANN003", "ANN101", "ANN102", "ANN201", "ANN202",
76
- "ANN204", "ANN206", "ANN401", "COM812", "N805", "N818", "TCH001", "TCH002",
77
- "TCH004"
78
- ]
79
-
80
- [tool.pytest.ini_options]
81
- asyncio_mode = "auto"
82
-
83
- [tool.ruff.lint.per-file-ignores]
84
- "__init__.py" = ["F401", "F403"]
85
- "typegen/**.py" = ["N802"]
86
-
87
- [tool.ruff.lint.flake8-quotes]
88
- docstring-quotes = "double"
89
-
90
- [tool.pyright]
91
- exclude = [
92
- "**/__pycache__",
93
- "docs",
94
- "local",
95
- ]
96
- typeCheckingMode = "basic"
97
- pythonPlatform = "All"
98
- pythonVersion = "3.11"
99
- reportMissingImports = true
100
- reportMissingTypeStubs = false
1
+ [tool.poetry]
2
+ name = "telegrinder"
3
+ version = "0.3.2"
4
+ description = "Modern visionary telegram bot framework."
5
+ authors = ["timoniq <tesseradecades@mail.ru>"]
6
+ maintainers = ["luwqz1 <howluwqz1@gmail.com>"]
7
+ license = "MIT"
8
+ readme = "readme.md"
9
+ homepage = "https://github.com/timoniq/telegrinder"
10
+ repository = "https://github.com/timoniq/telegrinder"
11
+ keywords = [
12
+ "asyncio",
13
+ "api schema",
14
+ "async",
15
+ "bot building",
16
+ "bot api",
17
+ "custom rules",
18
+ "telegram",
19
+ "telegram bot api framework",
20
+ "telegrinder framework",
21
+ "middleware",
22
+ "composition",
23
+ "framework",
24
+ "telegrinder",
25
+ "waiter machine"
26
+ ]
27
+ classifiers = [
28
+ "Environment :: Console",
29
+ "Intended Audience :: Developers",
30
+ "License :: OSI Approved :: MIT License",
31
+ "Programming Language :: Python :: 3.11",
32
+ "Programming Language :: Python :: 3.12",
33
+ "Topic :: Software Development :: Libraries :: Python Modules",
34
+ "Topic :: Software Development :: Quality Assurance",
35
+ "Typing :: Typed",
36
+ ]
37
+
38
+ [tool.poetry.urls]
39
+ "Bug Tracker" = "https://github.com/timoniq/telegrinder/issues"
40
+
41
+ [tool.poetry.dependencies]
42
+ python = "^3.11"
43
+ aiohttp = "^3.8.1"
44
+ colorama = "^0.4.0"
45
+ vbml = "^1.1.post1"
46
+ choicelib = "^0.1.5"
47
+ envparse = "^0.2.0"
48
+ PyYAML = "^6.0"
49
+ certifi = "^2024.2.2"
50
+ msgspec = "^0.18.6"
51
+ requests = "^2.28.1"
52
+ typing-extensions = "^4.10.0"
53
+ fntypes = "^0.1.3"
54
+
55
+ [tool.poetry.group.dev.dependencies]
56
+ pre-commit = "^3.8.0"
57
+ ruff = ">=0.5,<0.7"
58
+ basedpyright = "^1.12.1"
59
+ sort-all = "^1.2.0"
60
+ libcst = "^1.4.0"
61
+ pytest = "^8.0.0"
62
+ pytest-asyncio = ">=0.23.5,<0.25.0"
63
+ pytest-cov = "^5.0.0"
64
+ pytest-mock = "^3.10.0"
65
+
66
+ [build-system]
67
+ requires = ["poetry-core>=1.0.0"]
68
+ build-backend = "poetry.core.masonry.api"
69
+
70
+ [tool.ruff]
71
+ line-length = 110
72
+ target-version = "py311"
73
+ lint.select = ["I", "N", "ANN", "COM", "YTT", "TCH", "SIM"]
74
+ lint.ignore = [
75
+ "ANN001", "ANN002", "ANN003", "ANN101", "ANN102", "ANN201", "ANN202",
76
+ "ANN204", "ANN206", "ANN401", "COM812", "N805", "N818", "TCH001", "TCH002",
77
+ "TCH004"
78
+ ]
79
+
80
+ [tool.pytest.ini_options]
81
+ asyncio_mode = "auto"
82
+
83
+ [tool.ruff.lint.per-file-ignores]
84
+ "__init__.py" = ["F401", "F403"]
85
+ "typegen/**.py" = ["N802"]
86
+
87
+ [tool.ruff.lint.flake8-quotes]
88
+ docstring-quotes = "double"
89
+
90
+ [tool.pyright]
91
+ exclude = [
92
+ "**/__pycache__",
93
+ "docs",
94
+ "local",
95
+ ]
96
+ typeCheckingMode = "basic"
97
+ pythonPlatform = "All"
98
+ pythonVersion = "3.11"
99
+ reportMissingImports = true
100
+ reportMissingTypeStubs = false
@@ -1,73 +1,73 @@
1
- # Telegrinder
2
-
3
- Framework for effective and reliable telegram bot building.
4
-
5
- Still in development.
6
-
7
- * Type hinted
8
- * Customizable and extensible
9
- * Ready to use scenarios and rules
10
- * Fast models built on [msgspec](https://github.com/jcrist/msgspec)
11
- * Both low-level and high-level API
12
- * Support [optional dependecies](https://github.com/timoniq/telegrinder/blob/dev/docs/guide/optional_dependencies.md)
13
-
14
- # Getting started
15
-
16
- Install using pip:
17
-
18
- ```console
19
- pip install telegrinder
20
- ```
21
-
22
- Using poetry:
23
-
24
- ```console
25
- poetry add telegrinder
26
- ```
27
-
28
- Install from github:
29
-
30
- ```console
31
- pip install -U https://github.com/timoniq/telegrinder/archive/dev.zip
32
- ```
33
-
34
- ```console
35
- poetry add git+https://github.com/timoniq/telegrinder.git#dev
36
- ```
37
-
38
- Basic example:
39
-
40
- ```python
41
- from telegrinder import API, Message, Telegrinder, Token
42
- from telegrinder.modules import logger
43
- from telegrinder.rules import Text
44
-
45
- api = API(token=Token("123:token"))
46
- bot = Telegrinder(api)
47
- logger.set_level("INFO")
48
-
49
-
50
- @bot.on.message(Text("/start"))
51
- async def start(message: Message):
52
- me = (await api.get_me()).unwrap()
53
- await message.answer(f"Hello, {message.from_user.full_name}! I'm {me.full_name}.")
54
-
55
-
56
- bot.run_forever()
57
- ```
58
-
59
- # Documentation
60
-
61
- [Readthedocs](https://telegrinder.readthedocs.io)
62
-
63
- # Community
64
-
65
- Join our [telegram forum](https://t.me/botoforum).
66
-
67
- # [Contributing](https://github.com/timoniq/telegrinder/blob/main/contributing.md)
68
-
69
- # License
70
-
71
- Telegrinder is [MIT licensed](./LICENSE)\
72
- Copyright © 2022-2024 [timoniq](https://github.com/timoniq)\
73
- Copyright © 2024 [luwqz1](https://github.com/luwqz1)
1
+ # Telegrinder
2
+
3
+ Framework for effective and reliable telegram bot building.
4
+
5
+ Still in development.
6
+
7
+ * Type hinted
8
+ * Customizable and extensible
9
+ * Ready to use scenarios and rules
10
+ * Fast models built on [msgspec](https://github.com/jcrist/msgspec)
11
+ * Both low-level and high-level API
12
+ * Support [optional dependecies](https://github.com/timoniq/telegrinder/blob/dev/docs/guide/optional_dependencies.md)
13
+
14
+ # Getting started
15
+
16
+ Install using pip:
17
+
18
+ ```console
19
+ pip install telegrinder
20
+ ```
21
+
22
+ Using poetry:
23
+
24
+ ```console
25
+ poetry add telegrinder
26
+ ```
27
+
28
+ Install from github:
29
+
30
+ ```console
31
+ pip install -U https://github.com/timoniq/telegrinder/archive/dev.zip
32
+ ```
33
+
34
+ ```console
35
+ poetry add git+https://github.com/timoniq/telegrinder.git#dev
36
+ ```
37
+
38
+ Basic example:
39
+
40
+ ```python
41
+ from telegrinder import API, Message, Telegrinder, Token
42
+ from telegrinder.modules import logger
43
+ from telegrinder.rules import Text
44
+
45
+ api = API(token=Token("123:token"))
46
+ bot = Telegrinder(api)
47
+ logger.set_level("INFO")
48
+
49
+
50
+ @bot.on.message(Text("/start"))
51
+ async def start(message: Message):
52
+ me = (await api.get_me()).unwrap()
53
+ await message.answer(f"Hello, {message.from_user.full_name}! I'm {me.full_name}.")
54
+
55
+
56
+ bot.run_forever()
57
+ ```
58
+
59
+ # Documentation
60
+
61
+ [Readthedocs](https://telegrinder.readthedocs.io)
62
+
63
+ # Community
64
+
65
+ Join our [telegram forum](https://t.me/botoforum).
66
+
67
+ # [Contributing](https://github.com/timoniq/telegrinder/blob/main/contributing.md)
68
+
69
+ # License
70
+
71
+ Telegrinder is [MIT licensed](./LICENSE)\
72
+ Copyright © 2022-2024 [timoniq](https://github.com/timoniq)\
73
+ Copyright © 2024 [luwqz1](https://github.com/luwqz1)