42wim / matterbridge

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)
Apache License 2.0
6.59k stars 613 forks source link

ERROR whatsapp: message type not implemented #1311

Closed bsde1234 closed 3 years ago

bsde1234 commented 3 years ago

Environment

Version:1.20.0

Operating system:debian 10

Please describe the expected behavior.

Please describe the actual behavior.

ERROR whatsapp: message type not implemented

Any steps to reproduce the behavior?

Please add your configuration file

[telegram.mytelegram]
#See https://core.telegram.org/bots#6-botfather 
#and https://www.linkedin.com/pulse/telegram-bots-beginners-marco-frau
Token="secret"
RemoteNickFormat="({PROTOCOL}) <{NICK}> "
MessageFormat="HTMLNick"

[whatsapp.mywhatsapp]
# Number you will use as a relay bot. Tip: Get some disposable sim card, don't rely on 
# your own number.
Number="+345345345"

# First time that you login you will need to scan QR code, then credentials will be saved in 
# a session file. 
# If you won't set SessionFile then you will need to scan QR code on every restart.
# optional (by default the session is stored only in memory, till restarting matterbridge)
SessionFile="session-345345345.gob"

# If your terminal is white we need to invert QR code in order for it to be scanned properly
# optional (default false)
QrOnWhiteTerminal=false

# Messages will be seen by other WhatsApp contacts as coming from the bridge. 
# Original nick will be part of the message.
RemoteNickFormat=" "

[[gateway]]
name="gateway1"
enable=true

[[gateway.out]]
account="whatsapp.mywhatsapp"
channel="xxxxx@g.us"

[[gateway.out]]
account="whatsapp.mywhatsapp"
channel="xxxxx@g.us"

[[gateway.out]]
account="whatsapp.mywhatsapp"
channel="xxxxx@g.us"

[[gateway.out]]
account="whatsapp.mywhatsapp"
channel="xxxxx@g.us"

[[gateway.out]]
account="whatsapp.mywhatsapp"
channel="xxxxx@g.us"

[[gateway.out]]
account="whatsapp.mywhatsapp"
channel="xxxxx@g.us"

[[gateway.out]]
account="whatsapp.mywhatsapp"
channel="xxxxx@g.us"

[[gateway.out]]
account="whatsapp.mywhatsapp"
channel="xxxxx@g.us"

[[gateway.out]]
account="whatsapp.mywhatsapp"
channel="xxxxx@g.us"

[[gateway.in]]
account="telegram.mytelegram"
channel="xxxxx"
bsde1234 commented 3 years ago

Reinstall whatsapp fixed

adrianovieira commented 3 years ago

Hi, please!

I'm getting same issue here.

  [[gateway.inout]]
  account="whatsapp.bridge"
  channel="xxxxx@g.us"

What I need to do to have this feature working?

allilengyi commented 3 years ago

Got the same issue. moreover I do not find any information on a possible group chat JID when using an imaginary one in the config

[0000]  INFO router:       [Start:gateway/router.go:75] Starting bridge: whatsapp.wabot 
[0000] DEBUG whatsapp:     [Connect:bridge/whatsapp/whatsapp.go:68] Connecting to WhatsApp..
[0000] DEBUG whatsapp:     [Connect:bridge/whatsapp/whatsapp.go:77] WhatsApp connection successful
[0000] DEBUG whatsapp:     [Connect:bridge/whatsapp/whatsapp.go:85] Restoring WhatsApp session..
[0001] DEBUG whatsapp:     [Connect:bridge/whatsapp/whatsapp.go:96] Session restored successfully!
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0002] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0002] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0002] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0002] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0002] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0002]  INFO whatsapp:     [joinChannels:bridge/bridge.go:77] whatsapp.wabot: joining 11111111-111111111111@g.us@g.us (ID: 11111111-111111111111@g.uswhatsapp.wabot)
[0002] FATAL main:         [main:matterbridge.go:68] Starting gateway failed: Bridge whatsapp.wabot failed to join channel: account doesn't belong to group with jid 11111111-111111111111@g.us

@adrianovieira If you doesn't have your JID already, don't use the form "xxxx@g.us" . Just use something like "TestGroup" or probably an empty string and there will be suggestions. Whatsapp Bridge is working for me. Altough this error message still persists.

MrDrache333 commented 3 years ago

Got the same issue. moreover I do not find any information on a possible group chat JID when using an imaginary one in the config

[0000]  INFO router:       [Start:gateway/router.go:75] Starting bridge: whatsapp.wabot 
[0000] DEBUG whatsapp:     [Connect:bridge/whatsapp/whatsapp.go:68] Connecting to WhatsApp..
[0000] DEBUG whatsapp:     [Connect:bridge/whatsapp/whatsapp.go:77] WhatsApp connection successful
[0000] DEBUG whatsapp:     [Connect:bridge/whatsapp/whatsapp.go:85] Restoring WhatsApp session..
[0001] DEBUG whatsapp:     [Connect:bridge/whatsapp/whatsapp.go:96] Session restored successfully!
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0001] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0002] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0002] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0002] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0002] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0002] ERROR whatsapp:     [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
[0002]  INFO whatsapp:     [joinChannels:bridge/bridge.go:77] whatsapp.wabot: joining 11111111-111111111111@g.us@g.us (ID: 11111111-111111111111@g.uswhatsapp.wabot)
[0002] FATAL main:         [main:matterbridge.go:68] Starting gateway failed: Bridge whatsapp.wabot failed to join channel: account doesn't belong to group with jid 11111111-111111111111@g.us

@adrianovieira If you doesn't have your JID already, don't use the form "xxxx@g.us" . Just use something like "TestGroup" or probably an empty string and there will be suggestions. Whatsapp Bridge is working for me. Altough this error message still persists.

Just leave it blank. Wen you start the Script it will tell you the possibilities you have.