o
    f>hg                    @   s  d Z ddlZddlmZ ddlmZ ddlmZm	Z	m
Z
mZ ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZmZmZm Z m!Z!m"Z" ddl#m$Z$ ddl#m%Z& ddl#m'Z( erddlm)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZD G dd deZEG dd deEZFdS )z?This module contains an object that represents a Telegram Chat.    N)Sequence)escape)TYPE_CHECKINGFinalOptionalUnion)	constants)ChatPermissions)
ForumTopic)
MenuButton)ReactionType)TelegramObject)enum)DEFAULT_NONE)CorrectOptionID	FileInputJSONDictODVInputReplyMarkup
TimePeriod)escape_markdown)mention_html)mention_markdown)	AnimationAudioChatInviteLink
ChatMemberContactDocumentGiftInlineKeyboardMarkupInputMediaAudioInputMediaDocumentInputMediaPhotoInputMediaVideoInputPaidMediaInputPollOptionLabeledPriceLinkPreviewOptionsLocationMessageMessageEntity	MessageId	PhotoSizeReplyParametersStickerUserChatBoostsVenueVideo	VideoNoteVoicec                J       s)  e Zd ZU dZdZ					drdddededee dee d	ee d
ee dee dee	 f fddZ
ejjZee ed< 	 ejjZee ed< 	 ejjZee ed< 	 ejjZee ed< 	 ejjZee ed< 	 edee fddZedee fddZedee fddZdsdee defddZdsdee defddZdsdee defd d!Zeeeedd"d#ee d$ee d%ee d&ee dee	 defd'd(Zeeeedd"d#ee d$ee d%ee d&ee dee	 ded) fd*d+Z eeeedd"d#ee d$ee d%ee d&ee dee	 defd,d-Z!eeeedd"d.ed#ee d$ee d%ee d&ee dee	 dd/fd0d1Z"		dteeeedd"d.ed2ee d3ee#ee$j%f  d#ee d$ee d%ee d&ee dee	 defd4d5Z&eeeedd"d6ed#ee d$ee d%ee d&ee dee	 defd7d8Z'eeeedd"d9e#eef d#ee d$ee d%ee d&ee dee	 defd:d;Z(eeeedd"d6ed#ee d$ee d%ee d&ee dee	 defd<d=Z)eeeedd"d9e#eef d#ee d$ee d%ee d&ee dee	 defd>d?Z*	dseeeedd"d.ed@ee d#ee d$ee d%ee d&ee dee	 defdAdBZ+															dueeeedd"d.edCee dDee dEee dFee dGee dHee dIee dJee dKee dLee dMee dNee dOee dPee dQee d#ee d$ee d%ee d&ee dee	 def,dRdSZ,		dteeeedd"d.edTe-d3ee#ee$j%f  dUee d#ee d$ee d%ee d&ee dee	 defdVdWZ.	dseeeedd"dTe-dUee d#ee d$ee d%ee d&ee dee	 defdXdYZ/eeeedd"d.edZed#ee d$ee d%ee d&ee dee	 defd[d\Z0eeeedd"d]e1d#ee d$ee d%ee d&ee dee	 defd^d_Z2eeeedd"d#ee d$ee d%ee d&ee dee	 defd`daZ3eeeedd"ded#ee d$ee d%ee d&ee dee	 defdbdcZ4	dseeeedd"ddee d#ee d$ee d%ee d&ee dee	 defdedfZ5edfeeeedd"dgedhee diee d#ee d$ee d%ee d&ee dee	 defdjdkZ6		dteeeedd"dgee diee d#ee d$ee d%ee d&ee dee	 defdldmZ7eeeedd"d#ee d$ee d%ee d&ee dee	 defdndoZ8eeddededdddfdedeeeeddpdqedree dhee dsee9 dtee:du  dvee dwee dxedy dzed{ diee d|ee d}ee d~ee dee dee d#ee d$ee d%ee d&ee dee	 ddf*ddZ;eeeedd"dged#ee d$ee d%ee d&ee dee	 defddZ<eeeedd"de:e d#ee d$ee d%ee d&ee dee	 defddZ=eedddddfdeeeeeddedd
de:e#d  dhee dvee dwee dzed{ diee d|ee d}ee d~ee dee d#ee d$ee d%ee d&ee dee	 dee dree dee:du  ded f&ddZ>		dteeeedd"dedwee diee d#ee d$ee d%ee d&ee dee	 defddZ?e?Z@	 dedededddddddfdedeeeeddd]e#e1df dee dhee dsee9 dree dee:du  dvee dwee dee dzed{ diee d|ee d}ee dee d~ee dee dee d#ee d$ee d%ee d&ee dee	 ddf.ddZAdddeddedddddfdedeeeedddee d	ee d
ee dhee dsee9 dee dvee dwee dzed{ diee d|ee d}ee d~ee dee ded d#ee d$ee d%ee d&ee dee	 ddf*ddZBddddedededdddddfdedeeeeddde#e1df deeC dee dee dee dhee dsee9 dree dee:du  dvee dwee dee1 dzed{ diee d|ee d}ee d~ee dee dee d#ee d$ee d%ee d&ee dee	 ddf2ddZDdededdeddddddfdedeeeeddde#e1df dee dhee dsee9 dree dee dee:du  dvee dwee dee1 dzed{ diee d|ee d}ee d~ee dee dee d#ee d$ee d%ee d&ee dee	 ddf.ddZEeddedddddf	deeeeedddhee dsee9 dee dvee dwee dzed{ diee d|ee d}ee d~ee dee d#ee d$ee d%ee d&ee dee	 ddf"ddZFededddddfdeeeeedddedhee dsed dvee dwee dzed{ diee d|ee d}ee d~ee dee d#ee d$ee d%ee d&ee dee	 ddf"ddZGdddddddddddeddddddeddddfdeeeeedddeddededede:d dee dee dee dee dee dee dee dee dee dee dee dhee dsed dee#eeHf  dee dee dee dee:e  dvee dwee dzed{ d|ee d}ee d~ee dee d#ee d$ee d%ee d&ee dee	 ddfHdd˄ZIddedddddedddddfdedeeeedd̜dee dee dhee dsee9 deeC dee dee dee dvee dwee dzed{ diee d|ee d}ee d~ee dee ded d#ee d$ee d%ee d&ee dee	 ddf.ddքZJddddeeddeddddddddfdedeeeeddde#e1df deeC dee dee dee dree dhee dsee9 dee:du  dvee dwee dee dee1 dzed{ diee d|ee d}ee dee d~ee dee dee d#ee d$ee d%ee d&ee dee	 ddf6dd܄ZKededdddddf	deeeeeddde#e1df dhee dsee9 dvee dwee dee dzed{ diee d|ee d}ee d~ee dee d#ee d$ee d%ee d&ee dee	 ddf$ddZLdddddeddddedddddfdedeeeedddee dee dee dee dee dhee dsee9 dee dee dee dvee dwee dzed{ diee d|ee d}ee d~ee dee ded d#ee d$ee d%ee d&ee dee	 ddf2ddZMddedddeddeddddddddddfdedeeeeddde#e1df deeC dee dhee dsee9 dee dee dree dee dee:du  dvee dwee dee dee1 dzed{ diee d|ee d}ee dee dee1 dee d~ee dee dee d#ee d$ee d%ee d&ee dee	 ddf<ddZNddededdddddfdedeeeeddde#e1df deeC dee dhee dsee9 dvee dwee dee1 dzed{ diee d|ee d}ee d~ee dee dee d#ee d$ee d%ee d&ee dee	 ddf*ddZOddedededddddfdedeeeeddde#e1df deeC dee dhee dsee9 dree dee:du  dvee dwee dzed{ diee d|ee d}ee d~ee dee dee d#ee d$ee d%ee d&ee dee	 ddf,ddZPdddddeddedddedddedddfdeeeeedddede:e#edf  dKee dee dee deeQ d ee dhee dsee9 dee dee deeC dee#ee$j%f  dee:du  dvee dwee dzed{ diee dee dee:du  d|ee d}ee d~ee dee d#ee d$ee d%ee d&ee dee	 ddf<dd	ZRdedededddddfdeeeeeddd
e#eef dgedee dree dee:du  dhee dsee9 dvee dwee dzed{ dee d}ee dee d~ee dee d#ee d$ee d%ee d&ee dee	 ddf*ddZSdedededddddfdeeeeeddd9e#eef dgedee dree dee:du  dhee dsee9 dvee dwee dzed{ dee d}ee dee d~ee dee d#ee d$ee d%ee d&ee dee	 ddf*ddZTeeddfeeeedd"d
e#eef de:e dhee dvee dwee dee d#ee d$ee d%ee d&ee dee	 ded fddZUeeddfeeeedd"d9e#eef de:e dhee dvee dwee dee d#ee d$ee d%ee d&ee dee	 ded fddZVeeddfeeeedd"d
e#eef dgedhee dvee dwee dee d#ee d$ee d%ee d&ee dee	 ddfddZWeeddfeeeedd"d9e#eef dgedhee dvee dwee dee d#ee d$ee d%ee d&ee dee	 ddfddZXeedfeeeedd"d
e#eef de:e dhee dvee dwee d#ee d$ee d%ee d&ee dee	 ded fddZYeedfeeeedd"d9e#eef de:e dhee dvee dwee d#ee d$ee d%ee d&ee dee	 ded fddZZeeeedd"d#ee d$ee d%ee d&ee dee	 defdd Z[				dveeeedd"d!ee#ee$j%f  d"ee dee d#ee d#ee d$ee d%ee d&ee dee	 dd$fd%d&Z\				dveeeedd"d'e#ed$f d!ee#ee$j%f  d"ee dee d#ee d#ee d$ee d%ee d&ee dee	 dd$fd(d)Z]eeeedd"d'e#ed$f d#ee d$ee d%ee d&ee dee	 dd$fd*d+Z^	dseeeedd"d,eCd-edee d#ee d$ee d%ee d&ee dee	 dd$fd.d/Z_	dseeeedd"d'e#ed$f dee d#ee d$ee d%ee d&ee dee	 dd$fd0d1Z`eeeedd"d.ed#ee d$ee d%ee d&ee dee	 defd2d3Zaeeeedd"d.ed#ee d$ee d%ee d&ee dee	 defd4d5Zb	dseeeedd"d6eec d#ee d$ee d%ee d&ee dee	 defd7d8Zd		dteeeedd"ded9ee d:ee d#ee d$ee d%ee d&ee dee	 deefd;d<Zf		dteeeedd"dwedee d:ee d#ee d$ee d%ee d&ee dee	 defd=d>Zgeeeedd"dwed#ee d$ee d%ee d&ee dee	 defd?d@Zheeeedd"dwed#ee d$ee d%ee d&ee dee	 defdAdBZieeeedd"dwed#ee d$ee d%ee d&ee dee	 defdCdDZjeeeedd"dwed#ee d$ee d%ee d&ee dee	 defdEdFZkeeeedd"d#ee d$ee d%ee d&ee dee	 defdGdHZleeeedd"ded#ee d$ee d%ee d&ee dee	 defdIdJZmeeeedd"d#ee d$ee d%ee d&ee dee	 defdKdLZneeeedd"d#ee d$ee d%ee d&ee dee	 defdMdNZoeeeedd"d#ee d$ee d%ee d&ee dee	 defdOdPZpeeeedd"d#ee d$ee d%ee d&ee dee	 defdQdRZqeeeedd"d#ee d$ee d%ee d&ee dee	 decfdSdTZreeeedd"d.ed#ee d$ee d%ee d&ee dee	 ddUfdVdWZs		dteeeedd"dgedXee#e:e#etef  etef  dYee d#ee d$ee d%ee d&ee dee	 defdZd[Zudeddeedddddfedeeeedd\d]ede:d^ dee dree dee:du  dee dhee dvee dzed{ dsee9 diee dee d}ee dee d~ee d#ee d$ee d%ee d&ee dee	 ddf*d_d`Zvdeddfeeeedd"dae#edbf dqee dcee ddee:du  deee d#ee d$ee d%ee d&ee dee	 defdfdgZw	dseeeedd"diedhed]ee d#ee d$ee d%ee d&ee dee	 defdidjZx	dseeeedd"dkee d#ee d$ee d%ee d&ee dee	 defdldmZyeeeedd"d#ee d$ee d%ee d&ee dee	 defdndoZzeeeedd"diedged#ee d$ee d%ee d&ee dee	 defdpdqZ{  Z|S (w  	_ChatBasezjBase class for :class:`telegram.Chat` and :class:`telegram.ChatFullInfo`.

    .. versionadded:: 21.3
    )
first_nameidis_forum	last_nametitletypeusernameN
api_kwargsr7   r;   r:   r<   r6   r9   r8   r>   c          	         sZ   t  j|d || _ttj||| _|| _|| _	|| _
|| _|| _| jf| _|   d S )Nr=   )super__init__r7   r   
get_memberr   ChatTyper;   r:   r<   r6   r9   r8   	_id_attrs_freeze)	selfr7   r;   r:   r<   r6   r9   r8   r>   	__class__ A/var/www/html/venv/lib/python3.10/site-packages/telegram/_chat.pyr@   W   s   
z_ChatBase.__init__SENDERPRIVATEGROUP
SUPERGROUPCHANNELreturnc                 C   s$   | j dur| j S | jdur| jS dS )z
        :obj:`str`: Convenience property. Gives :attr:`~Chat.title` if not :obj:`None`,
        else :attr:`~Chat.full_name` if not :obj:`None`.

        .. versionadded:: 20.1
        N)r:   	full_namerE   rH   rH   rI   effective_name   s
   

z_ChatBase.effective_namec                 C   s(   | j sdS | jr| j  d| j S | j S )a]  
        :obj:`str`: Convenience property. If :attr:`~Chat.first_name` is not :obj:`None`, gives
        :attr:`~Chat.first_name` followed by (if available) :attr:`~Chat.last_name`.

        Note:
            :attr:`full_name` will always be :obj:`None`, if the chat is a (super)group or
            channel.

        .. versionadded:: 13.2
        N )r6   r9   rQ   rH   rH   rI   rP      s
   z_ChatBase.full_namec                 C   s   | j r	d| j  S dS )z}:obj:`str`: Convenience property. If the chat has a :attr:`~Chat.username`, returns a
        t.me link of the chat.
        zhttps://t.me/N)r<   rQ   rH   rH   rI   link   s   z_ChatBase.linknamec                 C   s   | j | jkr|rt| j|S | jrt| j| jS td| jr=|r+d| d| j dS | jr9d| j d| j dS tdtd)a  
        Note:
            :tg-const:`telegram.constants.ParseMode.MARKDOWN` is a legacy mode, retained by
            Telegram for backward compatibility. You should use :meth:`mention_markdown_v2`
            instead.

        .. versionadded:: 20.0

        Args:
            name (:obj:`str`): The name used as a link for the chat. Defaults to
                :attr:`~Chat.full_name`.

        Returns:
            :obj:`str`: The inline mention for the chat as markdown (version 1).

        Raises:
            :exc:`TypeError`: If the chat is a private chat and neither the :paramref:`name`
                nor the :attr:`~Chat.first_name` is set, then throw an :exc:`TypeError`.
                If the chat is a public chat and neither the :paramref:`name` nor the
                :attr:`~Chat.title` is set, then throw an :exc:`TypeError`. If chat is a
                private group chat, then throw an :exc:`TypeError`.

        =Can not create a mention to a private chat without first name[]()7Can not create a mention to a public chat without title0Can not create a mention to a private group chat)	r;   rK   helpers_mention_markdownr7   rP   	TypeErrorr<   rT   r:   rE   rU   rH   rH   rI   r      s   z_ChatBase.mention_markdownc                 C   s   | j | jkr |rt| j|ddS | jrt| j| jddS td| jrI|r3dt|dd d| j dS | j	rEdt| j	dd d| j dS tdtd)	a  
        .. versionadded:: 20.0

        Args:
            name (:obj:`str`): The name used as a link for the chat. Defaults to
                :attr:`~Chat.full_name`.

        Returns:
            :obj:`str`: The inline mention for the chat as markdown (version 2).

        Raises:
            :exc:`TypeError`: If the chat is a private chat and neither the :paramref:`name`
                nor the :attr:`~Chat.first_name` is set, then throw an :exc:`TypeError`.
                If the chat is a public chat and neither the :paramref:`name` nor the
                :attr:`~Chat.title` is set, then throw an :exc:`TypeError`. If chat is a
                private group chat, then throw an :exc:`TypeError`.

           )versionrV   rW   rX   rY   rZ   r[   )
