Mention animated GIFs must be sent as document in NewPhotoUpload.
Syfaro syfaro@foxpaw.in
Fri, 08 Jan 2016 09:16:47 -0600
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
helpers.go
→
helpers.go
@@ -34,6 +34,8 @@ // NewPhotoUpload creates a new photo uploader.
// // chatID is where to send it, file is a string path to the file, // FileReader, or FileBytes. +// +// Note that you must send animated GIFs as a document. func NewPhotoUpload(chatID int, file interface{}) PhotoConfig { return PhotoConfig{ BaseFile: BaseFile{