
    ip                     r    d Z ddlmZ dee         dz  dee         fdZdee         dz  dee         fdZdS )	aK  This module contains helper functions related to parsing updates and their contents.

.. versionadded:: 20.8

Warning:
    Contents of this module are intended to be used internally by the library and *not* by the
    user. Changes to this module are not considered breaking changes and may not be documented in
    the changelog.
    )SCTchat_idNreturnc                     | t                      S t          | t                    rt          | h          S t          |           S )zPAccepts a chat id or collection of chat ids and returns a frozenset of chat ids.)	frozenset
isinstanceint)r   s    c/Users/shanyulin/my-agent/.venv/lib/python3.11/site-packages/telegram/ext/_utils/_update_parsing.pyparse_chat_idr       sA    {{'3 $'###W    usernamec                     | t                      S t          | t                    r#t          |                     d          h          S t          d | D                       S )zAccepts a username or collection of usernames and returns a frozenset of usernames.
    Strips the leading ``@`` if present.
    N@c              3   @   K   | ]}|                     d           V  dS )r   N)removeprefix).0usrs     r
   	<genexpr>z!parse_username.<locals>.<genexpr>1   s0      ??sS%%c**??????r   )r   r   strr   )r   s    r
   parse_usernamer   )   sb     {{(C   7(//445666??h??????r   )__doc__telegram._utils.typesr   r	   r   r   r   r    r   r
   <module>r      s   &  & % % % % %3s8d? y~    @SX_ @3 @ @ @ @ @ @r   