all repos — telegram-bot-api @ a7f8b9c291f7816641369eef61b937e1b3ef3e8b

Golang bindings for the Telegram Bot API

Mention animated GIFs must be sent as document in NewPhotoUpload.
Syfaro syfaro@foxpaw.in
Fri, 08 Jan 2016 09:16:47 -0600
commit

a7f8b9c291f7816641369eef61b937e1b3ef3e8b

parent

f2b36838e6134c4db9b3f4d78d9cd2fe40e25724

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M helpers.gohelpers.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{