sendVenue

Send a venue.

PARAMETERS
chatId: ID

The chat to send the venue to.

latitude: number

The latitude of the venue.

longitude: number

The longitude of the venue.

title: string

The title of the venue.

address: string

The written address of the venue.

foursquareId?: string

Foursquare identifier of the venue.

foursquareType?: string

Foursquare type of the venue, if known. For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.

disableNotification?: boolean

Whether to send the message in a silent way without making a sound on the recipients’ clients.

protectContent?: boolean

Whether to protect the contents of the message from copying and forwarding.

replyToMessageId?: number

The identifier of a message to reply to.

replyQuote?: ReplyQuote

A specific part of the replying message’s text to quote.

messageThreadId?: number

The identifier of a thread to send the message to.

sendAs?: ID

The identifier of a chat to send the message on behalf of. User-only.

replyMarkup?: ReplyMarkup

The reply markup of the message. Bot-only.

businessConnectionId?: string
RESULT

The sent venue.

SYNTAX
// Required parameters only.
await client.sendVenue(chatId, latitude, longitude, title, address);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendVenue(chatId, latitude, longitude, title, address, {
    foursquareId,
    foursquareType,
    disableNotification,
    protectContent,
    replyToMessageId,
    replyQuote,
    messageThreadId,
    sendAs,
    replyMarkup,
    businessConnectionId,
});