morethanwords / tweb

Telegram Web K, GPL v3
https://web.telegram.org/k/
GNU General Public License v3.0
1.87k stars 598 forks source link

[Feature Request] Writing messages with spoilers #80

Closed abacabadabacaba closed 2 years ago

abacabadabacaba commented 2 years ago

Is your feature request related to a problem? Please describe. Currently, Telegram Web K can display messages with spoilers, but it is not possible to write such a message.

Describe the solution you'd like It should be possible to format text in a message being written as a spoiler.

morethanwords commented 2 years ago

Actually, it is possible by two ways: surround the text with || or using Ctrl+P or Command+P. Will be also possible in markup tooltip soon.

abacabadabacaba commented 2 years ago

There are multiple problems with this. First, it is not documented. Second, in the edit box it looks like a text with a gray background, so it is not obvious that it is a spoiler. Third, there is no way to remove spoiler formatting (pressing Ctrl-P second time doesn't work). I think that this issue should be open until at least this functionality is added to the formatting tooltip.

morethanwords commented 2 years ago

Spoiler button has been added in markup tooltip, and removing spoiler has been fixed in 1.0.5.

hoalinh99 commented 11 months ago

Command+P.