r;   rK   r\   r7   rP   r]   r<   r   rT   r:   r^   rH   rH   rI   mention_markdown_v2   s   z_ChatBase.mention_markdown_v2c                 C   s   | j | jkr|rt| j|S | jrt| j| jS td| jrA|r-d| j dt| dS | j	r=d| j dt| j	 dS tdtd)a  
        .. versionadded:: 20.0

        Args:
            name (:obj:`str`): The name used as a link for the chat. Defaults to :attr:`full_name`.

        Returns:
            :obj:`str`: The inline mention for the chat as HTML.

        Raises:
            :exc:`TypeError`: If the chat is a private chat and neither the :paramref:`name`
                nor the :attr:`~Chat.first_name` is set, then throw an :exc:`TypeError`.
                If the chat is a public chat and neither the :paramref:`name` nor the
                :attr:`~Chat.title` is set, then throw an :exc:`TypeError`.
                If chat is a private group chat, then throw an :exc:`TypeError`.

        rV   z	<a href="z">z</a>rZ   r[   )
r;   rK   helpers_mention_htmlr7   rP   r]   r<   rT   r   r:   r^   rH   rH   rI   r      s   z_ChatBase.mention_html)read_timeoutwrite_timeoutconnect_timeoutpool_timeoutr>   rc   rd   re   rf   c                   $   |   j| j|||||dI dH S )a  Shortcut for::

             await bot.leave_chat(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.leave_chat`.

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        chat_idrc   rd   re   rf   r>   N)get_bot
leave_chatr7   rE   rc   rd   re   rf   r>   rH   rH   rI   leave     z_ChatBase.leave)r   .c                   rg   )a]  Shortcut for::

             await bot.get_chat_administrators(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.get_chat_administrators`.

        Returns:
            tuple[:class:`telegram.ChatMember`]: A tuple of administrators in a chat. An Array of
            :class:`telegram.ChatMember` objects that contains information about all
            chat administrators except other bots. If the chat is a group or a supergroup
            and no administrators were appointed, only the creator will be returned.

        rh   N)rj   get_chat_administratorsr7   rl   rH   rH   rI   get_administrators,     z_ChatBase.get_administratorsc                   rg   )a	  Shortcut for::

             await bot.get_chat_member_count(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.get_chat_member_count`.

        Returns:
            :obj:`int`
        rh   N)rj   get_chat_member_countr7   rl   rH   rH   rI   get_member_countL  rn   z_ChatBase.get_member_countuser_idr   c             	      &   |   j| j||||||dI dH S )a  Shortcut for::

             await bot.get_chat_member(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.get_chat_member`.

        Returns:
            :class:`telegram.ChatMember`

        ri   rt   rc   rd   re   rf   r>   N)rj   get_chat_memberr7   rE   rt   rc   rd   re   rf   r>   rH   rH   rI   rA   h  s   z_ChatBase.get_memberrevoke_messages
