Open cruzluna opened 1 year ago
You can set SuggestedTipAmounts
as an empty int array
new_invoice := tgbotapi.NewInvoice(update.Message.Chat.ID, title, description, payload, provider_token, "start_param", currency, prices)
new_invoice.SuggestedTipAmounts = []int{}
if _, err := bot.Send(new_invoice); err != nil{
log.Panic(err)
}
may be make it by default in method NewInvoice ?
new_invoice.SuggestedTipAmounts = []int{}
I am attempting to send a test invoice with Strip and the invoice returns the following error:
I have tried using Request() and Send(), I get the same error. According to the Telegram API documentation the suggest tip is an optional parameter. How can I resolve this?