mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #599 from KanerL/KanerL-patch-shipping-option
ShippingOption.add_price returns "self" (for chaining etc.).
This commit is contained in:
commit
769ff8008e
@ -1933,6 +1933,7 @@ class ShippingOption(JsonSerializable):
|
|||||||
"""
|
"""
|
||||||
for price in args:
|
for price in args:
|
||||||
self.prices.append(price)
|
self.prices.append(price)
|
||||||
|
return self
|
||||||
|
|
||||||
def to_json(self):
|
def to_json(self):
|
||||||
price_list = []
|
price_list = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user