Пример #1
0
def send_message():
    number = ""
    message = ""
    while True:
        num = prompt_text("Number to message:", init_text=number)
        if num is None:
            return
        message = prompt_text("Message:", init_text=message)
        if message is not None:
            if sim800.sendsms(number, message):
                return
Пример #2
0
import sim800

sim800.sendsms("Number to text","Message to send")