telegrinder 0.3.0.post2__py3-none-any.whl → 0.3.2__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 (164) hide show
  1. telegrinder/__init__.py +144 -144
  2. telegrinder/api/__init__.py +8 -8
  3. telegrinder/api/api.py +93 -93
  4. telegrinder/api/error.py +16 -16
  5. telegrinder/api/response.py +20 -20
  6. telegrinder/api/token.py +36 -36
  7. telegrinder/bot/__init__.py +66 -66
  8. telegrinder/bot/bot.py +76 -76
  9. telegrinder/bot/cute_types/__init__.py +11 -11
  10. telegrinder/bot/cute_types/base.py +258 -234
  11. telegrinder/bot/cute_types/callback_query.py +382 -382
  12. telegrinder/bot/cute_types/chat_join_request.py +61 -61
  13. telegrinder/bot/cute_types/chat_member_updated.py +160 -160
  14. telegrinder/bot/cute_types/inline_query.py +53 -53
  15. telegrinder/bot/cute_types/message.py +2631 -2631
  16. telegrinder/bot/cute_types/update.py +75 -75
  17. telegrinder/bot/cute_types/utils.py +92 -92
  18. telegrinder/bot/dispatch/__init__.py +55 -55
  19. telegrinder/bot/dispatch/abc.py +77 -77
  20. telegrinder/bot/dispatch/context.py +92 -92
  21. telegrinder/bot/dispatch/dispatch.py +202 -201
  22. telegrinder/bot/dispatch/handler/__init__.py +13 -13
  23. telegrinder/bot/dispatch/handler/abc.py +24 -24
  24. telegrinder/bot/dispatch/handler/audio_reply.py +44 -44
  25. telegrinder/bot/dispatch/handler/base.py +57 -57
  26. telegrinder/bot/dispatch/handler/document_reply.py +44 -44
  27. telegrinder/bot/dispatch/handler/func.py +128 -123
  28. telegrinder/bot/dispatch/handler/media_group_reply.py +43 -43
  29. telegrinder/bot/dispatch/handler/message_reply.py +36 -36
  30. telegrinder/bot/dispatch/handler/photo_reply.py +44 -44
  31. telegrinder/bot/dispatch/handler/sticker_reply.py +37 -37
  32. telegrinder/bot/dispatch/handler/video_reply.py +44 -44
  33. telegrinder/bot/dispatch/middleware/__init__.py +3 -3
  34. telegrinder/bot/dispatch/middleware/abc.py +16 -16
  35. telegrinder/bot/dispatch/process.py +132 -132
  36. telegrinder/bot/dispatch/return_manager/__init__.py +13 -13
  37. telegrinder/bot/dispatch/return_manager/abc.py +108 -108
  38. telegrinder/bot/dispatch/return_manager/callback_query.py +20 -20
  39. telegrinder/bot/dispatch/return_manager/inline_query.py +15 -15
  40. telegrinder/bot/dispatch/return_manager/message.py +36 -36
  41. telegrinder/bot/dispatch/view/__init__.py +13 -13
  42. telegrinder/bot/dispatch/view/abc.py +41 -41
  43. telegrinder/bot/dispatch/view/base.py +200 -211
  44. telegrinder/bot/dispatch/view/box.py +129 -129
  45. telegrinder/bot/dispatch/view/callback_query.py +17 -17
  46. telegrinder/bot/dispatch/view/chat_join_request.py +16 -16
  47. telegrinder/bot/dispatch/view/chat_member.py +39 -39
  48. telegrinder/bot/dispatch/view/inline_query.py +17 -17
  49. telegrinder/bot/dispatch/view/message.py +44 -44
  50. telegrinder/bot/dispatch/view/raw.py +114 -118
  51. telegrinder/bot/dispatch/waiter_machine/__init__.py +17 -17
  52. telegrinder/bot/dispatch/waiter_machine/actions.py +13 -13
  53. telegrinder/bot/dispatch/waiter_machine/hasher/__init__.py +8 -8
  54. telegrinder/bot/dispatch/waiter_machine/hasher/callback.py +57 -57
  55. telegrinder/bot/dispatch/waiter_machine/hasher/hasher.py +57 -57
  56. telegrinder/bot/dispatch/waiter_machine/hasher/message.py +53 -53
  57. telegrinder/bot/dispatch/waiter_machine/hasher/state.py +19 -19
  58. telegrinder/bot/dispatch/waiter_machine/machine.py +168 -170
  59. telegrinder/bot/dispatch/waiter_machine/middleware.py +89 -89
  60. telegrinder/bot/dispatch/waiter_machine/short_state.py +65 -65
  61. telegrinder/bot/polling/__init__.py +4 -4
  62. telegrinder/bot/polling/abc.py +25 -25
  63. telegrinder/bot/polling/polling.py +131 -131
  64. telegrinder/bot/rules/__init__.py +62 -62
  65. telegrinder/bot/rules/abc.py +238 -233
  66. telegrinder/bot/rules/adapter/__init__.py +9 -9
  67. telegrinder/bot/rules/adapter/abc.py +29 -29
  68. telegrinder/bot/rules/adapter/errors.py +5 -5
  69. telegrinder/bot/rules/adapter/event.py +76 -76
  70. telegrinder/bot/rules/adapter/node.py +48 -48
  71. telegrinder/bot/rules/adapter/raw_update.py +30 -30
  72. telegrinder/bot/rules/callback_data.py +171 -171
  73. telegrinder/bot/rules/chat_join.py +48 -48
  74. telegrinder/bot/rules/command.py +126 -126
  75. telegrinder/bot/rules/enum_text.py +36 -33
  76. telegrinder/bot/rules/func.py +26 -26
  77. telegrinder/bot/rules/fuzzy.py +24 -24
  78. telegrinder/bot/rules/inline.py +60 -60
  79. telegrinder/bot/rules/integer.py +20 -20
  80. telegrinder/bot/rules/is_from.py +146 -146
  81. telegrinder/bot/rules/markup.py +43 -43
  82. telegrinder/bot/rules/mention.py +14 -14
  83. telegrinder/bot/rules/message.py +17 -17
  84. telegrinder/bot/rules/message_entities.py +35 -35
  85. telegrinder/bot/rules/node.py +27 -27
  86. telegrinder/bot/rules/regex.py +37 -37
  87. telegrinder/bot/rules/rule_enum.py +72 -72
  88. telegrinder/bot/rules/start.py +42 -42
  89. telegrinder/bot/rules/state.py +37 -37
  90. telegrinder/bot/rules/text.py +33 -33
  91. telegrinder/bot/rules/update.py +15 -15
  92. telegrinder/bot/scenario/__init__.py +5 -5
  93. telegrinder/bot/scenario/abc.py +19 -19
  94. telegrinder/bot/scenario/checkbox.py +167 -139
  95. telegrinder/bot/scenario/choice.py +46 -44
  96. telegrinder/client/__init__.py +4 -4
  97. telegrinder/client/abc.py +75 -75
  98. telegrinder/client/aiohttp.py +130 -130
  99. telegrinder/model.py +244 -244
  100. telegrinder/modules.py +237 -237
  101. telegrinder/msgspec_json.py +14 -14
  102. telegrinder/msgspec_utils.py +410 -410
  103. telegrinder/node/__init__.py +20 -20
  104. telegrinder/node/attachment.py +92 -92
  105. telegrinder/node/base.py +143 -144
  106. telegrinder/node/callback_query.py +14 -14
  107. telegrinder/node/command.py +33 -33
  108. telegrinder/node/composer.py +196 -184
  109. telegrinder/node/container.py +27 -27
  110. telegrinder/node/event.py +71 -73
  111. telegrinder/node/me.py +16 -16
  112. telegrinder/node/message.py +14 -14
  113. telegrinder/node/polymorphic.py +48 -52
  114. telegrinder/node/rule.py +76 -76
  115. telegrinder/node/scope.py +38 -38
  116. telegrinder/node/source.py +71 -71
  117. telegrinder/node/text.py +21 -21
  118. telegrinder/node/tools/__init__.py +3 -3
  119. telegrinder/node/tools/generator.py +40 -40
  120. telegrinder/node/update.py +15 -15
  121. telegrinder/rules.py +0 -0
  122. telegrinder/tools/__init__.py +74 -74
  123. telegrinder/tools/buttons.py +79 -79
  124. telegrinder/tools/error_handler/__init__.py +7 -7
  125. telegrinder/tools/error_handler/abc.py +33 -33
  126. telegrinder/tools/error_handler/error.py +9 -9
  127. telegrinder/tools/error_handler/error_handler.py +193 -193
  128. telegrinder/tools/formatting/__init__.py +46 -46
  129. telegrinder/tools/formatting/html.py +308 -308
  130. telegrinder/tools/formatting/links.py +33 -33
  131. telegrinder/tools/formatting/spec_html_formats.py +111 -111
  132. telegrinder/tools/functional.py +12 -12
  133. telegrinder/tools/global_context/__init__.py +7 -7
  134. telegrinder/tools/global_context/abc.py +63 -63
  135. telegrinder/tools/global_context/global_context.py +412 -412
  136. telegrinder/tools/global_context/telegrinder_ctx.py +27 -27
  137. telegrinder/tools/i18n/__init__.py +12 -12
  138. telegrinder/tools/i18n/abc.py +32 -32
  139. telegrinder/tools/i18n/middleware/__init__.py +3 -3
  140. telegrinder/tools/i18n/middleware/abc.py +25 -25
  141. telegrinder/tools/i18n/simple.py +43 -43
  142. telegrinder/tools/kb_set/__init__.py +4 -4
  143. telegrinder/tools/kb_set/base.py +15 -15
  144. telegrinder/tools/kb_set/yaml.py +63 -63
  145. telegrinder/tools/keyboard.py +128 -128
  146. telegrinder/tools/limited_dict.py +37 -37
  147. telegrinder/tools/loop_wrapper/__init__.py +4 -4
  148. telegrinder/tools/loop_wrapper/abc.py +15 -15
  149. telegrinder/tools/loop_wrapper/loop_wrapper.py +216 -216
  150. telegrinder/tools/magic.py +168 -164
  151. telegrinder/tools/parse_mode.py +6 -6
  152. telegrinder/tools/state_storage/__init__.py +4 -4
  153. telegrinder/tools/state_storage/abc.py +35 -35
  154. telegrinder/tools/state_storage/memory.py +25 -25
  155. telegrinder/types/__init__.py +6 -6
  156. telegrinder/types/enums.py +672 -672
  157. telegrinder/types/methods.py +4633 -4633
  158. telegrinder/types/objects.py +6317 -6317
  159. telegrinder/verification_utils.py +32 -32
  160. {telegrinder-0.3.0.post2.dist-info → telegrinder-0.3.2.dist-info}/LICENSE +22 -22
  161. {telegrinder-0.3.0.post2.dist-info → telegrinder-0.3.2.dist-info}/METADATA +1 -1
  162. telegrinder-0.3.2.dist-info/RECORD +164 -0
  163. telegrinder-0.3.0.post2.dist-info/RECORD +0 -164
  164. {telegrinder-0.3.0.post2.dist-info → telegrinder-0.3.2.dist-info}/WHEEL +0 -0
