cleanUp for merge

pull/271/head
Sergey Ryazanov 6 years ago
parent 07366fa0b9
commit e68add58f0
  1. 9
      bot.go
  2. 1
      types.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 {

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