Skip to content

Commit

Permalink
upload: fix godoc for UploadNewsletterReader
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 16, 2024
1 parent 82d17aa commit 9d0fe43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (cli *Client) UploadNewsletter(ctx context.Context, data []byte, appInfo Me

// UploadNewsletterReader uploads the given attachment to WhatsApp servers without encrypting it first.
//
// This is otherwise identical to [Upload], but it reads the plaintext from an [io.Reader] instead of a byte slice.
// This is otherwise identical to [UploadNewsletter], but it reads the plaintext from an [io.Reader] instead of a byte slice.
// Unlike [UploadReader], this does not require a temporary file. However, the data needs to be hashed first,
// so an [io.ReadSeeker] is required to be able to read the data twice.
func (cli *Client) UploadNewsletterReader(ctx context.Context, data io.ReadSeeker, appInfo MediaType) (resp UploadResponse, err error) {
Expand Down

0 comments on commit 9d0fe43

Please sign in to comment.