X Tutup
Skip to content

Commit 1e250f2

Browse files
committed
add kwargs to answer* methods
1 parent 8f2f29c commit 1e250f2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

telegram/bot.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,7 +1926,8 @@ def answer_shipping_query(self,
19261926
shipping_query_id,
19271927
ok,
19281928
shipping_options=None,
1929-
error_message=None):
1929+
error_message=None,
1930+
**kwargs):
19301931
"""
19311932
If you sent an invoice requesting a shipping address and the parameter is_flexible was
19321933
specified, the Bot API will send an Update with a shipping_query field to the bot. Use
@@ -1943,6 +1944,7 @@ def answer_shipping_query(self,
19431944
that explains why it is impossible to complete the order (e.g. "Sorry, delivery
19441945
to your desired address is unavailable'). Telegram will display this message
19451946
to the user.
1947+
**kwargs (dict): Arbitrary keyword arguments.
19461948
19471949
Returns:
19481950
bool: On success, `True` is returned.
@@ -1962,7 +1964,8 @@ def answer_shipping_query(self,
19621964

19631965
return url, data
19641966

1965-
def answer_pre_checkout_query(self, pre_checkout_query_id, ok, error_message=None):
1967+
def answer_pre_checkout_query(self, pre_checkout_query_id, ok,
1968+
error_message=None, **kwargs):
19661969
"""
19671970
If you sent an invoice requesting a shipping address and the parameter is_flexible was
19681971
specified, the Bot API will send an Update with a shipping_query field to the bot.
@@ -1977,6 +1980,7 @@ def answer_pre_checkout_query(self, pre_checkout_query_id, ok, error_message=Non
19771980
just bought the last of our amazing black T-shirts while you were busy filling out
19781981
your payment details. Please choose a different color or garment!"). Telegram will
19791982
display this message to the user.
1983+
**kwargs (dict): Arbitrary keyword arguments.
19801984
19811985
Returns:
19821986
bool: On success, `True` is returned.

0 commit comments

Comments
 (0)
X Tutup