We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b9324c commit 1bbe8c7Copy full SHA for 1bbe8c7
types.go
@@ -183,7 +183,7 @@ type File struct {
183
//
184
// It requires the Bot Token to create the link.
185
func (f *File) Link(token string) string {
186
- return fmt.Sprintf(FileEndpoint, token, f.FilePath)
+ return fmt.Sprintf("https://api.telegram.org/file/bot%s/%s", token, f.FilePath)
187
}
188
189
// ReplyKeyboardMarkup allows the Bot to set a custom keyboard.
0 commit comments