You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException: Error executing org.telegram.telegrambots.meta.api.methods.invoices.CreateInvoiceLink query: [400] Bad Request: STARS_INVOICE_INVALID
at org.telegram.telegrambots.meta.api.methods.botapimethods.PartialBotApiMethod.deserializeResponseInternal(PartialBotApiMethod.java:61)
at org.telegram.telegrambots.meta.api.methods.botapimethods.PartialBotApiMethod.deserializeResponse(PartialBotApiMethod.java:41)
at org.telegram.telegrambots.meta.api.methods.invoices.CreateInvoiceLink.deserializeResponse(CreateInvoiceLink.java:238)
at org.telegram.telegrambots.meta.api.methods.invoices.CreateInvoiceLink.deserializeResponse(CreateInvoiceLink.java:29)
at org.telegram.telegrambots.client.okhttp.OkHttpFutureCallback.onResponse(OkHttpFutureCallback.java:35)
Describe the bug
org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException: Error executing org.telegram.telegrambots.meta.api.methods.invoices.CreateInvoiceLink query: [400] Bad Request: STARS_INVOICE_INVALID
at org.telegram.telegrambots.meta.api.methods.botapimethods.PartialBotApiMethod.deserializeResponseInternal(PartialBotApiMethod.java:61)
at org.telegram.telegrambots.meta.api.methods.botapimethods.PartialBotApiMethod.deserializeResponse(PartialBotApiMethod.java:41)
at org.telegram.telegrambots.meta.api.methods.invoices.CreateInvoiceLink.deserializeResponse(CreateInvoiceLink.java:238)
at org.telegram.telegrambots.meta.api.methods.invoices.CreateInvoiceLink.deserializeResponse(CreateInvoiceLink.java:29)
at org.telegram.telegrambots.client.okhttp.OkHttpFutureCallback.onResponse(OkHttpFutureCallback.java:35)
To Reproduce
OkHttpTelegramClient telegramClient = new OkHttpTelegramClient("your token");
CreateInvoiceLinkBuilder createInvoiceLinkBuilder = CreateInvoiceLink.builder();
createInvoiceLinkBuilder.title("recharge stars");
createInvoiceLinkBuilder.description("recharge stars desc");
createInvoiceLinkBuilder.payload("{}");
createInvoiceLinkBuilder.currency("XTR");
createInvoiceLinkBuilder.providerToken("");
Collection prices = Lists.newArrayList(new LabeledPrice("价格1", 1),new LabeledPrice("价格2", 2));
createInvoiceLinkBuilder.prices(prices);
CreateInvoiceLink createInvoiceLink = createInvoiceLinkBuilder.build();
String url = telegramClient.execute(createInvoiceLink);
The text was updated successfully, but these errors were encountered: