@@ -1033,116 +1033,116 @@ export class BusinessStartupService extends WAStartupService {
10331033 }
10341034 }
10351035
1036- // methods not implemented yet
1036+ // methods not available on WhatsApp Business API
10371037 public async mediaSticker ( ) {
1038- console . log ( 'mediaSticker ') ;
1038+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10391039 }
10401040 public async audioWhatsapp ( ) {
1041- console . log ( 'audioWhatsapp ') ;
1041+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10421042 }
10431043 public async pollMessage ( ) {
1044- console . log ( 'pollMessage ') ;
1044+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10451045 }
10461046 public async statusMessage ( ) {
1047- console . log ( 'statusMessage ') ;
1047+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10481048 }
10491049 public async reloadConnection ( ) {
1050- console . log ( 'Reloading connection ') ;
1050+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10511051 }
10521052 public async whatsappNumber ( ) {
1053- console . log ( 'whatsappNumber ') ;
1053+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10541054 }
10551055 public async markMessageAsRead ( ) {
1056- console . log ( 'markMessageAsRead ') ;
1056+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10571057 }
10581058 public async archiveChat ( ) {
1059- console . log ( 'archiveChat ') ;
1059+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10601060 }
10611061 public async deleteMessage ( ) {
1062- console . log ( 'deleteMessage ') ;
1062+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10631063 }
10641064 public async fetchProfile ( ) {
1065- console . log ( 'fetchProfile ') ;
1065+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10661066 }
10671067 public async sendPresence ( ) {
1068- console . log ( 'sendPresence ') ;
1068+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10691069 }
10701070 public async fetchPrivacySettings ( ) {
1071- console . log ( 'fetchPrivacySettings ') ;
1071+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10721072 }
10731073 public async updatePrivacySettings ( ) {
1074- console . log ( 'updatePrivacySettings ') ;
1074+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10751075 }
10761076 public async fetchBusinessProfile ( ) {
1077- console . log ( 'fetchBusinessProfile ') ;
1077+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10781078 }
10791079 public async updateProfileName ( ) {
1080- console . log ( 'updateProfileName ') ;
1080+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10811081 }
10821082 public async updateProfileStatus ( ) {
1083- console . log ( 'updateProfileStatus ') ;
1083+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10841084 }
10851085 public async updateProfilePicture ( ) {
1086- console . log ( 'updateProfilePicture ') ;
1086+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10871087 }
10881088 public async removeProfilePicture ( ) {
1089- console . log ( 'removeProfilePicture ') ;
1089+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10901090 }
10911091 public async updateMessage ( ) {
1092- console . log ( 'updateMessage ') ;
1092+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10931093 }
10941094 public async createGroup ( ) {
1095- console . log ( 'createGroup ') ;
1095+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10961096 }
10971097 public async updateGroupPicture ( ) {
1098- console . log ( 'updateGroupPicture ') ;
1098+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
10991099 }
11001100 public async updateGroupSubject ( ) {
1101- console . log ( 'updateGroupSubject ') ;
1101+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11021102 }
11031103 public async updateGroupDescription ( ) {
1104- console . log ( 'updateGroupDescription ') ;
1104+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11051105 }
11061106 public async findGroup ( ) {
1107- console . log ( 'findGroup ') ;
1107+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11081108 }
11091109 public async fetchAllGroups ( ) {
1110- console . log ( 'fetchAllGroups ') ;
1110+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11111111 }
11121112 public async inviteCode ( ) {
1113- console . log ( 'inviteCode ') ;
1113+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11141114 }
11151115 public async inviteInfo ( ) {
1116- console . log ( 'inviteInfo ') ;
1116+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11171117 }
11181118 public async sendInvite ( ) {
1119- console . log ( 'sendInvite ') ;
1119+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11201120 }
11211121 public async acceptInviteCode ( ) {
1122- console . log ( 'acceptInviteCode ') ;
1122+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11231123 }
11241124 public async revokeInviteCode ( ) {
1125- console . log ( 'revokeInviteCode ') ;
1125+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11261126 }
11271127 public async findParticipants ( ) {
1128- console . log ( 'findParticipants ') ;
1128+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11291129 }
11301130 public async updateGParticipant ( ) {
1131- console . log ( 'updateGParticipant ') ;
1131+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11321132 }
11331133 public async updateGSetting ( ) {
1134- console . log ( 'updateGSetting ') ;
1134+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11351135 }
11361136 public async toggleEphemeral ( ) {
1137- console . log ( 'toggleEphemeral ') ;
1137+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11381138 }
11391139 public async leaveGroup ( ) {
1140- console . log ( 'leaveGroup ') ;
1140+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11411141 }
11421142 public async fetchLabels ( ) {
1143- console . log ( 'fetchLabels ') ;
1143+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11441144 }
11451145 public async handleLabel ( ) {
1146- console . log ( 'handleLabel ') ;
1146+ throw new BadRequestException ( 'Method not available on WhatsApp Business API ') ;
11471147 }
11481148}
0 commit comments