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

Inconsistency between Send-SlackFile and Send-SlackMessage #92

Open
JCEntrena opened this issue Jul 18, 2019 · 2 comments
Open

Inconsistency between Send-SlackFile and Send-SlackMessage #92

JCEntrena opened this issue Jul 18, 2019 · 2 comments

Comments

@JCEntrena
Copy link

Hello! I've been using PSSlack for the last couple of days, and I have noticed a small inconsistency between commands "Send-SlackFile" and "Send-SlackMessage".

I have created an Slack App, and I am using its token to authenticate, send a message to Slack with Send-SlackMessage, and after completing a task locally, send a PDF file with Send-SlackFile. However, the first message appears as sent by the app, but the file is marked as sent by the user that created the app (in that case, me).

Just for the sake of it, I tried to associate a bot to the app and use its token, getting the same result: the messages are displayed as sent by the app, and the file is marked as uploaded by the bot.

Checking the files for both commands, it seems like Send-SlackMessage is using and sending username information, but Send-SlackFile is not, and that could be the cause on the inconsistency.

I don't know if there's a way to solve this (maybe an option that I'm not aware of), but if there isn't, it would be cool to have it, or at least unify both behaviours, so everything is displayed as sent by the same user.

@jkdba
Copy link

jkdba commented Oct 1, 2019

I am experiencing the same exact issue, the other issue here is when sending the file as the owner of the app/token it ends up going to different channel when sending directly to user rather than a channel.

For instance if I use the Send-SlackMessage -Channel '@UserName' ... -UserName 'SomeAppName' this shows up for a user in thier slackbot channel.

However when using the Send-SlackFile -Channel '@UserName' it comes from the owner of the app.

This is inconvenient when you may want to send a Message and a file to user, for the two messages to end up in different channels/messages threads.

@ctxharshas
Copy link

Is there a way to attach a file along with the regular Send-SlackMessage instead of new message?

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