|
|
|
@ -268,14 +268,13 @@ func NewContact(chatID int64, phoneNumber, firstName string) ContactConfig { |
|
|
|
|
// NewLocation shares your location.
|
|
|
|
|
//
|
|
|
|
|
// chatID is where to send it, latitude and longitude are coordinates.
|
|
|
|
|
func NewLocation(chatID int64, latitude float64, longitude float64, live_period int) LocationConfig { |
|
|
|
|
func NewLocation(chatID int64, latitude float64, longitude float64) LocationConfig { |
|
|
|
|
return LocationConfig{ |
|
|
|
|
BaseChat: BaseChat{ |
|
|
|
|
ChatID: chatID, |
|
|
|
|
}, |
|
|
|
|
Latitude: latitude, |
|
|
|
|
Longitude: longitude, |
|
|
|
|
LivePeriod: live_period, |
|
|
|
|
Latitude: latitude, |
|
|
|
|
Longitude: longitude, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -466,14 +465,13 @@ func NewInlineQueryResultDocument(id, url, title, mimeType string) InlineQueryRe |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// NewInlineQueryResultLocation creates a new inline query location.
|
|
|
|
|
func NewInlineQueryResultLocation(id, title string, latitude, longitude float64, live_period int) InlineQueryResultLocation { |
|
|
|
|
func NewInlineQueryResultLocation(id, title string, latitude, longitude float64) InlineQueryResultLocation { |
|
|
|
|
return InlineQueryResultLocation{ |
|
|
|
|
Type: "location", |
|
|
|
|
ID: id, |
|
|
|
|
Title: title, |
|
|
|
|
Latitude: latitude, |
|
|
|
|
Longitude: longitude, |
|
|
|
|
LivePeriod: live_period, |
|
|
|
|
Type: "location", |
|
|
|
|
ID: id, |
|
|
|
|
Title: title, |
|
|
|
|
Latitude: latitude, |
|
|
|
|
Longitude: longitude, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|