all repos — telegram-bot-api @ c268ddc5b9ba4010cd532007877c301b6d4482c4

Golang bindings for the Telegram Bot API

Fix comments that were copied.
Syfaro syfaro@huefox.com
Fri, 29 Dec 2017 17:06:33 -0600
commit

c268ddc5b9ba4010cd532007877c301b6d4482c4

parent

bb07769ea9a507112da471c1df8f0d28eacaef31

1 files changed, 3 insertions(+), 8 deletions(-)

jump to
M configs.goconfigs.go

@@ -597,7 +597,7 @@ func (config LocationConfig) method() string {

return "sendLocation" } -// LocationConfig contains information about a SendLocation request. +// EditMessageLiveLocationConfig allows you to update a live location. type EditMessageLiveLocationConfig struct { BaseEdit Latitude float64 // required

@@ -622,19 +622,14 @@ func (config EditMessageLiveLocationConfig) method() string {

return "editMessageLiveLocation" } -// LocationConfig contains information about a StopMessageLiveLocation request. +// StopMessageLiveLocationConfig stops updating a live location. type StopMessageLiveLocationConfig struct { BaseEdit } // values returns a url.Values representation of StopMessageLiveLocationConfig. func (config StopMessageLiveLocationConfig) values() (url.Values, error) { - v, err := config.BaseEdit.values() - if err != nil { - return v, err - } - - return v, nil + return config.BaseEdit.values() } // method returns Telegram API method name for stop message Live Location.