Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Automating whatsapp messages with python

Before i start, i want to note that im still a beginner at programming, i can barely get a grip on while statements. But from what i've read, the best way to train is to just make projects that helps on your daily activities, so i decided to do so.

 

So everyday, i record my class' zoom meetings and upload those video files to google drive, copy the drive link, then i post the link on a whatsapp group according to the subjects.

I'd like to make a program where i can paste the drive link, define the subject and then the message sent automatically

I'm wondering how can i achieve that, what modules should i use and so-so, just try to keep it basic

 

-Main PC-

CPU Ryzen 3 3100 | | Motherboard ASRock B450M-HDV R4.0 | | GPU PowerColor Red Dragon RX 580 | |RAM 16GB Patriot Viper Steel 3000MHz | | PSU Corsair CX550 80+ Bronze | | SSD Kingston A400 240GB | | HDD Seagate Barracuda 1TB 7200 RPM  | |Case Phanteks P300

-Laptop-

HP Elite 820 G4

Intel I5-7200U

Intel HD 620

8GB DDR4

500GB SSD

 

 

Link to post
Share on other sites

AFAIK, you can create bots on WhatsApp, but they're only for business accounts, and getting access to the API is pretty difficult. I would suggest using Telegram or Discord, that is way easier. But, changing platforms wouldn't be easy for you, I think.

 

One way could be to use the selenium webdriver(basically opens a browser window and you can program it so that it can click buttons, and type text which you want), opening WhatsApp Web with it, and coding it to click on specific chats/groups depending on what the input subject was. IMO this is not as easy. Others might have some better solutions.

I AM NOT A PROFESSIONAL! I'll try not to make mistakes, but if I do, sorry! Most of my responses are based on past experiences, or just plain guesses. If a post solves your issue, do mark it as solution, so as to help other people having the same issue who stumble upon your thread. Only cool kids (dark mode users) can read this.

VPN Server Guide

Link to post
Share on other sites

You can use AutoHotkey instead of Python. Don't worry, it's pretty easy and basically the same idea.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×