Trying to send messages from python input script to slack app incoming webhook. It doesn't give an error but just accept and doesn't post
print()
name = input("What is your name? ")
def send_slack_message(message: str):
import requests
payload = '{"text": "%s"}' % name
response = requests.post(
'https://hooks.slack.com/services/*****************',
data=payload
)
print(response.text)
def main(message_text: str):
send_slack_message(message=message_text)