Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to update a message using UpdateAsync #263

Open
farhanalam opened this issue Dec 19, 2020 · 2 comments
Open

Unable to update a message using UpdateAsync #263

farhanalam opened this issue Dec 19, 2020 · 2 comments

Comments

@farhanalam
Copy link

Here is my code

var slackClient = new SlackTaskClient(token);
var postResponse = await slackClient.PostMessageAsync("#general", "test");
var updateResponse = await slackClient.UpdateAsync(postResponse.ts, "#general", "test 2.0");

The response I get (as observed in Fiddler) is

{"ok":false,"error":"invalid_arguments","deprecated_argument":"as_user"}

I believe this requires a similar fix to #217

@VladyslavLishchyna
Copy link

try get channel from postResponse and put it to UpdateAsync override #general its works for me)

@xt0rted
Copy link

xt0rted commented Aug 16, 2021

I just ran into this issue and was able to get it to work by setting as_user: true on the update method. This shows the message as edited though, which other integrations don't seem to do 🤷‍♂️

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

No branches or pull requests

3 participants