sendSecretLocation
Send a location to a secret chat. USER-ONLY
Parameters
id: number
The identifier of the secret chat.
latitude: number
The location’s latitude.
longitude: number
The location’s longitude.
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.sendSecretLocation(id, latitude, longitude);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendSecretLocation(id, latitude, longitude, {
isSilent,
replyToMessageId,
ttl,
viaBot,
});