简体   繁体   English

在android中无需用户交互即可通过whats App发送消息

[英]Sending message through whats App without user interaction in android

I wanted to know how I can send text to specific whats app contacts without user interaction.我想知道如何在没有用户交互的情况下向特定的应用联系人发送文本。 I found some code to view a specific contact, but not to send data & some code which opens the specific chat with message.我找到了一些代码来查看特定的联系人,但不是发送数据和一些打开特定聊天消息的代码。 But all contains user interaction so all i want to know is, is it possible to share a message on whats app without user interaction?但所有内容都包含用户交互,所以我想知道的是,是否可以在没有用户交互的情况下在 whats 应用程序上共享消息?

据我所知,您“应该”这样做的唯一方法是使用ShareIntent

After lots of research, i found that sending message through what's app application without user interaction is not possible.经过大量研究,我发现在没有用户交互的情况下通过什么应用程序发送消息是不可能的。 What's app sharing popup or sharing dialog always shown to user's screen as per my R&D.根据我的研发,什么是应用程序共享弹出窗口或共享对话框始终显示在用户屏幕上。

Yes, you can definitely send msg to WhatsApp, without using API.是的,您绝对可以将 msg 发送到 WhatsApp,而无需使用 API。

  1. You have to be logged in in your what's app account in WhatsApp web.您必须在 WhatsApp 网页中登录您的 what's app 帐户。

  2. You first have to install pywhatkit library您首先必须安装 pywhatkit 库

pip install pywhatkit 

pywhatkit.sendwhatmsg('number to the person with STD code','message',19,26)

#19 = time in hour 
#26 = time in second 

then just don't close the IDE, it will send the message directly!然后不要关闭IDE,它会直接发送消息!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用javamail api通过android应用程序发送邮件而无需用户交互 - sending mail by android app using javamail api without user interaction 没有用户交互android发送电子邮件 - sending email without user interaction android 无需用户交互即可发送电子邮件 - Android Studio - Sending email without user Interaction - Android Studio 使用OAuth在Android中发送电子邮件而无需用户交互 - Sending email without user interaction in android using OAuth 没有用户互动,Android不会发送短信 - Android doesn't send SMS message without user interaction Whats应用程序通过href链接发送消息,并为没有应用程序的用户回退 - Whats app sending message via href link and fallback for users without app 如何在没有用户交互的情况下以编程方式卸载Android应用程序? - How to uninstall an Android app programmatically without user interaction? 如何在没有 Google Play 或用户交互的情况下自动更新 Android 应用程序 - How to update android app automatically without Google Play or user interaction 如何在flutter中自动更新android应用程序而无需用户交互 - How to update android app automatically without user interaction in flutter 如何在没有用户交互和/或应用更新的情况下更改android视图 - How to change android views without user interaction and or app update
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM