Optional Text-Based File Previews #4051
Unanswered
ghost
asked this question in
API Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Request
Hi there, as a quick suggestion: I think a feature to determine whether or not a txt based file would be previewed would be helpful.
To clarify, I am talking about these file previews:

Approach
The API could be something sort of this, accessible to bot developers of course:
preview=True/False
And additionally, if this were to pass on to clients, it could be an option for the files susceptible to previewing that shows up along with spoilering the message, that says something like:
Why it'd be needed
An example would be our bot. It has a feature of posting data from a session in one of our features, in case a user would want to go back to what they were doing at a later date (in which case they just supply the bot with the file). The data is typically sent as
.json
files, which since previewing, have looked quite clunky in-chat. Being able to choose whether or not it would preview would be a lot more helpful than having to work around it with different formats in the code.Example to give you an idea of why we want this optional:

The feature in general would help prevent spammy messages in places where it's not quite appreciated. Thank you for reading if anyone did!
Beta Was this translation helpful? Give feedback.
All reactions