Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Fix Slack backend's use of deprecated method IM.OPEN #40

Open
frostyandy2k opened this issue Apr 28, 2022 · 0 comments
Open

Fix Slack backend's use of deprecated method IM.OPEN #40

frostyandy2k opened this issue Apr 28, 2022 · 0 comments

Comments

@frostyandy2k
Copy link

Error is thrown in certain cases where the send_messages function is called:
EXCEPTION: Slack API call to im.open returned an error: method_deprecated.

Similar issue description can be found here: errbotio/errbot#1431

There is also a fix that can be ported to this repo (API update): errbotio/errbot#1432

response = self.api_call('im.open', data={'user': id_})
->
response = self.api_call('conversations.open', data={'users': id_})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant