-
Notifications
You must be signed in to change notification settings - Fork 639
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
Send long messages as attachments with text #235
Send long messages as attachments with text #235
Conversation
This prevents very long messages from flooding channels. It's triggered by 700 characters or 5 lines of text. This was chosen because of the attachment documentation at https://api.slack.com/docs/attachments saying: > The content will automatically collapse if it contains 700+ characters or 5+ linebreaks, and will display a "Show more..." link to expand the content.
…e submessages style match up
Hi! Any news in this? |
I haven't received any feedback on this yet. There are failing tests, and they are complex enough that I didn't want to dig into them unless this is in the right direction. |
I don't think it would be better. That warning would say nothing about the contents of the truncated message and finding the message would be difficult after seeing a warning. The warning is basically not actionable. Attaching long messages as files seems like the most logical approach. At least that way we could see the contents of the message and act on it, if necessary. I would like to see this effort move forward. |
@technicalpickles: do you know if the problem changes at all with SDK v3 introduced in #309? |
We're looking into it @sheluchin :D |
i don't quite understand what flooding means in this context. Slack will fold up long messages so that a single long message cannot take over the entire display. From my point of view, that is preventing flooding. It seems like this PR is meant to circumvent that folding of long messages, so it would only increase flooding. Closing for now. If you can help me understand the problem this PR aims to solve, i'll reopen it. |
This prevents very long messages from flooding channels. It's triggered
by 700 characters or 5 lines of text. This was chosen because of the
attachment documentation at https://api.slack.com/docs/attachments saying:
This would fix #17