telegrinder 0.4.2__py3-none-any.whl → 0.5.0__py3-none-any.whl

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 (233) hide show
  1. telegrinder/__init__.py +37 -55
  2. telegrinder/__meta__.py +1 -0
  3. telegrinder/api/__init__.py +6 -4
  4. telegrinder/api/api.py +100 -26
  5. telegrinder/api/error.py +42 -8
  6. telegrinder/api/response.py +4 -1
  7. telegrinder/api/token.py +2 -2
  8. telegrinder/bot/__init__.py +9 -25
  9. telegrinder/bot/bot.py +31 -25
  10. telegrinder/bot/cute_types/__init__.py +0 -0
  11. telegrinder/bot/cute_types/base.py +103 -61
  12. telegrinder/bot/cute_types/callback_query.py +447 -400
  13. telegrinder/bot/cute_types/chat_join_request.py +59 -62
  14. telegrinder/bot/cute_types/chat_member_updated.py +154 -157
  15. telegrinder/bot/cute_types/inline_query.py +41 -44
  16. telegrinder/bot/cute_types/message.py +2621 -2590
  17. telegrinder/bot/cute_types/pre_checkout_query.py +38 -42
  18. telegrinder/bot/cute_types/update.py +1 -8
  19. telegrinder/bot/cute_types/utils.py +1 -1
  20. telegrinder/bot/dispatch/__init__.py +10 -15
  21. telegrinder/bot/dispatch/abc.py +12 -11
  22. telegrinder/bot/dispatch/action.py +104 -0
  23. telegrinder/bot/dispatch/context.py +32 -26
  24. telegrinder/bot/dispatch/dispatch.py +61 -134
  25. telegrinder/bot/dispatch/handler/__init__.py +2 -0
  26. telegrinder/bot/dispatch/handler/abc.py +10 -8
  27. telegrinder/bot/dispatch/handler/audio_reply.py +2 -3
  28. telegrinder/bot/dispatch/handler/base.py +10 -33
  29. telegrinder/bot/dispatch/handler/document_reply.py +2 -3
  30. telegrinder/bot/dispatch/handler/func.py +55 -87
  31. telegrinder/bot/dispatch/handler/media_group_reply.py +2 -3
  32. telegrinder/bot/dispatch/handler/message_reply.py +2 -3
  33. telegrinder/bot/dispatch/handler/photo_reply.py +2 -3
  34. telegrinder/bot/dispatch/handler/sticker_reply.py +2 -3
  35. telegrinder/bot/dispatch/handler/video_reply.py +2 -3
  36. telegrinder/bot/dispatch/middleware/__init__.py +0 -0
  37. telegrinder/bot/dispatch/middleware/abc.py +79 -55
  38. telegrinder/bot/dispatch/middleware/global_middleware.py +18 -33
  39. telegrinder/bot/dispatch/process.py +84 -105
  40. telegrinder/bot/dispatch/return_manager/__init__.py +0 -0
  41. telegrinder/bot/dispatch/return_manager/abc.py +102 -65
  42. telegrinder/bot/dispatch/return_manager/callback_query.py +4 -5
  43. telegrinder/bot/dispatch/return_manager/inline_query.py +3 -4
  44. telegrinder/bot/dispatch/return_manager/message.py +8 -10
  45. telegrinder/bot/dispatch/return_manager/pre_checkout_query.py +4 -5
  46. telegrinder/bot/dispatch/view/__init__.py +4 -4
  47. telegrinder/bot/dispatch/view/abc.py +6 -16
  48. telegrinder/bot/dispatch/view/base.py +54 -178
  49. telegrinder/bot/dispatch/view/box.py +19 -18
  50. telegrinder/bot/dispatch/view/callback_query.py +4 -8
  51. telegrinder/bot/dispatch/view/chat_join_request.py +5 -6
  52. telegrinder/bot/dispatch/view/chat_member.py +5 -25
  53. telegrinder/bot/dispatch/view/error.py +9 -0
  54. telegrinder/bot/dispatch/view/inline_query.py +4 -8
  55. telegrinder/bot/dispatch/view/message.py +5 -25
  56. telegrinder/bot/dispatch/view/pre_checkout_query.py +4 -8
  57. telegrinder/bot/dispatch/view/raw.py +3 -109
  58. telegrinder/bot/dispatch/waiter_machine/__init__.py +2 -5
  59. telegrinder/bot/dispatch/waiter_machine/actions.py +6 -4
  60. telegrinder/bot/dispatch/waiter_machine/hasher/__init__.py +1 -3
  61. telegrinder/bot/dispatch/waiter_machine/hasher/callback.py +1 -1
  62. telegrinder/bot/dispatch/waiter_machine/hasher/hasher.py +11 -7
  63. telegrinder/bot/dispatch/waiter_machine/hasher/message.py +0 -0
  64. telegrinder/bot/dispatch/waiter_machine/machine.py +43 -60
  65. telegrinder/bot/dispatch/waiter_machine/middleware.py +19 -23
  66. telegrinder/bot/dispatch/waiter_machine/short_state.py +6 -5
  67. telegrinder/bot/polling/__init__.py +0 -0
  68. telegrinder/bot/polling/abc.py +0 -0
  69. telegrinder/bot/polling/polling.py +209 -88
  70. telegrinder/bot/rules/__init__.py +3 -16
  71. telegrinder/bot/rules/abc.py +42 -122
  72. telegrinder/bot/rules/callback_data.py +29 -49
  73. telegrinder/bot/rules/chat_join.py +5 -23
  74. telegrinder/bot/rules/command.py +8 -4
  75. telegrinder/bot/rules/enum_text.py +3 -4
  76. telegrinder/bot/rules/func.py +7 -14
  77. telegrinder/bot/rules/fuzzy.py +3 -4
  78. telegrinder/bot/rules/inline.py +8 -20
  79. telegrinder/bot/rules/integer.py +2 -3
  80. telegrinder/bot/rules/is_from.py +12 -11
  81. telegrinder/bot/rules/logic.py +11 -5
  82. telegrinder/bot/rules/markup.py +22 -14
  83. telegrinder/bot/rules/mention.py +8 -7
  84. telegrinder/bot/rules/message_entities.py +8 -4
  85. telegrinder/bot/rules/node.py +23 -12
  86. telegrinder/bot/rules/payload.py +5 -4
  87. telegrinder/bot/rules/payment_invoice.py +6 -21
  88. telegrinder/bot/rules/regex.py +2 -4
  89. telegrinder/bot/rules/rule_enum.py +8 -7
  90. telegrinder/bot/rules/start.py +5 -6
  91. telegrinder/bot/rules/state.py +1 -1
  92. telegrinder/bot/rules/text.py +4 -15
  93. telegrinder/bot/rules/update.py +3 -4
  94. telegrinder/bot/scenario/__init__.py +0 -0
  95. telegrinder/bot/scenario/abc.py +6 -5
  96. telegrinder/bot/scenario/checkbox.py +1 -1
  97. telegrinder/bot/scenario/choice.py +30 -39
  98. telegrinder/client/__init__.py +3 -5
  99. telegrinder/client/abc.py +11 -6
  100. telegrinder/client/aiohttp.py +141 -27
  101. telegrinder/client/form_data.py +1 -1
  102. telegrinder/model.py +61 -89
  103. telegrinder/modules.py +325 -102
  104. telegrinder/msgspec_utils/__init__.py +40 -0
  105. telegrinder/msgspec_utils/abc.py +18 -0
  106. telegrinder/msgspec_utils/custom_types/__init__.py +6 -0
  107. telegrinder/msgspec_utils/custom_types/datetime.py +24 -0
  108. telegrinder/msgspec_utils/custom_types/enum_meta.py +43 -0
  109. telegrinder/msgspec_utils/custom_types/literal.py +25 -0
  110. telegrinder/msgspec_utils/custom_types/option.py +17 -0
  111. telegrinder/msgspec_utils/decoder.py +389 -0
  112. telegrinder/msgspec_utils/encoder.py +206 -0
  113. telegrinder/{msgspec_json.py → msgspec_utils/json.py} +6 -5
  114. telegrinder/msgspec_utils/tools.py +75 -0
  115. telegrinder/node/__init__.py +24 -7
  116. telegrinder/node/attachment.py +1 -0
  117. telegrinder/node/base.py +154 -72
  118. telegrinder/node/callback_query.py +5 -5
  119. telegrinder/node/collection.py +39 -0
  120. telegrinder/node/command.py +1 -2
  121. telegrinder/node/composer.py +121 -72
  122. telegrinder/node/container.py +11 -8
  123. telegrinder/node/context.py +48 -0
  124. telegrinder/node/either.py +27 -40
  125. telegrinder/node/error.py +41 -0
  126. telegrinder/node/event.py +37 -11
  127. telegrinder/node/exceptions.py +7 -0
  128. telegrinder/node/file.py +0 -0
  129. telegrinder/node/i18n.py +108 -0
  130. telegrinder/node/me.py +3 -2
  131. telegrinder/node/payload.py +1 -1
  132. telegrinder/node/polymorphic.py +63 -28
  133. telegrinder/node/reply_message.py +12 -0
  134. telegrinder/node/rule.py +6 -13
  135. telegrinder/node/scope.py +14 -5
  136. telegrinder/node/session.py +53 -0
  137. telegrinder/node/source.py +41 -9
  138. telegrinder/node/text.py +1 -2
  139. telegrinder/node/tools/__init__.py +0 -0
  140. telegrinder/node/tools/generator.py +3 -5
  141. telegrinder/node/utility.py +16 -0
  142. telegrinder/py.typed +0 -0
  143. telegrinder/rules.py +0 -0
  144. telegrinder/tools/__init__.py +48 -88
  145. telegrinder/tools/aio.py +103 -0
  146. telegrinder/tools/callback_data_serialization/__init__.py +5 -0
  147. telegrinder/tools/{callback_data_serilization → callback_data_serialization}/abc.py +0 -0
  148. telegrinder/tools/{callback_data_serilization → callback_data_serialization}/json_ser.py +2 -3
  149. telegrinder/tools/{callback_data_serilization → callback_data_serialization}/msgpack_ser.py +45 -27
  150. telegrinder/tools/final.py +21 -0
  151. telegrinder/tools/formatting/__init__.py +2 -18
  152. telegrinder/tools/formatting/deep_links/__init__.py +39 -0
  153. telegrinder/tools/formatting/{deep_links.py → deep_links/links.py} +12 -85
  154. telegrinder/tools/formatting/deep_links/parsing.py +90 -0
  155. telegrinder/tools/formatting/deep_links/validators.py +8 -0
  156. telegrinder/tools/formatting/html_formatter.py +18 -45
  157. telegrinder/tools/fullname.py +83 -0
  158. telegrinder/tools/global_context/__init__.py +4 -3
  159. telegrinder/tools/global_context/abc.py +17 -14
  160. telegrinder/tools/global_context/builtin_context.py +39 -0
  161. telegrinder/tools/global_context/global_context.py +138 -39
  162. telegrinder/tools/input_file_directory.py +0 -0
  163. telegrinder/tools/keyboard/__init__.py +39 -0
  164. telegrinder/tools/keyboard/abc.py +159 -0
  165. telegrinder/tools/keyboard/base.py +77 -0
  166. telegrinder/tools/keyboard/buttons/__init__.py +14 -0
  167. telegrinder/tools/keyboard/buttons/base.py +18 -0
  168. telegrinder/tools/{buttons.py → keyboard/buttons/buttons.py} +71 -23
  169. telegrinder/tools/keyboard/buttons/static_buttons.py +56 -0
  170. telegrinder/tools/keyboard/buttons/tools.py +18 -0
  171. telegrinder/tools/keyboard/data.py +20 -0
  172. telegrinder/tools/keyboard/keyboard.py +131 -0
  173. telegrinder/tools/keyboard/static_keyboard.py +83 -0
  174. telegrinder/tools/lifespan.py +87 -51
  175. telegrinder/tools/limited_dict.py +4 -1
  176. telegrinder/tools/loop_wrapper.py +332 -0
  177. telegrinder/tools/magic/__init__.py +32 -0
  178. telegrinder/tools/magic/annotations.py +165 -0
  179. telegrinder/tools/magic/dictionary.py +20 -0
  180. telegrinder/tools/magic/function.py +246 -0
  181. telegrinder/tools/magic/shortcut.py +111 -0
  182. telegrinder/tools/parse_mode.py +9 -3
  183. telegrinder/tools/singleton/__init__.py +4 -0
  184. telegrinder/tools/singleton/abc.py +14 -0
  185. telegrinder/tools/singleton/singleton.py +18 -0
  186. telegrinder/tools/state_storage/__init__.py +0 -0
  187. telegrinder/tools/state_storage/abc.py +6 -1
  188. telegrinder/tools/state_storage/memory.py +1 -1
  189. telegrinder/tools/strings.py +0 -0
  190. telegrinder/types/__init__.py +307 -268
  191. telegrinder/types/enums.py +64 -37
  192. telegrinder/types/input_file.py +3 -3
  193. telegrinder/types/methods.py +5699 -5055
  194. telegrinder/types/methods_utils.py +62 -0
  195. telegrinder/types/objects.py +7846 -7058
  196. telegrinder/verification_utils.py +3 -1
  197. telegrinder-0.5.0.dist-info/METADATA +162 -0
  198. telegrinder-0.5.0.dist-info/RECORD +200 -0
  199. {telegrinder-0.4.2.dist-info → telegrinder-0.5.0.dist-info}/licenses/LICENSE +2 -2
  200. telegrinder/bot/dispatch/waiter_machine/hasher/state.py +0 -20
  201. telegrinder/bot/rules/id.py +0 -24
  202. telegrinder/bot/rules/message.py +0 -15
  203. telegrinder/client/sonic.py +0 -212
  204. telegrinder/msgspec_utils.py +0 -478
  205. telegrinder/tools/adapter/__init__.py +0 -19
  206. telegrinder/tools/adapter/abc.py +0 -49
  207. telegrinder/tools/adapter/dataclass.py +0 -56
  208. telegrinder/tools/adapter/errors.py +0 -5
  209. telegrinder/tools/adapter/event.py +0 -61
  210. telegrinder/tools/adapter/node.py +0 -46
  211. telegrinder/tools/adapter/raw_event.py +0 -27
  212. telegrinder/tools/adapter/raw_update.py +0 -30
  213. telegrinder/tools/callback_data_serilization/__init__.py +0 -5
  214. telegrinder/tools/error_handler/__init__.py +0 -10
  215. telegrinder/tools/error_handler/abc.py +0 -30
  216. telegrinder/tools/error_handler/error.py +0 -9
  217. telegrinder/tools/error_handler/error_handler.py +0 -179
  218. telegrinder/tools/formatting/spec_html_formats.py +0 -75
  219. telegrinder/tools/functional.py +0 -8
  220. telegrinder/tools/global_context/telegrinder_ctx.py +0 -27
  221. telegrinder/tools/i18n/__init__.py +0 -12
  222. telegrinder/tools/i18n/abc.py +0 -32
  223. telegrinder/tools/i18n/middleware/__init__.py +0 -3
  224. telegrinder/tools/i18n/middleware/abc.py +0 -22
  225. telegrinder/tools/i18n/simple.py +0 -43
  226. telegrinder/tools/keyboard.py +0 -132
  227. telegrinder/tools/loop_wrapper/__init__.py +0 -4
  228. telegrinder/tools/loop_wrapper/abc.py +0 -20
  229. telegrinder/tools/loop_wrapper/loop_wrapper.py +0 -169
  230. telegrinder/tools/magic.py +0 -344
  231. telegrinder-0.4.2.dist-info/METADATA +0 -151
  232. telegrinder-0.4.2.dist-info/RECORD +0 -182
  233. {telegrinder-0.4.2.dist-info → telegrinder-0.5.0.dist-info}/WHEEL +0 -0
@@ -1,268 +1,307 @@
1
- from telegrinder.types.enums import *
2
- from telegrinder.types.objects import *
3
-
4
- __all__ = (
5
- "AffiliateInfo",
6
- "Animation",
7
- "Audio",
8
- "BackgroundFill",
9
- "BackgroundFillFreeformGradient",
10
- "BackgroundFillGradient",
11
- "BackgroundFillSolid",
12
- "BackgroundType",
13
- "BackgroundTypeChatTheme",
14
- "BackgroundTypeFill",
15
- "BackgroundTypePattern",
16
- "BackgroundTypeWallpaper",
17
- "Birthdate",
18
- "BotCommand",
19
- "BotCommandScope",
20
- "BotCommandScopeAllChatAdministrators",
21
- "BotCommandScopeAllGroupChats",
22
- "BotCommandScopeAllPrivateChats",
23
- "BotCommandScopeChat",
24
- "BotCommandScopeChatAdministrators",
25
- "BotCommandScopeChatMember",
26
- "BotCommandScopeDefault",
27
- "BotCommandScopeType",
28
- "BotDescription",
29
- "BotName",
30
- "BotShortDescription",
31
- "BusinessConnection",
32
- "BusinessIntro",
33
- "BusinessLocation",
34
- "BusinessMessagesDeleted",
35
- "BusinessOpeningHours",
36
- "BusinessOpeningHoursInterval",
37
- "CallbackGame",
38
- "CallbackQuery",
39
- "Chat",
40
- "ChatAction",
41
- "ChatAdministratorRights",
42
- "ChatBackground",
43
- "ChatBoost",
44
- "ChatBoostAdded",
45
- "ChatBoostRemoved",
46
- "ChatBoostSource",
47
- "ChatBoostSourceGiftCode",
48
- "ChatBoostSourceGiveaway",
49
- "ChatBoostSourcePremium",
50
- "ChatBoostSourceType",
51
- "ChatBoostUpdated",
52
- "ChatFullInfo",
53
- "ChatInviteLink",
54
- "ChatJoinRequest",
55
- "ChatLocation",
56
- "ChatMember",
57
- "ChatMemberAdministrator",
58
- "ChatMemberBanned",
59
- "ChatMemberLeft",
60
- "ChatMemberMember",
61
- "ChatMemberOwner",
62
- "ChatMemberRestricted",
63
- "ChatMemberStatus",
64
- "ChatMemberUpdated",
65
- "ChatPermissions",
66
- "ChatPhoto",
67
- "ChatShared",
68
- "ChatType",
69
- "ChosenInlineResult",
70
- "Contact",
71
- "ContentType",
72
- "CopyTextButton",
73
- "Currency",
74
- "DefaultAccentColor",
75
- "Dice",
76
- "DiceEmoji",
77
- "Document",
78
- "EncryptedCredentials",
79
- "EncryptedPassportElement",
80
- "EncryptedPassportElementType",
81
- "ExternalReplyInfo",
82
- "File",
83
- "ForceReply",
84
- "ForumTopic",
85
- "ForumTopicClosed",
86
- "ForumTopicCreated",
87
- "ForumTopicEdited",
88
- "ForumTopicReopened",
89
- "Game",
90
- "GameHighScore",
91
- "GeneralForumTopicHidden",
92
- "GeneralForumTopicUnhidden",
93
- "Gift",
94
- "Gifts",
95
- "Giveaway",
96
- "GiveawayCompleted",
97
- "GiveawayCreated",
98
- "GiveawayWinners",
99
- "InaccessibleMessage",
100
- "InlineKeyboardButton",
101
- "InlineKeyboardMarkup",
102
- "InlineQuery",
103
- "InlineQueryChatType",
104
- "InlineQueryResult",
105
- "InlineQueryResultArticle",
106
- "InlineQueryResultAudio",
107
- "InlineQueryResultCachedAudio",
108
- "InlineQueryResultCachedDocument",
109
- "InlineQueryResultCachedGif",
110
- "InlineQueryResultCachedMpeg4Gif",
111
- "InlineQueryResultCachedPhoto",
112
- "InlineQueryResultCachedSticker",
113
- "InlineQueryResultCachedVideo",
114
- "InlineQueryResultCachedVoice",
115
- "InlineQueryResultContact",
116
- "InlineQueryResultDocument",
117
- "InlineQueryResultDocumentMimeType",
118
- "InlineQueryResultGame",
119
- "InlineQueryResultGif",
120
- "InlineQueryResultGifThumbnailMimeType",
121
- "InlineQueryResultLocation",
122
- "InlineQueryResultMimeType",
123
- "InlineQueryResultMpeg4Gif",
124
- "InlineQueryResultMpeg4GifThumbnailMimeType",
125
- "InlineQueryResultPhoto",
126
- "InlineQueryResultThumbnailMimeType",
127
- "InlineQueryResultVenue",
128
- "InlineQueryResultVideo",
129
- "InlineQueryResultVideoMimeType",
130
- "InlineQueryResultVoice",
131
- "InlineQueryResultsButton",
132
- "InputContactMessageContent",
133
- "InputFile",
134
- "InputInvoiceMessageContent",
135
- "InputLocationMessageContent",
136
- "InputMedia",
137
- "InputMediaAnimation",
138
- "InputMediaAudio",
139
- "InputMediaDocument",
140
- "InputMediaPhoto",
141
- "InputMediaVideo",
142
- "InputMessageContent",
143
- "InputPaidMedia",
144
- "InputPaidMediaPhoto",
145
- "InputPaidMediaVideo",
146
- "InputPollOption",
147
- "InputSticker",
148
- "InputTextMessageContent",
149
- "InputVenueMessageContent",
150
- "Invoice",
151
- "KeyboardButton",
152
- "KeyboardButtonPollType",
153
- "KeyboardButtonRequestChat",
154
- "KeyboardButtonRequestUsers",
155
- "LabeledPrice",
156
- "LinkPreviewOptions",
157
- "Location",
158
- "LoginUrl",
159
- "MaskPosition",
160
- "MaskPositionPoint",
161
- "MaybeInaccessibleMessage",
162
- "MenuButton",
163
- "MenuButtonCommands",
164
- "MenuButtonDefault",
165
- "MenuButtonWebApp",
166
- "Message",
167
- "MessageAutoDeleteTimerChanged",
168
- "MessageEntity",
169
- "MessageEntityType",
170
- "MessageId",
171
- "MessageOrigin",
172
- "MessageOriginChannel",
173
- "MessageOriginChat",
174
- "MessageOriginHiddenUser",
175
- "MessageOriginType",
176
- "MessageOriginUser",
177
- "MessageReactionCountUpdated",
178
- "MessageReactionUpdated",
179
- "Model",
180
- "OrderInfo",
181
- "PaidMedia",
182
- "PaidMediaInfo",
183
- "PaidMediaPhoto",
184
- "PaidMediaPreview",
185
- "PaidMediaPurchased",
186
- "PaidMediaVideo",
187
- "PassportData",
188
- "PassportElementError",
189
- "PassportElementErrorDataField",
190
- "PassportElementErrorFile",
191
- "PassportElementErrorFiles",
192
- "PassportElementErrorFrontSide",
193
- "PassportElementErrorReverseSide",
194
- "PassportElementErrorSelfie",
195
- "PassportElementErrorTranslationFile",
196
- "PassportElementErrorTranslationFiles",
197
- "PassportElementErrorType",
198
- "PassportElementErrorUnspecified",
199
- "PassportFile",
200
- "PhotoSize",
201
- "Poll",
202
- "PollAnswer",
203
- "PollOption",
204
- "PollType",
205
- "PreCheckoutQuery",
206
- "PreparedInlineMessage",
207
- "ProgrammingLanguage",
208
- "ProximityAlertTriggered",
209
- "ReactionCount",
210
- "ReactionEmoji",
211
- "ReactionType",
212
- "ReactionTypeCustomEmoji",
213
- "ReactionTypeEmoji",
214
- "ReactionTypePaid",
215
- "ReactionTypeType",
216
- "RefundedPayment",
217
- "ReplyKeyboardMarkup",
218
- "ReplyKeyboardRemove",
219
- "ReplyParameters",
220
- "ResponseParameters",
221
- "RevenueWithdrawalState",
222
- "RevenueWithdrawalStateFailed",
223
- "RevenueWithdrawalStatePending",
224
- "RevenueWithdrawalStateSucceeded",
225
- "SentWebAppMessage",
226
- "SharedUser",
227
- "ShippingAddress",
228
- "ShippingOption",
229
- "ShippingQuery",
230
- "StarTransaction",
231
- "StarTransactions",
232
- "Sticker",
233
- "StickerFormat",
234
- "StickerSet",
235
- "StickerSetStickerType",
236
- "StickerType",
237
- "Story",
238
- "SuccessfulPayment",
239
- "SwitchInlineQueryChosenChat",
240
- "TextQuote",
241
- "TopicIconColor",
242
- "TransactionPartner",
243
- "TransactionPartnerAffiliateProgram",
244
- "TransactionPartnerChat",
245
- "TransactionPartnerFragment",
246
- "TransactionPartnerOther",
247
- "TransactionPartnerTelegramAds",
248
- "TransactionPartnerTelegramApi",
249
- "TransactionPartnerUser",
250
- "Update",
251
- "UpdateType",
252
- "User",
253
- "UserChatBoosts",
254
- "UserProfilePhotos",
255
- "UsersShared",
256
- "Venue",
257
- "Video",
258
- "VideoChatEnded",
259
- "VideoChatParticipantsInvited",
260
- "VideoChatScheduled",
261
- "VideoChatStarted",
262
- "VideoNote",
263
- "Voice",
264
- "WebAppData",
265
- "WebAppInfo",
266
- "WebhookInfo",
267
- "WriteAccessAllowed",
268
- )
1
+ from telegrinder.types.enums import *
2
+ from telegrinder.types.objects import *
3
+
4
+ __all__ = (
5
+ "AcceptedGiftTypes",
6
+ "AffiliateInfo",
7
+ "Animation",
8
+ "Audio",
9
+ "BackgroundFill",
10
+ "BackgroundFillFreeformGradient",
11
+ "BackgroundFillGradient",
12
+ "BackgroundFillSolid",
13
+ "BackgroundType",
14
+ "BackgroundTypeChatTheme",
15
+ "BackgroundTypeFill",
16
+ "BackgroundTypePattern",
17
+ "BackgroundTypeWallpaper",
18
+ "Birthdate",
19
+ "BotCommand",
20
+ "BotCommandScope",
21
+ "BotCommandScopeAllChatAdministrators",
22
+ "BotCommandScopeAllGroupChats",
23
+ "BotCommandScopeAllPrivateChats",
24
+ "BotCommandScopeChat",
25
+ "BotCommandScopeChatAdministrators",
26
+ "BotCommandScopeChatMember",
27
+ "BotCommandScopeDefault",
28
+ "BotCommandScopeType",
29
+ "BotDescription",
30
+ "BotName",
31
+ "BotShortDescription",
32
+ "BusinessBotRights",
33
+ "BusinessConnection",
34
+ "BusinessIntro",
35
+ "BusinessLocation",
36
+ "BusinessMessagesDeleted",
37
+ "BusinessOpeningHours",
38
+ "BusinessOpeningHoursInterval",
39
+ "CallbackGame",
40
+ "CallbackQuery",
41
+ "Chat",
42
+ "ChatAction",
43
+ "ChatAdministratorRights",
44
+ "ChatBackground",
45
+ "ChatBoost",
46
+ "ChatBoostAdded",
47
+ "ChatBoostRemoved",
48
+ "ChatBoostSource",
49
+ "ChatBoostSourceGiftCode",
50
+ "ChatBoostSourceGiveaway",
51
+ "ChatBoostSourcePremium",
52
+ "ChatBoostSourceType",
53
+ "ChatBoostUpdated",
54
+ "ChatFullInfo",
55
+ "ChatInviteLink",
56
+ "ChatJoinRequest",
57
+ "ChatLocation",
58
+ "ChatMember",
59
+ "ChatMemberAdministrator",
60
+ "ChatMemberBanned",
61
+ "ChatMemberLeft",
62
+ "ChatMemberMember",
63
+ "ChatMemberOwner",
64
+ "ChatMemberRestricted",
65
+ "ChatMemberStatus",
66
+ "ChatMemberUpdated",
67
+ "ChatPermissions",
68
+ "ChatPhoto",
69
+ "ChatShared",
70
+ "ChatType",
71
+ "Checklist",
72
+ "ChecklistTask",
73
+ "ChecklistTasksAdded",
74
+ "ChecklistTasksDone",
75
+ "ChosenInlineResult",
76
+ "Contact",
77
+ "ContentType",
78
+ "CopyTextButton",
79
+ "Currency",
80
+ "DefaultAccentColor",
81
+ "Dice",
82
+ "DiceEmoji",
83
+ "DirectMessagePriceChanged",
84
+ "Document",
85
+ "EncryptedCredentials",
86
+ "EncryptedPassportElement",
87
+ "EncryptedPassportElementType",
88
+ "ExternalReplyInfo",
89
+ "File",
90
+ "ForceReply",
91
+ "ForumTopic",
92
+ "ForumTopicClosed",
93
+ "ForumTopicCreated",
94
+ "ForumTopicEdited",
95
+ "ForumTopicReopened",
96
+ "Game",
97
+ "GameHighScore",
98
+ "GeneralForumTopicHidden",
99
+ "GeneralForumTopicUnhidden",
100
+ "Gift",
101
+ "GiftInfo",
102
+ "Gifts",
103
+ "Giveaway",
104
+ "GiveawayCompleted",
105
+ "GiveawayCreated",
106
+ "GiveawayWinners",
107
+ "InaccessibleMessage",
108
+ "InlineKeyboardButton",
109
+ "InlineKeyboardMarkup",
110
+ "InlineQuery",
111
+ "InlineQueryChatType",
112
+ "InlineQueryResult",
113
+ "InlineQueryResultArticle",
114
+ "InlineQueryResultAudio",
115
+ "InlineQueryResultCachedAudio",
116
+ "InlineQueryResultCachedDocument",
117
+ "InlineQueryResultCachedGif",
118
+ "InlineQueryResultCachedMpeg4Gif",
119
+ "InlineQueryResultCachedPhoto",
120
+ "InlineQueryResultCachedSticker",
121
+ "InlineQueryResultCachedVideo",
122
+ "InlineQueryResultCachedVoice",
123
+ "InlineQueryResultContact",
124
+ "InlineQueryResultDocument",
125
+ "InlineQueryResultDocumentMimeType",
126
+ "InlineQueryResultGame",
127
+ "InlineQueryResultGif",
128
+ "InlineQueryResultGifThumbnailMimeType",
129
+ "InlineQueryResultLocation",
130
+ "InlineQueryResultMimeType",
131
+ "InlineQueryResultMpeg4Gif",
132
+ "InlineQueryResultMpeg4GifThumbnailMimeType",
133
+ "InlineQueryResultPhoto",
134
+ "InlineQueryResultThumbnailMimeType",
135
+ "InlineQueryResultVenue",
136
+ "InlineQueryResultVideo",
137
+ "InlineQueryResultVideoMimeType",
138
+ "InlineQueryResultVoice",
139
+ "InlineQueryResultsButton",
140
+ "InputChecklist",
141
+ "InputChecklistTask",
142
+ "InputContactMessageContent",
143
+ "InputFile",
144
+ "InputInvoiceMessageContent",
145
+ "InputLocationMessageContent",
146
+ "InputMedia",
147
+ "InputMediaAnimation",
148
+ "InputMediaAudio",
149
+ "InputMediaDocument",
150
+ "InputMediaPhoto",
151
+ "InputMediaVideo",
152
+ "InputMessageContent",
153
+ "InputPaidMedia",
154
+ "InputPaidMediaPhoto",
155
+ "InputPaidMediaVideo",
156
+ "InputPollOption",
157
+ "InputProfilePhoto",
158
+ "InputProfilePhotoAnimated",
159
+ "InputProfilePhotoStatic",
160
+ "InputSticker",
161
+ "InputStoryContent",
162
+ "InputStoryContentPhoto",
163
+ "InputStoryContentVideo",
164
+ "InputTextMessageContent",
165
+ "InputVenueMessageContent",
166
+ "Invoice",
167
+ "KeyboardButton",
168
+ "KeyboardButtonPollType",
169
+ "KeyboardButtonRequestChat",
170
+ "KeyboardButtonRequestUsers",
171
+ "LabeledPrice",
172
+ "LinkPreviewOptions",
173
+ "Location",
174
+ "LocationAddress",
175
+ "LoginUrl",
176
+ "MaskPosition",
177
+ "MaskPositionPoint",
178
+ "MaybeInaccessibleMessage",
179
+ "MenuButton",
180
+ "MenuButtonCommands",
181
+ "MenuButtonDefault",
182
+ "MenuButtonWebApp",
183
+ "Message",
184
+ "MessageAutoDeleteTimerChanged",
185
+ "MessageEntity",
186
+ "MessageEntityType",
187
+ "MessageId",
188
+ "MessageOrigin",
189
+ "MessageOriginChannel",
190
+ "MessageOriginChat",
191
+ "MessageOriginHiddenUser",
192
+ "MessageOriginType",
193
+ "MessageOriginUser",
194
+ "MessageReactionCountUpdated",
195
+ "MessageReactionUpdated",
196
+ "Model",
197
+ "OrderInfo",
198
+ "OwnedGift",
199
+ "OwnedGiftRegular",
200
+ "OwnedGiftUnique",
201
+ "OwnedGifts",
202
+ "PaidMedia",
203
+ "PaidMediaInfo",
204
+ "PaidMediaPhoto",
205
+ "PaidMediaPreview",
206
+ "PaidMediaPurchased",
207
+ "PaidMediaVideo",
208
+ "PaidMessagePriceChanged",
209
+ "PassportData",
210
+ "PassportElementError",
211
+ "PassportElementErrorDataField",
212
+ "PassportElementErrorFile",
213
+ "PassportElementErrorFiles",
214
+ "PassportElementErrorFrontSide",
215
+ "PassportElementErrorReverseSide",
216
+ "PassportElementErrorSelfie",
217
+ "PassportElementErrorTranslationFile",
218
+ "PassportElementErrorTranslationFiles",
219
+ "PassportElementErrorType",
220
+ "PassportElementErrorUnspecified",
221
+ "PassportFile",
222
+ "PhotoSize",
223
+ "Poll",
224
+ "PollAnswer",
225
+ "PollOption",
226
+ "PollType",
227
+ "PreCheckoutQuery",
228
+ "PreparedInlineMessage",
229
+ "ProgrammingLanguage",
230
+ "ProximityAlertTriggered",
231
+ "ReactionCount",
232
+ "ReactionEmoji",
233
+ "ReactionType",
234
+ "ReactionTypeCustomEmoji",
235
+ "ReactionTypeEmoji",
236
+ "ReactionTypePaid",
237
+ "ReactionTypeType",
238
+ "RefundedPayment",
239
+ "ReplyKeyboardMarkup",
240
+ "ReplyKeyboardRemove",
241
+ "ReplyParameters",
242
+ "ResponseParameters",
243
+ "RevenueWithdrawalState",
244
+ "RevenueWithdrawalStateFailed",
245
+ "RevenueWithdrawalStatePending",
246
+ "RevenueWithdrawalStateSucceeded",
247
+ "SentWebAppMessage",
248
+ "SharedUser",
249
+ "ShippingAddress",
250
+ "ShippingOption",
251
+ "ShippingQuery",
252
+ "StarAmount",
253
+ "StarTransaction",
254
+ "StarTransactions",
255
+ "Sticker",
256
+ "StickerFormat",
257
+ "StickerSet",
258
+ "StickerSetStickerType",
259
+ "StickerType",
260
+ "Story",
261
+ "StoryArea",
262
+ "StoryAreaPosition",
263
+ "StoryAreaType",
264
+ "StoryAreaTypeLink",
265
+ "StoryAreaTypeLocation",
266
+ "StoryAreaTypeSuggestedReaction",
267
+ "StoryAreaTypeUniqueGift",
268
+ "StoryAreaTypeWeather",
269
+ "SuccessfulPayment",
270
+ "SwitchInlineQueryChosenChat",
271
+ "TextQuote",
272
+ "TopicIconColor",
273
+ "TransactionPartner",
274
+ "TransactionPartnerAffiliateProgram",
275
+ "TransactionPartnerChat",
276
+ "TransactionPartnerFragment",
277
+ "TransactionPartnerOther",
278
+ "TransactionPartnerTelegramAds",
279
+ "TransactionPartnerTelegramApi",
280
+ "TransactionPartnerUser",
281
+ "TransactionPartnerUserTransactionType",
282
+ "UniqueGift",
283
+ "UniqueGiftBackdrop",
284
+ "UniqueGiftBackdropColors",
285
+ "UniqueGiftInfo",
286
+ "UniqueGiftInfoOriginType",
287
+ "UniqueGiftModel",
288
+ "UniqueGiftSymbol",
289
+ "Update",
290
+ "UpdateType",
291
+ "User",
292
+ "UserChatBoosts",
293
+ "UserProfilePhotos",
294
+ "UsersShared",
295
+ "Venue",
296
+ "Video",
297
+ "VideoChatEnded",
298
+ "VideoChatParticipantsInvited",
299
+ "VideoChatScheduled",
300
+ "VideoChatStarted",
301
+ "VideoNote",
302
+ "Voice",
303
+ "WebAppData",
304
+ "WebAppInfo",
305
+ "WebhookInfo",
306
+ "WriteAccessAllowed",
307
+ )