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"`