+
    ÁFñjOJ  ã            
       óÒ   € R t ^ RIt^ RIHt ^ RIHtHtHt ^ RIH	t	H
t
 ^ RIHtHtHt ]'       d   ^ RIHt  ! R R]	]]]3,          ]]]3,          ]]]3,          3,          4      tR# )	z/This module contains the DictPersistence class.N)Údeepcopy)ÚTYPE_CHECKINGÚAnyÚcast)ÚBasePersistenceÚPersistenceInput)ÚCDCDataÚConversationDictÚConversationKey)ÚJSONDictc                   óÖ  a a€ ] tR t^ t oRtR>tR?V3R lV 3R lllt]V3R lR l4       t]V3R lR l4       t	]V3R lR	 l4       t
]V3R
 lR l4       t]V3R lR l4       t]V3R lR l4       t]V3R lR l4       t]V3R lR l4       t]V3R lR l4       t]V3R lR l4       tV3R lR ltV3R lR ltV3R lR ltV3R lR ltV3R  lR! ltV3R" lR# ltV3R$ lR% ltV3R& lR' ltV3R( lR) ltV3R* lR+ ltV3R, lR- ltV3R. lR/ ltV3R0 lR1 ltV3R2 lR3 ltV3R4 lR5 lt V3R6 lR7 lt!]"V3R8 lR9 l4       t#]"V3R: lR; l4       t$]"V3R< lR= l4       t%R>t&Vt'V ;t(# )@ÚDictPersistenceaá	  Using Python's :obj:`dict` and :mod:`json` for making your bot persistent.

Attention:
    The interface provided by this class is intended to be accessed exclusively by
    :class:`~telegram.ext.Application`. Calling any of the methods below manually might
    interfere with the integration of persistence into :class:`~telegram.ext.Application`.

Note:
    * Data managed by :class:`DictPersistence` is in-memory only and will be lost when the bot
      shuts down. This is, because :class:`DictPersistence` is mainly intended as starting
      point for custom persistence classes that need to JSON-serialize the stored data before
      writing them to file/database.

    * This implementation of :class:`BasePersistence` does not handle data that cannot be
      serialized by :func:`json.dumps`.

.. seealso:: :wiki:`Making Your Bot Persistent <Making-your-bot-persistent>`

.. versionchanged:: 20.0
    The parameters and attributes ``store_*_data`` were replaced by :attr:`store_data`.

Args:
    store_data (:class:`~telegram.ext.PersistenceInput`, optional): Specifies which kinds of
        data will be saved by this persistence instance. By default, all available kinds of
        data will be saved.
    user_data_json (:obj:`str`, optional): JSON string that will be used to reconstruct
        user_data on creating this persistence. Default is ``""``.
    chat_data_json (:obj:`str`, optional): JSON string that will be used to reconstruct
        chat_data on creating this persistence. Default is ``""``.
    bot_data_json (:obj:`str`, optional): JSON string that will be used to reconstruct
        bot_data on creating this persistence. Default is ``""``.
    conversations_json (:obj:`str`, optional): JSON string that will be used to reconstruct
        conversation on creating this persistence. Default is ``""``.
    callback_data_json (:obj:`str`, optional): JSON string that will be used to reconstruct
        callback_data on creating this persistence. Default is ``""``.

        .. versionadded:: 13.6
    update_interval (:obj:`int` | :obj:`float`, optional): The
        :class:`~telegram.ext.Application` will update
        the persistence in regular intervals. This parameter specifies the time (in seconds) to
        wait between two consecutive runs of updating the persistence. Defaults to 60 seconds.

        .. versionadded:: 20.0
Attributes:
    store_data (:class:`~telegram.ext.PersistenceInput`): Specifies which kinds of data will
        be saved by this persistence instance.
c                óR   <€ V ^8„  d   QhRS[ R,          RS[RS[RS[RS[RS[RS[/# )	é   Ú
store_dataNÚuser_data_jsonÚchat_data_jsonÚbot_data_jsonÚconversations_jsonÚcallback_data_jsonÚupdate_interval)r   ÚstrÚfloat)ÚformatÚ__classdict__s   "€ÚS/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/ext/_dictpersistence.pyÚ__annotate__ÚDictPersistence.__annotate__^   s_   ø€ ÷ Mñ Má$ tÕ+ðMñ ðMñ ð	Mñ
 ðMñ  ðMñ  ðMñ ñMó    c                ó.  <€ \         SV `  WR 7       RV n        RV n        RV n        RV n        RV n        RV n        RV n        RV n	        RV n
        RV n        V'       d    V P                  V4      V n        W n        V'       d    V P                  V4      V n        W0n        V'       dN    \         P"                  ! V4      V n        W@n	        \%        T P                  \&        4      '       g   \        R4      hV'       Ed
    \         P"                  ! V4      p	 T	f	   RT n        MC\)        RT	^ ,           U
UUu. uF  w  r«qÊ\+        T4      T3NK  	  uppp
T	^,          34      T n        Y`n
        T P
                  e�   \.        ;QJ d-    R	 T P
                  ^ ,           4       F  '       d   K   R
M"	  RM! R	 T P
                  ^ ,           4       4      '       d(   \%        T P
                  ^,          \&        4      '       g   \        R4      hV'       d     V P1                  V4      V n        WPn        R# R#   \        \        3 d   p\        R4      ThRp?ii ; i  \        \        3 d   p\        R4      ThRp?ii ; i  \        \        3 d   p\        R4      ThRp?ii ; i  \        \        3 d   p\        R4      ThRp?ii ; iu uppp
i   \        \,        3 d   p\        R4      ThRp?ii ; i  \        \        3 d   p\        R4      ThRp?ii ; i))r   r   Nz4Unable to deserialize user_data_json. Not valid JSONz4Unable to deserialize chat_data_json. Not valid JSONz3Unable to deserialize bot_data_json. Not valid JSONz%bot_data_json must be serialized dictz8Unable to deserialize callback_data_json. Not valid JSONr   z0callback_data_json is not in the required formatc              3   óŽ   "  € T F;  p\        V^,          \        4      ;'       d    \        V^ ,          \        4      x € K=  	  R# 5i)r   N)Ú
isinstanceÚdictr   )Ú.0Úentrys   & r   Ú	<genexpr>Ú+DictPersistence.__init__.<locals>.<genexpr>œ   s8   é € ð á!7˜ô ˜u Q�x¬Ó.×LÐL´:¸eÀA½hÌÓ3LÔLÛ!7ùs
   ‚"A¥ AFTz8Unable to deserialize conversations_json. Not valid JSON)ÚsuperÚ__init__Ú
_user_dataÚ
_chat_dataÚ	_bot_dataÚ_callback_dataÚ_conversationsÚ_user_data_jsonÚ_chat_data_jsonÚ_bot_data_jsonÚ_callback_data_jsonÚ_conversations_jsonÚ _decode_user_chat_data_from_jsonÚ
ValueErrorÚAttributeErrorÚ	TypeErrorÚjsonÚloadsr!   r"   r   r   Ú
IndexErrorÚallÚ_decode_conversations_from_json)Úselfr   r   r   r   r   r   r   ÚexcÚdataÚoneÚtwoÚthreeÚ	__class__s   &&&&&&&&     €r   r(   ÚDictPersistence.__init__^   sð  ø€ ô 	‰Ñ JÐÔPØˆŒØˆŒØˆŒØ"ˆÔØ"ˆÔØ+/ˆÔØ+/ˆÔØ*.ˆÔØ/3ˆÔ Ø/3ˆÔ ßðaØ"&×"GÑ"GÈÓ"W�”Ø'5Ô$÷ ðaØ"&×"GÑ"GÈÓ"W�”Ø'5Ô$÷ ð`Ü!%§¢¨MÓ!:�”Ø&3Ô#ô ˜dŸn™n¬d×3Ò3ÜÐ GÓHÐHßÐðÜ—z’zÐ"4Ó5�ð
]Ø’<Ø*.�DÕ'ä*.Ø!ØJNÈqÎ'ÕRÉ'±°sÀ¤ c£
¨EÓ2É'ÓRÐTXÐYZÕT[Ð\ó+�DÔ'ð ,>Ô(ð ×"Ñ"Ò.ß“Cñ à!%×!4Ñ!4°QÖ!7ó—C—C’Cñ à!%×!4Ñ!4°QÖ!7ó÷ ò ô " $×"5Ñ"5°aÕ"8¼$×?Ò?äÐ RÓSÐSçðØ&*×&JÑ&JÐK]Ó&^�Ô#Ø+=Ö(ñ øô[ ¤Ð/ô aÜÐ VÓWÐ]`Ð`ûðaûô ¤Ð/ô aÜÐ VÓWÐ]`Ð`ûðaûô ¤Ð/ô `ÜÐ UÓVÐ\_Ð_ûð`ûô ¤Ð/ô ÜØNóàðûðüô Søô ¤
Ð+ô ]ÜÐ RÓSÐY\Ð\ûð]ûô ¤Ð/ô ÜØNóàðûðús¢   Á!H2 ÂI Â+!I< ÄJ! ÄK Ä7KÅK ÈK2 È2IÉIÉIÉI9É(I4É4I9É<JÊJÊJÊ!KÊ2J>Ê>KËK ËK/ËK*Ë*K/Ë2LÌLÌLc                óZ   <€ V ^8„  d   QhRS[ S[S[ S[S[3,          3,          R,          /# ©r   ÚreturnN©r"   Úintr   )r   r   s   "€r   r   r   ®   ó+   ø€ ÷ ñ ™4¡¡T©#©s¨(¥^Ð 3Õ4°tÕ;ñ r   c                ó   € V P                   # )z%:obj:`dict`: The user_data as a dict.)r)   ©r<   s   &r   Ú	user_dataÚDictPersistence.user_data­   ó   € ð �‰Ðr   c                ó    <€ V ^8„  d   QhRS[ /# ©r   rF   ©r   )r   r   s   "€r   r   r   ³   ó   ø€ ÷ *ñ *¡ñ *r   c                ó~   € V P                   '       d   V P                   # \        P                  ! V P                  4      # )z6:obj:`str`: The user_data serialized as a JSON-string.)r.   r7   ÚdumpsrL   rK   s   &r   r   ÚDictPersistence.user_data_json²   ó/   € ð ××ÐØ×'Ñ'Ð'Ü�zŠz˜$Ÿ.™.Ó)Ð)r   c                óZ   <€ V ^8„  d   QhRS[ S[S[ S[S[3,          3,          R,          /# rE   rG   )r   r   s   "€r   r   r   º   rI   r   c                ó   € V P                   # )z%:obj:`dict`: The chat_data as a dict.)r*   rK   s   &r   Ú	chat_dataÚDictPersistence.chat_data¹   rN   r   c                ó    <€ V ^8„  d   QhRS[ /# rP   rQ   )r   r   s   "€r   r   r   ¿   rR   r   c                ó~   € V P                   '       d   V P                   # \        P                  ! V P                  4      # )z6:obj:`str`: The chat_data serialized as a JSON-string.)r/   r7   rT   rY   rK   s   &r   r   ÚDictPersistence.chat_data_json¾   rV   r   c                óD   <€ V ^8„  d   QhRS[ S[S[3,          R,          /# rE   ©r"   r   )r   r   s   "€r   r   r   Æ   s!   ø€ ÷ ñ ™$™s¡C˜x�.¨4Õ/ñ r   c                ó   € V P                   # )z$:obj:`dict`: The bot_data as a dict.)r+   rK   s   &r   Úbot_dataÚDictPersistence.bot_dataÅ   s   € ð �~‰~Ðr   c                ó    <€ V ^8„  d   QhRS[ /# rP   rQ   )r   r   s   "€r   r   r   Ë   s   ø€ ÷ )ñ )™sñ )r   c                ó~   € V P                   '       d   V P                   # \        P                  ! V P                  4      # )z5:obj:`str`: The bot_data serialized as a JSON-string.)r0   r7   rT   ra   rK   s   &r   r   ÚDictPersistence.bot_data_jsonÊ   s/   € ð ××ÐØ×&Ñ&Ð&Ü�zŠz˜$Ÿ-™-Ó(Ð(r   c                ó.   <€ V ^8„  d   QhRS[ R,          /# rE   ©r   )r   r   s   "€r   r   r   Ò   s   ø€ ÷ #ñ #™w¨�~ñ #r   c                ó   € V P                   # )z¹tuple[list[tuple[:obj:`str`, :obj:`float`, dict[:obj:`str`, :class:`object`]]],         dict[:obj:`str`, :obj:`str`]]: The metadata on the stored callback data.

.. versionadded:: 13.6
)r,   rK   s   &r   Úcallback_dataÚDictPersistence.callback_dataÑ   s   € ð ×"Ñ"Ð"r   c                ó    <€ V ^8„  d   QhRS[ /# rP   rQ   )r   r   s   "€r   r   r   Û   s   ø€ ÷ .ñ .¡Cñ .r   c                ó~   € V P                   '       d   V P                   # \        P                  ! V P                  4      # )z_:obj:`str`: The metadata on the stored callback data as a JSON-string.

.. versionadded:: 13.6
)r1   r7   rT   ri   rK   s   &r   r   Ú"DictPersistence.callback_data_jsonÚ   s1   € ð ×#×#Ð#Ø×+Ñ+Ð+Ü�zŠz˜$×,Ñ,Ó-Ð-r   c                óD   <€ V ^8„  d   QhRS[ S[S[3,          R,          /# rE   ©r"   r   r	   )r   r   s   "€r   r   r   å   s$   ø€ ÷ #ñ #™t¡CÑ)9Ð$9Õ:¸TÕAñ #r   c                ó   € V P                   # )z):obj:`dict`: The conversations as a dict.)r-   rK   s   &r   ÚconversationsÚDictPersistence.conversationsä   s   € ð ×"Ñ"Ð"r   c                ó    <€ V ^8„  d   QhRS[ /# rP   rQ   )r   r   s   "€r   r   r   ê   s   ø€ ÷ .ñ .¡Cñ .r   c                óØ   € V P                   '       d   V P                   # V P                  '       d   V P                  V P                  4      # \        P                  ! V P                  4      # )z::obj:`str`: The conversations serialized as a JSON-string.)r2   rq   Ú_encode_conversations_to_jsonr7   rT   rK   s   &r   r   Ú"DictPersistence.conversations_jsoné   sT   € ð ×#×#Ð#Ø×+Ñ+Ð+Ø××ÐØ×5Ñ5°d×6HÑ6HÓIÐIÜ�zŠz˜$×,Ñ,Ó-Ð-r   c                óL   <€ V ^8„  d   QhRS[ S[S[ S[S[3,          3,          /# rP   ©r"   rH   Úobject)r   r   s   "€r   r   r   ò   ó'   ø€ ÷ (ñ (¡T©#©t±F¹F°NÕ/CÐ*CÕ%Dñ (r   c              ƒ  ó^   "  € V P                   f   / V n        \        V P                   4      # 5i)z†Returns the user_data created from the ``user_data_json`` or an empty :obj:`dict`.

Returns:
    :obj:`dict`: The restored user data.
)rL   r)   r   rK   s   &r   Úget_user_dataÚDictPersistence.get_user_dataò   ó'   é € ð �>‰>Ò!Ø ˆDŒOÜ˜Ÿ™Ó'Ð'ùó   ‚+-c                óL   <€ V ^8„  d   QhRS[ S[S[ S[S[3,          3,          /# rP   rx   )r   r   s   "€r   r   r   ü   rz   r   c              ƒ  ó^   "  € V P                   f   / V n        \        V P                   4      # 5i)z†Returns the chat_data created from the ``chat_data_json`` or an empty :obj:`dict`.

Returns:
    :obj:`dict`: The restored chat data.
)rY   r*   r   rK   s   &r   Úget_chat_dataÚDictPersistence.get_chat_dataü   r~   r   c                ó6   <€ V ^8„  d   QhRS[ S[S[3,          /# rP   )r"   ry   )r   r   s   "€r   r   r     s   ø€ ÷ 'ñ '¡D©±¨Õ$8ñ 'r   c              ƒ  ó^   "  € V P                   f   / V n        \        V P                   4      # 5i)zƒReturns the bot_data created from the ``bot_data_json`` or an empty :obj:`dict`.

Returns:
    :obj:`dict`: The restored bot data.
)ra   r+   r   rK   s   &r   Úget_bot_dataÚDictPersistence.get_bot_data  s'   é € ð �=‰=Ò ØˆDŒNÜ˜Ÿ™Ó&Ð&ùr   c                ó.   <€ V ^8„  d   QhRS[ R,          /# rE   rg   )r   r   s   "€r   r   r     s   ø€ ÷ ,ñ ,©°4­ñ ,r   c              ƒ  ób   "  € V P                   f
   RV n        R# \        V P                   4      # 5i)aD  Returns the callback_data created from the ``callback_data_json`` or :obj:`None`.

.. versionadded:: 13.6

Returns:
    tuple[list[tuple[:obj:`str`, :obj:`float`, dict[:obj:`str`, :class:`object`]]],                 dict[:obj:`str`, :obj:`str`]]: The restored metadata or :obj:`None`,                 if no data was stored.
N)ri   r,   r   rK   s   &r   Úget_callback_dataÚ!DictPersistence.get_callback_data  s/   é € ð ×ÑÒ%Ø"&ˆDÔÙÜ˜×*Ñ*Ó+Ð+ùs   ‚-/c                ó&   <€ V ^8„  d   QhRS[ RS[/# )r   ÚnamerF   )r   r	   )r   r   s   "€r   r   r     s   ø€ ÷ 	7ñ 	7©Cð 	7Ñ4Dñ 	7r   c              ƒ  óˆ   "  € V P                   f   / V n        V P                   P                  V/ 4      P                  4       # 5i)z—Returns the conversations created from the ``conversations_json`` or an empty
:obj:`dict`.

Returns:
    :obj:`dict`: The restored conversations data.
)rq   r-   ÚgetÚcopy)r<   r�   s   &&r   Úget_conversationsÚ!DictPersistence.get_conversations  s=   é € ð ×ÑÒ%Ø"$ˆDÔØ×!Ñ!×%Ñ% d¨BÓ/×4Ñ4Ó6Ð6ùs   ‚A Ac                ó>   <€ V ^8„  d   QhRS[ RS[RS[R,          RR/# )r   r�   ÚkeyÚ	new_stateNrF   )r   r
   ry   )r   r   s   "€r   r   r   *  s1   ø€ ÷ (ñ (Ùð(Ù-ð(Ù:@À4½-ð(à	ñ(r   c              ƒ  óÜ   "  € V P                   '       g   / V n         V P                   P                  V/ 4      P                  V4      V8X  d   R# W0P                   V,          V&   RV n        R# 5i)zòWill update the conversations for the given handler.

Args:
    name (:obj:`str`): The handler's name.
    key (:obj:`tuple`): The key the state is changed for.
    new_state (:obj:`tuple` | :class:`object`): The new state for the given key.
N)r-   Ú
setdefaultr�   r2   )r<   r�   r”   r•   s   &&&&r   Úupdate_conversationÚ#DictPersistence.update_conversation*  s_   é € ð ×"×"Ð"Ø"$ˆDÔØ×Ñ×)Ñ)¨$°Ó3×7Ñ7¸Ó<À	ÔIÙØ)2×Ñ˜DÕ! #Ñ&Ø#'ˆÖ ùs   ‚A*A,c                ó@   <€ V ^8„  d   QhRS[ RS[S[S[3,          RR/# )r   Úuser_idr>   rF   N©rH   r"   r   )r   r   s   "€r   r   r   ;  ó*   ø€ ÷ $ñ $©cð $¹¹cÁ3¸h½ð $ÈDñ $r   c              ƒ  ó¦   "  € V P                   f   / V n         V P                   P                  V4      V8X  d   R# W P                   V&   RV n        R# 5i)zÎWill update the user_data (if changed).

Args:
    user_id (:obj:`int`): The user the data might have been changed for.
    data (:obj:`dict`): The :attr:`telegram.ext.Application.user_data` ``[user_id]``.
N)r)   r�   r.   )r<   r›   r>   s   &&&r   Úupdate_user_dataÚ DictPersistence.update_user_data;  óF   é € ð �?‰?Ò"Ø ˆDŒOØ�?‰?×Ñ˜wÓ'¨4Ô/ÙØ#'�‰˜Ñ Ø#ˆÖùó   ‚AAc                ó@   <€ V ^8„  d   QhRS[ RS[S[S[3,          RR/# )r   Úchat_idr>   rF   Nrœ   )r   r   s   "€r   r   r   I  r�   r   c              ƒ  ó¦   "  € V P                   f   / V n         V P                   P                  V4      V8X  d   R# W P                   V&   RV n        R# 5i)zÎWill update the chat_data (if changed).

Args:
    chat_id (:obj:`int`): The chat the data might have been changed for.
    data (:obj:`dict`): The :attr:`telegram.ext.Application.chat_data` ``[chat_id]``.
N)r*   r�   r/   )r<   r¤   r>   s   &&&r   Úupdate_chat_dataÚ DictPersistence.update_chat_dataI  r¡   r¢   c                ó:   <€ V ^8„  d   QhRS[ S[S[3,          RR/# ©r   r>   rF   Nr_   )r   r   s   "€r   r   r   W  s#   ø€ ÷ 	#ñ 	#©$©s±C¨x­.ð 	#¸Tñ 	#r   c              ƒ  óN   "  € V P                   V8X  d   R# Wn         RV n        R# 5i)zuWill update the bot_data (if changed).

Args:
    data (:obj:`dict`): The :attr:`telegram.ext.Application.bot_data`.
N)r+   r0   ©r<   r>   s   &&r   Úupdate_bot_dataÚDictPersistence.update_bot_dataW  s#   é € ð �>‰>˜TÔ!ÙØŒØ"ˆÖùó   ‚#%c                ó$   <€ V ^8„  d   QhRS[ RR/# r©   rg   )r   r   s   "€r   r   r   b  s   ø€ ÷ (ñ (©wð (¸4ñ (r   c              ƒ  óN   "  € V P                   V8X  d   R# Wn         RV n        R# 5i)a#  Will update the callback_data (if changed).

.. versionadded:: 13.6

Args:
    data (tuple[list[tuple[:obj:`str`, :obj:`float`, dict[:obj:`str`, :class:`object`]]],                 dict[:obj:`str`, :obj:`str`]]): The relevant data to restore
        :class:`telegram.ext.CallbackDataCache`.
N)r,   r1   r«   s   &&r   Úupdate_callback_dataÚ$DictPersistence.update_callback_datab  s&   é € ð ×Ñ $Ô&ÙØ"ÔØ#'ˆÖ ùr®   c                ó$   <€ V ^8„  d   QhRS[ RR/# )r   r¤   rF   N©rH   )r   r   s   "€r   r   r   q  ó   ø€ ÷ $ñ $©Cð $°Dñ $r   c              ƒ  ót   "  € V P                   f   R# V P                   P                  VR4       RV n        R# 5i)zŸWill delete the specified key from the :attr:`chat_data`.

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int`): The chat id to delete from the persistence.
N)r*   Úpopr/   )r<   r¤   s   &&r   Údrop_chat_dataÚDictPersistence.drop_chat_dataq  ó0   é € ð �?‰?Ò"ÙØ�‰×Ñ˜G TÔ*Ø#ˆÖùó   ‚68c                ó$   <€ V ^8„  d   QhRS[ RR/# )r   r›   rF   Nr´   )r   r   s   "€r   r   r   ~  rµ   r   c              ƒ  ót   "  € V P                   f   R# V P                   P                  VR4       RV n        R# 5i)zŸWill delete the specified key from the :attr:`user_data`.

.. versionadded:: 20.0

Args:
    user_id (:obj:`int`): The user id to delete from the persistence.
N)r)   r·   r.   )r<   r›   s   &&r   Údrop_user_dataÚDictPersistence.drop_user_data~  rº   r»   c                ó@   <€ V ^8„  d   QhRS[ RS[S[S[3,          RR/# )r   r›   rL   rF   Nrœ   )r   r   s   "€r   r   r   ‹  ó+   ø€ ÷ ñ ©sð ¹tÁCÉÀH½~ð ÐRVñ r   c              ƒ  ó   "  € R# 5i)zjDoes nothing.

.. versionadded:: 13.6
.. seealso:: :meth:`telegram.ext.BasePersistence.refresh_user_data`
N© )r<   r›   rL   s   &&&r   Úrefresh_user_dataÚ!DictPersistence.refresh_user_data‹  ó   é ‚ ùó   ‚c                ó@   <€ V ^8„  d   QhRS[ RS[S[S[3,          RR/# )r   r¤   rY   rF   Nrœ   )r   r   s   "€r   r   r   ’  rÁ   r   c              ƒ  ó   "  € R# 5i)zjDoes nothing.

.. versionadded:: 13.6
.. seealso:: :meth:`telegram.ext.BasePersistence.refresh_chat_data`
NrÃ   )r<   r¤   rY   s   &&&r   Úrefresh_chat_dataÚ!DictPersistence.refresh_chat_data’  rÆ   rÇ   c                ó:   <€ V ^8„  d   QhRS[ S[S[3,          RR/# )r   ra   rF   Nr_   )r   r   s   "€r   r   r   ™  s#   ø€ ÷ ñ ©t±C¹°H­~ð À$ñ r   c              ƒ  ó   "  € R# 5i)ziDoes nothing.

.. versionadded:: 13.6
.. seealso:: :meth:`telegram.ext.BasePersistence.refresh_bot_data`
NrÃ   )r<   ra   s   &&r   Úrefresh_bot_dataÚ DictPersistence.refresh_bot_data™  rÆ   rÇ   c                ó   <€ V ^8„  d   QhRR/# rE   rÃ   )r   r   s   "€r   r   r      s   ø€ ÷ ñ ˜Tñ r   c              ƒ  ó   "  € R# 5i)z^Does nothing.

.. versionadded:: 20.0
.. seealso:: :meth:`telegram.ext.BasePersistence.flush`
NrÃ   rK   s   &r   ÚflushÚDictPersistence.flush   rÆ   rÇ   c                ó<   <€ V ^8„  d   QhRS[ S[S[3,          RS[/# )r   rq   rF   ro   )r   r   s   "€r   r   r   ¨  s'   ø€ ÷ ñ ±T¹#Ñ?OÐ:OÕ5Pð ÑUXñ r   c                óÜ   € / pV P                  4        FA  w  r#/ W&   VP                  4        F$  w  rEWQV,          \        P                  ! V4      &   K&  	  KC  	  \        P                  ! V4      # )a6  Helper method to encode a conversations dict (that uses tuples as keys) to a
JSON-serializable way. Use :meth:`self._decode_conversations_from_json` to decode.

Args:
    conversations (:obj:`dict`): The conversations dict to transform to JSON.

Returns:
    :obj:`str`: The JSON-serialized conversations dict
)Úitemsr7   rT   )rq   ÚtmpÚhandlerÚstatesr”   Ústates   &     r   ru   Ú-DictPersistence._encode_conversations_to_json§  s[   € ð $&ˆØ,×2Ñ2Ö4‰OˆGØˆC‰LØ$Ÿl™lžn‘
�Ø05�G•œTŸZšZ¨›_Ó-ó -ñ  5ô �zŠz˜#‹Ðr   c                ó<   <€ V ^8„  d   QhRS[ RS[S[ S[3,          /# )r   Újson_stringrF   )r   r"   r	   )r   r   s   "€r   r   r   º  s&   ø€ ÷ ñ ±Sð ¹TÁ#ÑGWÐBWÕ=Xñ r   c           	     óò   € \         P                  ! V 4      p/ pVP                  4        FJ  w  r4/ W#&   VP                  4        F-  w  rVWbV,          \        \         P                  ! V4      4      &   K/  	  KL  	  V# )a!  Helper method to decode a conversations dict (that uses tuples as keys) from a
JSON-string created with :meth:`self._encode_conversations_to_json`.

Args:
    json_string (:obj:`str`): The conversations dict as JSON string.

Returns:
    :obj:`dict`: The conversations dict after decoding
)r7   r8   rÖ   Útuple)rÝ   r×   rq   rØ   rÙ   r”   rÚ   s   &      r   r;   Ú/DictPersistence._decode_conversations_from_json¹  se   € ô �jŠj˜Ó%ˆØ57ˆØ"Ÿy™yž{‰OˆGØ%'ˆMÑ"Ø$Ÿl™lžn‘
�ØAF˜gÕ&¤u¬T¯ZªZ¸«_Ó'=Ó>ó -ñ  +ð Ðr   c                óR   <€ V ^8„  d   QhRS[ RS[S[S[S[S[3,          3,          /# )r   r>   rF   )r   r"   rH   ry   )r   r   s   "€r   r   r   Í  s.   ø€ ÷ ñ ©sð ±t¹CÁÁfÉfÀnÕAUÐ<UÕ7Vñ r   c                ó  € / p\         P                  ! V 4      pVP                  4        FD  w  r4\        V4      p/ W&   VP                  4        F  w  rg \        V4      pWqV,          V&   K  	  KF  	  V#   \         d    Tp L$i ; i)zæHelper method to decode chat or user data (that uses ints as keys) from a
JSON-string.

Args:
    data (:obj:`str`): The user/chat_data dict as JSON string.

Returns:
    :obj:`dict`: The user/chat_data defaultdict after decoding
)r7   r8   rÖ   rH   r4   )	r>   r×   Údecoded_dataÚuserrL   Úint_user_idr”   ÚvalueÚ_ids	   &        r   r3   Ú0DictPersistence._decode_user_chat_data_from_jsonÌ  sŠ   € ð 02ˆÜ—z’z $Ó'ˆØ+×1Ñ1Ö3‰OˆDÜ˜d›)ˆKØ!ˆCÑØ'Ÿo™oÖ/‘
�ðÜ˜c›(�Cð ).�KÕ  Ó%ó 0ñ  4ð ˆ
øô "ô Ø’Cðús   ÁA3Á3BÂB)
r+   r0   r,   r1   r*   r/   r-   r2   r)   r.   )NÚ ré   ré   ré   ré   é<   ))Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r(   ÚpropertyrL   r   rY   r   ra   r   ri   r   rq   r   r|   r‚   r†   rŠ   r‘   r˜   rŸ   r¦   r¬   r±   r¸   r¾   rÄ   rÊ   rÎ   rÒ   Ústaticmethodru   r;   r3   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)rB   r   s   @@r   r   r       sÈ  ù‡ € ñ.ð`€I÷Mõ Mð^ ÷ó ðð ÷*ó ð*ð ÷ó ðð ÷*ó ð*ð ÷ó ðð ÷)ó ð)ð ÷#ó ð#ð ÷.ó ð.ð ÷#ó ð#ð ÷.ó ð.÷(ð (÷(ð (÷'ð '÷,ð ,÷	7ð 	7÷(ð (÷"$ð $÷$ð $÷	#ð 	#÷(ð (÷$ð $÷$ð $÷ð ÷ð ÷ð ÷ð ð ÷ó ðð" ÷ó ðð$ ÷ó ÷ð r   r   )rï   r7   r�   r   Útypingr   r   r   Útelegram.extr   r   Útelegram.ext._utils.typesr   r	   r
   Útelegram._utils.typesr   r"   r   rÃ   r   r   Ú<module>rú      sX   ðñ& 6ã Ý ß +Ñ +ç :ß PÑ PçÝ.ôB�o d¨3°¨8¥n°d¸3À¸8µnÀdÈ3ÐPSÈ8ÅnÐ&TÕUö Br   