Ë
    [üàgª˜  ã                   óà   — d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
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  G d
„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zy)aç  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Chat
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
é    )Údatetime)ÚAnyÚDictÚListÚOptionalÚUnionÚIteratorÚAsyncIterator)ÚdeserializeÚ	serializeÚvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   ó  ‡ — e Zd Z G d„ de«      Z G d„ de«      Z	 	 ddedeee	f   deded	e
e   f
ˆ fd
„Zedd„«       Zej                  fdedef   defd„Zej                  fdedef   defd„Zdd„Zdd„Zej                  ej                  ej                  ej                  ej                  ej                  ej                  fdedef   deeef   deeef   deeef   deeef   deeef   deeef   dd fd„Zej                  ej                  ej                  ej                  ej                  ej                  ej                  fdedef   deeef   deeef   deeef   deeef   deeef   deeef   dd fd„Zdefd„Zˆ xZS )ÚMessageInstancec                   ó   — e Zd ZdZdZy)úMessageInstance.OrderTypeÚascÚdescN)Ú__name__Ú
__module__Ú__qualname__ÚASCÚDESC© ó    úi/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/chat/v2/service/channel/message.pyÚ	OrderTyper      s   „ ØˆØ‰r   r!   c                   ó   — e Zd ZdZdZy)ú"MessageInstance.WebhookEnabledTypeÚtrueÚfalseN)r   r   r   ÚTRUEÚFALSEr   r   r    ÚWebhookEnabledTyper#      s   „ ØˆØ‰r   r(   ÚversionÚpayloadÚservice_sidÚchannel_sidÚsidc                 ó–  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _        t        j                  |j                  d«      «      | _        |j                  d	«      | _        |j                  d
«      | _        |j                  d«      | _        |j                  d«      | _        t        j"                  |j                  d«      «      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |||xs | j                  dœ| _        d | _        y )Nr-   Úaccount_sidÚ
attributesr+   Útor,   Údate_createdÚdate_updatedÚlast_updated_byÚ
was_editedÚfromÚbodyÚindexÚtypeÚmediaÚurl©r+   r,   r-   )ÚsuperÚ__init__Úgetr-   r/   r0   r+   r1   r,   r   Úiso8601_datetimer2   r3   r4   r5   Ú_fromr7   Úintegerr8   r9   r:   r;   Ú	_solutionÚ_context)Úselfr)   r*   r+   r,   r-   Ú	__class__s         €r    r>   zMessageInstance.__init__6   si  ø€ ô 	‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ*1¯+©+°mÓ*DˆÔØ)0¯©°\Ó)BˆŒØ*1¯+©+°mÓ*DˆÔØ!(§¡¨TÓ!2ˆŒØ*1¯+©+°mÓ*DˆÔÜ0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð /6¯k©kÐ:KÓ.LˆÔØ*1¯+©+°lÓ*CˆŒØ$+§K¡K°Ó$7ˆŒ
Ø#*§;¡;¨vÓ#6ˆŒ	Ü$/×$7Ñ$7¸¿¹ÀGÓ8LÓ$MˆŒ
Ø#*§;¡;¨vÓ#6ˆŒ	Ø29·+±+¸gÓ2FˆŒ
Ø")§+¡+¨eÓ"4ˆŒð 'Ø&Ø’?˜$Ÿ(™(ñ
ˆŒð
 37ˆ�r   Úreturnc                 ó¼   — | j                   €Et        | j                  | j                  d   | j                  d   | j                  d   ¬«      | _         | j                   S )zé
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: MessageContext for this MessageInstance
        r+   r,   r-   r<   )rD   ÚMessageContextÚ_versionrC   ©rE   s    r    Ú_proxyzMessageInstance._proxy\   sQ   € ð �=‰=Ð Ü*Ø—‘Ø ŸN™N¨=Ñ9Ø ŸN™N¨=Ñ9Ø—N‘N 5Ñ)ô	ˆDŒMð �}‰}Ðr   Úx_twilio_webhook_enabledr#   c                 ó:   — | j                   j                  |¬«      S )úÄ
        Deletes the MessageInstance

        :param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header

        :returns: True if delete succeeds, False otherwise
        ©rM   )rL   Údelete©rE   rM   s     r    rQ   zMessageInstance.deletem   s#   € ð �{‰{×!Ñ!Ø%=ð "ó 
