Interface InputInlineResultVenue

Inline result containing a venue.

If message is not passed, BotInlineMessage.venue is used with given latitude and longitude were passed. If they weren't passed either, an error is thrown.

interface InputInlineResultVenue {
    address: string;
    id: string;
    latitude?: number;
    longitude?: number;
    message?: InputInlineMessage;
    thumb?: string | RawInputWebDocument;
    title: string;
    type: "venue";
}

Hierarchy (view full)

Properties

address: string

Address of the venue

id: string

Unique ID of the result

latitude?: number

Latitude of the geolocation

longitude?: number

Longitude of the geolocation

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

Venue thumbnail URL (must be jpeg).

By default, Telegram generates one based on the location in the message

title: string

Title of the venue

type: "venue"