diff --git a/pyrogram/client/types/inline_mode/inline_query_result_article.py b/pyrogram/client/types/inline_mode/inline_query_result_article.py index 7916dba5..8d0089c3 100644 --- a/pyrogram/client/types/inline_mode/inline_query_result_article.py +++ b/pyrogram/client/types/inline_mode/inline_query_result_article.py @@ -16,6 +16,8 @@ # You should have received a copy of the GNU Lesser General Public License # along with Pyrogram. If not, see . +from typing import Any + from pyrogram.api import types from .inline_query_result import InlineQueryResult @@ -61,7 +63,7 @@ class InlineQueryResultArticle(InlineQueryResult): def __init__( self, - id: str, + id: Any, title: str, input_message_content, reply_markup=None, @@ -84,7 +86,7 @@ class InlineQueryResultArticle(InlineQueryResult): def write(self): return types.InputBotInlineResult( - id=self.id, + id=str(self.id), type=self.type, send_message=self.input_message_content.write(self.reply_markup), title=self.title,