Skip to content

GramIO API Reference / @gramio/contexts/dist / Dice

Class: Dice

Defined in: contexts/index.d.ts:1460

This object represents an animated emoji that displays a random value.

Constructors

Constructor

new Dice(payload): Dice

Defined in: contexts/index.d.ts:1462

Parameters

ParameterType
payloadTelegramDice

Returns

Dice

Properties

PropertyTypeDefined in
payloadTelegramDicecontexts/index.d.ts:1461

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:1464

MDN

Returns

string


emoji

Get Signature

get emoji(): NonNullable<SendDiceEmoji>

Defined in: contexts/index.d.ts:1466

Emoji on which the dice throw animation is based

Returns

NonNullable<SendDiceEmoji>


value

Get Signature

get value(): number

Defined in: contexts/index.d.ts:1473

Value of the dice, 1-6 for 🎲, 🎯 and 🎳 base emoji, 1-5 for 🏀 and ⚽️ base emoji, 1-64 for 🎰 base emoji

Returns

number