Fix InlineQuery override

pull/1/head
hikari.ftg 2022-03-28 11:21:34 +00:00
parent 3e2bd4494a
commit 41883cda61
1 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
from .types import InlineUnit, InlineCall from .types import InlineUnit, InlineCall
from aiogram.types import ( from aiogram.types import (
Message as AiogramMessage, Message as AiogramMessage,
InlineQuery, InlineQuery as AiogramInlineQuery,
CallbackQuery, CallbackQuery,
ChosenInlineResult, ChosenInlineResult,
InlineQueryResultArticle, InlineQueryResultArticle,
@ -11,6 +11,7 @@ import logging
from typing import List from typing import List
import re import re
from .. import utils from .. import utils
from .types import InlineQuery
import functools import functools
import inspect import inspect
@ -41,7 +42,7 @@ class Events(InlineUnit):
except BaseException: except BaseException:
logger.exception("Error on running aiogram watcher!") logger.exception("Error on running aiogram watcher!")
async def _inline_handler(self, inline_query: InlineQuery) -> None: async def _inline_handler(self, inline_query: AiogramInlineQuery) -> None:
"""Inline query handler (forms' calls)""" """Inline query handler (forms' calls)"""
# Retrieve query from passed object # Retrieve query from passed object
query = inline_query.query query = inline_query.query