Skip to content

Commit

Permalink
feat: Extracted sendCallSignalingMsg function
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Feb 5, 2022
1 parent fe87aae commit 05b5779
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/whatsapp/functions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export * from './msgFindQuery';
export * from './products';
export * from './profilePic';
export * from './randomId';
export * from './sendCallSignalingMsg';
export * from './sendClear';
export * from './sendCreateGroup';
export * from './sendDelete';
Expand Down
48 changes: 48 additions & 0 deletions src/whatsapp/functions/sendCallSignalingMsg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*!
* Copyright 2021 WPPConnect Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Wid } from '..';
import { exportModule } from '../exportModule';
import { ChatModel } from '../models';

/** @whatsapp 67935 */
export declare function sendCallSignalingMsg(
data: {
common: {
type?: string;
call_id?: string;
peer_jid: Wid;
};
payload: [
string,
{
'call-id': string;
'call-creator': string;
count?: any;
},
null
];
},
tagId?: string
): Promise<ChatModel>;

exportModule(
exports,
{
sendCallSignalingMsg: 'sendCallSignalingMsg',
},
(m) => m.sendCallSignalingMsg
);

0 comments on commit 05b5779

Please sign in to comment.