2022-04-26 00:02:51 +08:00
|
|
|
package models
|
|
|
|
|
2022-05-02 21:13:17 +08:00
|
|
|
// ShippingAddress https://core.telegram.org/bots/api#shippingaddress
|
2022-04-26 00:02:51 +08:00
|
|
|
type ShippingAddress struct {
|
|
|
|
CountryCode string `json:"country_code"`
|
|
|
|
State string `json:"state"`
|
|
|
|
City string `json:"city"`
|
|
|
|
StreetLine1 string `json:"street_line1"`
|
|
|
|
StreetLine2 string `json:"street_line2"`
|
|
|
|
PostCode string `json:"post_code"`
|
|
|
|
}
|
|
|
|
|
2022-05-02 21:13:17 +08:00
|
|
|
// ShippingQuery https://core.telegram.org/bots/api#shippingquery
|
2022-04-26 00:02:51 +08:00
|
|
|
type ShippingQuery struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
From *User `json:"from"`
|
|
|
|
InvoicePayload string `json:"invoice_payload"`
|
|
|
|
ShippingAddress ShippingAddress `json:"shipping_address"`
|
|
|
|
}
|
2022-05-02 21:13:17 +08:00
|
|
|
|
|
|
|
// ShippingOption https://core.telegram.org/bots/api#shippingoption
|
|
|
|
type ShippingOption struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
Prices []LabeledPrice `json:"prices"`
|
|
|
|
}
|