Mention animated GIFs must be sent as document in NewPhotoUpload.

bot-api-6.1
Syfaro 2016-01-08 09:16:47 -06:00
parent f2b36838e6
commit a7f8b9c291
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ func NewForward(chatID int, fromChatID int, messageID int) ForwardConfig {
// //
// chatID is where to send it, file is a string path to the file, // chatID is where to send it, file is a string path to the file,
// FileReader, or FileBytes. // FileReader, or FileBytes.
//
// Note that you must send animated GIFs as a document.
func NewPhotoUpload(chatID int, file interface{}) PhotoConfig { func NewPhotoUpload(chatID int, file interface{}) PhotoConfig {
return PhotoConfig{ return PhotoConfig{
BaseFile: BaseFile{ BaseFile: BaseFile{