From 82e0087def2a06a2ccf3f84e69640ea6e885419c Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 6 Aug 2019 01:02:41 +0200 Subject: [PATCH] Always cast inline query ids to string --- pyrogram/client/types/inline_mode/inline_query_result.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/types/inline_mode/inline_query_result.py b/pyrogram/client/types/inline_mode/inline_query_result.py index ef26eacc..d44a5ee2 100644 --- a/pyrogram/client/types/inline_mode/inline_query_result.py +++ b/pyrogram/client/types/inline_mode/inline_query_result.py @@ -63,7 +63,7 @@ class InlineQueryResult(Object): super().__init__() self.type = type - self.id = str(uuid4()) if id is None else id + self.id = str(uuid4()) if id is None else str(id) self.input_message_content = input_message_content self.reply_markup = reply_markup