No reason to use pointers to arrays.
This commit is contained in:
parent
4d758f17d4
commit
cdcb93df5f
4 changed files with 27 additions and 27 deletions
|
@ -737,7 +737,7 @@ func NewCallbackWithAlert(id, text string) CallbackConfig {
|
|||
}
|
||||
|
||||
// NewInvoice creates a new Invoice request to the user.
|
||||
func NewInvoice(chatID int64, title, description, payload, providerToken, startParameter, currency string, prices *[]LabeledPrice) InvoiceConfig {
|
||||
func NewInvoice(chatID int64, title, description, payload, providerToken, startParameter, currency string, prices []LabeledPrice) InvoiceConfig {
|
||||
return InvoiceConfig{
|
||||
BaseChat: BaseChat{ChatID: chatID},
|
||||
Title: title,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue