U
    g,                     @   sP   d Z ddlmZmZmZ ddlmZ ddlmZ ddl	m
Z
 G dd deZdS )	z?This module contains an object that represents a Telegram Dice.    )FinalListOptional)	constants)TelegramObject)JSONDictc                       sX  e Zd ZU dZdZddeeee d fddZ	e
jjZee ed< e
jjZee ed	< e
jjZee ed
< e
jjZee ed< e
jjZee ed< e
jjZee ed< ee
jZeee  ed< e
jjZee ed< e
jjZee ed< e
jjZee ed< e
jjZee ed< e
jjZee ed< e
jjZee ed< e
jjZee ed<   ZS )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 <Code-snippets#map-a-slot-machine-dice-value-to-the-corresponding-symbols>`.
        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.

    )emojivalueN
api_kwargs)r
   r	   r   c                   s4   t  j|d || _|| _| j| jf| _|   d S )Nr   )super__init__r
   r	   Z	_id_attrsZ_freeze)selfr
   r	   r   	__class__ 2/tmp/pip-unpacked-wheel-swnnwir2/telegram/_dice.pyr   \   s
    zDice.__init__DICEDARTS
BASKETBALLFOOTBALLSLOT_MACHINEBOWLING	ALL_EMOJI	MIN_VALUEMAX_VALUE_BOWLINGMAX_VALUE_DARTSMAX_VALUE_DICEMAX_VALUE_BASKETBALLMAX_VALUE_FOOTBALLMAX_VALUE_SLOT_MACHINE) __name__
__module____qualname____doc__	__slots__intstrr   r   r   r   Z	DiceEmojir   r   __annotations__r   r   r   r   r   listr   r   Z	DiceLimitr   r   r   r   r   r    r!   __classcell__r   r   r   r   r      s$   
> 	r   N)r%   typingr   r   r   Ztelegramr   Ztelegram._telegramobjectr   Ztelegram._utils.typesr   r   r   r   r   r   <module>   s
   