Skip to content

Commit

Permalink
docs: added an example for reading files from a path
Browse files Browse the repository at this point in the history
  • Loading branch information
gekkedev authored and icleitoncosta committed Oct 24, 2024
1 parent e20fb63 commit 1390a40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/layers/sender.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,10 @@ export class SenderLayer extends ListenerLayer {
*
* @example
* ```javascript
* // Simple message
* // File message from a path
* client.sendFile('<number>@c.us', './someFile.txt');
* // Simple message from base64
*
* client.sendFile('<number>@c.us', 'data:text/plain;base64,V1BQQ29ubmVjdA==');
*
* // With buttons
Expand Down

0 comments on commit 1390a40

Please sign in to comment.