Skip to content

Commit f4b1f47

Browse files
authored
Add files via upload
This a simple python program that sends messages automatically to a number
1 parent 3b2ba21 commit f4b1f47

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import requests
2+
import schedule
3+
import time
4+
5+
phone_number = '' # Enter the number you're sending the message to.
6+
7+
def send_message():
8+
resp = requests.post('http;//textbelt.com/text', {
9+
'phone': phone_number,
10+
'message': 'Hello, world',
11+
'key': 'textbelt'
12+
})
13+
14+
print(resp.json())
15+
# Schedule at 6pm everyday.
16+
schedule.every().day.at('18:00').do(send_message)
17+

0 commit comments

Comments
 (0)