add missing const
This commit is contained in:
parent
1bbe8c7bd2
commit
7092cefe65
2 changed files with 3 additions and 1 deletions
2
types.go
2
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("https://api.telegram.org/file/bot%s/%s", token, f.FilePath)
|
||||
return fmt.Sprintf(FileEndpoint, token, f.FilePath)
|
||||
}
|
||||
|
||||
// ReplyKeyboardMarkup allows the Bot to set a custom keyboard.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue