L i bdZddlmZmZddlmZddlmZddlm Z erddl m Z GddeZ y ) z;This module contains an object related to a Telegram Story.) TYPE_CHECKINGOptional)Chat)TelegramObject)JSONDict)Botc neZdZdZdZdddededeeddffd Z e dd ed ed ddffd Z xZ S)Storya This object represents a story. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`chat` and :attr:`id` are equal. .. versionadded:: 20.5 .. versionchanged:: 21.0 Added attributes :attr:`chat` and :attr:`id` and equality based on them. Args: chat (:class:`telegram.Chat`): Chat that posted the story. id (:obj:`int`): Unique identifier for the story in the chat. Attributes: chat (:class:`telegram.Chat`): Chat that posted the story. id (:obj:`int`): Unique identifier for the story in the chat. )chatidN api_kwargsr r rreturnct||||_||_|j|jf|_|j y)Nr )super__init__r r _id_attrs_freeze)selfr r r __class__s U/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_story.pyrzStory.__init__:s@ J/ ))TWW- databotrc|j|}tj|jdi||d<t| ||S)z,See :meth:`telegram.TelegramObject.de_json`.r )rr) _parse_datarde_jsongetr)clsrrrs rrz Story.de_jsonIsEt$||DHHVR$8#>V wDc22r)N) __name__ __module__ __qualname____doc__ __slots__rintrrr classmethodr __classcell__)rs@rr r sq*I*.     X&   383(5/3W33rr N) r#typingrrtelegram._chatrtelegram._telegramobjectrtelegram._utils.typesrtelegramrr rrr.s)&B*3*03N03r