Function tbot::markup::raw

source ·
pub const fn raw<I, T>(iterator: I) -> Raw<I>where
    for<'a> &'a I: IntoIterator<Item = &'a T>,
    T: Deref<Target = str>,
Expand description

Creates a raw string for formatting.

Use this utility with extreme care: it inserts the provided string into the resulting string as-is. As a result, if it contains malformed formatting, the resulting string won’t be parsed by Telegram. Also, unchecked user-provided input may insert its own formatting, which may be undesrirable. Note that all other utilities automatically escape provided strings as needed.