Documentation - v0.30.1
    Preparing search index...

    Interface InputServerParsedRichMessage

    Input rich message that is parsed by the server in the specified format

    interface InputServerParsedRichMessage {
        attachments?: Record<string, InputRichMessageMedia>;
        content: string;
        rtl?: boolean;
        skipEntityDetection?: boolean;
        type: "html" | "markdown";
    }

    Hierarchy

    • InputRichMessageBase
      • InputServerParsedRichMessage
    Index

    Properties

    attachments?: Record<string, InputRichMessageMedia>

    Attachments to the rich message.

    content: string

    HTML or Markdown content

    Format reference is available in the Bot API:

    In addition to the above, you can use the following links to reference non-HTTP/s media:

    • photos: tg://photo?id=XXX
    • videos/gifs: tg://video?id=XXX
    • audio: tg://audio?id=XXX

    where XXX is a unique identifier of the media in the attachments map.

    rtl?: boolean

    Whether this message should be rendered RTL

    skipEntityDetection?: boolean

    Whether to skip automatic entities detection (e.g., URLs, email addresses, username mentions, hashtags, cashtags, bot commands, or phone numbers)

    type: "html" | "markdown"