You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in Matrix, it's normal to send large, multi-line messages. The protocol natively supports Markdown, and clients usually "fold" large messages, so it's pretty convenient;
in XMPP, large messages are traditionally frowned upon. Code should be posted to pastebins.
I have a couple ideas on how to resolve this mismatch:
when translating large messages from Matrix to XMPP (and possibly Telegram), keep the first few lines, and pack the rest into a pastebin link. As ForNeVeR points out, this requires us to run a pastebin service :)
translate the message as-is, but send the author a private message explaining the situation and asking to keep their message lengths in check. ttldtor points out that the author might have blocked the bot, and will not see the message
The text was updated successfully, but these errors were encountered:
Yes, implement our small pastebin-like service. It should be able to store a big text in its database, and respond with it in HTML format (applying the guessed or optionally user-suggested highlighting scheme).
There will be two write entrypoints in the service:
automatic creation of pastes from big pasted texts from Telegram (and Matrix in future), where the "pasted text" is detected from the markup (it is a more or less usual thing to paste big texts in both Telegram and Matrix, while marking them up properly using the formatting features)
manual paste creation via the bot private messages
If the paste is created automatically, then the link to the paste should be sent to XMPP instead of its content.
If the paste was created manually (via private messages), then send the message link to the paste author.
There should be an admin interface to check paste download counts, contents and authorship, and to delete pastes (to prevent abuse).
We should warn the users that the pastes aren't private.
This stems from a small discussion we had in Codingteam. Key points are:
I have a couple ideas on how to resolve this mismatch:
The text was updated successfully, but these errors were encountered: