From e68add58f0149cd9e18286a397636c38a1429c40 Mon Sep 17 00:00:00 2001 From: Sergey Ryazanov Date: Fri, 27 Sep 2019 13:46:02 +0300 Subject: [PATCH] cleanUp for merge --- bot.go | 9 +-------- types.go | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/bot.go b/bot.go index 225ec85..9ef22b5 100644 --- a/bot.go +++ b/bot.go @@ -31,13 +31,6 @@ type BotAPI struct { apiEndpoint string } -//const ( -// // APIEndpoint is the endpoint for all API methods, -// // with formatting for Sprintf. -// // FileEndpoint is the endpoint for downloading a file from Telegram. -// FileEndpoint = "https://api.telegram.org/file/bot%s/%s" -//) - // NewBotAPI creates a new BotAPI instance. // // It requires a token, provided by @BotFather on Telegram. @@ -82,7 +75,7 @@ func (b *BotAPI) SetAPIEndpoint(apiEndpoint string) { } -// Link returns a full path to send Bot request. +// buildUrl returns a full path to send Bot request. // // It requires the Bot method string. func (bot *BotAPI) buildUrl(method string) string { diff --git a/types.go b/types.go index 75f22b5..52cb36c 100644 --- a/types.go +++ b/types.go @@ -431,7 +431,6 @@ func (f *File) Link(token string) string { return fmt.Sprintf(FileEndpoint, token, f.FilePath) } -//https://api.telegram.org/file/bot%s/%s" // ReplyKeyboardMarkup allows the Bot to set a custom keyboard. type ReplyKeyboardMarkup struct { Keyboard [][]KeyboardButton `json:"keyboard"`