L i'RdZddlmZmZddlmZddlmZddlm Z GddeZ y) z?This module contains an object that represents a Telegram Dice.)FinalOptional) constants)TelegramObject)JSONDictceZdZUdZdZdddededeeffdZ e jjZ e eed < e jjZe eed < e jj Ze eed < e jj"Ze eed < e jj$Ze eed < e jj&Ze eed< ee jZe eeed< e j,j.Ze eed< e j,j0Ze eed< e j,j2Ze eed< e j,j4Ze eed< e j,j6Ze eed< e j,j8Ze eed< e j,j:Ze eed<xZS)Dicea This object represents an animated emoji with a random value for currently supported base emoji. (The singular form of "dice" is "die". However, PTB mimics the Telegram API, which uses the term "dice".) Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`value` and :attr:`emoji` are equal. Note: If :attr:`emoji` is :tg-const:`telegram.Dice.DARTS`, a value of 6 currently represents a bullseye, while a value of 1 indicates that the dartboard was missed. However, this behaviour is undocumented and might be changed by Telegram. If :attr:`emoji` is :tg-const:`telegram.Dice.BASKETBALL`, a value of 4 or 5 currently score a basket, while a value of 1 to 3 indicates that the basket was missed. However, this behaviour is undocumented and might be changed by Telegram. If :attr:`emoji` is :tg-const:`telegram.Dice.FOOTBALL`, a value of 4 to 5 currently scores a goal, while a value of 1 to 3 indicates that the goal was missed. However, this behaviour is undocumented and might be changed by Telegram. If :attr:`emoji` is :tg-const:`telegram.Dice.BOWLING`, a value of 6 knocks all the pins, while a value of 1 means all the pins were missed. However, this behaviour is undocumented and might be changed by Telegram. If :attr:`emoji` is :tg-const:`telegram.Dice.SLOT_MACHINE`, each value corresponds to a unique combination of symbols, which can be found in our :wiki:`wiki `. However, this behaviour is undocumented and might be changed by Telegram. .. In args, some links for limits of `value` intentionally point to constants for only one emoji of a group to avoid duplication. For example, maximum value for Dice, Darts and Bowling is linked to a constant for Bowling. Args: value (:obj:`int`): Value of the dice. :tg-const:`telegram.Dice.MIN_VALUE`-:tg-const:`telegram.Dice.MAX_VALUE_BOWLING` for :tg-const:`telegram.Dice.DICE`, :tg-const:`telegram.Dice.DARTS` and :tg-const:`telegram.Dice.BOWLING` base emoji, :tg-const:`telegram.Dice.MIN_VALUE`-:tg-const:`telegram.Dice.MAX_VALUE_BASKETBALL` for :tg-const:`telegram.Dice.BASKETBALL` and :tg-const:`telegram.Dice.FOOTBALL` base emoji, :tg-const:`telegram.Dice.MIN_VALUE`-:tg-const:`telegram.Dice.MAX_VALUE_SLOT_MACHINE` for :tg-const:`telegram.Dice.SLOT_MACHINE` base emoji. emoji (:obj:`str`): Emoji on which the dice throw animation is based. Attributes: value (:obj:`int`): Value of the dice. :tg-const:`telegram.Dice.MIN_VALUE`-:tg-const:`telegram.Dice.MAX_VALUE_BOWLING` for :tg-const:`telegram.Dice.DICE`, :tg-const:`telegram.Dice.DARTS` and :tg-const:`telegram.Dice.BOWLING` base emoji, :tg-const:`telegram.Dice.MIN_VALUE`-:tg-const:`telegram.Dice.MAX_VALUE_BASKETBALL` for :tg-const:`telegram.Dice.BASKETBALL` and :tg-const:`telegram.Dice.FOOTBALL` base emoji, :tg-const:`telegram.Dice.MIN_VALUE`-:tg-const:`telegram.Dice.MAX_VALUE_SLOT_MACHINE` for :tg-const:`telegram.Dice.SLOT_MACHINE` base emoji. emoji (:obj:`str`): Emoji on which the dice throw animation is based. )emojivalueN api_kwargsr r r ct||||_||_|j|jf|_|j y)Nr )super__init__r r _id_attrs_freeze)selfr r r __class__s T/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_dice.pyrz Dice.__init__]s> J/  **djj1 DICEDARTS BASKETBALLFOOTBALL SLOT_MACHINEBOWLING ALL_EMOJI MIN_VALUEMAX_VALUE_BOWLINGMAX_VALUE_DARTSMAX_VALUE_DICEMAX_VALUE_BASKETBALLMAX_VALUE_FOOTBALLMAX_VALUE_SLOT_MACHINE)__name__ __module__ __qualname____doc__ __slots__intstrrrrr DiceEmojirr__annotations__rrrrrlistr DiceLimitrrr r!r"r#r$ __classcell__)rs@rr r s<|#ISWc#hx>P!**//D%*/4!++11E5:15&00;;Jc ;:$..77HeCj78(22??L%*?<#--55GU3Z5 #'y':':";IuT#Y;?%//99IuSz9 %.$7$7$I$IuSzI #,"5"5"E"EOU3ZE "+!4!4!C!CNE#JC (1':':'O'O%*O &/%8%8%K%Kc K *3)<)<)S)SE#JSrr N) r(typingrrtelegramrtelegram._telegramobjectrtelegram._utils.typesrr rrr6s%&F"3*E>Er