Выдает ошибку 400, связанную с ценами (метод send_invoice)

bot.send_invoice(
            call.message.chat.id,
            title='Someone',
            description='someone',
            provider_token=payment_token,
            currency='RUB',
            prices=[LabeledPrice(label='someone', amount=2700)],
            photo_url=fyt_item_url,
            photo_height=512,
            photo_width=512,
            photo_size=512,
            need_email=True,
            is_flexible=True,
            start_parameter='sm',
            invoice_payload='some-invoice-payload-for-our-internal-use'
            )
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: there must be at least one price.

Пробовал объект 'LabeledPrice' добавлять в переменную, а потом указывать её в аргументе 'prices', была такая же ошибка.


Ответы (0 шт):