POST /sendDice

Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned.

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
reply_markup No

Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.

disable_notification Boolean No

Sends the message silently. Users will receive a notification with no sound.

allow_sending_without_reply Boolean No

Pass True, if the message should be sent even if the specified replied-to message is not found

chat_id Yes

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

emoji String No

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 “🎲

Possible values:

  • "⚽"
  • "🏀"
  • "🎰"
  • "🎯"
  • "🎲"

Default value: "🎲"

reply_to_message_id Integer No

If the message is a reply, ID of the original message

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.