1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Merge pull request #1799 from Badiboy/master

content_type_media and content_type_service reviewed
This commit is contained in:
Badiboy 2022-11-13 13:21:45 +03:00 committed by GitHub
commit bf617ab8da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,8 +37,9 @@ thread_local = threading.local()
#: Contains all media content types. #: Contains all media content types.
content_type_media = [ content_type_media = [
'text', 'audio', 'animation', 'document', 'photo', 'sticker', 'video', 'video_note', 'voice', 'contact', 'dice', 'poll', 'text', 'audio', 'document', 'animation', 'game', 'photo', 'sticker', 'video', 'video_note', 'voice', 'contact',
'venue', 'location' 'location', 'venue', 'dice', 'invoice', 'successful_payment', 'connected_website', 'poll', 'passport_data',
'web_app_data',
] ]
#: Contains all service content types such as `User joined the group`. #: Contains all service content types such as `User joined the group`.
@ -46,14 +47,15 @@ content_type_service = [
'new_chat_members', 'left_chat_member', 'new_chat_title', 'new_chat_photo', 'delete_chat_photo', 'group_chat_created', 'new_chat_members', 'left_chat_member', 'new_chat_title', 'new_chat_photo', 'delete_chat_photo', 'group_chat_created',
'supergroup_chat_created', 'channel_chat_created', 'migrate_to_chat_id', 'migrate_from_chat_id', 'pinned_message', 'supergroup_chat_created', 'channel_chat_created', 'migrate_to_chat_id', 'migrate_from_chat_id', 'pinned_message',
'proximity_alert_triggered', 'video_chat_scheduled', 'video_chat_started', 'video_chat_ended', 'proximity_alert_triggered', 'video_chat_scheduled', 'video_chat_started', 'video_chat_ended',
'video_chat_participants_invited', 'message_auto_delete_timer_changed' 'video_chat_participants_invited', 'message_auto_delete_timer_changed', 'forum_topic_created', 'forum_topic_closed',
'forum_topic_reopened',
] ]
#: All update types, should be used for allowed_updates parameter in polling. #: All update types, should be used for allowed_updates parameter in polling.
update_types = [ update_types = [
"message", "edited_message", "channel_post", "edited_channel_post", "inline_query", "message", "edited_message", "channel_post", "edited_channel_post", "inline_query", "chosen_inline_result",
"chosen_inline_result", "callback_query", "shipping_query", "pre_checkout_query", "poll", "poll_answer", "callback_query", "shipping_query", "pre_checkout_query", "poll", "poll_answer", "my_chat_member", "chat_member",
"my_chat_member", "chat_member", "chat_join_request" "chat_join_request",
] ]