You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
451 B

import sys
import requests
from appconfig import base_url, user, proxies
def send_message(num):
if not num:
num = int(input("Enter number to text, EOF to finish: "))
body = ''
for i in sys.stdin:
body += i
except KeyboardInterrupt:
return None
body = body.strip()
req ="{base_url}{user}/send/{num}", data=body, proxies=proxies)
return req