ð 	
r   c              ƒ   óV   K  — | j                   j                  |¬«      ƒ d{  –—† S 7 Œ­w)úà
        Asynchronous coroutine that deletes the MessageInstance

        :param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header

        :returns: True if delete succeeds, False otherwise
        rP   N)rL   Údelete_asyncrR   s     r    rU   zMessageInstance.delete_async~   s1   è ø€ ð —[‘[×-Ñ-Ø%=ð .ó 
÷ 
ð 	
ð 
ús   ‚ )¢'£)c                 ó6   — | j                   j                  «       S )ú[
        Fetch the MessageInstance


        :returns: The fetched MessageInstance
        )rL   ÚfetchrK   s    r    rX   zMessageInstance.fetch�   s   € ð �{‰{× Ñ Ó"Ð"r   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)úu
        Asynchronous coroutine to fetch the MessageInstance


        :returns: The fetched MessageInstance
        N)rL   Úfetch_asyncrK   s    r    r[   zMessageInstance.fetch_async˜   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.ús   ‚' %¡'r7   r0   r2   r3   r4   Úfrom_c           	      óF   — | j                   j                  |||||||¬«      S )áÏ  
        Update the MessageInstance

        :param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
        :param body: The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string.
        :param attributes: A valid JSON string that contains application-specific data.
        :param date_created: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source.
        :param date_updated: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated.
        :param last_updated_by: The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable.
        :param from_: The [Identity](https://www.twilio.com/docs/chat/identity) of the message's author.

        :returns: The updated MessageInstance
        ©rM   r7   r0   r2   r3   r4   r\   )rL   Úupdate©rE   rM   r7   r0   r2   r3   r4   r\   s           r    r`   zMessageInstance.update¡   s5   € ð2 �{‰{×!Ñ!Ø%=ØØ!Ø%Ø%Ø+Øð "ó 
ð 	
r   c           	   ƒ   ób   K  — | j                   j                  |||||||¬«      ƒ d{  –—† S 7 Œ­w)áé  
        Asynchronous coroutine to update the MessageInstance

        :param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
        :param body: The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string.
        :param attributes: A valid JSON string that contains application-specific data.
        :param date_created: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source.
        :param date_updated: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated.
        :param last_updated_by: The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable.
        :param from_: The [Identity](https://www.twilio.com/docs/chat/identity) of the message's author.

        :returns: The updated MessageInstance
        r_   N)rL   Úupdate_asyncra   s           r    rd   zMessageInstance.update_asyncÄ   sC   è ø€ ð2 —[‘[×-Ñ-Ø%=ØØ!Ø%Ø%Ø+Øð .ó 
÷ 
ð 	
ð 
ús   ‚&/¨-©/c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )úf
        Provide a friendly representation

        :returns: Machine friendly representation
        ú c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­w©z{}={}N©Úformat©Ú.0ÚkÚvs      r    ú	<genexpr>z+MessageInstance.__repr__.<locals>.<genexpr>í   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z#<Twilio.Chat.V2.MessageInstance {}>©ÚjoinrC   Úitemsrk   ©rE   Úcontexts     r    Ú__repr__zMessageInstance.__repr__ç   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ4×;Ñ;¸GÓDÐDr   )N)rG   rI   )rG   r   )r   r   r   Úobjectr!   r(   r   r   Ústrr   r   r>   ÚpropertyrL   r   Úunsetr   ÚboolrQ   rU   rX   r[   r   r`   rd   rx   Ú__classcell__©rF   s   @r    r   r      s…  ø„ ô�Fô ô˜Vô ðð2 "ñ$7àð$7ð �c˜3�h‘ð$7ð ð	$7ð
 ð$7ð �c‰]õ$7ðL òó ðð( �L‰Lñ	
à"'Ø0°&Ð8ñ#
ð
ð
 
ó
ð* �L‰Lñ	
à"'Ø0°&Ð8ñ#
ð
ð
 
ó
ó"#ó/ð �L‰LØ#)§<¡<Ø)/¯©Ø06·±Ø06·±Ø.4¯l©lØ$*§L¡Lñ!
à"'Ø0°&Ð8ñ#
ð!
ð
 �C˜�KÑ ð!
ð ˜#˜v˜+Ñ&ð!
ð ˜H fÐ,Ñ-ð!
ð ˜H fÐ,Ñ-ð!
ð ˜s F˜{Ñ+ð!
ð �S˜&�[Ñ!ð!
ð 
ó!
ðN �L‰LØ#)§<¡<Ø)/¯©Ø06·±Ø06·±Ø.4¯l©lØ$*§L¡Lñ!
à"'Ø0°&Ð8ñ#
ð!
ð
 �C˜�KÑ ð!
ð ˜#˜v˜+Ñ&ð!
ð ˜H fÐ,Ñ-ð!
ð ˜H fÐ,Ñ-ð!
ð ˜s F˜{Ñ+ð!
ð �S˜&�[Ñ!ð!
ð 
ó!
ðFE˜#÷ Er   r   c                   óÌ  ‡ — e Zd Zdedededefˆ fd„Zej                  fdede	f   de
fd	„Zej                  fdede	f   de
fd
„Zdefd„Zdefd„Zej                  ej                  ej                  ej                  ej                  ej                  ej                  fdede	f   deee	f   deee	f   deee	f   deee	f   deee	f   deee	f   defd„Zej                  ej                  ej                  ej                  ej                  ej                  ej                  fdede	f   deee	f   deee	f   deee	f   deee	f   deee	f   deee	f   defd„Zdefd„Zˆ xZS )rI   r)   r+   r,   r-   c                 ó|   •— t         ‰| �  |«       |||dœ| _         dj                  di | j                  ¤Ž| _        y)a  
        Initialize the MessageContext

        :param version: Version that contains the resource
        :param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Message resource in.
        :param channel_sid: The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`.
        :param sid: The SID of the Message resource to update.
        r<   z=/Services/{service_sid}/Channels/{channel_sid}/Messages/{sid}Nr   ©r=   r>   rC   rk   Ú_uri)rE   r)   r+   r,   r-   rF   s        €r    r>   zMessageContext.__init__ó   sM   ø€ ô 	‰Ñ˜Ô!ð 'Ø&Øñ
ˆŒð SÐK×RÑRñ Ø—.‘.ñð 	�	r   rM   r#   rG   c                 óª   — t        j                  d|i«      }t        j                  i «      }| j                  j                  d| j                  |¬«      S )rO   úX-Twilio-Webhook-EnabledÚDELETE©ÚmethodÚuriÚheaders)r   ÚofrJ   rQ   rƒ   ©rE   rM   rŠ   s      r    rQ   zMessageContext.delete
  sL   € ô —)‘)à*Ð,Dðó
ˆô —)‘)˜B“-ˆà�}‰}×#Ñ#¨8¸¿¹ÈGÐ#ÓTÐTr   c              ƒ   óÆ   K  — t        j                  d|i«      }t        j                  i «      }| j                  j                  d| j                  |¬«      ƒ d{  –—† S 7 Œ­w)rT   r…   r†   r‡   N)r   r‹   rJ   rU   rƒ   rŒ   s      r    rU   zMessageContext.delete_async!  sa   è ø€ ô —)‘)à*Ð,Dðó
ˆô —)‘)˜B“-ˆà—]‘]×/Ñ/Ø §¡°Gð 0ó 
÷ 
ð 	
ð 
ús   ‚AA!ÁAÁA!c                 ó  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   | j                  d   | j                  d   ¬«      S )	rW   úapplication/jsonÚAcceptÚGETr‡   r+   r,   r-   r<   )r   r‹   rJ   rX   rƒ   r   rC   ©rE   rŠ   r*   s      r    rX   zMessageContext.fetch:  su   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆäØ�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5Ø—‘˜uÑ%ô
ð 	
r   c              ƒ   ó$  K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   | j                  d   | j                  d   ¬	«      S 7 ŒE­w)
rZ   r�   r�   r‘   r‡   Nr+   r,   r-   r<   )r   r‹   rJ   r[   rƒ   r   rC   r’   s      r    r[   zMessageContext.fetch_asyncP  sŠ   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5Ø—‘˜uÑ%ô
ð 	
ð	
ús   ‚ABÁBÁ	ABr7   r0   r2   r3   r4   r\   c           	      óê  — t        j                  ||t        j                  |«      t        j                  |«      ||dœ«      }t        j                  i «      }	|t         j                  u st        |t        «      r|r||	d<   d|	d<   d|	d<   | j                  j                  d| j                  ||	¬«      }
t        | j                  |
| j                  d	   | j                  d
   | j                  d   ¬«      S )r^   ©ÚBodyÚ
AttributesÚDateCreatedÚDateUpdatedÚLastUpdatedByÚFromr…   ú!application/x-www-form-urlencodedúContent-Typer�   r�   ÚPOST©rˆ   r‰   ÚdatarŠ   r+   r,   r-   r<   )r   r‹   r   r@   r|   Ú
isinstancerz   rJ   r`   rƒ   r   rC   ©rE   rM   r7   r0   r2   r3   r4   r\   r    rŠ   r*   s              r    r`   zMessageContext.updateh  sï   € ô4 �y‰yàØ(Ü(×9Ñ9¸,ÓGÜ(×9Ñ9¸,ÓGØ!0Øñó	
ˆô —)‘)˜B“-ˆð %¬¯©Ñ4äÐ3´SÔ9Ù0ð 3KˆGÐ.Ñ/à"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5Ø—‘˜uÑ%ô
ð 	
r   c           	   ƒ   ó  K  — t        j                  ||t        j                  |«      t        j                  |«      ||dœ«      }t        j                  i «      }	|t         j                  u st        |t        «      r|r||	d<   d|	d<   d|	d<   | j                  j                  d| j                  ||	¬«      ƒ d	{  –—† }
t        | j                  |
| j                  d
   | j                  d   | j                  d   ¬«      S 7 ŒE­w)rc   r•   r…   rœ   r�   r�   r�   rž   rŸ   Nr+   r,   r-   r<   )r   r‹   r   r@   r|   r¡   rz   rJ   rd   rƒ   r   rC   r¢   s              r    rd   zMessageContext.update_async§  sý   è ø€ ô4 �y‰yàØ(Ü(×9Ñ9¸,ÓGÜ(×9Ñ9¸,ÓGØ!0Øñó	
ˆô —)‘)˜B“-ˆð %¬¯©Ñ4äÐ3´SÔ9Ù0ð 3KˆGÐ.Ñ/à"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5Ø—‘˜uÑ%ô
ð 	
ð	
ús   ‚B7DÂ9C?Â:ADc                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )rf   rg   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wri   rj   rl   s      r    rp   z*MessageContext.__repr__.<locals>.<genexpr>ì  rq   rr   z"<Twilio.Chat.V2.MessageContext {}>rs   rv   s     r    rx   zMessageContext.__repr__æ  s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ3×:Ñ:¸7ÓCÐCr   )r   r   r   r   rz   r>   r   r|   r   ry   r}   rQ   rU   r   rX   r[   r   r`   rd   rx   r~   r   s   @r    rI   rI   ñ   s@  ø„ ð
 ð 
°cð 
Èð 
ÐRUõ 
ð6 �L‰Lñ	Uà"'Ø0°&Ð8ñ#
ðUð
 
óUð6 �L‰Lñ	
à"'Ø0°&Ð8ñ#
ð
ð
 
ó
ð2
�ó 
ð,
 ?ó 
ð8 �L‰LØ#)§<¡<Ø)/¯©Ø06·±Ø06·±Ø.4¯l©lØ$*§L¡Lñ=
à"'Ø0°&Ð8ñ#
ð=
ð
 �C˜�KÑ ð=
ð ˜#˜v˜+Ñ&ð=
ð ˜H fÐ,Ñ-ð=
ð ˜H fÐ,Ñ-ð=
ð ˜s F˜{Ñ+ð=
ð �S˜&�[Ñ!ð=
ð 
ó=
ðF �L‰LØ#)§<¡<Ø)/¯©Ø06·±Ø06·±Ø.4¯l©lØ$*§L¡Lñ=
à"'Ø0°&Ð8ñ#
ð=
ð
 �C˜�KÑ ð=
ð ˜#˜v˜+Ñ&ð=
ð ˜H fÐ,Ñ-ð=
ð ˜H fÐ,Ñ-ð=
ð ˜s F˜{Ñ+ð=
ð �S˜&�[Ñ!ð=
ð 
ó=
ð~D˜#÷ Dr   rI   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚMessagePager*   rG   c                 óh   — t        | j                  || j                  d   | j                  d   ¬«      S )zm
        Build an instance of MessageInstance

        :param payload: Payload response from the API
        r+   r,   ©r+   r,   )r   rJ   rC   )rE   r*   s     r    Úget_instancezMessagePage.get_instanceò  s3   € ô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5ô	
ð 	
r   c                  ó   — y)rf   z<Twilio.Chat.V2.MessagePage>r   rK   s    r    rx   zMessagePage.__repr__ÿ  ó   € ð .r   N)	r   r   r   r   rz   r   r   rª   rx   r   r   r    r§   r§   ð  s)   „ ð
 D¨¨c¨¡Nð 
°ó 
ð.˜#ô .r   r§   c                   óP  ‡ — e Zd Zdededefˆ fd„Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdede	f   deee	f   deee	f   d	ee
e	f   d
ee
e	f   deee	f   deee	f   deee	f   defd„Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdede	f   deee	f   deee	f   d	ee
e	f   d
ee
e	f   deee	f   deee	f   deee	f   defd„Zej                  ddfdede	f   dee   dee   dee   fd„Zej                  ddfdede	f   dee   dee   dee   fd„Zej                  ddfdede	f   dee   dee   dee   fd„Zej                  ddfdede	f   dee   dee   dee   fd„Zej                  ej                  ej                  ej                  fdede	f   deee	f   deee	f   deee	f   def
d„Zej                  ej                  ej                  ej                  fdede	f   deee	f   deee	f   deee	f   def
d„Zdedefd„Zdedefd „Zd!edefd"„Zd!edefd#„Zdefd$„Zˆ xZ S )%ÚMessageListr)   r+   r,   c                 óz   •— t         ‰| �  |«       ||dœ| _         dj                  di | j                  ¤Ž| _        y)aÄ  
        Initialize the MessageList

        :param version: Version that contains the resource
        :param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Message resources from.
        :param channel_sid: The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to read belongs to. This value can be the Channel resource's `sid` or `unique_name`.

        r©   z7/Services/{service_sid}/Channels/{channel_sid}/MessagesNr   r‚   )rE   r)   r+   r,   rF   s       €r    r>   zMessageList.__init__
  sG   ø€ ô 	‰Ñ˜Ô!ð 'Ø&ñ
ˆŒð UÐM×TÑTñ 
Ø�n‰nñ
ˆ�	r   rM   r#   r\   r0   r2   r3   r4   r7   Ú	media_sidrG   c	           
      ó„  — t        j                  ||t        j                  |«      t        j                  |«      |||dœ«      }	t        j                  |ddœ«      }
d|
d<   d|
d<   | j                  j                  d| j                  |	|
¬«      }t        | j                  || j                  d	   | j                  d
   ¬«      S )an  
        Create the MessageInstance

        :param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
        :param from_: The [Identity](https://www.twilio.com/docs/chat/identity) of the new message's author. The default value is `system`.
        :param attributes: A valid JSON string that contains application-specific data.
        :param date_created: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source.
        :param date_updated: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated.
        :param last_updated_by: The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable.
        :param body: The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string.
        :param media_sid: The SID of the [Media](https://www.twilio.com/docs/chat/rest/media) to attach to the new Message.

        :returns: The created MessageInstance
        ©r›   r—   r˜   r™   rš   r–   ÚMediaSidrœ   ©r…   r�   r�   r�   r�   rž   rŸ   r+   r,   r©   )	r   r‹   r   r@   rJ   Úcreaterƒ   r   rC   ©rE   rM   r\   r0   r2   r3   r4   r7   r°   r    rŠ   r*   s               r    rµ   zMessageList.create  sË   € ô8 �y‰yàØ(Ü(×9Ñ9¸,ÓGÜ(×9Ñ9¸,ÓGØ!0ØØ%ñó

ˆô —)‘)à,DØ Cñó
ˆð #Fˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5ô	
ð 	
r   c	           
   ƒ   ó   K  — t        j                  ||t        j                  |«      t        j                  |«      |||dœ«      }	t        j                  |ddœ«      }
d|
d<   d|
d<   | j                  j                  d| j                  |	|
¬«      ƒ d	{  –—† }t        | j                  || j                  d
   | j                  d   ¬«      S 7 Œ7­w)a}  
        Asynchronously create the MessageInstance

        :param x_twilio_webhook_enabled: The X-Twilio-Webhook-Enabled HTTP request header
        :param from_: The [Identity](https://www.twilio.com/docs/chat/identity) of the new message's author. The default value is `system`.
        :param attributes: A valid JSON string that contains application-specific data.
        :param date_created: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source.
        :param date_updated: The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated.
        :param last_updated_by: The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable.
        :param body: The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string.
        :param media_sid: The SID of the [Media](https://www.twilio.com/docs/chat/rest/media) to attach to the new Message.

        :returns: The created MessageInstance
        r²   rœ   r´   r�   r�   r�   rž   rŸ   Nr+   r,   r©   )	r   r‹   r   r@   rJ   Úcreate_asyncrƒ   r   rC   r¶   s               r    r¸   zMessageList.create_async[  sÙ   è ø€ ô8 �y‰yàØ(Ü(×9Ñ9¸,ÓGÜ(×9Ñ9¸,ÓGØ!0ØØ%ñó

ˆô —)‘)à,DØ Cñó
ˆð #Fˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô Ø�M‰MØØŸ™ }Ñ5ØŸ™ }Ñ5ô	
ð 	
ð	
ús   ‚BCÂCÂ8CNÚorderr   ÚlimitÚ	page_sizec                 ó¤   — | j                   j                  ||«      }| j                  ||d   ¬«      }| j                   j                  ||d   «      S )a  
        Streams MessageInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param &quot;MessageInstance.OrderType&quot; order: The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r»   ©r¹   r»   rº   )rJ   Úread_limitsÚpageÚstream©rE   r¹   rº   r»   Úlimitsr¿   s         r    rÀ   zMessageList.stream˜  sL   € ð, —‘×*Ñ*¨5°)Ó<ˆØ�y‰y˜u°°{Ñ0CˆyÓDˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r   c              ƒ   óÀ   K  — | j                   j                  ||«      }| j                  ||d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)a  
        Asynchronously streams MessageInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param &quot;MessageInstance.OrderType&quot; order: The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r»   r½   Nrº   )rJ   r¾   Ú
page_asyncÚstream_asyncrÁ   s         r    rÅ   zMessageList.stream_async³  sY   è ø€ ð, —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨5¸FÀ;Ñ<O�_ÓP×Pˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Qús   ‚6A¸A¹$Ac                 ó<   — t        | j                  |||¬«      «      S )a«  
        Lists MessageInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param &quot;MessageInstance.OrderType&quot; order: The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        ©r¹   rº   r»   )ÚlistrÀ   )rE   r¹   rº   r»   s       r    rÈ   zMessageList.listÎ  s+   € ô* Ø�K‰KØØØ#ð ó ó
ð 	
r   c              ƒ   ó|   K  — | j                  |||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)aº  
        Asynchronously lists MessageInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param &quot;MessageInstance.OrderType&quot; order: The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        rÇ   N)rÅ   )rE   r¹   rº   r»   Úrecords        r    Ú
list_asynczMessageList.list_asyncë  sW   è ø€ ð. '+×&7Ñ&7ØØØ#ð '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚<š/›<¡7£3§1
¨3«7¯<±3³7´<Ú
page_tokenÚpage_numberc                 ó  — t        j                  ||||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  «      S )aþ  
        Retrieve a single page of MessageInstance records from the API.
        Request is executed immediately

        :param order: The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of MessageInstance
        ©ÚOrderÚ	PageTokenr   ÚPageSizer�   rœ   r�   r�   r‘   ©rˆ   r‰   ÚparamsrŠ   )r   r‹   rJ   r¿   rƒ   r§   rC   ©rE   r¹   rÌ   rÍ   r»   r    rŠ   Úresponses           r    r¿   zMessageList.page	  s‚   € ô$ �y‰yàØ'Ø#Ø%ñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜4Ÿ=™=¨(°D·N±NÓCÐCr   c              ƒ   ó  K  — t        j                  ||||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  «      S 7 Œ%­w)	a  
        Asynchronously retrieve a single page of MessageInstance records from the API.
        Request is executed immediately

        :param order: The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of MessageInstance
        rÏ   r�   rœ   r�   r�   r‘   rÓ   N)r   r‹   rJ   rÄ   rƒ   r§   rC   rÕ   s           r    rÄ   zMessageList.page_async-  s�   è ø€ ô$ �y‰yàØ'Ø#Ø%ñ	ó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜4Ÿ=™=¨(°D·N±NÓCÐCð
