Skip to content

Commit a7f8b9c

Browse files
author
Syfaro
committed
Mention animated GIFs must be sent as document in NewPhotoUpload.
1 parent f2b3683 commit a7f8b9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

helpers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ func NewForward(chatID int, fromChatID int, messageID int) ForwardConfig {
3434
//
3535
// chatID is where to send it, file is a string path to the file,
3636
// FileReader, or FileBytes.
37+
//
38+
// Note that you must send animated GIFs as a document.
3739
func NewPhotoUpload(chatID int, file interface{}) PhotoConfig {
3840
return PhotoConfig{
3941
BaseFile: BaseFile{

0 commit comments

Comments
 (0)