R
R
Rick Stead @Rick2021-09-02 15:45:07
Python
Rick Stead @Rick, 2021-09-02 15:45:07

How to get telebot send_dice() result?

How to get a value=method send_dice()from a telebot? I tried to do it through @bot.message_handler(content_types=['dice'])but the bot ignores my messages, how to make it react to them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Resolut, 2021-09-02
Stead

in aiogram did this

value = await bot.send_dice(call.from_user.id, emoji="")

just don’t write await
or if it will be something like this through the handler
@bot.message_handler(content_types=['dice'])
def dice_value(message):
  value = message.dice.value

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question