until_datec          	         s*   |   j| j||||||||d	I dH S )a$  Shortcut for::

             await bot.ban_chat_member(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.ban_chat_member`.

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        )	ri   rt   rc   rd   re   rf   rz   r>   ry   N)rj   ban_chat_memberr7   )	rE   rt   ry   rz   rc   rd   re   rf   r>   rH   rH   rI   
ban_member     z_ChatBase.ban_membersender_chat_idc             	      ru   )aW  Shortcut for::

             await bot.ban_chat_sender_chat(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.ban_chat_sender_chat`.

        .. versionadded:: 13.9

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        ri   r~   rc   rd   re   rf   r>   Nrj   ban_chat_sender_chatr7   rE   r~   rc   rd   re   rf   r>   rH   rH   rI   ban_sender_chat     z_ChatBase.ban_sender_chatri   c             	      &   |   j|| j|||||dI dH S )a~  Shortcut for::

             await bot.ban_chat_sender_chat(
                 sender_chat_id=update.effective_chat.id, *args, **kwargs
             )

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.ban_chat_sender_chat`.

        .. versionadded:: 13.9

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        r   Nr   rE   ri   rc   rd   re   rf   r>   rH   rH   rI   ban_chat     z_ChatBase.ban_chatc             	      ru   )a[  Shortcut for::

             await bot.unban_chat_sender_chat(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.unban_chat_sender_chat`.

        .. versionadded:: 13.9

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        r   Nrj   unban_chat_sender_chatr7   r   rH   rH   rI   unban_sender_chat  r   z_ChatBase.unban_sender_chatc             	      r   )a  Shortcut for::

             await bot.unban_chat_sender_chat(
                 sender_chat_id=update.effective_chat.id, *args, **kwargs
             )

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.unban_chat_sender_chat`.

        .. versionadded:: 13.9

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        r   Nr   r   rH   rH   rI   
unban_chat  r   z_ChatBase.unban_chatonly_if_bannedc             
      (   |   j| j|||||||dI dH S )a!  Shortcut for::

             await bot.unban_chat_member(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.unban_chat_member`.

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        )ri   rt   rc   rd   re   rf   r>   r   N)rj   unban_chat_memberr7   )rE   rt   r   rc   rd   re   rf   r>   rH   rH   rI   unban_member0  s   z_ChatBase.unban_membercan_change_infocan_post_messagescan_edit_messagescan_delete_messagescan_invite_userscan_restrict_memberscan_pin_messagescan_promote_membersis_anonymouscan_manage_chatcan_manage_video_chatscan_manage_topicscan_post_storiescan_edit_storiescan_delete_storiesc                   s   |   jdi d| jd|d|d|d|d|d|d|d	|d
|	d|d|d|d|d|d|
d|d|d|d|d|d|I dH S )a  Shortcut for::

             await bot.promote_chat_member(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.promote_chat_member`.

        .. versionadded:: 13.2
        .. versionchanged:: 20.0
           The argument ``can_manage_voice_chats`` was renamed to
           :paramref:`~telegram.Bot.promote_chat_member.can_manage_video_chats` in accordance to
           Bot API 6.0.
        .. versionchanged:: 20.6
           The arguments `can_post_stories`, `can_edit_stories` and `can_delete_stories` were
           added.

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        ri   rt   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   r   r   r   r   r   r   r   NrH   )rj   promote_chat_memberr7   )rE   rt   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   promote_memberP  s\   -	

z_ChatBase.promote_memberpermissions use_independent_chat_permissionsc          
         s,   |   j| j|||||||||	d
I dH S )a  Shortcut for::

             await bot.restrict_chat_member(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.restrict_chat_member`.

        .. versionadded:: 13.2

        .. versionadded:: 20.1
            Added :paramref:`~telegram.Bot.restrict_chat_member.use_independent_chat_permissions`.

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        )
ri   rt   r   rz   r   rc   rd   re   rf   r>   N)rj   restrict_chat_memberr7   )
rE   rt   r   rz   r   rc   rd   re   rf   r>   rH   rH   rI   restrict_member  s   z_ChatBase.restrict_memberc             
      (   |   j| j|||||||dI dH S )a  Shortcut for::

             await bot.set_chat_permissions(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.set_chat_permissions`.

        .. versionadded:: 20.1
            Added :paramref:`~telegram.Bot.set_chat_permissions.use_independent_chat_permissions`.

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        )ri   r   r   rc   rd   re   rf   r>   N)rj   set_chat_permissionsr7   )rE   r   r   rc   rd   re   rf   r>   rH   rH   rI   set_permissions  s   z_ChatBase.set_permissionscustom_titlec             
      r   )am  Shortcut for::

             await bot.set_chat_administrator_custom_title(
                 update.effective_chat.id, *args, **kwargs
             )

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.set_chat_administrator_custom_title`.

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        )ri   rt   r   rc   rd   re   rf   r>   N)rj   #set_chat_administrator_custom_titler7   )rE   rt   r   rc   rd   re   rf   r>   rH   rH   rI   set_administrator_custom_title  s   z(_ChatBase.set_administrator_custom_titlephotoc             	      ru   )ak  Shortcut for::

             await bot.set_chat_photo(
                 chat_id=update.effective_chat.id, *args, **kwargs
             )

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.set_chat_photo`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        )ri   r   rc   rd   re   rf   r>   N)rj   set_chat_photor7   )rE   r   rc   rd   re   rf   r>   rH   rH   rI   	set_photo     z_ChatBase.set_photoc                   rg   )aq  Shortcut for::

             await bot.delete_chat_photo(
                 chat_id=update.effective_chat.id, *args, **kwargs
             )

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.delete_chat_photo`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        rh   N)rj   delete_chat_photor7   rl   rH   rH   rI   delete_photo*  s   z_ChatBase.delete_photoc             	      ru   )ak  Shortcut for::

             await bot.set_chat_title(
                 chat_id=update.effective_chat.id, *args, **kwargs
             )

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.set_chat_title`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        )ri   r:   rc   rd   re   rf   r>   N)rj   set_chat_titler7   )rE   r:   rc   rd   re   rf   r>   rH   rH   rI   	set_titleK  r   z_ChatBase.set_titledescriptionc             	      ru   )aw  Shortcut for::

             await bot.set_chat_description(
                 chat_id=update.effective_chat.id, *args, **kwargs
             )

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.set_chat_description`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        )ri   r   rc   rd   re   rf   r>   N)rj   set_chat_descriptionr7   )rE   r   rc   rd   re   rf   r>   rH   rH   rI   set_descriptionn  r   z_ChatBase.set_description
message_iddisable_notificationbusiness_connection_idc          	         *   |   j| j||||||||d	I dH S )a0  Shortcut for::

              await bot.pin_chat_message(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.pin_chat_message`.

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        )	ri   r   r   rc   rd   re   rf   r>   r   N)rj   pin_chat_messager7   )	rE   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   pin_message     z_ChatBase.pin_messagec             
      s(   |   j| j|||||||dI dH S )a4  Shortcut for::

              await bot.unpin_chat_message(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.unpin_chat_message`.

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        )ri   rc   rd   re   rf   r>   r   r   N)rj   unpin_chat_messager7   )rE   r   r   rc   rd   re   rf   r>   rH   rH   rI   unpin_message  s   z_ChatBase.unpin_messagec                   rg   )a>  Shortcut for::

              await bot.unpin_all_chat_messages(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.unpin_all_chat_messages`.

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        rh   N)rj   unpin_all_chat_messagesr7   rl   rH   rH   rI   unpin_all_messages  s   z_ChatBase.unpin_all_messages)reply_to_message_idallow_sending_without_replydisable_web_page_previewrc   rd   re   rf   r>   text
parse_modereply_markupentitiesr+   protect_contentmessage_thread_idlink_preview_optionsr(   reply_parametersr.   message_effect_idallow_paid_broadcastr   r   r   r*   c                   s   |   jdi d| jd|d|d|d|d|d|d|	d	|d
|d|d|d|d|d|d|d|d|d|
d|d|I dH S )a6  Shortcut for::

             await bot.send_message(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_message`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   r   r   r   NrH   )rj   send_messager7   )rE   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r     X   "	

z_ChatBase.send_messagec             	      ru   )a;  Shortcut for::

             await bot.delete_message(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.delete_message`.

        .. versionadded:: 20.8

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        )ri   r   rc   rd   re   rf   r>   N)rj   delete_messager7   )rE   r   rc   rd   re   rf   r>   rH   rH   rI   r   ,     z_ChatBase.delete_messagemessage_idsc             	      ru   )a=  Shortcut for::

             await bot.delete_messages(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.delete_messages`.

        .. versionadded:: 20.8

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        )ri   r   rc   rd   re   rf   r>   N)rj   delete_messagesr7   )rE   r   rc   rd   re   rf   r>   rH   rH   rI   r   L  r   z_ChatBase.delete_messages)
r   r   rc   rd   re   rf   r>   captionr   caption_entitiesmedia)r!   r"   r#   r$   r   r   )r*   .c	       
            s   |   jdi d| jd|d|d|	d|d|d|d|d	|d
|
d|d|d|d|d|d|d|d|d|I dH S )as  Shortcut for::

             await bot.send_media_group(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_media_group`.

        Returns:
            tuple[:class:`telegram.Message`]: On success, a tuple of :class:`~telegram.Message`
            instances that were sent is returned.

        ri   r   r   r   rc   rd   re   rf   r>   r   r   r   r   r   r   r   r   r   r   NrH   )rj   send_media_groupr7   )rE   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   r   r   r   rH   rH   rI   r   l  sP   #	

z_ChatBase.send_media_groupactionc          	         r   )a  Shortcut for::

             await bot.send_chat_action(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_chat_action`.

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        )	ri   r   r   rc   rd   re   rf   r>   r   N)rj   send_chat_actionr7   )	rE   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r     r}   z_ChatBase.send_chat_action)r   r   filenamerc   rd   re   rf   r>   r-   has_spoilershow_caption_above_mediar   c                   s   |   jdi d| jd|d|d|d|d|
d|d|d	|d
|d|d|d|d|d|d|d|d|d|	d|d|d|d|I dH S )a2  Shortcut for::

             await bot.send_photo(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_photo`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   r   r   r   r   r   NrH   )rj   
send_photor7   )rE   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r     `   $	

z_ChatBase.send_photo)r   r   contactrc   rd   re   rf   r>   phone_numbervcardr   r   c                   s   |   jdi d| jd|d|d|d|d|d|	d|d	|d
|d|d|d|d|d|d|d|d|d|
d|d|I dH S )a6  Shortcut for::

             await bot.send_contact(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_contact`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r   r6   r9   r   r   r   r   rc   rd   re   rf   r   r   r>   r   r   r   r   r   r   NrH   )rj   send_contactr7   )rE   r   r6   r9   r   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r     r   z_ChatBase.send_contactaudior   duration	performer	thumbnailc                   s   |   jdi d| jd|d|d|d|d|d|d|d	|d
|d|d|d|	d|d|
d|d|d|d|d|d|d|d|d|d|I dH S )a2  Shortcut for::

             await bot.send_audio(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_audio`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r   r   r   r:   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   r   r   r   r   NrH   )rj   
