From 1ad96e4e4cad6b372a7069abd7f0f57202343a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=BE=D0=B3=D0=B3=D0=B8=D0=BD?= <123play123.loggin@gmail.com> Date: Wed, 5 Jan 2022 07:47:11 +0700 Subject: [PATCH] Deleting deprecated CHOSEN_INLINE_QUERY --- aiogram/types/update.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/aiogram/types/update.py b/aiogram/types/update.py index 4d5a74d5..957fdfa6 100644 --- a/aiogram/types/update.py +++ b/aiogram/types/update.py @@ -11,7 +11,7 @@ from .poll import Poll, PollAnswer from .pre_checkout_query import PreCheckoutQuery from .shipping_query import ShippingQuery from .chat_join_request import ChatJoinRequest -from ..utils import helper, deprecated +from ..utils import helper class Update(base.TelegramObject): @@ -70,12 +70,6 @@ class AllowedUpdates(helper.Helper): CHAT_MEMBER = helper.ListItem() # chat_member CHAT_JOIN_REQUEST = helper.ListItem() # chat_join_request - CHOSEN_INLINE_QUERY = deprecated.DeprecatedReadOnlyClassVar( - "`CHOSEN_INLINE_QUERY` is a deprecated value for allowed update. " - "Use `CHOSEN_INLINE_RESULT`", - new_value_getter=lambda cls: cls.CHOSEN_INLINE_RESULT, - ) - @classmethod def default(cls): return []