0
PythonでSlackリアルタイムメッセージングAPIを使用していて、@helloでディレクトリtest2002を作成してチャネル上のユーザーにメッセージを送信します。Pythonを使用してチャネル上のユーザーにスラックメッセージを送信
与えられたコードは動作しません:
slack_client.api_call("chat.postMessage", channel='#bot',text="create directory test2002",username='ecstesting1989')
私が使用している場合:
slack_client.api_call("chat.postMessage", channel='#bot',text="@hellobot create directory test2002",username='ecstesting1989')
@hellobotは、テキスト形式でディレクトリtest2002を作成し、動作しないため、このコマンドを送信します。