The file I sent does not have a name
voyager-hang opened this issue · comments
What version of gotd are you using?
$ go list -m github.com/gotd/td
github.com/gotd/td v0.83.0
What Go version and environment are you using?
$ go version
go version go1.19.6 linux/amd64
I uploaded a file to send to the chat and the file does not have a display name
My code
res, err = tc.Sender.To(toPeer).Upload(message.FromBytes("name.xlsx", fileContent.Body)).File(tc.ctx)
I would like to know if the upload method is incorrect, thanks
message.UploadedDocument(f).Filename("name.xlsx").MIME(fileContent.MimeType)