Выполнение нижеприведенного небольшого скрипта с передачей OAuth Access Token в качестве токена:
from slackclient import SlackClient
import os
token = "*********"
sc = SlackClient(token)
print (sc.api_call("api.test"))
if sc.rtm_connect():
print("Starter Bot connected and running!")
GETOWING BELOW ERROR
Failed RTM connect
Traceback (most recent call last):
File "C:\Users\320055379\AppData\Local\Programs\Python\Python38-32\lib\site-packages\slackclient\client.py", line 140, in rtm_connect
self.server.rtm_connect(use_rtm_start=with_team_state, **kwargs)
File "C:\Users\320055379\AppData\Local\Programs\Python\Python38-32\lib\site-packages\slackclient\server.py", line 168, in rtm_connect
raise SlackLoginError(reply=reply)
slackclient.server.SlackLoginError