MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / add_price

Method add_price

telebot/types.py:6676–6687  ·  view source on GitHub ↗

Add LabeledPrice to ShippingOption :param args: LabeledPrices :type args: :obj:`LabeledPrice` :return: None

(self, *args)

Source from the content-addressed store, hash-verified

6674 self.prices: List[LabeledPrice] = []
6675
6676 def add_price(self, *args) -> 'ShippingOption':
6677 """
6678 Add LabeledPrice to ShippingOption
6679
6680 :param args: LabeledPrices
6681 :type args: :obj:`LabeledPrice`
6682
6683 :return: None
6684 """
6685 for price in args:
6686 self.prices.append(price)
6687 return self
6688
6689 def to_json(self):
6690 price_list = []

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected