A simple Python module to schedule and send WhatsApp messages at a specific time of your choice.
Project description
WhatsApp message Scheduler
WhatsSched is a Python module that allows you to schedule and send WhatsApp messages programmatically using the pywhatkit library.
Features
- Schedule messages for specific dates and times.
- Automatic retries in case of message delivery failures.
- Simple and reusable function for scheduling messages.
Installation
pip install WhatsSched
Usage
Import the Module
from .WhatsSched import send_whatsapp_message
Send a Scheduled Message
send_whatsapp_message(
day=24,
month=11,
year=2024,
hour=10,
minute=32,
second=0,
message="Hello! This is a scheduled message.",
phone_number="+918568xxxxxx"
)
Parameters
- day: Day of the month (1-31).
- month: Month of the year (1-12).
- year: Year (e.g., 2024).
- hour: Hour of the day (24-hour format).
- minute: Minute of the hour.
- second: Second of the minute (not used for scheduling).
- message: The message to send.
- phone_number: Recipient's WhatsApp number in "+<country_code>" format.
Example
from .WhatsSched import send_whatsapp_message
if __name__ == "__main__":
send_whatsapp_message(
day=24,
month=11,
year=2024,
hour=10,
minute=30,
second=0,
message="Hello from WhatsApp Scheduler!",
phone_number="+918568xxxxxx"
)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file WhatsSched-1.0.0.tar.gz.
File metadata
- Download URL: WhatsSched-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45fc37ba4f5581b69f656c9325aee14ffa04da91f91c900ad83280d540a97b37
|
|
| MD5 |
1a6da5ad6fdaf8fb70e9bde215624260
|
|
| BLAKE2b-256 |
3500b2d1b31456872672e03cbeda4c5989e33c380c4623924b32b4db65a8220f
|
File details
Details for the file WhatsSched-1.0.0-py3-none-any.whl.
File metadata
- Download URL: WhatsSched-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6af8e1f0d58125b8f238fdcefd9e6b4c91996fd64e6a036e4752464a17b93bc
|
|
| MD5 |
45480f3baf8ac4ee0ef347c920c27db8
|
|
| BLAKE2b-256 |
20ffd8492390c1c87b43711ae76b7b816737243fa7f1540f58c6de498eda4a66
|