sendSecretVenue

Send a venue to a secret chat. USER-ONLY

Parameters

id: number

The identifier of the secret chat.

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.

isSilent?: boolean

Whether the message should be sent silently.

replyToMessageId?: string

The identifier of a message to reply to.

ttl?: number

The message’s time-to-live.

viaBot?: string

The name of the bot that was used to send the message.

Result

void

Syntax

// Required parameters only.
await client.sendSecretVenue(id, latitude, longitude, title, address);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendSecretVenue(id, latitude, longitude, title, address, {
    foursquareId,
    isSilent,
    replyToMessageId,
    ttl,
    viaBot,
});