WhatsAppToDiscord icon indicating copy to clipboard operation
WhatsAppToDiscord copied to clipboard

Bot sends only msg from WA to DC, but not from DC to WA.

Open wilsonlim60 opened this issue 10 months ago • 5 comments

After few months of using, I just realized this few weeks ago. As title.

Steps taken: (Same bot)

  1. Kicked bot out from DC server.
  2. Removed all bot storage and setting files.
  3. Reset bot token in DC Developer portal.
  4. Restart bot > Reinvited > set all the parameters including whitelist and oneway disabled.
  5. No luck.

(Decided to create a new bot)

  1. Kicked old bot out from DC server.
  2. Removed all bot storage and setting files.
  3. Create new bot in DC Developer portal.
  4. Start new bot > Reinvite > set all the parameters including whitelist and oneway disabled.
  5. No luck.

============= Anyone out there encounter this ? or is there any idea for me to try out? Thank you.

wilsonlim60 avatar Jun 16 '25 01:06 wilsonlim60

Not sure if these help, attached the bot log files during startup below. Thanks.


These are the lines from bot running.

Bot is now running. Press CTRL-C to exit. <ref *1> Message { channelId: '<some channel ID>', guildId: '', id: '', position: null, createdTimestamp: 1750072927302, type: 'DEFAULT', system: false, content: 'WhatsApp connection successfully opened!', author: ClientUser { id: '', bot: true, system: false, flags: UserFlags { bitfield: 0 }, username: '', globalName: null, discriminator: '1062', avatar: 'b7c54aa012bde5d6cd46911ad39b1ba4', banner: undefined, accentColor: undefined, avatarDecoration: null, verified: true, mfaEnabled: true }, pinned: false, tts: false, nonce: null, embeds: [], components: [], attachments: Collection(0) [Map] {}, stickers: Collection(0) [Map] {}, editedTimestamp: null, reactions: ReactionManager { message: [Circular *1] }, mentions: MessageMentions { everyone: false, users: Collection(0) [Map] {}, roles: Collection(0) [Map] {}, _members: null, _channels: null, _parsedUsers: null, crosspostedChannels: Collection(0) [Map] {}, repliedUser: null }, webhookId: null, groupActivityApplication: null, applicationId: null, activity: null, flags: MessageFlags { bitfield: 0 }, reference: null, interaction: null }

===================

These are the start up logs:

{"level":30,"time":1750072923530,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Starting"} {"level":30,"time":1750072923987,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Update checked."} {"level":30,"time":1750072923987,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Conversion completed."} {"level":30,"time":1750072923993,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Loaded settings."} {"level":30,"time":1750072923993,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Changed auto save interval."} {"level":30,"time":1750072924013,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Loaded contacts."} {"level":30,"time":1750072924014,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Loaded chats."} {"level":30,"time":1750072924014,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Loaded last messages."} {"level":30,"time":1750072925026,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Discord client started."} {"level":30,"time":1750072926020,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"Repaired channels."} {"level":30,"time":1750072926064,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"WhatsApp client started."} {"level":30,"time":1750072926241,"pid":1000349,"hostname":"","version":"v0.10.28","browser":["Firefox (Linux)","",""],"helloMsg":{"clientHello":{"ephemeral":""}},"msg":"connected to WA"} {"level":30,"time":1750072926416,"pid":1000349,"hostname":"","version":"v0.10.28","node":{"username":"","passive":true,"userAgent":{"platform":"WEB","appVersion":{"primary":2,"secondary":3000,"tertiary":1023223821},"mcc":"000","mnc":"000","osVersion":"0.1","manufacturer":"","device":"Desktop","osBuildNumber":"0.1","releaseChannel":"RELEASE","localeLanguageIso6391":"en","localeCountryIso31661Alpha2":"US"},"webInfo":{"webSubPlatform":"WEB_BROWSER"},"connectType":"WIFI_UNKNOWN","connectReason":"USER_ACTIVATED","device":34},"msg":"logging in..."} {"level":30,"time":1750072926866,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"20 pre-keys found on server"} {"level":30,"time":1750072927029,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"opened connection to WA"} {"level":30,"time":1750072927072,"pid":1000349,"hostname":"","version":"v0.10.28","msg":"handled 0 offline messages/notifications"}

wilsonlim60 avatar Jun 16 '25 11:06 wilsonlim60

Attached the two logs [Left side = DC to WA (not working) | Right side = WA to DC (Working)] Is there any unusual info shown?

Image

wilsonlim60 avatar Jun 16 '25 13:06 wilsonlim60

I'm having the same issue. I havent tried anything to resolve it yet, on holiday at the moment. Just wanted to bump this thread

spookycookie27 avatar Jun 16 '25 15:06 spookycookie27

Attached latest test logs, after some testing, realized that:

  1. Everything works fine when msging between contacts (non-group). Msgs are sent normally.

  2. Testing by sending msgs from creating new group/some existing groups : WA->DC = 👍 working , no problem DC-> WA = ⛔ not working, msg not sent and bot crashed with error msg (No session).

=============================== {"level":50,"time":1750146567089,"pid":1006203,"hostname":"","version":"v0.10.28","err":{"type":"SessionError","message":"No sessions","stack":"SessionError: No sessions\n at 61847646515264.35 [as awaitable] (/snapshot/WhatsAppToDiscord/out.js)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async _asyncQueueExecutor (/snapshot/WhatsAppToDiscord/out.js)","name":"SessionError"},"msg":"No sessions"} {"level":30,"time":1750146567090,"pid":1006203,"hostname":"","version":"v0.10.28","msg":"Exiting!"}

wilsonlim60 avatar Jun 17 '25 07:06 wilsonlim60

Same.. I destroyed old bot, cleared storage, set everything up again, also using whitelist, to sync only 2 whatsApp group chats

only works from WA > DC, not DC > WA

spookycookie27 avatar Jun 28 '25 13:06 spookycookie27