Skip to main content
Module

x/grammy_chat_members/deps.deno.ts>Context#replyWithDice

Store chats, users, and chat memberships.
Latest
method Context.prototype.replyWithDice
Re-export
import { Context } from "https://deno.land/x/grammy_chat_members@v1.1.0/deps.deno.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: string

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
other: Other<"sendDice", "chat_id" | "emoji">

Optional remaining parameters, confer the official reference below

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

Official reference: https://core.telegram.org/bots/api#senddice