I'm automating WhatsApp messaging on WhatsApp Web using selenium in python.
The code is working all fine. It's sending out messages.
But is there any way, i can use it to send Bulk messages using WhatsApp.
I tried, but I ended up whatsapp blocking my number.
For sending the bulk message you can use a loop and can use a time delay for sending the messages in a specific time delay.
Or for getting help with code you have to share your code.
You can use any virtual number to use for your bot, So you not have to worried for getting blocked by whatsapp. There are some apps which are providing free virtual numbers.
By the way I have also created a whatsapp bot for automate whatsapp messaging and I have used that number for 1 year to test the working and progress of automation and have used much and still that number is not get blocked by whatsapp.
Related
I sent a WhatsApp message from Python, selenium. It opens WhatsApp Web and sends a message to it, and it appears within a second, but I open the chat, and the message does not reach the number that I entered in the code, and this error appears
It looks like maybe the problem could be a permission with your device (maybe turning it into developer mode could help), but I think that an easier option would be to use the library pywhatkit. It is an easier way to send Whatsapp messages with python and there are many online resources to help you learn how to use it. https://pypi.org/project/pywhatkit/
i'm developing a python telegram bot and i have a script that is always running (for receiving new command from telegram) and i want the bot to send messages when the user perform a action in a website.
example: the user start the bot, the bot send a link to perform an action in the website (like login to the user's account and connect the telegram id with the user id) and then send a confirmation message on telegram that all's good.
my problem is how i can tell the python script that the action in the browser is done? for now i'm constantly query a database but my solution is pretty dumb because if the user don't perform any action the query can go forever.
any suggestion how to do it correctly?
thx <3
I see two viable solutions here:
Send the message directly from the website. While only one process is allowed to fetch updates at a time, you can make other requests from as many servers as you like. Depending on how your website works, you can make a plain HTTP request to the Bot API or use an API wrapper like python-telegram-bot or a wrapper in a different language to make the request. e.g. if you're running a php-based website, you could use a php API wrapper.
If for some reason 1. is not an option for you, you can try to inform your running process about the user login. the PTB FAQ have an entry that should help you get started. If your website & bot are running on the same server, it might be possible to make the update_queue directly available to the website process. If not, you can try to set up a webhook for your bot and post an update to the webhook that you then enqueue into the update_queue
Approach 1. has the downside that you don't have all the bot logic in one place, but it should be by far easier to implement than 2.
Disclaimer: I'm currently the maintainer of python-telegram-bot
I was looking for a way to send WhatsApp messages to more than one user (customer number) without reopening the browser, I came across Pywhatkit of whose internal implementation requires reopening the browser every time you want to send a message or media.
Any advice or recommendation of which python tool or library I can use to accomplish this, I will highly appreciate.
Thank you
I need a program that detects a whatsapp message, and depending on what the message says it replies with a something different. Does anyone have any idea or code that will help me go about making this program with python?
There are many options available in order to build a WhatsApp bot using Python, however take a look at this tutorial, which is simple and gets you up and running.
I'm using a python script that monitors a website and sends me messages on Facebook if there is any specific updates.
I have tried a module which called 'fbchat', so simple and so easy, but the problem is that I'm using real Facebook accounts and somehow Facebook detected that it's a bot and banned that profile, even if I have made random pauses in my code.
I know that I can do make those notifications through emails, but for me Facebook messages are better... Any ideas about how can I make it possible (maybe through bots!!)?
Thank you!
First take a look at which parameters(headers and payloads) the POST method takes(using network tools in google chrome for example), and try again with as many parameters as possible, while also using a session so cookies are enabled as well.
Different websites use different methods of detecting bots, and you'll just have to test and see what works.
P.S: take a look at this answer for more info.
Multiple Accounts are not allowed on Facebook, and there is no (allowed) way to send messages between users. You can only send messages from Pages to Users, and only if the User started the conversation. You can find more information about that in the docs: https://developers.facebook.com/docs/messenger-platform/