import { Context } from "https://deno.land/x/grammy@v1.31.0/mod.ts";
Context-aware alias for api.sendDice
. Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned.
Parameters
Emoji on which the dice throw animation is based. Currently, must be one of βπ²β, βπ―β, βπβ, ββ½β, βπ³β, or βπ°β. Dice can have values 1-6 for βπ²β, βπ―β and βπ³β, values 1-5 for βπβ and ββ½β, and values 1-64 for βπ°β. Defaults to βπ²β
Optional remaining parameters, confer the official reference below
optional
signal: AbortSignalOptional AbortSignal
to cancel the request
Official reference: https://core.telegram.org/bots/api#senddice