From 99d3243ee13156d53b96327e29fcba1a9d51f320 Mon Sep 17 00:00:00 2001 From: Emil Relecto Date: Wed, 21 Aug 2024 14:16:00 +0200 Subject: [PATCH] set answer_pre_checkout_query query id type to string. in async_telebot.py --- telebot/async_telebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/async_telebot.py b/telebot/async_telebot.py index fcb0df2d1..4a71772a4 100644 --- a/telebot/async_telebot.py +++ b/telebot/async_telebot.py @@ -6977,7 +6977,7 @@ async def answer_shipping_query( return await asyncio_helper.answer_shipping_query(self.token, shipping_query_id, ok, shipping_options, error_message) async def answer_pre_checkout_query( - self, pre_checkout_query_id: int, ok: bool, + self, pre_checkout_query_id: str, ok: bool, error_message: Optional[str]=None) -> bool: """ Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the