如何直接向群组发送消息? [英] How can I send messages directly to a group?

查看:37
本文介绍了如何直接向群组发送消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助使用 adb shell 向特定组发送文本.在这里搜索论坛,我找到了以下代码:

I need help sending text to a particular group using the adb shell. Searching the forums here, I found the code below:

adb shell am start -n com.whatsapp/.Main 
adb shell am start -a android.intent.action.SEND -t  text/plain -e jid 
    'xxxxxxxxxxx@s.whatsapp.net' --eu android.intent.extra.STREAM 
    file:///storage/emulated/0/DCIM/Camera/IMG_20181025_223214.jpg  -p com.whatsapp

问题是:

  1. 如何识别群组的 JID.
  2. 如何更改此代码以发送文本而不是文件.

推荐答案

  1. 您可以通过群组名称(主题列)或通过消息文本在消息表中的 chat_list 表中的 messages.db 中获取组 jid.就像 77787987018-1602484814@g.us.
  2. 要发送文本,您可以使用以下命令:

am start -a android.intent.action.SEND -c android.intent.category.DEFAULT -t text/plain -e jid {user jid} -e android.intent.extra.TEXT "{文字}"-p {whatsapp 数据包名称}

这篇关于如何直接向群组发送消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