Skip to content

Commit 04e2bc5

Browse files
authored
Merge pull request #2389 from Relecto/patch-1
Fix incorrect argument type in answer_pre_checkout_query()
2 parents ee74899 + 99d3243 commit 04e2bc5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

telebot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5627,7 +5627,7 @@ def answer_shipping_query(
56275627

56285628

56295629
def answer_pre_checkout_query(
5630-
self, pre_checkout_query_id: int, ok: bool,
5630+
self, pre_checkout_query_id: str, ok: bool,
56315631
error_message: Optional[str]=None) -> bool:
56325632
"""
56335633
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

telebot/async_telebot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6977,7 +6977,7 @@ async def answer_shipping_query(
69776977
return await asyncio_helper.answer_shipping_query(self.token, shipping_query_id, ok, shipping_options, error_message)
69786978

69796979
async def answer_pre_checkout_query(
6980-
self, pre_checkout_query_id: int, ok: bool,
6980+
self, pre_checkout_query_id: str, ok: bool,
69816981
error_message: Optional[str]=None) -> bool:
69826982
"""
69836983
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

0 commit comments

Comments
 (0)