Почему то пишет, что нужно добавить хотя бы один элемент prices, но он есть.
price = types.LabeledPrice(label="acc 18AR", amount=500*100)
if callback.data == "buyst18ar":
bot.send_invoice(callback.message.chat.id,
title = "acc18 AR",
description = "описание акка",
provider_token = payment_token,
currency = "rub",
photo_url = "https://",
photo_width=416,
photo_height=234,photo_size=416,
prices = [price],
start_parameter="startacc18ar",
invoice_payload = "TEST")
Ошибка:
raise ApiTelegramException(method_name, result, result_json)
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: there must be at least one price