U
    2tc                      @   s<   d Z ddlmZmZmZ ddlmZmZ G dd deZdS )z?This module contains an object that represents a Telegram Dice.    )AnyListClassVar)TelegramObject	constantsc                   @   s   e Zd ZU dZdZeeedddZe	j
Zee ed< e	jZee ed< e	jZee ed< e	jZee ed	< e	jZee ed
< e	jZee ed< e	jZeee  ed< dS )Diceu  
    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 "🎯", 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 "🏀", 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 "⚽", 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 "🎳", 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 "🎰", each value corresponds to a unique combination of symbols, which
        can be found at our `wiki <https://github.com/python-telegram-bot/python-telegram-bot/        wiki/Code-snippets#map-a-slot-machine-dice-value-to-the-corresponding-symbols>`_.
        However, this behaviour is undocumented and might be changed by Telegram.

    Args:
        value (:obj:`int`): Value of the dice. 1-6 for dice, darts and bowling balls, 1-5 for
            basketball and football/soccer ball, 1-64 for slot machine.
        emoji (:obj:`str`): Emoji on which the dice throw animation is based.

    Attributes:
        value (:obj:`int`): Value of the dice.
        emoji (:obj:`str`): Emoji on which the dice throw animation is based.

    )emojivalue	_id_attrs)r	   r   _kwargsc                 K   s   || _ || _| j | jf| _d S )N)r	   r   r
   )selfr	   r   r    r   1/tmp/pip-unpacked-wheel-2u9rcp5s/telegram/dice.py__init__F   s    zDice.__init__DICEDARTS
BASKETBALLFOOTBALLSLOT_MACHINEBOWLING	ALL_EMOJIN)__name__
__module____qualname____doc__	__slots__intstrr   r   r   Z	DICE_DICEr   r   __annotations__Z
DICE_DARTSr   ZDICE_BASKETBALLr   ZDICE_FOOTBALLr   ZDICE_SLOT_MACHINEr   ZDICE_BOWLINGr   ZDICE_ALL_EMOJIr   r   r   r   r   r   r      s   
)r   N)	r   typingr   r   r   Ztelegramr   r   r   r   r   r   r   <module>   s   