Skip to content

Commit

Permalink
Merge pull request #2389 from Relecto/patch-1
Browse files Browse the repository at this point in the history
Fix incorrect argument type in answer_pre_checkout_query()
  • Loading branch information
Badiboy authored Aug 21, 2024
2 parents ee74899 + 99d3243 commit 04e2bc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion telebot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5627,7 +5627,7 @@ def answer_shipping_query(


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
Expand Down
2 changes: 1 addition & 1 deletion telebot/async_telebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04e2bc5

Please sign in to comment.