HubSpot / slack-client

An asynchronous HTTP client for Slack's web API
Apache License 2.0
114 stars 53 forks source link

Don't include 'as_user' param in chat.postEphemeral method for V2 app #200

Closed zmarushchak-hs closed 3 years ago

zmarushchak-hs commented 3 years ago

V2 Slack app doesn't support as_user param for chat.postEphemeral method.
Here is the error:

{
  "ok" : false,
  "error" : "invalid_arguments",
  "deprecated_argument" : "as_user",
  "warning" : "missing_charset",
  "response_metadata" : {
    "warnings" : [ "missing_charset" ]
  }

This PR adds methods to not include as_user param in these methods.

Please see also: https://api.slack.com/authentication/quickstart#calling