sendSecretContact
Send a contact to a secret chat. USER-ONLY
Parameters
id: number
The identifier of the secret chat.
firstName: string
The contact’s first name.
phoneNumber: string
The contact’s phone number.
lastName?: string
The contact’s last name.
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.sendSecretContact(id, firstName, phoneNumber);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendSecretContact(id, firstName, phoneNumber, {
lastName,
isSilent,
replyToMessageId,
ttl,
viaBot,
});