- Notifications
You must be signed in to change notification settings - Fork5.7k
How to specify a value for send_dice method?#3635
-
As I want to specify exact value for a dice how should I do this? python-telegram-bot/telegram/bot.py Lines 5315 to 5326 in92cb6f3
I also tried telegram.Dice class as it accepts emoji andvalue but using it with send_dice method throws exception that Dice cannot be serialized. |
BetaWas this translation helpful?Give feedback.
All reactions
You can't. The bot API doesn't support that. The closest you can get is forwarding a message that contains a die with the desired value.
Replies: 1 comment 5 replies
-
You can't. The bot API doesn't support that. The closest you can get is forwarding a message that contains a die with the desired value. |
BetaWas this translation helpful?Give feedback.
All reactions
-
The bot api definitelysupport it. As for python-telegram-bot I am not sure but if the lib does not support it then docs for send_dice is misleading because it says otherwise: python-telegram-bot/telegram/bot.py Lines 5333 to 5335 in92cb6f3
|
BetaWas this translation helpful?Give feedback.
All reactions
-
Did I misunderstood the whole thing assuming it can be used for sending values but that's only for receiving a result value after one of the dice sticker has been sent? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I did. It clearly saysrandom value in the official api and in python-telegram-bot. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
did u fix it |
BetaWas this translation helpful?Give feedback.
All reactions
-
@treasur08 There wasn't really anything to fix as I misunderstood the method in question. |
BetaWas this translation helpful?Give feedback.