slackmail/slack/chat.py

10 lines
243 B
Python

#
# Copyright 2015 (c) Anna Schumaker.
#
from . import api
from . import auth
def postMessage(channel, text):
api.call("chat.postMessage", token = auth.token(), channel = channel,
text = text, as_user = True, parse = "full")