send_audior7   )rE   r   r   r   r:   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r   B  h   &	

z_ChatBase.send_audiodocumentr   disable_content_type_detectionc                   s   |   jdi d| jd|d|d|d|d|d|d|d	|d
|d|d|d|d|
d|d|d|d|d|d|	d|d|d|I dH S )a8  Shortcut for::

             await bot.send_document(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_document`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r   r   r   r   r   r   r   rc   rd   re   rf   r   r   r>   r   r   r   r   r   r   r   r   NrH   )rj   send_documentr7   )rE   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r     r   z_ChatBase.send_document)r   r   rc   rd   re   rf   r>   emojic
                   s   |   jdi d| jd|d|
d|d|d|d|d|d	|d
|d|d|d|d|d|d|d|	I dH S )a0  Shortcut for::

             await bot.send_dice(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_dice`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r   r   r   r   rc   rd   re   rf   r   r>   r   r   r   r   r   r   NrH   )rj   	send_dicer7   )rE   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r     H   	

z_ChatBase.send_dicegame_short_namer    c
                   s   |   jdi d| jd|d|d|
d|d|d|d|d	|d
|d|d|d|d|d|d|d|	I dH S )a0  Shortcut for::

             await bot.send_game(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_game`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r   r   r   r   r   rc   rd   re   rf   r>   r   r   r   r   r   r   NrH   )rj   	send_gamer7   )rE   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r     r   z_ChatBase.send_gamepayloadcurrencypricesr'   provider_tokenstart_parameter	photo_url
photo_sizephoto_widthphoto_height	need_nameneed_phone_number
need_emailneed_shipping_addressis_flexibleprovider_datasend_phone_number_to_providersend_email_to_providermax_tip_amountsuggested_tip_amountsc          $         s   |   jd&i d| jd|d|d|d|d|d|d|d	|d
|	d|
d|d|d|d|d|d|d|d|d|d|d|d|d|d| d|!d|"d|#d|d|d|d |d!|d"|d#|d$|I d%H S )'a  Shortcut for::

             await bot.send_invoice(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_invoice`.

        Warning:
            As of API 5.2 :paramref:`start_parameter <telegram.Bot.send_invoice.start_parameter>`
            is an optional argument and therefore the
            order of the arguments had to be changed. Use keyword arguments to make sure that the
            arguments are passed correctly.

        .. versionchanged:: 13.5
            As of Bot API 5.2, the parameter
            :paramref:`start_parameter <telegram.Bot.send_invoice.start_parameter>` is optional.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r:   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  rc   rd   re   rf   r>   r   r  r  r   r   r   r   r   NrH   )rj   send_invoicer7   )$rE   r:   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r  &  s   ;	
 !"#$
z_ChatBase.send_invoice)r   r   locationrc   rd   re   rf   r>   latitude	longitudelive_periodhorizontal_accuracyheadingproximity_alert_radiusr  r)   c                   s   |   jdi d| jd|d|d|d|d|d|d|d	|d
|d|d|d|d|d|d|d|d|d|	d|
d|d|d|I dH S )a8  Shortcut for::

             await bot.send_location(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_location`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r  r  r   r   r   r   rc   rd   re   rf   r  r	  r>   r
  r  r  r   r   r   r   r   r   NrH   )rj   send_locationr7   )rE   r  r  r   r   r	  r
  r  r  r   r   r   r   r   r   r   r   r  rc   rd   re   rf   r>   rH   rH   rI   r    r   z_ChatBase.send_location	animationr   widthheightc                   s   |   jdi d| jd|d|d|d|d|d|d|d	|d
|d|d|d|d|d|d|d|d|	d|d|
d|d|d|d|d|d|d|I dH S )a:  Shortcut for::

             await bot.send_animation(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_animation`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r  r   r  r  r   r   r   r   r   r   rc   rd   re   rf   r>   r   r   r   r   r   r   r   r   r   r   r   NrH   )rj   send_animationr7   )rE   r  r   r  r  r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r    sp   (	

z_ChatBase.send_animationstickerr/   c                   s   |   jdi d| jd|d|d|d|d|d|d|d	|d
|d|d|d|d|d|d|d|	d|
I dH S )a6  Shortcut for::

             await bot.send_sticker(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_sticker`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r  r   r   r   r   rc   rd   re   rf   r>   r   r   r   r   r   r   r   NrH   )rj   send_stickerr7   )rE   r  r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r    sL   	

z_ChatBase.send_sticker)r   r   venuerc   rd   re   rf   r>   addressfoursquare_idfoursquare_typegoogle_place_idgoogle_place_typer  r1   c                   s   |   jdi d| jd|d|d|d|d|d|d|d	|d
|d|d|d|d|d|d|d|d|	d|
d|d|d|d|d|d|I dH S )a2  Shortcut for::

             await bot.send_venue(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_venue`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r  r  r:   r  r  r   r   r   r   rc   rd   re   rf   r  r  r>   r  r  r   r   r   r   r   r   NrH   )rj   
send_venuer7   )rE   r  r  r:   r  r  r   r   r  r  r  r   r   r   r   r   r   r   r   r  rc   rd   re   rf   r>   rH   rH   rI   r  @  r   z_ChatBase.send_venuevideor2   supports_streamingcoverstart_timestampc                   s   |   jd i d| jd|d|d|d|d|d|d|d	|d
|d|d|d|d|d|d|	d|d|d|d|d|d|
d|d|d|d|d|d|d|d|I dH S )!a2  Shortcut for::

             await bot.send_video(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_video`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r  r   r   r   r   r   r   rc   rd   re   rf   r  r  r   r  r   r  r  r>   r   r   r   r   r   r   r   r   r   r   NrH   )rj   
send_videor7   )rE   r  r   r   r   r   r  r  r   r  r   r   r   r   r   r   r   r   r   r   r  r  r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r    |   +	

z_ChatBase.send_video
video_noter3   lengthc                   s   |   jdi d| jd|d|d|d|d|d|	d|d	|d
|d|d|d|d|d|d|d|d|d|
d|d|I dH S )a<  Shortcut for::

             await bot.send_video_note(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_video_note`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r!  r   r"  r   r   r   r   rc   rd   re   rf   r   r>   r   r   r   r   r   r   r   NrH   )rj   send_video_noter7   )rE   r!  r   r"  r   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r#    r   z_ChatBase.send_video_notevoicer4   c                   s   |   jdi d| jd|d|d|d|d|d|
d|d	|d
|d|d|d|d|d|d|d|d|d|	d|d|d|I dH S )a2  Shortcut for::

             await bot.send_voice(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_voice`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r$  r   r   r   r   r   r   rc   rd   re   rf   r   r>   r   r   r   r   r   r   r   r   NrH   )rj   
send_voicer7   )rE   r$  r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r%    s\   #	

z_ChatBase.send_voicequestionoptionsr&   allows_multiple_answerscorrect_option_id	is_closedexplanationexplanation_parse_modeopen_period
close_dateexplanation_entitiesquestion_parse_modequestion_entitiesc                   s   |   jd i d| jd|d|d|d|d|d|d|d	|d
|d|d|	d|d|d|d|d|d|d|
d|d|d|d|d|d|d|d|d|d|d|I dH S )!a0  Shortcut for::

             await bot.send_poll(update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_poll`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r&  r'  r   r;   r(  r)  r*  r   r   r   r   rc   rd   re   rf   r   r   r+  r,  r-  r.  r>   r   r/  r   r   r   r0  r1  NrH   )rj   	send_pollr7   )rE   r&  r'  r   r;   r(  r)  r*  r   r   r+  r,  r-  r.  r/  r   r   r   r   r0  r1  r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r2  D  r   z_ChatBase.send_pollfrom_chat_idvideo_start_timestampr,   c                      |   jdi d| jd|d|d|d|d|d|d|d	|d
|
d|d|d|d|d|d|d|d|d|	d|d|I dH S )a  Shortcut for::

             await bot.copy_message(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.copy_message`.

        .. seealso:: :meth:`copy_message`, :meth:`send_copies`, :meth:`copy_messages`.

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        ri   r3  r   r   r4  r   r   r   r   r   r   r   rc   rd   re   rf   r>   r   r   r   r   NrH   rj   copy_messager7   )rE   r3  r   r   r   r   r   r   r   r   r   r   r   r4  r   r   rc   rd   re   rf   r>   rH   rH   rI   	send_copy  X   $	

z_ChatBase.send_copyc                   r5  )a  Shortcut for::

             await bot.copy_message(from_chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.copy_message`.

        .. seealso:: :meth:`send_copy`, :meth:`send_copies`, :meth:`copy_messages`.

        Returns:
            :class:`telegram.MessageId`: On success, returns the MessageId of the sent message.

        r3  ri   r   r   r4  r   r   r   r   r   r   r   rc   rd   re   rf   r>   r   r   r   r   NrH   r6  )rE   ri   r   r   r   r   r   r   r   r   r   r   r   r4  r   r   rc   rd   re   rf   r>   rH   rH   rI   r7    r9  z_ChatBase.copy_messageremove_caption)r,   .c                   0   |   j| j|||||||||	|
|dI dH S )a  Shortcut for::

             await bot.copy_messages(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.copy_messages`.

        .. seealso:: :meth:`copy_message`, :meth:`send_copy`, :meth:`copy_messages`.

        .. versionadded:: 20.8

        Returns:
            tuple[:class:`telegram.MessageId`]: On success, a tuple of :class:`~telegram.MessageId`
            of the sent messages is returned.

        )ri   r3  r   r   r   r   r:  rc   rd   re   rf   r>   Nrj   copy_messagesr7   )rE   r3  r   r   r   r   r:  rc   rd   re   rf   r>   rH   rH   rI   send_copies	     z_ChatBase.send_copiesc                   r;  )a  Shortcut for::

             await bot.copy_messages(from_chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.copy_messages`.

        .. seealso:: :meth:`copy_message`, :meth:`send_copy`, :meth:`send_copies`.

        .. versionadded:: 20.8

        Returns:
            tuple[:class:`telegram.MessageId`]: On success, a tuple of :class:`~telegram.MessageId`
            of the sent messages is returned.

        )r3  ri   r   r   r   r   r:  rc   rd   re   rf   r>   Nr<  )rE   ri   r   r   r   r   r:  rc   rd   re   rf   r>   rH   rH   rI   r=  5	  r?  z_ChatBase.copy_messagesc                   0   |   j| j|||||||	|
|||dI dH S )a  Shortcut for::

             await bot.forward_message(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.forward_message`.

        .. seealso:: :meth:`forward_to`, :meth:`forward_messages_from`, :meth:`forward_messages_to`

        .. versionadded:: 20.0

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        )ri   r3  r   r4  r   rc   rd   re   rf   r>   r   r   Nrj   forward_messager7   )rE   r3  r   r   r   r   r4  rc   rd   re   rf   r>   rH   rH   rI   forward_fromb	  s   z_ChatBase.forward_fromc                   r@  )a  Shortcut for::

             await bot.forward_message(from_chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.forward_message`.

        .. seealso:: :meth:`forward_from`, :meth:`forward_messages_from`,
            :meth:`forward_messages_to`

        .. versionadded:: 20.0

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.

        )r3  ri   r   r4  r   rc   rd   re   rf   r>   r   r   NrA  )rE   ri   r   r   r   r   r4  rc   rd   re   rf   r>   rH   rH   rI   
forward_to	  r?  z_ChatBase.forward_toc                   .   |   j| j|||||||||	|
dI dH S )a  Shortcut for::

             await bot.forward_messages(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.forward_messages`.

        .. seealso:: :meth:`forward_to`, :meth:`forward_from`, :meth:`forward_messages_to`.

        .. versionadded:: 20.8

        Returns:
            tuple[:class:`telegram.MessageId`]: On success, a tuple of :class:`~telegram.MessageId`
            of sent messages is returned.

        )ri   r3  r   r   r   r   rc   rd   re   rf   r>   Nrj   forward_messagesr7   )rE   r3  r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   forward_messages_from	     z_ChatBase.forward_messages_fromc                   rE  )a  Shortcut for::

             await bot.forward_messages(from_chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see :meth:`telegram.Bot.forward_messages`.

        .. seealso:: :meth:`forward_from`, :meth:`forward_to`, :meth:`forward_messages_from`.

        .. versionadded:: 20.8

        Returns:
            tuple[:class:`telegram.MessageId`]: On success, a tuple of :class:`~telegram.MessageId`
            of sent messages is returned.

        )r3  ri   r   r   r   r   rc   rd   re   rf   r>   NrF  )rE   ri   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   forward_messages_to	  rI  z_ChatBase.forward_messages_toc                   rg   )aS  Shortcut for::

             await bot.export_chat_invite_link(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.export_chat_invite_link`.

        .. versionadded:: 13.4

        Returns:
            :obj:`str`: New invite link on success.

        rh   N)rj   export_chat_invite_linkr7   rl   rH   rH   rI   export_invite_link
     z_ChatBase.export_invite_linkexpire_datemember_limitcreates_join_requestr   c          
         s,   |   j| j|||||||	||d
I dH S )a  Shortcut for::

             await bot.create_chat_invite_link(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.create_chat_invite_link`.

        .. versionadded:: 13.4

        .. versionchanged:: 13.8
           Edited signature according to the changes of
           :meth:`telegram.Bot.create_chat_invite_link`.

        Returns:
            :class:`telegram.ChatInviteLink`

        )
ri   rN  rO  rc   rd   re   rf   r>   rU   rP  N)rj   create_chat_invite_linkr7   )
rE   rN  rO  rU   rP  rc   rd   re   rf   r>   rH   rH   rI   create_invite_link0
  s   z_ChatBase.create_invite_linkinvite_linkc                   s.   |   j| j|||||||	|
||dI dH S )a  Shortcut for::

             await bot.edit_chat_invite_link(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.edit_chat_invite_link`.

        .. versionadded:: 13.4

        .. versionchanged:: 13.8
           Edited signature according to the changes of :meth:`telegram.Bot.edit_chat_invite_link`.

        Returns:
            :class:`telegram.ChatInviteLink`

        )ri   rS  rN  rO  rc   rd   re   rf   r>   rU   rP  N)rj   edit_chat_invite_linkr7   )rE   rS  rN  rO  rU   rP  rc   rd   re   rf   r>   rH   rH   rI   edit_invite_link[
  s   z_ChatBase.edit_invite_linkc             	      ru   )aL  Shortcut for::

             await bot.revoke_chat_invite_link(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.revoke_chat_invite_link`.

        .. versionadded:: 13.4

        Returns:
            :class:`telegram.ChatInviteLink`

        )ri   rS  rc   rd   re   rf   r>   N)rj   revoke_chat_invite_linkr7   )rE   rS  rc   rd   re   rf   r>   rH   rH   rI   revoke_invite_link
  r   z_ChatBase.revoke_invite_linksubscription_periodsubscription_pricec          	         *   |   j| j||||||||d	I dH S )a  Shortcut for::

            await bot.create_chat_subscription_invite_link(
                chat_id=update.effective_chat.id, *args, **kwargs
            )

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.create_chat_subscription_invite_link`.

        .. versionadded:: 21.5

        Returns:
            :class:`telegram.ChatInviteLink`
        )	ri   rX  rY  rU   rc   rd   re   rf   r>   N)rj   $create_chat_subscription_invite_linkr7   )	rE   rX  rY  rU   rc   rd   re   rf   r>   rH   rH   rI   create_subscription_invite_link
  s   z)_ChatBase.create_subscription_invite_linkc             
      r   )a  Shortcut for::

            await bot.edit_chat_subscription_invite_link(
                chat_id=update.effective_chat.id, *args, **kwargs
            )

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.edit_chat_subscription_invite_link`.

        .. versionadded:: 21.5

        Returns:
            :class:`telegram.ChatInviteLink`

        )ri   rS  rc   rd   re   rf   r>   rU   N)rj   "edit_chat_subscription_invite_linkr7   )rE   rS  rU   rc   rd   re   rf   r>   rH   rH   rI   edit_subscription_invite_link
  s   z'_ChatBase.edit_subscription_invite_linkc             	      ru   )aa  Shortcut for::

             await bot.approve_chat_join_request(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.approve_chat_join_request`.

        .. versionadded:: 13.8

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        rv   N)rj   approve_chat_join_requestr7   rx   rH   rH   rI   approve_join_request
  r   z_ChatBase.approve_join_requestc             	      ru   )aa  Shortcut for::

             await bot.decline_chat_join_request(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.decline_chat_join_request`.

        .. versionadded:: 13.8

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.

        rv   N)rj   decline_chat_join_requestr7   rx   rH   rH   rI   decline_join_request  r   z_ChatBase.decline_join_requestmenu_buttonc             	      ru   )a  Shortcut for::

             await bot.set_chat_menu_button(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.set_chat_menu_button`.

        Caution:
            Can only work, if the chat is a private chat.

        .. seealso:: :meth:`get_menu_button`

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        )ri   rc  rc   rd   re   rf   r>   N)rj   set_chat_menu_buttonr7   )rE   rc  rc   rd   re   rf   r>   rH   rH   rI   set_menu_button5  s   z_ChatBase.set_menu_button
icon_coloricon_custom_emoji_idc          	         rZ  )a=  Shortcut for::

             await bot.create_forum_topic(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.create_forum_topic`.

        .. versionadded:: 20.0

        Returns:
            :class:`telegram.ForumTopic`
        )	ri   rU   rf  rg  rc   rd   re   rf   r>   N)rj   create_forum_topicr7   )	rE   rU   rf  rg  rc   rd   re   rf   r>   rH   rH   rI   rh  Z     z_ChatBase.create_forum_topicc          	         rZ  )aN  Shortcut for::

             await bot.edit_forum_topic(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.edit_forum_topic`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        )	ri   r   rU   rg  rc   rd   re   rf   r>   N)rj   edit_forum_topicr7   )	rE   r   rU   rg  rc   rd   re   rf   r>   rH   rH   rI   rj  ~  ri  z_ChatBase.edit_forum_topicc             	      ru   )aP  Shortcut for::

             await bot.close_forum_topic(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.close_forum_topic`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        ri   r   rc   rd   re   rf   r>   N)rj   close_forum_topicr7   rE   r   rc   rd   re   rf   r>   rH   rH   rI   rl    r   z_ChatBase.close_forum_topicc             	      ru   )aR  Shortcut for::

             await bot.reopen_forum_topic(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.reopen_forum_topic`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        rk  N)rj   reopen_forum_topicr7   rm  rH   rH   rI   rn    r   z_ChatBase.reopen_forum_topicc             	      ru   )aR  Shortcut for::

             await bot.delete_forum_topic(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.delete_forum_topic`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        rk  N)rj   delete_forum_topicr7   rm  rH   rH   rI   ro    r   z_ChatBase.delete_forum_topicc             	      ru   )az  Shortcut for::

             await bot.unpin_all_forum_topic_messages(chat_id=update.effective_chat.id,
                *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.unpin_all_forum_topic_messages`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        rk  N)rj   unpin_all_forum_topic_messagesr7   rm  rH   rH   rI   rp    r   z(_ChatBase.unpin_all_forum_topic_messagesc                   rg   )a  Shortcut for::

             await bot.unpin_all_general_forum_topic_messages(chat_id=update.effective_chat.id,
                *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.unpin_all_general_forum_topic_messages`.

        .. versionadded:: 20.5

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        rh   N)rj   &unpin_all_general_forum_topic_messagesr7   rl   rH   rH   rI   rq  #  rM  z0_ChatBase.unpin_all_general_forum_topic_messagesc             	      ru   )a}  Shortcut for::

             await bot.edit_general_forum_topic(
                chat_id=update.effective_chat.id, *args, **kwargs
             )

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.edit_general_forum_topic`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        )ri   rU   rc   rd   re   rf   r>   N)rj   edit_general_forum_topicr7   )rE   rU   rc   rd   re   rf   r>   rH   rH   rI   rr  B  s   z"_ChatBase.edit_general_forum_topicc                   rg   )a`  Shortcut for::

             await bot.close_general_forum_topic(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.close_general_forum_topic`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        rh   N)rj   close_general_forum_topicr7   rl   rH   rH   rI   rs  d     z#_ChatBase.close_general_forum_topicc                   rg   )a  Shortcut for::

             await bot.reopen_general_forum_topic(
                chat_id=update.effective_chat.id, *args, **kwargs
             )

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.reopen_general_forum_topic`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        rh   N)rj   reopen_general_forum_topicr7   rl   rH   rH   rI   ru    rq   z$_ChatBase.reopen_general_forum_topicc                   rg   )a^  Shortcut for::

             await bot.hide_general_forum_topic(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.hide_general_forum_topic`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        rh   N)rj   hide_general_forum_topicr7   rl   rH   rH   rI   rv    rt  z"_ChatBase.hide_general_forum_topicc                   rg   )a  Shortcut for::

             await bot.unhide_general_forum_topic (
                chat_id=update.effective_chat.id, *args, **kwargs
             )

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.unhide_general_forum_topic`.

        .. versionadded:: 20.0

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        rh   N)rj   unhide_general_forum_topicr7   rl   rH   rH   rI   rw    rq   z$_ChatBase.unhide_general_forum_topicc                   rg   )a  Shortcut for::

             await bot.get_chat_menu_button(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.get_chat_menu_button`.

        Caution:
            Can only work, if the chat is a private chat.

        .. seealso:: :meth:`set_menu_button`

        .. versionadded:: 20.0

        Returns:
            :class:`telegram.MenuButton`: On success, the current menu button is returned.
        rh   N)rj   get_chat_menu_buttonr7   rl   rH   rH   rI   get_menu_button  s   z_ChatBase.get_menu_buttonr0   c             	      s&   |   j| j||||||dI dH S )az  Shortcut for::

             await bot.get_user_chat_boosts(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.get_user_chat_boosts`.

        .. versionadded:: 20.8

        Returns:
            :class:`telegram.UserChatBoosts`: On success, returns the boosts applied in the chat.
        )ri   rt   r>   rc   rd   re   rf   N)rj   get_user_chat_boostsr7   rx   rH   rH   rI   rz    r   z_ChatBase.get_user_chat_boostsreactionis_bigc          	         rZ  )aU  Shortcut for::

             await bot.set_message_reaction(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.set_message_reaction`.

        .. versionadded:: 20.8

        Returns:
            :obj:`bool` On success, :obj:`True` is returned.
        )	ri   r   r{  r|  rc   rd   re   rf   r>   N)rj   set_message_reactionr7   )	rE   r   r{  r|  rc   rd   re   rf   r>   rH   rH   rI   r}  #  ri  z_ChatBase.set_message_reaction)r   r   rc   rd   re   rf   r>   
star_countr%   c                   s   |   jdi d| jd|d|d|d|d|d|d|d	|d
|	d|
d|d|d|d|d|d|d|d|d|d|I dH S )ak  Shortcut for::

             await bot.send_paid_media(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.send_paid_media`.

        .. versionadded:: 21.4

        Returns:
            :class:`telegram.Message`: On success, instance representing the message posted.
        ri   r~  r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   r   r   r   NrH   )rj   send_paid_mediar7   )rE   r~  r   r   r   r   r   r   r   r   r   r   r   r   r   r   rc   rd   re   rf   r>   rH   rH   rI   r  G  r9  z_ChatBase.send_paid_mediagift_idr   text_parse_modetext_entitiespay_for_upgradec                   sH   |   jd|||||||||	|
d
| jtjkrdnd| jiI dH S )aV  Shortcut for::

             await bot.send_gift(user_id=update.effective_chat.id, *args, **kwargs )

        or::

            await bot.send_gift(chat_id=update.effective_chat.id, *args, **kwargs )

        For the documentation of the arguments, please see :meth:`telegram.Bot.send_gift`.

        Caution:
            Will only work if the chat is a private or channel chat, see :attr:`type`.

        .. versionadded:: 21.8

        .. versionchanged:: 21.11

            Added support for channel chats.

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        )
r  r   r  r  r  rc   rd   re   rf   r>   ri   rt   NrH   )rj   	send_giftr;   ChatrN   r7   )rE   r  r   r  r  r  rc   rd   re   rf   r>   rH   rH   rI   r    s   
$z_ChatBase.send_giftowned_gift_idc          	         rZ  )aK  Shortcut for::

             await bot.transfer_gift(new_owner_chat_id=update.effective_chat.id, *args, **kwargs )

        For the documentation of the arguments, please see :meth:`telegram.Bot.transfer_gift`.

        .. versionadded:: 22.1

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        )	new_owner_chat_idr   r  r~  rc   rd   re   rf   r>   N)rj   transfer_giftr7   )	rE   r   r  r~  rc   rd   re   rf   r>   rH   rH   rI   r    r   z_ChatBase.transfer_giftcustom_descriptionc             	      ru   )aE  Shortcut for::

             await bot.verify_chat(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.verify_chat`.

        .. versionadded:: 21.10

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        )ri   r  rc   rd   re   rf   r>   N)rj   verify_chatr7   )rE   r  rc   rd   re   rf   r>   rH   rH   rI   verify  r   z_ChatBase.verifyc                   rg   )a_  Shortcut for::

             await bot.remove_chat_verification(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.remove_chat_verification`.

        .. versionadded:: 21.10

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        rh   N)rj   remove_chat_verificationr7   rl   rH   rH   rI   remove_verification  rt  z_ChatBase.remove_verificationc             
      r   )aX  Shortcut for::

             await bot.read_business_message(chat_id=update.effective_chat.id, *args, **kwargs)

        For the documentation of the arguments, please see
        :meth:`telegram.Bot.read_business_message`.

        .. versionadded:: 22.1

        Returns:
            :obj:`bool`: On success, :obj:`True` is returned.
        )ri   r   r   rc   rd   re   rf   r>   N)rj   read_business_messager7   )rE   r   r   rc   rd   re   rf   r>   rH   rH   rI   r    s   z_ChatBase.read_business_message)NNNNN)N)NN)NNNNNNNNNNNNNNN)NNNN)}__name__
__module____qualname____doc__	__slots__intstrr   boolr   r@   r   rB   rJ   r   __annotations__rK   rL   rM   rN   propertyrR   rP   rT   r   ra   r   r   r   floatrm   tuplerp   rs   rA   r   dtmdatetimer|   r   r   r   r   r   r   r	   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   send_actionr   r   r   r   r   r   r   objectr  r  r  r  r  r  r#  r%  r   r2  r8  r7  r>  r=  rC  rD  rH  rJ  rL  rR  rU  rW  r\  r^  r`  rb  r   re  r
   rh  rj  rl  rn  ro  rp  rq  rr  rs  ru  rv  rw  ry  rz  r   r}  r  r  r  r  r  r  __classcell__rH   rH   rF   rI   r5   O   s0  
 

&!#

#
 	
!	

&	
%
	
'	
%
	
&	

#	

J	

-	

)	

'	
&
%	
%	
&	

%	

$
 
	

>	
$	
%	


<	

"

	

@	

=
	


E

	

@	

5	

9	

 !"#$%&
d	

A
	


I
	

6	

E
	

 
O
	

=

	

@	


 P

	
@

	
@	
	
1	
	
1	
	
0	
	
1
	
/
	
.!	
.	
0	%	
)	
)	%	#	(	
'	
(	$	$	$	$#	%!#!#'	#	
(

	
?
	
6	
%	##	
r5   c                   @   s   e Zd ZdZdZdS )r  aN
  This object represents a chat.

    Objects of this class are comparable in terms of equality. Two objects of this class are
    considered equal, if their :attr:`id` is equal.

    .. versionchanged:: 20.0

        * Removed the deprecated methods ``kick_member`` and ``get_members_count``.
        * The following are now keyword-only arguments in Bot methods:
          ``location``, ``filename``, ``contact``, ``{read, write, connect, pool}_timeout``,
          ``api_kwargs``. Use a named argument for those,
          and notice that some positional arguments changed position as a result.

    .. versionchanged:: 20.0
        Removed the attribute ``all_members_are_administrators``. As long as Telegram provides
        this field for backwards compatibility, it is available through
        :attr:`~telegram.TelegramObject.api_kwargs`.

    .. versionchanged:: 21.3
        As per Bot API 7.3, most of the arguments and attributes of this class have now moved to
        :class:`telegram.ChatFullInfo`.

    Args:
        id (:obj:`int`): Unique identifier for this chat.
        type (:obj:`str`): Type of chat, can be either :attr:`PRIVATE`, :attr:`GROUP`,
            :attr:`SUPERGROUP` or :attr:`CHANNEL`.
        title (:obj:`str`, optional): Title, for supergroups, channels and group chats.
        username (:obj:`str`, optional): Username, for private chats, supergroups and channels if
            available.
        first_name (:obj:`str`, optional): First name of the other party in a private chat.
        last_name (:obj:`str`, optional): Last name of the other party in a private chat.
        is_forum (:obj:`bool`, optional): :obj:`True`, if the supergroup chat is a forum
            (has topics_ enabled).

            .. versionadded:: 20.0

    Attributes:
        id (:obj:`int`): Unique identifier for this chat.
        type (:obj:`str`): Type of chat, can be either :attr:`PRIVATE`, :attr:`GROUP`,
            :attr:`SUPERGROUP` or :attr:`CHANNEL`.
        title (:obj:`str`): Optional. Title, for supergroups, channels and group chats.
        username (:obj:`str`): Optional. Username, for private chats, supergroups and channels if
            available.
        first_name (:obj:`str`): Optional. First name of the other party in a private chat.
        last_name (:obj:`str`): Optional. Last name of the other party in a private chat.
        is_forum (:obj:`bool`): Optional. :obj:`True`, if the supergroup chat is a forum
            (has topics_ enabled).

            .. versionadded:: 20.0

    .. _topics: https://telegram.org/blog/topics-in-groups-collectible-usernames#topics-in-groups
    rH   N)r  r  r  r  r  rH   rH   rH   rI   r  9  s    5r  )Gr  r  r  collections.abcr   htmlr   typingr   r   r   r   telegramr   telegram._chatpermissionsr	   telegram._forumtopicr
   telegram._menubuttonr   telegram._reactionr   telegram._telegramobjectr   telegram._utilsr   telegram._utils.defaultvaluer   telegram._utils.typesr   r   r   r   r   r   telegram.helpersr   r   rb   r   r\   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r  rH   rH   rH   rI   <module>   sb    x                             