[英]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。
You have to be logged in in your what's app account in WhatsApp web.您必须在 WhatsApp 网页中登录您的 what's app 帐户。
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.