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.
Information on what the message is replying to.
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.
effectId?: number
The identifier of a message effect to be attached to the message.
sendAt?: Date
If specified, the message will be scheduled to be sent at that date. User-only.
businessConnectionId?: string
The identifier of a business connection ID to perform the action on. Bot-only.
paidBroadcast?: boolean
The reply markup of the message. Bot-only.
Result
The sent dice.
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,
replyTo,
messageThreadId,
sendAs,
effectId,
sendAt,
businessConnectionId,
paidBroadcast,
replyMarkup,
});