
    Yi                     h    S r SSKJr  SSKJr  S\\\      S\\   4S jrS\\\      S\\   4S jr	g	)
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.
    )Optional)SCTchat_idreturnc                 t    U c
  [        5       $ [        U [        5      (       a  [        U 15      $ [        U 5      $ )zPAccepts a chat id or collection of chat ids and returns a frozenset of chat ids.)	frozenset
isinstanceint)r   s    N/app/.venv/lib/python3.13/site-packages/telegram/ext/_utils/_update_parsing.pyparse_chat_idr   !   s4    {'3'##W    usernamec                     U c
  [        5       $ [        U [        5      (       a  [        U R                  S5      15      $ [        S U  5       5      $ )zyAccepts a username or collection of usernames and returns a frozenset of usernames.
Strips the leading ``@`` if present.
@c              3   B   #    U  H  oR                  S 5      v   M     g7f)r   N)removeprefix).0usrs     r   	<genexpr>!parse_username.<locals>.<genexpr>2   s     ?hs%%c**hs   )r   r	   strr   )r   s    r   parse_usernamer   *   sI     {(C  (//4566?h???r   N)
__doc__typingr   telegram._utils.typesr   r
   r   r   r   r    r   r   <module>r      sU   &  %8CH- )C. @Xc#h/ @IcN @r   