sendDice
Send a dice.
PARAMETERS
The chat to send the dice to.
emoji?: "🎲" | "🎯" | "🏀" | "⚽" | "🎳" | "🎰"
The type of the dice. Can be 🎲, 🎯, 🏀, ⚽, 🎳, 🎰. Defaults to 🎲.
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.
A specific part of the replying message’s text to quote.
messageThreadId?: number
The identifier of a thread to send the message to.
The identifier of a chat to send the message on behalf of. User-only.
The reply markup of the message. Bot-only.
businessConnectionId?: string
SYNTAX
// Required parameters only.
await client.sendDice(chatId);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.sendDice(chatId, {
emoji,
disableNotification,
protectContent,
replyToMessageId,
replyQuote,
messageThreadId,
sendAs,
replyMarkup,
businessConnectionId,
});