Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect argument type in answer_pre_checkout_query() #2389

Merged
merged 2 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading