import requests
import json


def teams(teamshook, rawmsg):
    """Send message to Teams/Slack/etc."""
    params = {
        'markdown': True,
        'text': rawmsg
    }
    if requests.post(teamshook, data=json.dumps(params)).status_code == 200:
        return True
    return False