fix broken const

bot-api-6.1
Syfaro 2015-09-19 13:41:55 -05:00
parent 6b9324ca39
commit 1bbe8c7bd2
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ type File struct {
// //
// It requires the Bot Token to create the link. // It requires the Bot Token to create the link.
func (f *File) Link(token string) string { func (f *File) Link(token string) string {
return fmt.Sprintf(FileEndpoint, token, f.FilePath) return fmt.Sprintf("https://api.telegram.org/file/bot%s/%s", token, f.FilePath)
} }
// ReplyKeyboardMarkup allows the Bot to set a custom keyboard. // ReplyKeyboardMarkup allows the Bot to set a custom keyboard.