Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Message → Send Dice

AI-generated

Summary

Send a dice animation message to a specified Telegram chat using a chosen emoji representing the dice type.

Inputs

  • Chat ID (required) — Unique identifier for the target chat or username (@channelusername) where the dice will be sent.
  • Emoji — Emoji on which the dice throw is based; options include 🎲, 🎯, 🏀, ⚽, 🎳, and 🎰. Defaults to 🎲.
  • Reply Markup (JSON) — Optional JSON formatted inline keyboard, reply keyboard, or other reply markup to attach to the message.

Output shape

a single message record containing the result of the dice throw sent to the chat

The output contains the Telegram API response's result object as JSON, which describes the sent message including its dice animation. Errors during sending are thrown unless 'Continue On Fail' is enabled, in which case an error message is returned.

Examples

Example 1: Send a dice with default ⚄ (🎲) emoji to a chat

Set 'Chat ID' to the target chat identifier and leave the 'Emoji' parameter as default.

Example 2: Send a basketball dice animation with custom reply markup

Set 'Chat ID' to target chat, choose emoji 🏀, and provide a JSON inline keyboard in 'Reply Markup (JSON)'.

Links

Discussion