1
0
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:
Badiboy 2020-01-03 01:28:37 +03:00 committed by GitHub
commit 769ff8008e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1933,6 +1933,7 @@ class ShippingOption(JsonSerializable):
"""
for price in args:
self.prices.append(price)
return self
def to_json(self):
price_list = []