
    i	                         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dS )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          |           n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    e/var/www/html/crypto-bot/backend/venv/lib/python3.11/site-packages/telegram/_utils/argumentparsing.pyparse_sequence_argr   "   s     $5:::"$    disable_web_page_previewlink_preview_optionsc                 P    | 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.N)is_disabled)
ValueErrorr   )r   r   s     r   parse_lpo_and_dwppr   .   sK       
$8 

 
 	

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