Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: typos in API naming #2212

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
16 changes: 8 additions & 8 deletions src/api/layers/sender.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ export class SenderLayer extends ListenerLayer {
}

/**
* Sets a audio or image view once. Marks message as played
* Sets an audio or image view once. Marks message as played
* @category Chat
* @param msgId Message id: [email protected]
*/
Expand All @@ -1107,7 +1107,7 @@ export class SenderLayer extends ListenerLayer {
* ```
* @category Chat
* @param to Chat Id
* @param duration Duration um miliseconds
* @param duration Duration um milliseconds
*/
public async startTyping(to: string, duration?: number) {
return evaluateAndReturn(
Expand Down Expand Up @@ -1135,15 +1135,15 @@ export class SenderLayer extends ListenerLayer {
* Starts recording ('Recording...' state)
* @example
* ```javascript
* // Keep sending recording state, use stopRecoring to finish
* // Keep sending recording state, use `stopRecording` to finish
* await client.startRecording('[number]@c.us');
*
* // Keep sending typing state for 5 seconds
* await client.startRecording('[number]@c.us', 5000);
* ```
* @category Chat
* @param to Chat Id
* @param duration Duration um miliseconds
* @param duration Duration um milliseconds
*/
public async startRecording(to: string, duration?: number) {
return evaluateAndReturn(
Expand All @@ -1161,7 +1161,7 @@ export class SenderLayer extends ListenerLayer {
* @category Chat
* @param to Chat Id
*/
public async stopRecoring(to: string) {
public async stopRecording(to: string) {
return evaluateAndReturn(this.page, ({ to }) => WPP.chat.markIsPaused(to), {
to,
});
Expand Down Expand Up @@ -1346,7 +1346,7 @@ export class SenderLayer extends ListenerLayer {
* ```
* @category Chat
* @param to Chat Id
* @param duration Duration um miliseconds
* @param duration Duration um milliseconds
*/
public async sendReactionToMessage(msgId: string, reaction: string | false) {
return evaluateAndReturn(
Expand All @@ -1360,12 +1360,12 @@ export class SenderLayer extends ListenerLayer {
}

/**
* Send a order message
* Send an order message
* To send (prices, tax, shipping or discount), for example: USD 12.90, send them without dots or commas, like: 12900
*
* @example
* ```javascript
* // Send Order with a product
* // Send an order with a product
* client.sendOrderMessage('[number]@c.us', [
* { type: 'product', id: '67689897878', qnt: 2 },
* { type: 'product', id: '37878774457', qnt: 1 },
Expand Down
2 changes: 1 addition & 1 deletion src/api/model/enum/group-notification-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

export enum GroupNotificationType {
Add = 'add',
Inivite = 'invite',
Invite = 'invite',
Remove = 'remove',
Leave = 'leave',
Subject = 'subject',
Expand Down
Loading