X Tutup
Skip to content

Commit cc03649

Browse files
committed
fix docstring mistakes
1 parent ee057e7 commit cc03649

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

telegram/precheckoutquery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ def to_dict(self):
9090
return data
9191

9292
def answer(self, *args, **kwargs):
93-
"""Shortcut for ``bot.answerPreCheckoutQuery(update.callback_query.id, *args, **kwargs)``"""
93+
"""Shortcut for ``bot.answerPreCheckoutQuery(update.pre_checkout_query.id, *args, **kwargs)``"""
9494
return self.bot.answerPreCheckoutQuery(self.id, *args, **kwargs)

telegram/shippingquery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ def to_dict(self):
7575
return data
7676

7777
def answer(self, *args, **kwargs):
78-
"""Shortcut for ``bot.answerShippingQuery(update.callback_query.id, *args, **kwargs)``"""
78+
"""Shortcut for ``bot.answerShippingQuery(update.shipping_query.id, *args, **kwargs)``"""
7979
return self.bot.answerShippingQuery(self.id, *args, **kwargs)

0 commit comments

Comments
 (0)
X Tutup