【问题标题】:Whatsapp send message to particular group via intentWhatsapp 通过意图向特定群组发送消息
【发布时间】:2015-06-01 12:00:19
【问题描述】:

我想知道是否可以通过 android 意图向 whatsapp 中的特定组发送消息。我发现有一种方法可以向特定联系人发送消息(但是这只会打开与该特定联系人的聊天窗口,而没有输入任何消息)。

在这个阶段,即使能够直接打开群聊窗口对我来说也足够了。那我该怎么做呢?

【问题讨论】:

    标签: android android-intent whatsapp


    【解决方案1】:

    我遇到了同样的问题,这是部分解决方案:

    Uri uri = Uri.parse("https://chat.whatsapp.com/uniqueId");
    Intent i = new Intent(Intent.ACTION_VIEW, uri);
    startActivity(Intent.createChooser(i, ""));
    

    链接chat.whatsapp.com/uniqueId 是whatsapp 群组中的通过链接加入群组选项:群组> 添加参与者> 通过链接邀请加入群组

    此选项打开请求的 WhatsApp 组。

    【讨论】:

      猜你喜欢
      • 2021-04-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-31
      • 1970-01-01
      • 2013-09-04
      • 1970-01-01
      • 1970-01-01
      • 2015-07-08
      相关资源
      最近更新 更多