tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.08k stars 2.23k forks source link

Sending message to group not working #3118

Open Errior94 opened 2 years ago

Errior94 commented 2 years ago
[connected]:/message send 120xxxxxxxxxx-164xxxxxxxx "Test"
D 2022-02-03 17:16:30,710 yowsup.layers.axolotl.layer_send - None
D 2022-02-03 17:16:30,711 yowsup.axolotl.manager - load_senderkey(groupid=120xxxxxxxxx-164xxxxxxx@g.us)
D 2022-02-03 17:16:30,713 yowsup.layers.axolotl.layer_send - senderKeyRecord is empty, requesting group info
D 2022-02-03 17:16:30,714 yowsup.layers.logger.layer - tx:
<iq id="6" type="get" xmlns="w:g2" to="120xxxxxxxxxx-164xxxxxx@g.us">
  <query request="interactive" />
</iq>
[connected]:D 2022-02-03 17:16:31,136 yowsup.layers.logger.layer - rx:
<iq from="120xxxxxxxxx-164xxxxxxxx@g.us" type="error" id="6">
  <error code="404" text="item-not-found" />
</iq>
pbx-profi commented 2 years ago

same

maddiehn commented 2 years ago

construct of gjid seems to be changed from: {numer}-{timestamp}@g.us to: {numer}/{timestamp}@g.us hope this will help

Errior94 commented 2 years ago

Still does not work

maddiehn commented 2 years ago

$> yowsup-cli demos -c config.yowsup -s MOBILENUMBER-UNIXTIME "text to send" -d [...same...] D 2022-02-15 06:55 yowsup.layers.protocol_iq.layer - starting ping thread. D 2022-02-15 06:55 yowsup.layers.axolotl.layer_send - None D 2022-02-15 06:55 yowsup.axolotl.manager - load_senderkey(groupid=MOBILENUMBER-UNIXTIME@g.us) D 2022-02-15 06:55 yowsup.layers.axolotl.layer_send - senderKeyRecord is empty, requesting group info D 2022-02-15 06:55 yowsup.layers.logger.layer - tx:

<iq id="2" type="get" xmlns="w:g2" to="MOBILENUMBER-UNIXTIME@g.us">
  <query request="interactive" />
</iq>

[...]

$> yowsup-cli demos -c config.yowsup -s MOBILENUMBER/UNIXTIME@g.us "text to send" -d [...same...] D 2022-02-15 06:55 yowsup.layers.protocol_iq.layer - starting ping thread. D 2022-02-15 06:55 yowsup.axolotl.manager - session_exists(MOBILENUMBER/UNIXTIME)? D 2022-02-15 06:55 yowsup.layers.axolotl.layer_base - getKeysFor(jids=['MOBILENUMBER/UNIXTIME@g.us'], resultClbk=[omitted], errorClbk=[omitted], reason=None) D 2022-02-15 06:55 yowsup.layers.logger.layer - tx:

<iq id="2" type="get" xmlns="encrypt" to="s.whatsapp.net">
  <key>
    <user jid="MOBILENUMBER/UNIXTIME@g.us" />
  </key>
</iq>

[...]

$> yowsup-cli demos -c config.yowsup -s MOBILENUMBER-UNIXTIME@g.us "text to send" -d

hope this will help for next steps to solution

rafaelnordavind commented 2 years ago

I have a problem sending to new groups. Previously the group format was like this: 55XXXXXXXXX7-14XXXXXXX0

now the format for new groups is like this: 12XXXXXXXXXXXXXXX8

For these new groups the message is not sent.