Interface InputInlineResultArticle

Inline result containing an article.

If message is not provided, a InputInlineMessageText is created with web preview enabled and text generated as follows:

{{#if url}}
<a href="{{url}}"><b>{{title}}</b></a>
{{else}}
<b>{{title}}</b>
{{/if}}
{{#if description}}
{{description}}
{{/if}}

Handlebars syntax is used. HTML tags are used to signify entities, but in fact raw TL entity objects are created

interface InputInlineResultArticle {
    description?: string;
    hideUrl?: boolean;
    id: string;
    message?: InputInlineMessage;
    thumb?: string | RawInputWebDocument;
    title: string;
    type: "article";
    url?: string;
}

Hierarchy (view full)

Properties

description?: string

Description of the result

hideUrl?: boolean

Whether to prevent article URL from displaying by the client

false

id: string

Unique ID of the result

Message to send when the result is selected.

By default, is automatically generated, and details about how it is generated can be found in subclasses' description

thumb?: string | RawInputWebDocument

Article thumbnail URL (must be jpeg).

title: string

Title of the result (must not be empty)

type: "article"
url?: string

URL of the article