ús   ‚A#BÁ%BÁ&&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zó
        Retrieve a specific page of MessageInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of MessageInstance
        r‘   )rJ   ÚdomainÚtwilioÚrequestr§   rC   ©rE   rØ   rÖ   s      r    Úget_pagezMessageList.get_pageQ  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜4Ÿ=™=¨(°D·N±NÓCÐCr   c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)a  
        Asynchronously retrieve a specific page of MessageInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of MessageInstance
        r‘   N)rJ   rÚ   rÛ   Úrequest_asyncr§   rC   rÝ   s      r    Úget_page_asynczMessageList.get_page_async]  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜4Ÿ=™=¨(°D·N±NÓCÐCð Vús   ‚4A¶A·&Ar-   c                 óh   — t        | j                  | j                  d   | j                  d   |¬«      S ©zm
        Constructs a MessageContext

        :param sid: The SID of the Message resource to update.
        r+   r,   r<   ©rI   rJ   rC   ©rE   r-   s     r    r?   zMessageList.geti  ó3   € ô Ø�M‰MØŸ™ }Ñ5ØŸ™ }Ñ5Øô	
ð 	
r   c                 óh   — t        | j                  | j                  d   | j                  d   |¬«      S rã   rä   rå   s     r    Ú__call__zMessageList.__call__v  ræ   r   c                  ó   — y)rf   z<Twilio.Chat.V2.MessageList>r   rK   s    r    rx   zMessageList.__repr__ƒ  r¬   r   )!r   r   r   r   rz   r>   r   r|   r   ry   r   r   rµ   r¸   r   Úintr	   rÀ   r
   rÅ   r   rÈ   rË   r§   r¿   rÄ   rÞ   rá   rI   r?   rè   rx   r~   r   s   @r    r®   r®     s›  ø„ ð
 ð 
°cð 
Èõ 
ð0 �L‰LØ$*§L¡LØ)/¯©Ø06·±Ø06·±Ø.4¯l©lØ#)§<¡<Ø(.¯©ñ;
à"'Ø0°&Ð8ñ#
ð;
ð
 �S˜&�[Ñ!ð;
ð ˜#˜v˜+Ñ&ð;
ð ˜H fÐ,Ñ-ð;
ð ˜H fÐ,Ñ-ð;
ð ˜s F˜{Ñ+ð;
ð �C˜�KÑ ð;
ð ˜˜f˜Ñ%ð;
ð 
ó;
ðB �L‰LØ$*§L¡LØ)/¯©Ø06·±Ø06·±Ø.4¯l©lØ#)§<¡<Ø(.¯©ñ;
à"'Ø0°&Ð8ñ#
ð;
ð
 �S˜&�[Ñ!ð;
ð ˜#˜v˜+Ñ&ð;
ð ˜H fÐ,Ñ-ð;
ð ˜H fÐ,Ñ-ð;
ð ˜s F˜{Ñ+ð;
ð �C˜�KÑ ð;
ð ˜˜f˜Ñ%ð;
ð 
ó;
ð~ =C¿L¹LØ#Ø#'ñ	;àÐ0°&Ð8Ñ9ð;ð ˜‰}ð;ð ˜C‘=ð	;ð
 
�/Ñ	"ó;ð: =C¿L¹LØ#Ø#'ñ	AàÐ0°&Ð8Ñ9ðAð ˜‰}ðAð ˜C‘=ð	Að
 
�Ñ	'óAð: =C¿L¹LØ#Ø#'ñ	
àÐ0°&Ð8Ñ9ð
ð ˜‰}ð
ð ˜C‘=ð	
ð
 
ˆoÑ	ó
ð> =C¿L¹LØ#Ø#'ñ	
àÐ0°&Ð8Ñ9ð
ð ˜‰}ð
ð ˜C‘=ð	
ð
 
ˆoÑ	ó
ð@ =C¿L¹LØ)/¯©Ø*0¯,©,Ø(.¯©ñ"DàÐ0°&Ð8Ñ9ð"Dð ˜#˜v˜+Ñ&ð"Dð ˜3 ˜;Ñ'ð	"Dð
 ˜˜f˜Ñ%ð"Dð 
ó"DðL =C¿L¹LØ)/¯©Ø*0¯,©,Ø(.¯©ñ"DàÐ0°&Ð8Ñ9ð"Dð ˜#˜v˜+Ñ&ð"Dð ˜3 ˜;Ñ'ð	"Dð
 ˜˜f˜Ñ%ð"Dð 
ó"DðH
D 3ð 
D¨;ó 
Dð
D¨sð 
D°{ó 
Dð
�sð 
˜~ó 
ð
˜Cð 
 Nó 
ð.˜#÷ .r   r®   N)Ú__doc__r   Útypingr   r   r   r   r   r	   r
   Útwilio.baser   r   r   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   rI   r§   r®   r   r   r    ú<module>ró      sj   ðñõ ß L× LÑ Lß 6Ñ 6Ý 8Ý :Ý 2Ý 'Ý !ôUEÐ&ô UEôp|D�_ô |Dô~.�$ô .ô0A.�,õ A.r   