Skip to content

Instantly share code, notes, and snippets.

@PLaRoche
Created September 11, 2018 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PLaRoche/1c600e7a34f98585b137ee29730728f1 to your computer and use it in GitHub Desktop.
Save PLaRoche/1c600e7a34f98585b137ee29730728f1 to your computer and use it in GitHub Desktop.
send_sms_question
def send_sms_question(command, channel):
data = command.split(" ", 2) # maxsplit
question = pytill.make_question(data[2], channel, PUBLIC_ADDR + WEBHOOK_ADDR)
pytill.send_question([data[1]], [question], "{}-tag".format(data[2]))
response = "Question sent to {} listening for answers...".format(data[1])
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment