Mention animated GIFs must be sent as document in NewPhotoUpload.
This commit is contained in:
parent
f2b36838e6
commit
a7f8b9c291
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
// FileReader, or FileBytes.
|
||||
//
|
||||
// Note that you must send animated GIFs as a document.
|
||||
func NewPhotoUpload(chatID int, file interface{}) PhotoConfig {
|
||||
return PhotoConfig{
|
||||
BaseFile: BaseFile{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue