
    ՟f	                         d Z ddlmZmZmZmZ ddlmZ ddlm	Z	  ed      Z
deee
      dee
df   fd	Zd
ee   de	e   de	e   fdZy)a:  This module contains helper functions related to parsing arguments for classes and methods.

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SequenceTupleTypeVar)LinkPreviewOptions)ODVInputTargreturn.c                      | rt        |       S dS )zParses an optional sequence into a tuple

    Args:
        arg (:obj:`Sequence`): The sequence to parse.

    Returns:
        :obj:`Tuple`: The sequence converted to a tuple or an empty tuple.
     )tuple)r
   s    Z/var/www/cvtools/html/venv/lib/python3.12/site-packages/telegram/_utils/argumentparsing.pyparse_sequence_argr   "   s     5:$"$    disable_web_page_previewlink_preview_optionsc                 @    | r|rt        d      | t        |       }|S )zWrapper around warn_about_deprecated_arg_return_new_arg. Takes care of converting
    disable_web_page_preview to LinkPreviewOptions.
    zXParameters `disable_web_page_preview` and `link_preview_options` are mutually exclusive.)is_disabled)
ValueErrorr   )r   r   s     r   parse_lpo_and_dwppr   .   s6      $8
 	

  +1>VWr   N)__doc__typingr   r   r   r   telegram._linkpreviewoptionsr   telegram._utils.typesr   r	   r   boolr   r   r   r   <module>r      sr   & 6 5 ; *CL	%HXa[1 	%eAsFm 	% &tn DLM_D`  ! r   