|
27 | 27 |
|
28 | 28 | #: Contains all media content types. |
29 | 29 | content_type_media = [ |
30 | | - 'text', 'audio', 'document', 'animation', 'game', 'photo', 'sticker', 'video', 'video_note', 'voice', 'contact', |
31 | | - 'location', 'venue', 'dice', 'invoice', 'successful_payment', 'connected_website', 'poll', 'passport_data', |
32 | | - 'web_app_data', |
| 30 | + 'text', 'animation', 'audio', 'document', 'photo', 'sticker', 'story', 'video', 'video_note', 'voice', 'contact', |
| 31 | + 'dice', 'game', 'poll', 'venue', 'location', 'invoice', 'successful_payment', 'connected_website', |
| 32 | + 'passport_data', 'web_app_data', |
33 | 33 | ] |
34 | 34 |
|
35 | 35 | #: Contains all service content types such as `User joined the group`. |
36 | 36 | content_type_service = [ |
37 | 37 | 'new_chat_members', 'left_chat_member', 'new_chat_title', 'new_chat_photo', 'delete_chat_photo', |
38 | | - 'group_chat_created', 'supergroup_chat_created', 'channel_chat_created', 'migrate_to_chat_id', |
39 | | - 'migrate_from_chat_id', 'pinned_message', 'proximity_alert_triggered', 'video_chat_scheduled', 'video_chat_started', |
40 | | - 'video_chat_ended', 'video_chat_participants_invited', 'message_auto_delete_timer_changed', 'forum_topic_created', |
41 | | - 'forum_topic_closed', 'forum_topic_reopened', 'user_shared', 'chat_shared', |
| 38 | + 'group_chat_created', 'supergroup_chat_created', 'channel_chat_created', 'message_auto_delete_timer_changed', |
| 39 | + 'migrate_to_chat_id', 'migrate_from_chat_id', 'pinned_message', 'users_shared', 'chat_shared', |
| 40 | + 'write_access_allowed', 'proximity_alert_triggered', 'forum_topic_created', 'forum_topic_edited', |
| 41 | + 'forum_topic_closed', 'forum_topic_reopened', 'general_forum_topic_hidden', 'general_forum_topic_unhidden', |
| 42 | + 'giveaway_created', 'giveaway', 'giveaway_winners', 'giveaway_completed', 'video_chat_scheduled', |
| 43 | + 'video_chat_started', 'video_chat_ended', 'video_chat_participants_invited', |
42 | 44 | ] |
43 | 45 |
|
44 | 46 | #: All update types, should be used for allowed_updates parameter in polling. |
@@ -187,7 +189,7 @@ def wait(self): |
187 | 189 | return self.result |
188 | 190 |
|
189 | 191 |
|
190 | | -class CustomRequestResponse(): |
| 192 | +class CustomRequestResponse: |
191 | 193 | """ |
192 | 194 | :meta private: |
193 | 195 | """ |
@@ -365,7 +367,7 @@ def _text_before_last(substr: str) -> str: |
365 | 367 | text = text[len(part):] |
366 | 368 |
|
367 | 369 |
|
368 | | -def escape(text: str) -> str: |
| 370 | +def escape(text: str) -> Optional[str]: |
369 | 371 | """ |
370 | 372 | Replaces the following chars in `text` ('&' with '&', '<' with '<' and '>' with '>'). |
371 | 373 |
|
|
0 commit comments