Fix comments that were copied.
parent
bb07769ea9
commit
c268ddc5b9
11
configs.go
11
configs.go
|
@ -597,7 +597,7 @@ func (config LocationConfig) method() string {
|
||||||
return "sendLocation"
|
return "sendLocation"
|
||||||
}
|
}
|
||||||
|
|
||||||
// LocationConfig contains information about a SendLocation request.
|
// EditMessageLiveLocationConfig allows you to update a live location.
|
||||||
type EditMessageLiveLocationConfig struct {
|
type EditMessageLiveLocationConfig struct {
|
||||||
BaseEdit
|
BaseEdit
|
||||||
Latitude float64 // required
|
Latitude float64 // required
|
||||||
|
@ -622,19 +622,14 @@ func (config EditMessageLiveLocationConfig) method() string {
|
||||||
return "editMessageLiveLocation"
|
return "editMessageLiveLocation"
|
||||||
}
|
}
|
||||||
|
|
||||||
// LocationConfig contains information about a StopMessageLiveLocation request.
|
// StopMessageLiveLocationConfig stops updating a live location.
|
||||||
type StopMessageLiveLocationConfig struct {
|
type StopMessageLiveLocationConfig struct {
|
||||||
BaseEdit
|
BaseEdit
|
||||||
}
|
}
|
||||||
|
|
||||||
// values returns a url.Values representation of StopMessageLiveLocationConfig.
|
// values returns a url.Values representation of StopMessageLiveLocationConfig.
|
||||||
func (config StopMessageLiveLocationConfig) values() (url.Values, error) {
|
func (config StopMessageLiveLocationConfig) values() (url.Values, error) {
|
||||||
v, err := config.BaseEdit.values()
|
return config.BaseEdit.values()
|
||||||
if err != nil {
|
|
||||||
return v, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return v, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// method returns Telegram API method name for stop message Live Location.
|
// method returns Telegram API method name for stop message Live Location.
|
||||||
|
|
Loading…
Reference in New Issue