Skip to content

Commit 1bbe8c7

Browse files
author
Syfaro
committed
fix broken const
1 parent 6b9324c commit 1bbe8c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ type File struct {
183183
//
184184
// It requires the Bot Token to create the link.
185185
func (f *File) Link(token string) string {
186-
return fmt.Sprintf(FileEndpoint, token, f.FilePath)
186+
return fmt.Sprintf("https://api.telegram.org/file/bot%s/%s", token, f.FilePath)
187187
}
188188

189189
// ReplyKeyboardMarkup allows the Bot to set a custom keyboard.

0 commit comments

Comments
 (0)