Creating a graph in the custom action and rendering the graph to the UI

hi mohan,

I think the issue is that you are calling send_attachment method on the name of the class: SlackBot. What you want to do is create an instance of the class first, and then call this function, e.g.

my_slackbot = SlackBot(slack_token, slack_channel)
my_slackbot.send_attachment(...)

does that work?

1 Like