From 1bbe8c7bd299305b818da90bd2fd6ce0be5f5c07 Mon Sep 17 00:00:00 2001 From: Syfaro Date: Sat, 19 Sep 2015 13:41:55 -0500 Subject: [PATCH] fix broken const --- types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.go b/types.go index 626cddd..0983fa4 100644 --- a/types.go +++ b/types.go @@ -183,7 +183,7 @@ type File struct { // // It requires the Bot Token to create the link. 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.