Skip to content

Commit

Permalink
doc: enhanced base64 image-related JSDOC sections
Browse files Browse the repository at this point in the history
  • Loading branch information
gekkedev authored Jun 30, 2024
1 parent 1358053 commit c256550
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/api/layers/sender.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,18 @@ export class SenderLayer extends ListenerLayer {
/**
* Sends image message
* @category Chat
* @param to Chat id
* @param base64 File path, http link or base64Encoded
* @param to ID of the chat to send the image to
* @param base64 File path, HTTP link, or a base64-encoded data URI (with mime type)
* @param filename
* @param caption
* @param quotedMessageId Quoted message id
* @param isViewOnce Enable single view
* @param mentionedList
* @example
* ```javascript
* const base64picture = "/9j/4AA[...]VZoCn9Lp//Z"
* await client.sendImageFromBase64("120[...][email protected]'", "data:image/png;base64," + base64picture, "picture.png")
* ```
*/
public async sendImageFromBase64(
to: string,
Expand Down

0 comments on commit c256550

Please sign in to comment.