Skip to main content

MIN_LIMIT

Constant MIN_LIMIT 

Source
pub const MIN_LIMIT: usize = 256;
Expand description

The smallest part limit a caller can set.

Each part needs room to close and reopen its markup. If the limit is smaller than a tag, the splitter cuts between the tag’s characters — splitting Telegram **x** with a limit of 1 produced < · b · ></b> (found in review). This value fits several nested opening tags (quote, bold, code, <pre><code class="language-…">) and still leaves room for content. It is far from real use (subtracting a header’s share from Telegram’s 4096).