@@ -1,673 +1,673 @@
1
- import enum
2
-
3
-
4
- class ProgrammingLanguage(str, enum.Enum):
5
- """Type of ProgrammingLanguage."""
6
-
7
- ASSEMBLY = "assembly"
8
- PYTHON = "python"
9
- RUST = "rust"
10
- RUBY = "ruby"
11
- JAVA = "java"
12
- C = "c"
13
- C_SHARP = "cs"
14
- CPP = "cpp"
15
- CSS = "css"
16
- OBJECTIVE_C = "Objective-C"
17
- CYTHON = "cython"
18
- CARBON = "carbon"
19
- COBRA = "cobra"
20
- SWIFT = "swift"
21
- LAURELANG = "laurelang"
22
- DART = "dart"
23
- DELPHI = "delphi"
24
- ELIXIR = "elixir"
25
- HASKELL = "haskell"
26
- PASCAL = "pascal"
27
- TYPE_SCRIPT = "ts"
28
- JAVA_SCRIPT = "js"
29
- PHP = "php"
30
- GO = "go"
31
- SQL = "sql"
32
- F_SHARP = "fs"
33
- FORTRAN = "fortran"
34
- KOTLIN = "kotlin"
35
- HTML = "html"
36
- YAML = "yaml"
37
- JSON = "json"
38
- MARKDOWN = "markdown"
39
- MARKUP = "markup"
40
-
41
-
42
- class ChatAction(str, enum.Enum):
43
- """Type of ChatAction.
44
-
45
- Choose one, depending on what the user is about to receive:
46
- - typing for text messages,
47
- - upload_photo for photos,
48
- - record_video or upload_video for videos,
49
- - record_voice or upload_voice for voice notes,
50
- - upload_document for general files,
51
- - choose_sticker for stickers,
52
- - find_location for location data,
53
- - record_video_note or upload_video_note for video notes.
54
-
55
- Docs: https://core.telegram.org/bots/api#sendchataction"""
56
-
57
- TYPING = "typing"
58
- UPLOAD_PHOTO = "upload_photo"
59
- RECORD_VIDEO = "record_video"
60
- UPLOAD_VIDEO = "upload_video"
61
- RECORD_VOICE = "record_voice"
62
- UPLOAD_VOICE = "upload_voice"
63
- UPLOAD_DOCUMENT = "upload_document"
64
- CHOOSE_STICKER = "choose_sticker"
65
- FIND_LOCATION = "find_location"
66
- RECORD_VIDEO_NOTE = "record_video_note"
67
- UPLOAD_VIDEO_NOTE = "upload_video_note"
68
-
69
-
70
- class ReactionEmoji(str, enum.Enum):
71
- """Type of ReactionEmoji.
72
-
73
- Currently, it can be one of `👍`, `👎`, `❤`, `🔥`, `🥰`, `👏`,
74
- `😁`, `🤔`, `🤯`, `😱`, `🤬`, `😢`, `🎉`, `🤩`, `🤮`, `💩`, `🙏`, `👌`, `🕊`, `🤡`, `🥱`,
75
- `🥴`, `😍`, `🐳`, `❤‍🔥`, `🌚`, `🌭`, `💯`, `🤣`, `⚡`, `🍌`, `🏆`, `💔`, `🤨`, `😐`, `🍓`,
76
- `🍾`, `💋`, `🖕`, `😈`, `😴`, `😭`, `🤓`, `👻`, `👨‍💻`, `👀`, `🎃`, `🙈`, `😇`, `😨`, `🤝`,
77
- `✍`, `🤗`, `🫡`, `🎅`, `🎄`, `☃`, `💅`, `🤪`, `🗿`, `🆒`, `💘`, `🙉`, `🦄`, `😘`, `💊`,
78
- `🙊`, `😎`, `👾`, `🤷‍♂`, `🤷`, `🤷‍♀`, `😡`.
79
-
80
- Docs: https://core.telegram.org/bots/api#reactiontypeemoji"""
81
-
82
- THUMBS_UP = "👍"
83
- THUMBS_DOWN = "👎"
84
- RED_HEART = "❤"
85
- FIRE = "🔥"
86
- SMILING_FACE_WITH_HEARTS = "🥰"
87
- CLAPPING_HANDS = "👏"
88
- BEAMING_FACE_WITH_SMILING_EYES = "😁"
89
- THINKING_FACE = "🤔"
90
- EXPLODING_HEAD = "🤯"
91
- FACE_SCREAMING_IN_FEAR = "😱"
92
- FACE_WITH_SYMBOLS_ON_MOUTH = "🤬"
93
- CRYING_FACE = "😢"
94
- PARTY_POPPER = "🎉"
95
- STAR_STRUCK = "🤩"
96
- FACE_VOMITING = "🤮"
97
- PILE_OF_POO = "💩"
98
- FOLDED_HANDS = "🙏"
99
- OK_HAND = "👌"
100
- DOVE = "🕊"
101
- CLOWN_FACE = "🤡"
102
- YAWNING_FACE = "🥱"
103
- WOOZY_FACE = "🥴"
104
- SMILING_FACE_WITH_HEART_EYES = "😍"
105
- SPOUTING_WHALE = "🐳"
106
- HEART_ON_FIRE = "❤‍🔥"
107
- NEW_MOON_FACE = "🌚"
108
- HOT_DOG = "🌭"
109
- HUNDRED_POINTS = "💯"
110
- ROLLING_ON_THE_FLOOR_LAUGHING = "🤣"
111
- HIGH_VOLTAGE = "⚡"
112
- BANANA = "🍌"
113
- TROPHY = "🏆"
114
- BROKEN_HEART = "💔"
115
- FACE_WITH_RAISED_EYEBROW = "🤨"
116
- NEUTRAL_FACE = "😐"
117
- STRAWBERRY = "🍓"
118
- BOTTLE_WITH_POPPING_CORK = "🍾"
119
- KISS_MARK = "💋"
120
- MIDDLE_FINGER = "🖕"
121
- SMILING_FACE_WITH_HORNS = "😈"
122
- SLEEPING_FACE = "😴"
123
- LOUDLY_CRYING_FACE = "😭"
124
- NERD_FACE = "🤓"
125
- GHOST = "👻"
126
- MAN_TECHNOLOGIST = "👨‍💻"
127
- EYES = "👀"
128
- JACK_O_LANTERN = "🎃"
129
- SEE_NO_EVIL_MONKEY = "🙈"
130
- SMILING_FACE_WITH_HALO = "😇"
131
- FEARFUL_FACE = "😨"
132
- HANDSHAKE = "🤝"
133
- WRITING_HAND = "✍"
134
- SMILING_FACE_WITH_OPEN_HANDS = "🤗"
135
- SALUTING_FACE = "🫡"
136
- SANTA_CLAUS = "🎅"
137
- CHRISTMAS_TREE = "🎄"
138
- SNOWMAN = "☃"
139
- NAIL_POLISH = "💅"
140
- ZANY_FACE = "🤪"
141
- MOAI = "🗿"
142
- COOL_BUTTON = "🆒"
143
- HEART_WITH_ARROW = "💘"
144
- HEAR_NO_EVIL_MONKEY = "🙉"
145
- UNICORN = "🦄"
146
- FACE_BLOWING_A_KISS = "😘"
147
- PILL = "💊"
148
- SPEAK_NO_EVIL_MONKEY = "🙊"
149
- SMILING_FACE_WITH_SUNGLASSES = "😎"
150
- ALIEN_MONSTER = "👾"
151
- MAN_SHRUGGING = "🤷‍♂"
152
- PERSON_SHRUGGING = "🤷"
153
- WOMAN_SHRUGGING = "🤷‍♀"
154
- ENRAGED_FACE = "😡"
155
-
156
-
157
- class DefaultAccentColor(int, enum.Enum):
158
- """Type of DefaultAccentColor.
159
-
160
- One of 7 possible user colors:
161
- - Red
162
- - Orange
163
- - Purple
164
- - Green
165
- - Cyan
166
- - Blue
167
- - Pink
168
-
169
- Docs: https://core.telegram.org/bots/api#accent-colors
170
- """
171
-
172
- RED = 0
173
- ORANGE = 1
174
- PURPLE = 2
175
- GREEN = 3
176
- CYAN = 4
177
- BLUE = 5
178
- PINK = 6
179
-
180
-
181
- class TopicIconColor(int, enum.Enum):
182
- """Type of TopicIconColor.
183
-
184
- Docs: https://github.com/telegramdesktop/tdesktop/blob/991fe491c5ae62705d77aa8fdd44a79caf639c45/Telegram/SourceFiles/data/data_forum_topic.cpp#L51-L56
185
- """
186
-
187
- BLUE = 0x6FB9F0
188
- YELLOW = 0xFFD67E
189
- VIOLET = 0xCB86DB
190
- GREEN = 0x8EEE98
191
- ROSE = 0xFF93B2
192
- RED = 0xFB6F5F
193
-
194
-
195
- class ChatBoostSourceType(str, enum.Enum):
196
- """Type of ChatBoostSourceType
197
- Docs: https://core.telegram.org/bots/api#chatboostsource"""
198
-
199
- PREMIUM = "premium"
200
- GIFT_CODE = "gift_code"
201
- GIVEAWAY = "giveaway"
202
-
203
-
204
- class ContentType(str, enum.Enum):
205
- """Type of ContentType."""
206
-
207
- TEXT = "text"
208
- ANIMATION = "animation"
209
- AUDIO = "audio"
210
- DOCUMENT = "document"
211
- PHOTO = "photo"
212
- STICKER = "sticker"
213
- STORY = "story"
214
- VIDEO = "video"
215
- VIDEO_NOTE = "video_note"
216
- VOICE = "voice"
217
- HAS_MEDIA_SPOILER = "has_media_spoiler"
218
- CONTACT = "contact"
219
- DICE = "dice"
220
- GAME = "game"
221
- POLL = "poll"
222
- VENUE = "venue"
223
- LOCATION = "location"
224
- NEW_CHAT_MEMBERS = "new_chat_members"
225
- LEFT_CHAT_MEMBER = "left_chat_member"
226
- NEW_CHAT_TITLE = "new_chat_title"
227
- NEW_CHAT_PHOTO = "new_chat_photo"
228
- DELETE_CHAT_PHOTO = "delete_chat_photo"
229
- GROUP_CHAT_CREATED = "group_chat_created"
230
- BOOST_ADDED = "boost_added"
231
- SUPERGROUP_CHAT_CREATED = "supergroup_chat_created"
232
- CHANNEL_CHAT_CREATED = "channel_chat_created"
233
- MESSAGE_AUTO_DELETE_TIMER_CHANGED = "message_auto_delete_timer_changed"
234
- MIGRATE_TO_CHAT_ID = "migrate_to_chat_id"
235
- MIGRATE_FROM_CHAT_ID = "migrate_from_chat_id"
236
- PINNED_MESSAGE = "pinned_message"
237
- INVOICE = "invoice"
238
- SUCCESSFUL_PAYMENT = "successful_payment"
239
- USERS_SHARED = "users_shared"
240
- CHAT_SHARED = "chat_shared"
241
- CONNECTED_WEBSITE = "connected_website"
242
- WRITE_ACCESS_ALLOWED = "write_access_allowed"
243
- PASSPORT_DATA = "passport_data"
244
- PROXIMITY_ALERT_TRIGGERED = "proximity_alert_triggered"
245
- FORUM_TOPIC_CREATED = "forum_topic_created"
246
- FORUM_TOPIC_EDITED = "forum_topic_edited"
247
- FORUM_TOPIC_CLOSED = "forum_topic_closed"
248
- FORUM_TOPIC_REOPENED = "forum_topic_reopened"
249
- GENERAL_FORUM_TOPIC_HIDDEN = "general_forum_topic_hidden"
250
- GENERAL_FORUM_TOPIC_UNHIDDEN = "general_forum_topic_unhidden"
251
- GIVEAWAY_CREATED = "giveaway_created"
252
- GIVEAWAY = "giveaway"
253
- GIVEAWAY_WINNERS = "giveaway_winners"
254
- GIVEAWAY_COMPLETED = "giveaway_completed"
255
- VIDEO_CHAT_SCHEDULED = "video_chat_scheduled"
256
- VIDEO_CHAT_STARTED = "video_chat_started"
257
- VIDEO_CHAT_ENDED = "video_chat_ended"
258
- VIDEO_CHAT_PARTICIPANTS_INVITED = "video_chat_participants_invited"
259
- WEB_APP_DATA = "web_app_data"
260
- USER_SHARED = "user_shared"
261
- UNKNOWN = "unknown"
262
-
263
-
264
- class Currency(str, enum.Enum):
265
- """Type of Currency.
266
- Docs: https://core.telegram.org/bots/payments#supported-currencies"""
267
-
268
- AED = "AED"
269
- AFN = "AFN"
270
- ALL = "ALL"
271
- AMD = "AMD"
272
- ARS = "ARS"
273
- AUD = "AUD"
274
- AZN = "AZN"
275
- BAM = "BAM"
276
- BDT = "BDT"
277
- BGN = "BGN"
278
- BND = "BND"
279
- BOB = "BOB"
280
- BRL = "BRL"
281
- BYN = "BYN"
282
- CAD = "CAD"
283
- CHF = "CHF"
284
- CLP = "CLP"
285
- CNY = "CNY"
286
- COP = "COP"
287
- CRC = "CRC"
288
- CZK = "CZK"
289
- DKK = "DKK"
290
- DOP = "DOP"
291
- DZD = "DZD"
292
- EGP = "EGP"
293
- ETB = "ETB"
294
- EUR = "EUR"
295
- GBP = "GBP"
296
- GEL = "GEL"
297
- GTQ = "GTQ"
298
- HKD = "HKD"
299
- HNL = "HNL"
300
- HRK = "HRK"
301
- HUF = "HUF"
302
- IDR = "IDR"
303
- ILS = "ILS"
304
- INR = "INR"
305
- ISK = "ISK"
306
- JMD = "JMD"
307
- JPY = "JPY"
308
- KES = "KES"
309
- KGS = "KGS"
310
- KRW = "KRW"
311
- KZT = "KZT"
312
- LBP = "LBP"
313
- LKR = "LKR"
314
- MAD = "MAD"
315
- MDL = "MDL"
316
- MNT = "MNT"
317
- MUR = "MUR"
318
- MVR = "MVR"
319
- MXN = "MXN"
320
- MYR = "MYR"
321
- MZN = "MZN"
322
- NGN = "NGN"
323
- NIO = "NIO"
324
- NOK = "NOK"
325
- NPR = "NPR"
326
- NZD = "NZD"
327
- PAB = "PAB"
328
- PEN = "PEN"
329
- PHP = "PHP"
330
- PKR = "PKR"
331
- PLN = "PLN"
332
- PYG = "PYG"
333
- QAR = "QAR"
334
- RON = "RON"
335
- RSD = "RSD"
336
- RUB = "RUB"
337
- SAR = "SAR"
338
- SEK = "SEK"
339
- SGD = "SGD"
340
- THB = "THB"
341
- TJS = "TJS"
342
- TRY = "TRY"
343
- TTD = "TTD"
344
- TWD = "TWD"
345
- TZS = "TZS"
346
- UAH = "UAH"
347
- UGX = "UGX"
348
- USD = "USD"
349
- UYU = "UYU"
350
- UZS = "UZS"
351
- VND = "VND"
352
- YER = "YER"
353
- ZAR = "ZAR"
354
- XTR = "XTR"
355
- """Telegram stars."""
356
-
357
-
358
- class InlineQueryResultType(str, enum.Enum):
359
- """Type of InlineQueryResultType.
360
- Docs: https://core.telegram.org/bots/api#inlinequeryresult"""
361
-
362
- AUDIO = "audio"
363
- DOCUMENT = "document"
364
- GIF = "gif"
365
- MPEG4_GIF = "mpeg4_gif"
366
- PHOTO = "photo"
367
- STICKER = "sticker"
368
- VIDEO = "video"
369
- VOICE = "voice"
370
- ARTICLE = "article"
371
- CONTACT = "contact"
372
- GAME = "game"
373
- LOCATION = "location"
374
- VENUE = "venue"
375
-
376
-
377
- class MenuButtonType(str, enum.Enum):
378
- """TType of MenuButtonType.
379
- Docs: https://core.telegram.org/bots/api#menubuttondefault
380
- """
381
-
382
- DEFAULT = "default"
383
- COMMANDS = "commands"
384
- WEB_APP = "web_app"
385
-
386
-
387
- class InputMediaType(str, enum.Enum):
388
- """Type of InputMediaType.
389
- Docs: https://core.telegram.org/bots/api#inputmedia
390
- """
391
-
392
- ANIMATION = "animation"
393
- AUDIO = "audio"
394
- DOCUMENT = "document"
395
- PHOTO = "photo"
396
- VIDEO = "video"
397
-
398
-
399
- class UpdateType(str, enum.Enum):
400
- """Type of update."""
401
-
402
- MESSAGE = "message"
403
- EDITED_MESSAGE = "edited_message"
404
- CHANNEL_POST = "channel_post"
405
- EDITED_CHANNEL_POST = "edited_channel_post"
406
- MESSAGE_REACTION = "message_reaction"
407
- MESSAGE_REACTION_COUNT = "message_reaction_count"
408
- INLINE_QUERY = "inline_query"
409
- CHOSEN_INLINE_RESULT = "chosen_inline_result"
410
- CALLBACK_QUERY = "callback_query"
411
- SHIPPING_QUERY = "shipping_query"
412
- PRE_CHECKOUT_QUERY = "pre_checkout_query"
413
- POLL = "poll"
414
- POLL_ANSWER = "poll_answer"
415
- MY_CHAT_MEMBER = "my_chat_member"
416
- CHAT_MEMBER = "chat_member"
417
- CHAT_JOIN_REQUEST = "chat_join_request"
418
- CHAT_BOOST = "chat_boost"
419
- REMOVED_CHAT_BOOST = "removed_chat_boost"
420
- BUSINESS_CONNECTION = "business_connection"
421
- BUSINESS_MESSAGE = "business_message"
422
- EDITED_BUSINESS_MESSAGE = "edited_business_message"
423
- DELETE_BUSINESS_MESSAGE = "delete_business_messages"
424
-
425
-
426
- class BotCommandScopeType(str, enum.Enum):
427
- """Type of BotCommandScope.
428
- Represents the scope to which bot commands are applied."""
429
-
430
- DEFAULT = "default"
431
- ALL_PRIVATE_CHATS = "all_private_chats"
432
- ALL_GROUP_CHATS = "all_group_chats"
433
- ALL_CHAT_ADMINISTRATORS = "all_chat_administrators"
434
- CHAT = "chat"
435
- CHAT_ADMINISTRATORS = "chat_administrators"
436
- CHAT_MEMBER = "chat_member"
437
-
438
-
439
- class ChatType(str, enum.Enum):
440
- """Type of chat, can be either `private`, `group`, `supergroup` or `channel`."""
441
-
442
- PRIVATE = "private"
443
- GROUP = "group"
444
- SUPERGROUP = "supergroup"
445
- CHANNEL = "channel"
446
- SENDER = "sender"
447
-
448
-
449
- class ChatMemberStatus(str, enum.Enum):
450
- """Type of ChatMemberStatus."""
451
-
452
- CREATOR = "creator"
453
- ADMINISTRATOR = "administrator"
454
- MEMBER = "member"
455
- RESTRICTED = "restricted"
456
- LEFT = "left"
457
- KICKED = "kicked"
458
-
459
-
460
- class DiceEmoji(str, enum.Enum):
461
- """Emoji on which the dice throw animation is based."""
462
-
463
- DICE = "🎲"
464
- DART = "🎯"
465
- BASKETBALL = "🏀"
466
- FOOTBALL = "⚽"
467
- SLOT_MACHINE = "🎰"
468
- BOWLING = "🎳"
469
-
470
-
471
- class MessageEntityType(str, enum.Enum):
472
- """Type of the entity.
473
- Currently, can be `mention` (`@username`), `hashtag`
474
- (`#hashtag`), `cashtag` (`$USD`), `bot_command` (`/start@jobs_bot`),
475
- `url` (`https://telegram.org`), `email` (`do-not-reply@telegram.org`),
476
- `phone_number` (`+1-212-555-0123`), `bold` (**bold text**), `italic`
477
- (*italic text*), `underline` (underlined text), `strikethrough` (strikethrough
478
- text), `spoiler` (spoiler message), `code` (monowidth string), `pre`
479
- (monowidth block), `text_link` (for clickable text URLs), `text_mention`
480
- (for users [without usernames](https://telegram.org/blog/edit#new-mentions)),
481
- `custom_emoji` (for inline custom emoji stickers), `blockquote` (blockquote)
482
- [docs](https://core.telegram.org/bots/api#messageentity)"""
483
-
484
- MENTION = "mention"
485
- HASHTAG = "hashtag"
486
- CASHTAG = "cashtag"
487
- BOT_COMMAND = "bot_command"
488
- URL = "url"
489
- EMAIL = "email"
490
- PHONE_NUMBER = "phone_number"
491
- BOLD = "bold"
492
- ITALIC = "italic"
493
- UNDERLINE = "underline"
494
- STRIKETHROUGH = "strikethrough"
495
- SPOILER = "spoiler"
496
- BLOCKQUOTE = "blockquote"
497
- CODE = "code"
498
- PRE = "pre"
499
- TEXT_LINK = "text_link"
500
- TEXT_MENTION = "text_mention"
501
- CUSTOM_EMOJI = "custom_emoji"
502
- EXPANDABLE_BLOCKQUOTE = "expandable_blockquote"
503
-
504
-
505
- class PollType(str, enum.Enum):
506
- """Poll type, currently can be `regular` or `quiz`."""
507
-
508
- REGULAR = "regular"
509
- QUIZ = "quiz"
510
-
511
-
512
- class StickerType(str, enum.Enum):
513
- """Type of the sticker, currently one of `regular`, `mask`, `custom_emoji`.
514
- The type of the sticker is independent from its format, which is determined
515
- by the fields `is_animated` and `is_video`."""
516
-
517
- REGULAR = "regular"
518
- MASK = "mask"
519
- CUSTOM_EMOJI = "custom_emoji"
520
-
521
-
522
- class MessageOriginType(str, enum.Enum):
523
- """Type of MessageOriginType
524
- Docs: https://core.telegram.org/bots/api#messageorigin"""
525
-
526
- USER = "user"
527
- HIDDEN_USER = "hidden_user"
528
- CHAT = "chat"
529
- CHANNEL = "channel"
530
-
531
-
532
- class StickerSetStickerType(str, enum.Enum):
533
- """Type of stickers in the set, currently one of `regular`, `mask`, `custom_emoji`."""
534
-
535
- REGULAR = "regular"
536
- MASK = "mask"
537
- CUSTOM_EMOJI = "custom_emoji"
538
-
539
-
540
- class MaskPositionPoint(str, enum.Enum):
541
- """The part of the face relative to which the mask should be placed. One of `forehead`,
542
- `eyes`, `mouth`, or `chin`."""
543
-
544
- FOREHEAD = "forehead"
545
- EYES = "eyes"
546
- MOUTH = "mouth"
547
- CHIN = "chin"
548
-
549
-
550
- class InlineQueryChatType(str, enum.Enum):
551
- """Type of the chat from which the inline query was sent. Can be
552
- either `sender` for a private chat with the inline query sender, `private`,
553
- `group`, `supergroup`, or `channel`. The chat type should be always known
554
- for requests sent from official clients and most third-party clients,
555
- unless the request was sent from a secret chat."""
556
-
557
- SENDER = "sender"
558
- PRIVATE = "private"
559
- GROUP = "group"
560
- SUPERGROUP = "supergroup"
561
- CHANNEL = "channel"
562
-
563
-
564
- class InlineQueryResultMimeType(str, enum.Enum):
565
- """MIME type of the content of the video URL, `text/html` or `video/mp4`."""
566
-
567
- TEXT_HTML = "text/html"
568
- VIDEO_MP4 = "video/mp4"
569
-
570
-
571
- class InlineQueryResultThumbnailMimeType(str, enum.Enum):
572
- """MIME type of the thumbnail, must be one of `image/jpeg`, `image/gif`,
573
- or `video/mp4`. Defaults to `image/jpeg`
574
- """
575
-
576
- IMAGE_JPEG = "image/jpeg"
577
- IMAGE_GIF = "image/gif"
578
- VIDEO_MP4 = "video/mp4"
579
-
580
-
581
- class PassportElementErrorType(str, enum.Enum):
582
- """Type of PassportElementErrorType.
583
- Docs: https://core.telegram.org/bots/api#passportelementerror
584
- """
585
-
586
- DATA = "data"
587
- FRONT_SIDE = "front_side"
588
- REVERSE_SIDE = "reverse_side"
589
- SELFIE = "selfie"
590
- FILE = "file"
591
- FILES = "files"
592
- TRANSLATION_FILE = "translation_file"
593
- TRANSLATION_FILES = "translation_files"
594
- UNSPECIFIED = "unspecified"
595
-
596
-
597
- class ReactionTypeType(str, enum.Enum):
598
- """Type of ReactionTypeType.
599
- Docs: https://core.telegram.org/bots/api#reactiontype
600
- """
601
-
602
- EMOJI = "emoji"
603
- CUSTOM_EMOJI = "custom_emoji"
604
-
605
-
606
- class InlineQueryResultGifThumbnailMimeType(str, enum.Enum):
607
- """MIME type of the thumbnail, must be one of `image/jpeg`, `image/gif`,
608
- or `video/mp4`. Defaults to `image/jpeg`.
609
- """
610
-
611
- IMAGE_JPEG = "image/jpeg"
612
- IMAGE_GIF = "image/gif"
613
- VIDEO_MP4 = "video/mp4"
614
-
615
-
616
- class InlineQueryResultMpeg4GifThumbnailMimeType(str, enum.Enum):
617
- """MIME type of the thumbnail, must be one of `image/jpeg`, `image/gif`,
618
- or `video/mp4`. Defaults to `image/jpeg`.
619
- """
620
-
621
- IMAGE_JPEG = "image/jpeg"
622
- IMAGE_GIF = "image/gif"
623
- VIDEO_MP4 = "video/mp4"
624
-
625
-
626
- class InlineQueryResultVideoMimeType(str, enum.Enum):
627
- """MIME type of the content of the video URL, `text/html` or `video/mp4`."""
628
-
629
- TEXT_HTML = "text/html"
630
- VIDEO_MP4 = "video/mp4"
631
-
632
-
633
- class InlineQueryResultDocumentMimeType(str, enum.Enum):
634
- """MIME type of the content of the file, either `application/pdf` or `application/zip`."""
635
-
636
- APPLICATION_PDF = "application/pdf"
637
- APPLICATION_ZIP = "application/zip"
638
-
639
-
640
- class EncryptedPassportElementType(str, enum.Enum):
641
- """Element type. One of `personal_details`, `passport`, `driver_license`,
642
- `identity_card`, `internal_passport`, `address`, `utility_bill`,
643
- `bank_statement`, `rental_agreement`, `passport_registration`,
644
- `temporary_registration`, `phone_number`, `email`.
645
- """
646
-
647
- PERSONAL_DETAILS = "personal_details"
648
- PASSPORT = "passport"
649
- DRIVER_LICENSE = "driver_license"
650
- IDENTITY_CARD = "identity_card"
651
- INTERNAL_PASSPORT = "internal_passport"
652
- ADDRESS = "address"
653
- UTILITY_BILL = "utility_bill"
654
- BANK_STATEMENT = "bank_statement"
655
- RENTAL_AGREEMENT = "rental_agreement"
656
- PASSPORT_REGISTRATION = "passport_registration"
657
- TEMPORARY_REGISTRATION = "temporary_registration"
658
- PHONE_NUMBER = "phone_number"
659
- EMAIL = "email"
660
-
661
-
662
- class StickerFormat(str, enum.Enum):
663
- """Format of the sticker."""
664
-
665
- STATIC = "static"
666
- ANIMATED = "animated"
667
- VIDEO = "video"
668
-
669
-
670
- __all__ = (
1
+ import enum
2
+
3
+
4
+ class ProgrammingLanguage(str, enum.Enum):
5
+ """Type of ProgrammingLanguage."""
6
+
7
+ ASSEMBLY = "assembly"
8
+ PYTHON = "python"
9
+ RUST = "rust"
10
+ RUBY = "ruby"
11
+ JAVA = "java"
12
+ C = "c"
13
+ C_SHARP = "cs"
14
+ CPP = "cpp"
15
+ CSS = "css"
16
+ OBJECTIVE_C = "Objective-C"
17
+ CYTHON = "cython"
18
+ CARBON = "carbon"
19
+ COBRA = "cobra"
20
+ SWIFT = "swift"
21
+ LAURELANG = "laurelang"
22
+ DART = "dart"
23
+ DELPHI = "delphi"
24
+ ELIXIR = "elixir"
25
+ HASKELL = "haskell"
26
+ PASCAL = "pascal"
27
+ TYPE_SCRIPT = "ts"
28
+ JAVA_SCRIPT = "js"
29
+ PHP = "php"
30
+ GO = "go"
31
+ SQL = "sql"
32
+ F_SHARP = "fs"
33
+ FORTRAN = "fortran"
34
+ KOTLIN = "kotlin"
35
+ HTML = "html"
36
+ YAML = "yaml"
37
+ JSON = "json"
38
+ MARKDOWN = "markdown"
39
+ MARKUP = "markup"
40
+
41
+
42
+ class ChatAction(str, enum.Enum):
43
+ """Type of ChatAction.
44
+
45
+ Choose one, depending on what the user is about to receive:
46
+ - typing for text messages,
47
+ - upload_photo for photos,
48
+ - record_video or upload_video for videos,
49
+ - record_voice or upload_voice for voice notes,
50
+ - upload_document for general files,
51
+ - choose_sticker for stickers,
52
+ - find_location for location data,
53
+ - record_video_note or upload_video_note for video notes.
54
+
55
+ Docs: https://core.telegram.org/bots/api#sendchataction"""
56
+
57
+ TYPING = "typing"
58
+ UPLOAD_PHOTO = "upload_photo"
59
+ RECORD_VIDEO = "record_video"
60
+ UPLOAD_VIDEO = "upload_video"
61
+ RECORD_VOICE = "record_voice"
62
+ UPLOAD_VOICE = "upload_voice"
63
+ UPLOAD_DOCUMENT = "upload_document"
64
+ CHOOSE_STICKER = "choose_sticker"
65
+ FIND_LOCATION = "find_location"
66
+ RECORD_VIDEO_NOTE = "record_video_note"
67
+ UPLOAD_VIDEO_NOTE = "upload_video_note"
68
+
69
+
70
+ class ReactionEmoji(str, enum.Enum):
71
+ """Type of ReactionEmoji.
72
+
73
+ Currently, it can be one of `👍`, `👎`, `❤`, `🔥`, `🥰`, `👏`,
74
+ `😁`, `🤔`, `🤯`, `😱`, `🤬`, `😢`, `🎉`, `🤩`, `🤮`, `💩`, `🙏`, `👌`, `🕊`, `🤡`, `🥱`,
75
+ `🥴`, `😍`, `🐳`, `❤‍🔥`, `🌚`, `🌭`, `💯`, `🤣`, `⚡`, `🍌`, `🏆`, `💔`, `🤨`, `😐`, `🍓`,
76
+ `🍾`, `💋`, `🖕`, `😈`, `😴`, `😭`, `🤓`, `👻`, `👨‍💻`, `👀`, `🎃`, `🙈`, `😇`, `😨`, `🤝`,
77
+ `✍`, `🤗`, `🫡`, `🎅`, `🎄`, `☃`, `💅`, `🤪`, `🗿`, `🆒`, `💘`, `🙉`, `🦄`, `😘`, `💊`,
78
+ `🙊`, `😎`, `👾`, `🤷‍♂`, `🤷`, `🤷‍♀`, `😡`.
79
+
80
+ Docs: https://core.telegram.org/bots/api#reactiontypeemoji"""
81
+
82
+ THUMBS_UP = "👍"
83
+ THUMBS_DOWN = "👎"
84
+ RED_HEART = "❤"
85
+ FIRE = "🔥"
86
+ SMILING_FACE_WITH_HEARTS = "🥰"
87
+ CLAPPING_HANDS = "👏"
88
+ BEAMING_FACE_WITH_SMILING_EYES = "😁"
89
+ THINKING_FACE = "🤔"
90
+ EXPLODING_HEAD = "🤯"
91
+ FACE_SCREAMING_IN_FEAR = "😱"
92
+ FACE_WITH_SYMBOLS_ON_MOUTH = "🤬"
93
+ CRYING_FACE = "😢"
94
+ PARTY_POPPER = "🎉"
95
+ STAR_STRUCK = "🤩"
96
+ FACE_VOMITING = "🤮"
97
+ PILE_OF_POO = "💩"
98
+ FOLDED_HANDS = "🙏"
99
+ OK_HAND = "👌"
100
+ DOVE = "🕊"
101
+ CLOWN_FACE = "🤡"
102
+ YAWNING_FACE = "🥱"
103
+ WOOZY_FACE = "🥴"
104
+ SMILING_FACE_WITH_HEART_EYES = "😍"
105
+ SPOUTING_WHALE = "🐳"
106
+ HEART_ON_FIRE = "❤‍🔥"
107
+ NEW_MOON_FACE = "🌚"
108
+ HOT_DOG = "🌭"
109
+ HUNDRED_POINTS = "💯"
110
+ ROLLING_ON_THE_FLOOR_LAUGHING = "🤣"
111
+ HIGH_VOLTAGE = "⚡"
112
+ BANANA = "🍌"
113
+ TROPHY = "🏆"
114
+ BROKEN_HEART = "💔"
115
+ FACE_WITH_RAISED_EYEBROW = "🤨"
116
+ NEUTRAL_FACE = "😐"
117
+ STRAWBERRY = "🍓"
118
+ BOTTLE_WITH_POPPING_CORK = "🍾"
119
+ KISS_MARK = "💋"
120
+ MIDDLE_FINGER = "🖕"
121
+ SMILING_FACE_WITH_HORNS = "😈"
122
+ SLEEPING_FACE = "😴"
123
+ LOUDLY_CRYING_FACE = "😭"
124
+ NERD_FACE = "🤓"
125
+ GHOST = "👻"
126
+ MAN_TECHNOLOGIST = "👨‍💻"
127
+ EYES = "👀"
128
+ JACK_O_LANTERN = "🎃"
129
+ SEE_NO_EVIL_MONKEY = "🙈"
130
+ SMILING_FACE_WITH_HALO = "😇"
131
+ FEARFUL_FACE = "😨"
132
+ HANDSHAKE = "🤝"
133
+ WRITING_HAND = "✍"
134
+ SMILING_FACE_WITH_OPEN_HANDS = "🤗"
135
+ SALUTING_FACE = "🫡"
136
+ SANTA_CLAUS = "🎅"
137
+ CHRISTMAS_TREE = "🎄"
138
+ SNOWMAN = "☃"
139
+ NAIL_POLISH = "💅"
140
+ ZANY_FACE = "🤪"
141
+ MOAI = "🗿"
142
+ COOL_BUTTON = "🆒"
143
+ HEART_WITH_ARROW = "💘"
144
+ HEAR_NO_EVIL_MONKEY = "🙉"
145
+ UNICORN = "🦄"
146
+ FACE_BLOWING_A_KISS = "😘"
147
+ PILL = "💊"
148
+ SPEAK_NO_EVIL_MONKEY = "🙊"
149
+ SMILING_FACE_WITH_SUNGLASSES = "😎"
150
+ ALIEN_MONSTER = "👾"
151
+ MAN_SHRUGGING = "🤷‍♂"
152
+ PERSON_SHRUGGING = "🤷"
153
+ WOMAN_SHRUGGING = "🤷‍♀"
154
+ ENRAGED_FACE = "😡"
155
+
156
+
157
+ class DefaultAccentColor(int, enum.Enum):
158
+ """Type of DefaultAccentColor.
159
+
160
+ One of 7 possible user colors:
161
+ - Red
162
+ - Orange
163
+ - Purple
164
+ - Green
165
+ - Cyan
166
+ - Blue
167
+ - Pink
168
+
169
+ Docs: https://core.telegram.org/bots/api#accent-colors
170
+ """
171
+
172
+ RED = 0
173
+ ORANGE = 1
174
+ PURPLE = 2
175
+ GREEN = 3
176
+ CYAN = 4
177
+ BLUE = 5
178
+ PINK = 6
179
+
180
+
181
+ class TopicIconColor(int, enum.Enum):
182
+ """Type of TopicIconColor.
183
+
184
+ Docs: https://github.com/telegramdesktop/tdesktop/blob/991fe491c5ae62705d77aa8fdd44a79caf639c45/Telegram/SourceFiles/data/data_forum_topic.cpp#L51-L56
185
+ """
186
+
187
+ BLUE = 0x6FB9F0
188
+ YELLOW = 0xFFD67E
189
+ VIOLET = 0xCB86DB
190
+ GREEN = 0x8EEE98
191
+ ROSE = 0xFF93B2
192
+ RED = 0xFB6F5F
193
+
194
+
195
+ class ChatBoostSourceType(str, enum.Enum):
196
+ """Type of ChatBoostSourceType
197
+ Docs: https://core.telegram.org/bots/api#chatboostsource"""
198
+
199
+ PREMIUM = "premium"
200
+ GIFT_CODE = "gift_code"
201
+ GIVEAWAY = "giveaway"
202
+
203
+
204
+ class ContentType(str, enum.Enum):
205
+ """Type of ContentType."""
206
+
207
+ TEXT = "text"
208
+ ANIMATION = "animation"
209
+ AUDIO = "audio"
210
+ DOCUMENT = "document"
211
+ PHOTO = "photo"
212
+ STICKER = "sticker"
213
+ STORY = "story"
214
+ VIDEO = "video"
215
+ VIDEO_NOTE = "video_note"
216
+ VOICE = "voice"
217
+ HAS_MEDIA_SPOILER = "has_media_spoiler"
218
+ CONTACT = "contact"
219
+ DICE = "dice"
220
+ GAME = "game"
221
+ POLL = "poll"
222
+ VENUE = "venue"
223
+ LOCATION = "location"
224
+ NEW_CHAT_MEMBERS = "new_chat_members"
225
+ LEFT_CHAT_MEMBER = "left_chat_member"
226
+ NEW_CHAT_TITLE = "new_chat_title"
227
+ NEW_CHAT_PHOTO = "new_chat_photo"
228
+ DELETE_CHAT_PHOTO = "delete_chat_photo"
229
+ GROUP_CHAT_CREATED = "group_chat_created"
230
+ BOOST_ADDED = "boost_added"
231
+ SUPERGROUP_CHAT_CREATED = "supergroup_chat_created"
232
+ CHANNEL_CHAT_CREATED = "channel_chat_created"
233
+ MESSAGE_AUTO_DELETE_TIMER_CHANGED = "message_auto_delete_timer_changed"
234
+ MIGRATE_TO_CHAT_ID = "migrate_to_chat_id"
235
+ MIGRATE_FROM_CHAT_ID = "migrate_from_chat_id"
236
+ PINNED_MESSAGE = "pinned_message"
237
+ INVOICE = "invoice"
238
+ SUCCESSFUL_PAYMENT = "successful_payment"
239
+ USERS_SHARED = "users_shared"
240
+ CHAT_SHARED = "chat_shared"
241
+ CONNECTED_WEBSITE = "connected_website"
242
+ WRITE_ACCESS_ALLOWED = "write_access_allowed"
243
+ PASSPORT_DATA = "passport_data"
244
+ PROXIMITY_ALERT_TRIGGERED = "proximity_alert_triggered"
245
+ FORUM_TOPIC_CREATED = "forum_topic_created"
246
+ FORUM_TOPIC_EDITED = "forum_topic_edited"
247
+ FORUM_TOPIC_CLOSED = "forum_topic_closed"
248
+ FORUM_TOPIC_REOPENED = "forum_topic_reopened"
249
+ GENERAL_FORUM_TOPIC_HIDDEN = "general_forum_topic_hidden"
250
+ GENERAL_FORUM_TOPIC_UNHIDDEN = "general_forum_topic_unhidden"
251
+ GIVEAWAY_CREATED = "giveaway_created"
252
+ GIVEAWAY = "giveaway"
253
+ GIVEAWAY_WINNERS = "giveaway_winners"
254
+ GIVEAWAY_COMPLETED = "giveaway_completed"
255
+ VIDEO_CHAT_SCHEDULED = "video_chat_scheduled"
256
+ VIDEO_CHAT_STARTED = "video_chat_started"
257
+ VIDEO_CHAT_ENDED = "video_chat_ended"
258
+ VIDEO_CHAT_PARTICIPANTS_INVITED = "video_chat_participants_invited"
259
+ WEB_APP_DATA = "web_app_data"
260
+ USER_SHARED = "user_shared"
261
+ UNKNOWN = "unknown"
262
+
263
+
264
+ class Currency(str, enum.Enum):
265
+ """Type of Currency.
266
+ Docs: https://core.telegram.org/bots/payments#supported-currencies"""
267
+
268
+ AED = "AED"
269
+ AFN = "AFN"
270
+ ALL = "ALL"
271
+ AMD = "AMD"
272
+ ARS = "ARS"
273
+ AUD = "AUD"
274
+ AZN = "AZN"
275
+ BAM = "BAM"
276
+ BDT = "BDT"
277
+ BGN = "BGN"
278
+ BND = "BND"
279
+ BOB = "BOB"
280
+ BRL = "BRL"
281
+ BYN = "BYN"
282
+ CAD = "CAD"
283
+ CHF = "CHF"
284
+ CLP = "CLP"
285
+ CNY = "CNY"
286
+ COP = "COP"
287
+ CRC = "CRC"
288
+ CZK = "CZK"
289
+ DKK = "DKK"
290
+ DOP = "DOP"
291
+ DZD = "DZD"
292
+ EGP = "EGP"
293
+ ETB = "ETB"
294
+ EUR = "EUR"
295
+ GBP = "GBP"
296
+ GEL = "GEL"
297
+ GTQ = "GTQ"
298
+ HKD = "HKD"
299
+ HNL = "HNL"
300
+ HRK = "HRK"
301
+ HUF = "HUF"
302
+ IDR = "IDR"
303
+ ILS = "ILS"
304
+ INR = "INR"
305
+ ISK = "ISK"
306
+ JMD = "JMD"
307
+ JPY = "JPY"
308
+ KES = "KES"
309
+ KGS = "KGS"
310
+ KRW = "KRW"
311
+ KZT = "KZT"
312
+ LBP = "LBP"
313
+ LKR = "LKR"
314
+ MAD = "MAD"
315
+ MDL = "MDL"
316
+ MNT = "MNT"
317
+ MUR = "MUR"
318
+ MVR = "MVR"
319
+ MXN = "MXN"
320
+ MYR = "MYR"
321
+ MZN = "MZN"
322
+ NGN = "NGN"
323
+ NIO = "NIO"
324
+ NOK = "NOK"
325
+ NPR = "NPR"
326
+ NZD = "NZD"
327
+ PAB = "PAB"
328
+ PEN = "PEN"
329
+ PHP = "PHP"
330
+ PKR = "PKR"
331
+ PLN = "PLN"
332
+ PYG = "PYG"
333
+ QAR = "QAR"
334
+ RON = "RON"
335
+ RSD = "RSD"
336
+ RUB = "RUB"
337
+ SAR = "SAR"
338
+ SEK = "SEK"
339
+ SGD = "SGD"
340
+ THB = "THB"
341
+ TJS = "TJS"
342
+ TRY = "TRY"
343
+ TTD = "TTD"
344
+ TWD = "TWD"
345
+ TZS = "TZS"
346
+ UAH = "UAH"
347
+ UGX = "UGX"
348
+ USD = "USD"
349
+ UYU = "UYU"
350
+ UZS = "UZS"
351
+ VND = "VND"
352
+ YER = "YER"
353
+ ZAR = "ZAR"
354
+ XTR = "XTR"
355
+ """Telegram stars."""
356
+
357
+
358
+ class InlineQueryResultType(str, enum.Enum):
359
+ """Type of InlineQueryResultType.
360
+ Docs: https://core.telegram.org/bots/api#inlinequeryresult"""
361
+
362
+ AUDIO = "audio"
363
+ DOCUMENT = "document"
364
+ GIF = "gif"
365
+ MPEG4_GIF = "mpeg4_gif"
366
+ PHOTO = "photo"
367
+ STICKER = "sticker"
368
+ VIDEO = "video"
369
+ VOICE = "voice"
370
+ ARTICLE = "article"
371
+ CONTACT = "contact"
372
+ GAME = "game"
373
+ LOCATION = "location"
374
+ VENUE = "venue"
375
+
376
+
377
+ class MenuButtonType(str, enum.Enum):
378
+ """TType of MenuButtonType.
379
+ Docs: https://core.telegram.org/bots/api#menubuttondefault
380
+ """
381
+
382
+ DEFAULT = "default"
383
+ COMMANDS = "commands"
384
+ WEB_APP = "web_app"
385
+
386
+
387
+ class InputMediaType(str, enum.Enum):
388
+ """Type of InputMediaType.
389
+ Docs: https://core.telegram.org/bots/api#inputmedia
390
+ """
391
+
392
+ ANIMATION = "animation"
393
+ AUDIO = "audio"
394
+ DOCUMENT = "document"
395
+ PHOTO = "photo"
396
+ VIDEO = "video"
397
+
398
+
399
+ class UpdateType(str, enum.Enum):
400
+ """Type of update."""
401
+
402
+ MESSAGE = "message"
403
+ EDITED_MESSAGE = "edited_message"
404
+ CHANNEL_POST = "channel_post"
405
+ EDITED_CHANNEL_POST = "edited_channel_post"
406
+ MESSAGE_REACTION = "message_reaction"
407
+ MESSAGE_REACTION_COUNT = "message_reaction_count"
408
+ INLINE_QUERY = "inline_query"
409
+ CHOSEN_INLINE_RESULT = "chosen_inline_result"
410
+ CALLBACK_QUERY = "callback_query"
411
+ SHIPPING_QUERY = "shipping_query"
412
+ PRE_CHECKOUT_QUERY = "pre_checkout_query"
413
+ POLL = "poll"
414
+ POLL_ANSWER = "poll_answer"
415
+ MY_CHAT_MEMBER = "my_chat_member"
416
+ CHAT_MEMBER = "chat_member"
417
+ CHAT_JOIN_REQUEST = "chat_join_request"
418
+ CHAT_BOOST = "chat_boost"
419
+ REMOVED_CHAT_BOOST = "removed_chat_boost"
420
+ BUSINESS_CONNECTION = "business_connection"
421
+ BUSINESS_MESSAGE = "business_message"
422
+ EDITED_BUSINESS_MESSAGE = "edited_business_message"
423
+ DELETE_BUSINESS_MESSAGE = "delete_business_messages"
424
+
425
+
426
+ class BotCommandScopeType(str, enum.Enum):
427
+ """Type of BotCommandScope.
428
+ Represents the scope to which bot commands are applied."""
429
+
430
+ DEFAULT = "default"
431
+ ALL_PRIVATE_CHATS = "all_private_chats"
432
+ ALL_GROUP_CHATS = "all_group_chats"
433
+ ALL_CHAT_ADMINISTRATORS = "all_chat_administrators"
434
+ CHAT = "chat"
435
+ CHAT_ADMINISTRATORS = "chat_administrators"
436
+ CHAT_MEMBER = "chat_member"
437
+
438
+
439
+ class ChatType(str, enum.Enum):
440
+ """Type of chat, can be either `private`, `group`, `supergroup` or `channel`."""
441
+
442
+ PRIVATE = "private"
443
+ GROUP = "group"
444
+ SUPERGROUP = "supergroup"
445
+ CHANNEL = "channel"
446
+ SENDER = "sender"
447
+
448
+
449
+ class ChatMemberStatus(str, enum.Enum):
450
+ """Type of ChatMemberStatus."""
451
+
452
+ CREATOR = "creator"
453
+ ADMINISTRATOR = "administrator"
454
+ MEMBER = "member"
455
+ RESTRICTED = "restricted"
456
+ LEFT = "left"
457
+ KICKED = "kicked"
458
+
459
+
460
+ class DiceEmoji(str, enum.Enum):
461
+ """Emoji on which the dice throw animation is based."""
462
+
463
+ DICE = "🎲"
464
+ DART = "🎯"
465
+ BASKETBALL = "🏀"
466
+ FOOTBALL = "⚽"
467
+ SLOT_MACHINE = "🎰"
468
+ BOWLING = "🎳"
469
+
470
+
471
+ class MessageEntityType(str, enum.Enum):
472
+ """Type of the entity.
473
+ Currently, can be `mention` (`@username`), `hashtag`
474
+ (`#hashtag`), `cashtag` (`$USD`), `bot_command` (`/start@jobs_bot`),
475
+ `url` (`https://telegram.org`), `email` (`do-not-reply@telegram.org`),
476
+ `phone_number` (`+1-212-555-0123`), `bold` (**bold text**), `italic`
477
+ (*italic text*), `underline` (underlined text), `strikethrough` (strikethrough
478
+ text), `spoiler` (spoiler message), `code` (monowidth string), `pre`
479
+ (monowidth block), `text_link` (for clickable text URLs), `text_mention`
480
+ (for users [without usernames](https://telegram.org/blog/edit#new-mentions)),
481
+ `custom_emoji` (for inline custom emoji stickers), `blockquote` (blockquote)
482
+ [docs](https://core.telegram.org/bots/api#messageentity)"""
483
+
484
+ MENTION = "mention"
485
+ HASHTAG = "hashtag"
486
+ CASHTAG = "cashtag"
487
+ BOT_COMMAND = "bot_command"
488
+ URL = "url"
489
+ EMAIL = "email"
490
+ PHONE_NUMBER = "phone_number"
491
+ BOLD = "bold"
492
+ ITALIC = "italic"
493
+ UNDERLINE = "underline"
494
+ STRIKETHROUGH = "strikethrough"
495
+ SPOILER = "spoiler"
496
+ BLOCKQUOTE = "blockquote"
497
+ CODE = "code"
498
+ PRE = "pre"
499
+ TEXT_LINK = "text_link"
500
+ TEXT_MENTION = "text_mention"
501
+ CUSTOM_EMOJI = "custom_emoji"
502
+ EXPANDABLE_BLOCKQUOTE = "expandable_blockquote"
503
+
504
+
505
+ class PollType(str, enum.Enum):
506
+ """Poll type, currently can be `regular` or `quiz`."""
507
+
508
+ REGULAR = "regular"
509
+ QUIZ = "quiz"
510
+
511
+
512
+ class StickerType(str, enum.Enum):
513
+ """Type of the sticker, currently one of `regular`, `mask`, `custom_emoji`.
514
+ The type of the sticker is independent from its format, which is determined
515
+ by the fields `is_animated` and `is_video`."""
516
+
517
+ REGULAR = "regular"
518
+ MASK = "mask"
519
+ CUSTOM_EMOJI = "custom_emoji"
520
+
521
+
522
+ class MessageOriginType(str, enum.Enum):
523
+ """Type of MessageOriginType
524
+ Docs: https://core.telegram.org/bots/api#messageorigin"""
525
+
526
+ USER = "user"
527
+ HIDDEN_USER = "hidden_user"
528
+ CHAT = "chat"
529
+ CHANNEL = "channel"
530
+
531
+
532
+ class StickerSetStickerType(str, enum.Enum):
533
+ """Type of stickers in the set, currently one of `regular`, `mask`, `custom_emoji`."""
534
+
535
+ REGULAR = "regular"
536
+ MASK = "mask"
537
+ CUSTOM_EMOJI = "custom_emoji"
538
+
539
+
540
+ class MaskPositionPoint(str, enum.Enum):
541
+ """The part of the face relative to which the mask should be placed. One of `forehead`,
542
+ `eyes`, `mouth`, or `chin`."""
543
+
544
+ FOREHEAD = "forehead"
545
+ EYES = "eyes"
546
+ MOUTH = "mouth"
547
+ CHIN = "chin"
548
+
549
+
550
+ class InlineQueryChatType(str, enum.Enum):
551
+ """Type of the chat from which the inline query was sent. Can be
552
+ either `sender` for a private chat with the inline query sender, `private`,
553
+ `group`, `supergroup`, or `channel`. The chat type should be always known
554
+ for requests sent from official clients and most third-party clients,
555
+ unless the request was sent from a secret chat."""
556
+
557
+ SENDER = "sender"
558
+ PRIVATE = "private"
559
+ GROUP = "group"
560
+ SUPERGROUP = "supergroup"
561
+ CHANNEL = "channel"
562
+
563
+
564
+ class InlineQueryResultMimeType(str, enum.Enum):
565
+ """MIME type of the content of the video URL, `text/html` or `video/mp4`."""
566
+
567
+ TEXT_HTML = "text/html"
568
+ VIDEO_MP4 = "video/mp4"
569
+
570
+
571
+ class InlineQueryResultThumbnailMimeType(str, enum.Enum):
572
+ """MIME type of the thumbnail, must be one of `image/jpeg`, `image/gif`,
573
+ or `video/mp4`. Defaults to `image/jpeg`
574
+ """
575
+
576
+ IMAGE_JPEG = "image/jpeg"
577
+ IMAGE_GIF = "image/gif"
578
+ VIDEO_MP4 = "video/mp4"
579
+
580
+
581
+ class PassportElementErrorType(str, enum.Enum):
582
+ """Type of PassportElementErrorType.
583
+ Docs: https://core.telegram.org/bots/api#passportelementerror
584
+ """
585
+
586
+ DATA = "data"
587
+ FRONT_SIDE = "front_side"
588
+ REVERSE_SIDE = "reverse_side"
589
+ SELFIE = "selfie"
590
+ FILE = "file"
591
+ FILES = "files"
592
+ TRANSLATION_FILE = "translation_file"
593
+ TRANSLATION_FILES = "translation_files"
594
+ UNSPECIFIED = "unspecified"
595
+
596
+
597
+ class ReactionTypeType(str, enum.Enum):
598
+ """Type of ReactionTypeType.
599
+ Docs: https://core.telegram.org/bots/api#reactiontype
600
+ """
601
+
602
+ EMOJI = "emoji"
603
+ CUSTOM_EMOJI = "custom_emoji"
604
+
605
+
606
+ class InlineQueryResultGifThumbnailMimeType(str, enum.Enum):
607
+ """MIME type of the thumbnail, must be one of `image/jpeg`, `image/gif`,
608
+ or `video/mp4`. Defaults to `image/jpeg`.
609
+ """
610
+
611
+ IMAGE_JPEG = "image/jpeg"
612
+ IMAGE_GIF = "image/gif"
613
+ VIDEO_MP4 = "video/mp4"
614
+
615
+
616
+ class InlineQueryResultMpeg4GifThumbnailMimeType(str, enum.Enum):
617
+ """MIME type of the thumbnail, must be one of `image/jpeg`, `image/gif`,
618
+ or `video/mp4`. Defaults to `image/jpeg`.
619
+ """
620
+
621
+ IMAGE_JPEG = "image/jpeg"
622
+ IMAGE_GIF = "image/gif"
623
+ VIDEO_MP4 = "video/mp4"
624
+
625
+
626
+ class InlineQueryResultVideoMimeType(str, enum.Enum):
627
+ """MIME type of the content of the video URL, `text/html` or `video/mp4`."""
628
+
629
+ TEXT_HTML = "text/html"
630
+ VIDEO_MP4 = "video/mp4"
631
+
632
+
633
+ class InlineQueryResultDocumentMimeType(str, enum.Enum):
634
+ """MIME type of the content of the file, either `application/pdf` or `application/zip`."""
635
+
636
+ APPLICATION_PDF = "application/pdf"
637
+ APPLICATION_ZIP = "application/zip"
638
+
639
+
640
+ class EncryptedPassportElementType(str, enum.Enum):
641
+ """Element type. One of `personal_details`, `passport`, `driver_license`,
642
+ `identity_card`, `internal_passport`, `address`, `utility_bill`,
643
+ `bank_statement`, `rental_agreement`, `passport_registration`,
644
+ `temporary_registration`, `phone_number`, `email`.
645
+ """
646
+
647
+ PERSONAL_DETAILS = "personal_details"
648
+ PASSPORT = "passport"
649
+ DRIVER_LICENSE = "driver_license"
650
+ IDENTITY_CARD = "identity_card"
651
+ INTERNAL_PASSPORT = "internal_passport"
652
+ ADDRESS = "address"
653
+ UTILITY_BILL = "utility_bill"
654
+ BANK_STATEMENT = "bank_statement"
655
+ RENTAL_AGREEMENT = "rental_agreement"
656
+ PASSPORT_REGISTRATION = "passport_registration"
657
+ TEMPORARY_REGISTRATION = "temporary_registration"
658
+ PHONE_NUMBER = "phone_number"
659
+ EMAIL = "email"
660
+
661
+
662
+ class StickerFormat(str, enum.Enum):
663
+ """Format of the sticker."""
664
+
665
+ STATIC = "static"
666
+ ANIMATED = "animated"
667
+ VIDEO = "video"
668
+
669
+
670
+ __all__ = (
671
671
  "BotCommandScopeType",
672
672
  "ChatAction",
673
673
  "ChatBoostSourceType",
@@ -697,5 +697,5 @@ __all__ = (
697
697
  "StickerSetStickerType",
698
698
  "StickerType",
699
699
  "TopicIconColor",
700
- "UpdateType",
701
- )
700
+ "UpdateType",
701
+ )