Skip to content

Support Quotes using Telegram's Markdown Syntax #27772

@JosXa

Description

@JosXa

Is your feature request related to a problem?

Most other text formatting options have corresponding markdown formatting symbols you can use as alternatives to hotkeys and the context menu. Quotes apparently do not.

Highlighting text to be affected by the hotkey and the context menu both take more time and effort than necessary, while typing Telegram's variant of markdown becomes very convenient with practice.

Describe the solution you'd like

Quoting some arbitrary text should be possible using the > ... syntax at the beginning of one or consecutive lines:

image
⬇️
image

This should have the same effect as using the context menu:
image


I shall put it up for discussion whether the quotation symbol must be used in otherwise empty lines to achieve multiline highlighting, i.e. should
image
result in
image
or
image
?

Describe alternatives you've considered

Creating a userbot to apply the formatting entities for me.

Additional context

I'd suggest to make the regular expression work only on the beginning of each line, meaning naively something like ^(>|\>)(\s?)(.*$). This doesn't handle multiline quotes correctly yet.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions