diff --git a/lib/filter_queries/filter.ts b/lib/filter_queries/filter.ts index 50df2d0..7e7c22c 100644 --- a/lib/filter_queries/filter.ts +++ b/lib/filter_queries/filter.ts @@ -21,6 +21,7 @@ export const UPDATE_KEYS = [ "message_reaction_count", "chat_boost", "removed_chat_boost", + "purchased_paid_media", ]; export const L1_SHORTCUTS = { diff --git a/lib/filter_queries/mod.ts b/lib/filter_queries/mod.ts index ac07ad3..6e84cbd 100644 --- a/lib/filter_queries/mod.ts +++ b/lib/filter_queries/mod.ts @@ -21,8 +21,8 @@ export default [ "message_reaction_count", "chat_boost", "removed_chat_boost", + "purchased_paid_media", "message:poll", - "message:sender_boost_count", "message:new_chat_members", "message:left_chat_member", "message:group_chat_created", @@ -31,18 +31,19 @@ export default [ "message:migrate_from_chat_id", "message:successful_payment", "message:refunded_payment", - "message:boost_added", "message:users_shared", "message:chat_shared", "message:connected_website", "message:write_access_allowed", "message:passport_data", + "message:boost_added", "message:forum_topic_created", "message:forum_topic_edited", "message:forum_topic_closed", "message:forum_topic_reopened", "message:general_forum_topic_hidden", "message:general_forum_topic_unhidden", + "message:sender_boost_count", "message:forward_origin", "message:is_topic_message", "message:is_automatic_forward", @@ -51,6 +52,7 @@ export default [ "message:animation", "message:audio", "message:document", + "message:paid_media", "message:photo", "message:sticker", "message:story", @@ -62,7 +64,6 @@ export default [ "message:game", "message:venue", "message:location", - "message:paid_media", "message:entities", "message:caption_entities", "message:caption", @@ -73,16 +74,19 @@ export default [ "message:delete_chat_photo", "message:message_auto_delete_timer_changed", "message:pinned_message", - "message:chat_background_set", "message:invoice", "message:proximity_alert_triggered", + "message:chat_background_set", + "message:giveaway_created", + "message:giveaway", + "message:giveaway_winners", + "message:giveaway_completed", "message:video_chat_scheduled", "message:video_chat_started", "message:video_chat_ended", "message:video_chat_participants_invited", "message:web_app_data", "edited_message:poll", - "edited_message:sender_boost_count", "edited_message:new_chat_members", "edited_message:left_chat_member", "edited_message:group_chat_created", @@ -91,18 +95,19 @@ export default [ "edited_message:migrate_from_chat_id", "edited_message:successful_payment", "edited_message:refunded_payment", - "edited_message:boost_added", "edited_message:users_shared", "edited_message:chat_shared", "edited_message:connected_website", "edited_message:write_access_allowed", "edited_message:passport_data", + "edited_message:boost_added", "edited_message:forum_topic_created", "edited_message:forum_topic_edited", "edited_message:forum_topic_closed", "edited_message:forum_topic_reopened", "edited_message:general_forum_topic_hidden", "edited_message:general_forum_topic_unhidden", + "edited_message:sender_boost_count", "edited_message:forward_origin", "edited_message:is_topic_message", "edited_message:is_automatic_forward", @@ -111,6 +116,7 @@ export default [ "edited_message:animation", "edited_message:audio", "edited_message:document", + "edited_message:paid_media", "edited_message:photo", "edited_message:sticker", "edited_message:story", @@ -122,7 +128,6 @@ export default [ "edited_message:game", "edited_message:venue", "edited_message:location", - "edited_message:paid_media", "edited_message:entities", "edited_message:caption_entities", "edited_message:caption", @@ -133,9 +138,13 @@ export default [ "edited_message:delete_chat_photo", "edited_message:message_auto_delete_timer_changed", "edited_message:pinned_message", - "edited_message:chat_background_set", "edited_message:invoice", "edited_message:proximity_alert_triggered", + "edited_message:chat_background_set", + "edited_message:giveaway_created", + "edited_message:giveaway", + "edited_message:giveaway_winners", + "edited_message:giveaway_completed", "edited_message:video_chat_scheduled", "edited_message:video_chat_started", "edited_message:video_chat_ended", @@ -150,6 +159,7 @@ export default [ "channel_post:animation", "channel_post:audio", "channel_post:document", + "channel_post:paid_media", "channel_post:photo", "channel_post:sticker", "channel_post:story", @@ -161,7 +171,6 @@ export default [ "channel_post:game", "channel_post:venue", "channel_post:location", - "channel_post:paid_media", "channel_post:entities", "channel_post:caption_entities", "channel_post:caption", @@ -172,9 +181,13 @@ export default [ "channel_post:delete_chat_photo", "channel_post:message_auto_delete_timer_changed", "channel_post:pinned_message", - "channel_post:chat_background_set", "channel_post:invoice", "channel_post:proximity_alert_triggered", + "channel_post:chat_background_set", + "channel_post:giveaway_created", + "channel_post:giveaway", + "channel_post:giveaway_winners", + "channel_post:giveaway_completed", "channel_post:video_chat_scheduled", "channel_post:video_chat_started", "channel_post:video_chat_ended", @@ -190,6 +203,7 @@ export default [ "edited_channel_post:animation", "edited_channel_post:audio", "edited_channel_post:document", + "edited_channel_post:paid_media", "edited_channel_post:photo", "edited_channel_post:sticker", "edited_channel_post:story", @@ -201,7 +215,6 @@ export default [ "edited_channel_post:game", "edited_channel_post:venue", "edited_channel_post:location", - "edited_channel_post:paid_media", "edited_channel_post:entities", "edited_channel_post:caption_entities", "edited_channel_post:caption", @@ -212,9 +225,13 @@ export default [ "edited_channel_post:delete_chat_photo", "edited_channel_post:message_auto_delete_timer_changed", "edited_channel_post:pinned_message", - "edited_channel_post:chat_background_set", "edited_channel_post:invoice", "edited_channel_post:proximity_alert_triggered", + "edited_channel_post:chat_background_set", + "edited_channel_post:giveaway_created", + "edited_channel_post:giveaway", + "edited_channel_post:giveaway_winners", + "edited_channel_post:giveaway_completed", "edited_channel_post:video_chat_scheduled", "edited_channel_post:video_chat_started", "edited_channel_post:video_chat_ended", @@ -224,7 +241,6 @@ export default [ "business_connection:can_reply", "business_connection:is_enabled", "business_message:poll", - "business_message:sender_boost_count", "business_message:new_chat_members", "business_message:left_chat_member", "business_message:group_chat_created", @@ -233,18 +249,19 @@ export default [ "business_message:migrate_from_chat_id", "business_message:successful_payment", "business_message:refunded_payment", - "business_message:boost_added", "business_message:users_shared", "business_message:chat_shared", "business_message:connected_website", "business_message:write_access_allowed", "business_message:passport_data", + "business_message:boost_added", "business_message:forum_topic_created", "business_message:forum_topic_edited", "business_message:forum_topic_closed", "business_message:forum_topic_reopened", "business_message:general_forum_topic_hidden", "business_message:general_forum_topic_unhidden", + "business_message:sender_boost_count", "business_message:forward_origin", "business_message:is_topic_message", "business_message:is_automatic_forward", @@ -253,6 +270,7 @@ export default [ "business_message:animation", "business_message:audio", "business_message:document", + "business_message:paid_media", "business_message:photo", "business_message:sticker", "business_message:story", @@ -264,7 +282,6 @@ export default [ "business_message:game", "business_message:venue", "business_message:location", - "business_message:paid_media", "business_message:entities", "business_message:caption_entities", "business_message:caption", @@ -275,16 +292,19 @@ export default [ "business_message:delete_chat_photo", "business_message:message_auto_delete_timer_changed", "business_message:pinned_message", - "business_message:chat_background_set", "business_message:invoice", "business_message:proximity_alert_triggered", + "business_message:chat_background_set", + "business_message:giveaway_created", + "business_message:giveaway", + "business_message:giveaway_winners", + "business_message:giveaway_completed", "business_message:video_chat_scheduled", "business_message:video_chat_started", "business_message:video_chat_ended", "business_message:video_chat_participants_invited", "business_message:web_app_data", "edited_business_message:poll", - "edited_business_message:sender_boost_count", "edited_business_message:new_chat_members", "edited_business_message:left_chat_member", "edited_business_message:group_chat_created", @@ -293,18 +313,19 @@ export default [ "edited_business_message:migrate_from_chat_id", "edited_business_message:successful_payment", "edited_business_message:refunded_payment", - "edited_business_message:boost_added", "edited_business_message:users_shared", "edited_business_message:chat_shared", "edited_business_message:connected_website", "edited_business_message:write_access_allowed", "edited_business_message:passport_data", + "edited_business_message:boost_added", "edited_business_message:forum_topic_created", "edited_business_message:forum_topic_edited", "edited_business_message:forum_topic_closed", "edited_business_message:forum_topic_reopened", "edited_business_message:general_forum_topic_hidden", "edited_business_message:general_forum_topic_unhidden", + "edited_business_message:sender_boost_count", "edited_business_message:forward_origin", "edited_business_message:is_topic_message", "edited_business_message:is_automatic_forward", @@ -313,6 +334,7 @@ export default [ "edited_business_message:animation", "edited_business_message:audio", "edited_business_message:document", + "edited_business_message:paid_media", "edited_business_message:photo", "edited_business_message:sticker", "edited_business_message:story", @@ -324,7 +346,6 @@ export default [ "edited_business_message:game", "edited_business_message:venue", "edited_business_message:location", - "edited_business_message:paid_media", "edited_business_message:entities", "edited_business_message:caption_entities", "edited_business_message:caption", @@ -335,9 +356,13 @@ export default [ "edited_business_message:delete_chat_photo", "edited_business_message:message_auto_delete_timer_changed", "edited_business_message:pinned_message", - "edited_business_message:chat_background_set", "edited_business_message:invoice", "edited_business_message:proximity_alert_triggered", + "edited_business_message:chat_background_set", + "edited_business_message:giveaway_created", + "edited_business_message:giveaway", + "edited_business_message:giveaway_winners", + "edited_business_message:giveaway_completed", "edited_business_message:video_chat_scheduled", "edited_business_message:video_chat_started", "edited_business_message:video_chat_ended", @@ -405,6 +430,10 @@ export default [ "message:caption_entities:text_link", "message:caption_entities:text_mention", "message:caption_entities:custom_emoji", + "message:giveaway:only_new_members", + "message:giveaway:has_public_winners", + "message:giveaway_winners:only_new_members", + "message:giveaway_winners:was_refunded", "edited_message:new_chat_members:me", "edited_message:new_chat_members:is_bot", "edited_message:new_chat_members:is_premium", @@ -460,6 +489,10 @@ export default [ "edited_message:caption_entities:text_link", "edited_message:caption_entities:text_mention", "edited_message:caption_entities:custom_emoji", + "edited_message:giveaway:only_new_members", + "edited_message:giveaway:has_public_winners", + "edited_message:giveaway_winners:only_new_members", + "edited_message:giveaway_winners:was_refunded", "channel_post:forward_origin:user", "channel_post:forward_origin:hidden_user", "channel_post:forward_origin:chat", @@ -505,6 +538,10 @@ export default [ "channel_post:caption_entities:text_link", "channel_post:caption_entities:text_mention", "channel_post:caption_entities:custom_emoji", + "channel_post:giveaway:only_new_members", + "channel_post:giveaway:has_public_winners", + "channel_post:giveaway_winners:only_new_members", + "channel_post:giveaway_winners:was_refunded", "edited_channel_post:forward_origin:user", "edited_channel_post:forward_origin:hidden_user", "edited_channel_post:forward_origin:chat", @@ -550,6 +587,10 @@ export default [ "edited_channel_post:caption_entities:text_link", "edited_channel_post:caption_entities:text_mention", "edited_channel_post:caption_entities:custom_emoji", + "edited_channel_post:giveaway:only_new_members", + "edited_channel_post:giveaway:has_public_winners", + "edited_channel_post:giveaway_winners:only_new_members", + "edited_channel_post:giveaway_winners:was_refunded", "business_message:new_chat_members:me", "business_message:new_chat_members:is_bot", "business_message:new_chat_members:is_premium", @@ -605,6 +646,10 @@ export default [ "business_message:caption_entities:text_link", "business_message:caption_entities:text_mention", "business_message:caption_entities:custom_emoji", + "business_message:giveaway:only_new_members", + "business_message:giveaway:has_public_winners", + "business_message:giveaway_winners:only_new_members", + "business_message:giveaway_winners:was_refunded", "edited_business_message:new_chat_members:me", "edited_business_message:new_chat_members:is_bot", "edited_business_message:new_chat_members:is_premium", @@ -660,6 +705,10 @@ export default [ "edited_business_message:caption_entities:text_link", "edited_business_message:caption_entities:text_mention", "edited_business_message:caption_entities:custom_emoji", + "edited_business_message:giveaway:only_new_members", + "edited_business_message:giveaway:has_public_winners", + "edited_business_message:giveaway_winners:only_new_members", + "edited_business_message:giveaway_winners:was_refunded", "my_chat_member:from:me", "my_chat_member:from:is_bot", "my_chat_member:from:is_premium", @@ -681,8 +730,6 @@ export default [ "edit", ":poll", "msg:poll", - ":sender_boost_count", - "msg:sender_boost_count", ":new_chat_members", "msg:new_chat_members", ":left_chat_member", @@ -699,8 +746,6 @@ export default [ "msg:successful_payment", ":refunded_payment", "msg:refunded_payment", - ":boost_added", - "msg:boost_added", ":users_shared", "msg:users_shared", ":chat_shared", @@ -711,6 +756,8 @@ export default [ "msg:write_access_allowed", ":passport_data", "msg:passport_data", + ":boost_added", + "msg:boost_added", ":forum_topic_created", "msg:forum_topic_created", ":forum_topic_edited", @@ -723,6 +770,8 @@ export default [ "msg:general_forum_topic_hidden", ":general_forum_topic_unhidden", "msg:general_forum_topic_unhidden", + ":sender_boost_count", + "msg:sender_boost_count", ":forward_origin", "msg:forward_origin", ":is_topic_message", @@ -742,6 +791,8 @@ export default [ "msg:audio", ":document", "msg:document", + ":paid_media", + "msg:paid_media", "message:media", ":photo", ":media", @@ -767,8 +818,6 @@ export default [ "msg:venue", ":location", "msg:location", - ":paid_media", - "msg:paid_media", ":entities", "msg:entities", ":caption_entities", @@ -789,12 +838,20 @@ export default [ "msg:message_auto_delete_timer_changed", ":pinned_message", "msg:pinned_message", - ":chat_background_set", - "msg:chat_background_set", ":invoice", "msg:invoice", ":proximity_alert_triggered", "msg:proximity_alert_triggered", + ":chat_background_set", + "msg:chat_background_set", + ":giveaway_created", + "msg:giveaway_created", + ":giveaway", + "msg:giveaway", + ":giveaway_winners", + "msg:giveaway_winners", + ":giveaway_completed", + "msg:giveaway_completed", ":video_chat_scheduled", "msg:video_chat_scheduled", ":video_chat_started", @@ -806,7 +863,6 @@ export default [ ":web_app_data", "msg:web_app_data", "edit:poll", - "edit:sender_boost_count", "edit:new_chat_members", "edit:left_chat_member", "edit:group_chat_created", @@ -815,18 +871,19 @@ export default [ "edit:migrate_from_chat_id", "edit:successful_payment", "edit:refunded_payment", - "edit:boost_added", "edit:users_shared", "edit:chat_shared", "edit:connected_website", "edit:write_access_allowed", "edit:passport_data", + "edit:boost_added", "edit:forum_topic_created", "edit:forum_topic_edited", "edit:forum_topic_closed", "edit:forum_topic_reopened", "edit:general_forum_topic_hidden", "edit:general_forum_topic_unhidden", + "edit:sender_boost_count", "edit:forward_origin", "edit:is_topic_message", "edit:is_automatic_forward", @@ -837,6 +894,7 @@ export default [ "edit:file", "edit:audio", "edit:document", + "edit:paid_media", "edited_message:media", "edit:photo", "edit:media", @@ -850,7 +908,6 @@ export default [ "edit:game", "edit:venue", "edit:location", - "edit:paid_media", "edit:entities", "edit:caption_entities", "edit:caption", @@ -861,9 +918,13 @@ export default [ "edit:delete_chat_photo", "edit:message_auto_delete_timer_changed", "edit:pinned_message", - "edit:chat_background_set", "edit:invoice", "edit:proximity_alert_triggered", + "edit:chat_background_set", + "edit:giveaway_created", + "edit:giveaway", + "edit:giveaway_winners", + "edit:giveaway_completed", "edit:video_chat_scheduled", "edit:video_chat_started", "edit:video_chat_ended", @@ -1056,6 +1117,14 @@ export default [ "msg:caption_entities:text_mention", ":caption_entities:custom_emoji", "msg:caption_entities:custom_emoji", + ":giveaway:only_new_members", + "msg:giveaway:only_new_members", + ":giveaway:has_public_winners", + "msg:giveaway:has_public_winners", + ":giveaway_winners:only_new_members", + "msg:giveaway_winners:only_new_members", + ":giveaway_winners:was_refunded", + "msg:giveaway_winners:was_refunded", "edit:new_chat_members:me", "edit:new_chat_members:is_bot", "edit:new_chat_members:is_premium", @@ -1155,6 +1224,10 @@ export default [ "edit:caption_entities:text_link", "edit:caption_entities:text_mention", "edit:caption_entities:custom_emoji", + "edit:giveaway:only_new_members", + "edit:giveaway:has_public_winners", + "edit:giveaway_winners:only_new_members", + "edit:giveaway_winners:was_refunded", "channel_post:file:is_video", "channel_post:file:is_animated", "channel_post:file:premium_animation",