all repos — telegram-bot-api @ 655c3a4137072ec3d30bf69378c601b1fc44770f

Golang bindings for the Telegram Bot API

Remove outdated and old comments.
Syfaro syfaro@huefox.com
Mon, 08 Oct 2018 18:26:50 -0500
commit

655c3a4137072ec3d30bf69378c601b1fc44770f

parent

03815bf5bd2b255ccbca2e4beefb563a65ce945e

1 files changed, 0 insertions(+), 40 deletions(-)

jump to
M configs.goconfigs.go

@@ -68,7 +68,6 @@ ReplyMarkup interface{}

DisableNotification bool } -// params returns Params representation of BaseChat func (chat *BaseChat) params() (Params, error) { v := make(Params)

@@ -91,7 +90,6 @@ MimeType string

FileSize int } -// params returns a Params representation of BaseFile. func (file BaseFile) params() (Params, error) { params, err := file.BaseChat.params()

@@ -101,12 +99,10 @@

return params, err } -// getFile returns the file. func (file BaseFile) getFile() interface{} { return file.File } -// useExistingFile returns if the BaseFile has already been uploaded. func (file BaseFile) useExistingFile() bool { return file.UseExisting }

@@ -143,7 +139,6 @@ ParseMode string

DisableWebPagePreview bool } -// values returns a url.Values representation of MessageConfig. func (config MessageConfig) params() (Params, error) { v, err := config.BaseChat.params() if err != nil {

@@ -157,7 +152,6 @@

return v, nil } -// method returns Telegram API method name for sending Message. func (config MessageConfig) method() string { return "sendMessage" }

@@ -170,7 +164,6 @@ FromChannelUsername string

MessageID int // required } -// values returns a url.Values representation of ForwardConfig. func (config ForwardConfig) params() (Params, error) { v, err := config.BaseChat.params() if err != nil {

@@ -183,7 +176,6 @@

return v, nil } -// method returns Telegram API method name for sending Forward. func (config ForwardConfig) method() string { return "forwardMessage" }

@@ -195,7 +187,6 @@ Caption string

ParseMode string } -// Params returns a map[string]string representation of PhotoConfig. func (config PhotoConfig) params() (Params, error) { params, err := config.BaseFile.params()

@@ -206,12 +197,10 @@

return params, err } -// name returns the field name for the Photo. func (config PhotoConfig) name() string { return "photo" } -// method returns Telegram API method name for sending Photo. func (config PhotoConfig) method() string { return "sendPhoto" }

@@ -226,7 +215,6 @@ Performer string

Title string } -// values returns a url.Values representation of AudioConfig. func (config AudioConfig) params() (Params, error) { v, err := config.BaseChat.params() if err != nil {

@@ -243,12 +231,10 @@

return v, nil } -// name returns the field name for the Audio. func (config AudioConfig) name() string { return "audio" } -// method returns Telegram API method name for sending Audio. func (config AudioConfig) method() string { return "sendAudio" }

@@ -260,7 +246,6 @@ Caption string

ParseMode string } -// params returns a map[string]string representation of DocumentConfig. func (config DocumentConfig) params() (Params, error) { params, err := config.BaseFile.params()

@@ -271,12 +256,10 @@

return params, err } -// name returns the field name for the Document. func (config DocumentConfig) name() string { return "document" } -// method returns Telegram API method name for sending Document. func (config DocumentConfig) method() string { return "sendDocument" }

@@ -286,7 +269,6 @@ type StickerConfig struct {

BaseFile } -// values returns a url.Values representation of StickerConfig. func (config StickerConfig) params() (Params, error) { v, err := config.BaseChat.params()

@@ -295,12 +277,10 @@

return v, err } -// name returns the field name for the Sticker. func (config StickerConfig) name() string { return "sticker" } -// method returns Telegram API method name for sending Sticker. func (config StickerConfig) method() string { return "sendSticker" }

@@ -313,7 +293,6 @@ Caption string

ParseMode string } -// values returns a url.Values representation of VideoConfig. func (config VideoConfig) params() (Params, error) { v, err := config.BaseChat.params()

@@ -325,12 +304,10 @@

return v, err } -// name returns the field name for the Video. func (config VideoConfig) name() string { return "video" } -// method returns Telegram API method name for sending Video. func (config VideoConfig) method() string { return "sendVideo" }

@@ -343,7 +320,6 @@ Caption string

ParseMode string } -// values returns a Params representation of AnimationConfig. func (config AnimationConfig) params() (Params, error) { v, err := config.BaseChat.params()

@@ -355,12 +331,10 @@

return v, err } -// name returns the field name for the Animation. func (config AnimationConfig) name() string { return "animation" } -// method returns Telegram API method name for sending Animation. func (config AnimationConfig) method() string { return "sendAnimation" }

@@ -372,7 +346,6 @@ Duration int

Length int } -// values returns a url.Values representation of VideoNoteConfig. func (config VideoNoteConfig) params() (Params, error) { v, err := config.BaseChat.params()

@@ -383,12 +356,10 @@

return v, err } -// name returns the field name for the VideoNote. func (config VideoNoteConfig) name() string { return "video_note" } -// method returns Telegram API method name for sending VideoNote. func (config VideoNoteConfig) method() string { return "sendVideoNote" }

@@ -401,7 +372,6 @@ ParseMode string

Duration int } -// values returns a url.Values representation of VoiceConfig. func (config VoiceConfig) params() (Params, error) { v, err := config.BaseChat.params()

@@ -413,12 +383,10 @@

return v, err } -// name returns the field name for the Voice. func (config VoiceConfig) name() string { return "voice" } -// method returns Telegram API method name for sending Voice. func (config VoiceConfig) method() string { return "sendVoice" }

@@ -431,7 +399,6 @@ Longitude float64 // required

LivePeriod int // optional } -// values returns a url.Values representation of LocationConfig. func (config LocationConfig) params() (Params, error) { v, err := config.BaseChat.params()

@@ -442,7 +409,6 @@

return v, err } -// method returns Telegram API method name for sending Location. func (config LocationConfig) method() string { return "sendLocation" }

@@ -454,7 +420,6 @@ Latitude float64 // required

Longitude float64 // required } -// values returns a url.Values representation of EditMessageLiveLocationConfig. func (config EditMessageLiveLocationConfig) params() (Params, error) { v, err := config.BaseEdit.params()

@@ -464,7 +429,6 @@

return v, err } -// method returns Telegram API method name for edit message Live Location. func (config EditMessageLiveLocationConfig) method() string { return "editMessageLiveLocation" }

@@ -474,12 +438,10 @@ type StopMessageLiveLocationConfig struct {

BaseEdit } -// values returns a url.Values representation of StopMessageLiveLocationConfig. func (config StopMessageLiveLocationConfig) params() (Params, error) { return config.BaseEdit.params() } -// method returns Telegram API method name for stop message Live Location. func (config StopMessageLiveLocationConfig) method() string { return "stopMessageLiveLocation" }

@@ -617,7 +579,6 @@ BaseChat

Action string // required } -// values returns a url.Values representation of ChatActionConfig. func (config ChatActionConfig) params() (Params, error) { v, err := config.BaseChat.params()

@@ -626,7 +587,6 @@

return v, err } -// method returns Telegram API method name for sending ChatAction. func (config ChatActionConfig) method() string { return "sendChatAction" }