diff --git a/pyrogram/methods/bots/answer_inline_query.py b/pyrogram/methods/bots/answer_inline_query.py index 9683e1bb..24e7a30c 100644 --- a/pyrogram/methods/bots/answer_inline_query.py +++ b/pyrogram/methods/bots/answer_inline_query.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with Pyrogram. If not, see . -from typing import List +from typing import Iterable from pyrogram import raw from pyrogram import types @@ -27,7 +27,7 @@ class AnswerInlineQuery(Scaffold): async def answer_inline_query( self, inline_query_id: str, - results: List["types.InlineQueryResult"], + results: Iterable["types.InlineQueryResult"], cache_time: int = 300, is_gallery: bool = False, is_personal: bool = False,