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.