rohitsangwan01 / whatsapp_bot_flutter

Whatsapp bot for flutter desktop
MIT License
37 stars 24 forks source link

DeleteMessage is broken? #49

Closed loic-hamdi closed 5 months ago

loic-hamdi commented 10 months ago

Hi @rohitsangwan01 , I can't delete message anymore, neither in normal chat or in group chat. Is it still working on your side?

loic-hamdi commented 10 months ago

@rohitsangwan01 bump

loic-hamdi commented 9 months ago

Hey @rohitsangwan01 , can you please have a look at this? It is breaking for my app. Thanks in advance

loic-hamdi commented 6 months ago

@rohitsangwan01 are you ok?

rohitsangwan01 commented 6 months ago

@loic-hamdi hey yes am ok 😅 Which platform you are using ?

loic-hamdi commented 6 months ago

@loic-hamdi hey yes am ok 😅 Which platform you are using ?

Good to hear! 😅

In Dart with terminal WhatsappBotFlutter.connect()

rohitsangwan01 commented 6 months ago

No i mean, is it mac or windows ?

loic-hamdi commented 6 months ago

No i mean, is it mac or windows ?

Mac & Linux

rohitsangwan01 commented 6 months ago

@loic-hamdi can you cross check with this library https://github.com/wppconnect-team/wppconnect?tab=readme-ov-file Because this dart library is wrapper over this one

loic-hamdi commented 6 months ago

@loic-hamdi can you cross check with this library https://github.com/wppconnect-team/wppconnect?tab=readme-ov-file Because this dart library is wrapper over this one

Deleting messages seems to be working properly with wa-js https://github.com/wppconnect-team/wa-js/issues/1452

You are not facing any issue on your side?

rohitsangwan01 commented 6 months ago

@loic-hamdi its working for me, you have to pass serialized id for messageID

   await client.chat.deleteMessage(
      phone: message.from,
      messageId: message.id!.serialized,
   );