Fixes and comments
This commit is contained in:
parent
42d132b90a
commit
41814af2a0
4 changed files with 32 additions and 28 deletions
28
helpers.go
28
helpers.go
|
@ -641,23 +641,15 @@ func NewCallbackWithAlert(id, text string) CallbackConfig {
|
|||
}
|
||||
}
|
||||
|
||||
func NewInvoice(chatID int64, title, description, payload, providerToken, startParameter, currency string, prices *[]LabeledPrice, photoUrl string, photoSize, photoWidth, photoHeight int, needName, needPhoneNumber, needEmail, needShippingAddress, isFlexible bool) InvoiceConfig {
|
||||
// NewInvoice created a new Invoice request to the user.
|
||||
func NewInvoice(chatID int64, title, description, payload, providerToken, startParameter, currency string, prices *[]LabeledPrice) InvoiceConfig {
|
||||
return InvoiceConfig{
|
||||
BaseChat: BaseChat{ChatID: chatID},
|
||||
Title: title,
|
||||
Description: description,
|
||||
Payload: payload,
|
||||
ProviderToken: providerToken,
|
||||
StartParameter: startParameter,
|
||||
Currency: currency,
|
||||
Prices: prices,
|
||||
PhotoUrl: photoUrl,
|
||||
PhotoSize: photoSize,
|
||||
PhotoWidth: photoWidth,
|
||||
PhotoHeight: photoHeight,
|
||||
NeedName: needName,
|
||||
NeedPhoneNumber: needPhoneNumber,
|
||||
NeedEmail: needEmail,
|
||||
NeedShippingAddress: needShippingAddress,
|
||||
IsFlexible: isFlexible}
|
||||
BaseChat: BaseChat{ChatID: chatID},
|
||||
Title: title,
|
||||
Description: description,
|
||||
Payload: payload,
|
||||
ProviderToken: providerToken,
|
||||
StartParameter: startParameter,
|
||||
Currency: currency,
|
||||
Prices: prices}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue