Bot getFileDirectUrl method added
Gleb Sinyavsky zhulik.gleb@gmail.com
Sat, 21 Nov 2015 16:25:59 +0300
1 files changed,
10 insertions(+),
0 deletions(-)
jump to
M
bot.go
→
bot.go
@@ -169,6 +169,16 @@
return apiResp, nil } +func (this *BotAPI) getFileDirectUrl(fileID string) (string, error) { + file, err := this.GetFile(FileConfig{fileID}) + + if err != nil { + return "", err + } + + return file.Link(this.Token), nil +} + // GetMe fetches the currently authenticated bot. // // There are no parameters for this method.