o
    Uj7/                     @  s   d dl mZ d dlmZ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mZmZ ddlmZ G d	d
 d
ee ZdS )    )annotations)TYPE_CHECKINGAny)Field   )Default)ChatIdUnionDateTimeUnionInputPollMediaUnionInputPollOptionUnionMessageMessageEntityReplyMarkupUnionReplyParameters   )TelegramMethodc                #      s  e Zd ZU dZeZdZded< 	 ded< 	 ded< 	 d	Zd
ed< 	 d	Z	ded< 	 e
dZded< 	 d	Zded< 	 d	Zded< 	 d	Zd
ed< 	 d	Zded< 	 d	Zded< 	 d	Zded< 	 d	Zded< 	 d	Zded< 	 d	Zded< 	 d	Zded< 	 d	Zded< 	 d	Zd
ed < 	 e
dZded!< 	 d	Zded"< 	 d	Zd#ed$< 	 d	Zded%< 	 d	Zd&ed'< 	 d	Zded(< 	 d	Zd
ed)< 	 e
dZded*< 	 d	Z ded+< 	 d	Z!d#ed,< 	 d	Z"ded-< 	 e
d.Z#d/ed.< 	 d	Z$ded0< 	 d	Z%d
ed1< 	 d	Z&d2ed3< 	 d	Z'd4ed5< 	 e(d	d6d7id8Z)ded9< 	 e(d	d6d7id8Z*ded:< 	 e(d	d6d7id8Z+ded;< 	 e,r\d	d	e
dd	d	d	d	d	d	d	d	d	d	d	d	e
dd	d	d	d	d	d	e
dd	d	d	e
d.d	d	d	d	d	d	d	d<"dC fdAdBZ-  Z.S   Z.S )DSendPollz
    Use this method to send a native poll. On success, the sent :class:`aiogram.types.message.Message` is returned.

    Source: https://core.telegram.org/bots/api#sendpoll
    sendPollr   chat_idstrquestionlist[InputPollOptionUnion]optionsN
str | Nonebusiness_connection_id
int | Nonemessage_thread_id
parse_modestr | Default | Nonequestion_parse_modelist[MessageEntity] | Nonequestion_entitiesbool | Noneis_anonymoustypeallows_multiple_answersallows_revotingshuffle_optionsallow_adding_optionshide_results_until_closesmembers_onlylist[str] | Nonecountry_codeslist[int] | Nonecorrect_option_idsexplanationexplanation_parse_modeexplanation_entitiesInputPollMediaUnion | Noneexplanation_mediaopen_periodDateTimeUnion | None
close_date	is_closeddescriptiondescription_parse_modedescription_entitiesmediadisable_notificationprotect_contentbool | Default | Noneallow_paid_broadcastmessage_effect_idReplyParameters | Nonereply_parametersReplyMarkupUnion | Nonereply_markup
deprecatedT)json_schema_extraallow_sending_without_replycorrect_option_idreply_to_message_id)"r   r   r   r!   r#   r$   r%   r&   r'   r(   r)   r*   r,   r.   r/   r0   r1   r3   r4   r6   r7   r8   r9   r:   r;   r<   r=   r?   r@   rB   rD   rG   rH   rI   _SendPoll__pydantic_kwargsr   returnNonec       %   '        s   t  jd&i 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#|#d$|$d%|%|& d S )'Nr   r   r   r   r   r   r!   r#   r$   r%   r&   r'   r(   r)   r*   r,   r.   r/   r0   r1   r3   r4   r6   r7   r8   r9   r:   r;   r<   r=   r?   r@   rB   rD   rG   rH   rI    )super__init__)'__pydantic__self__r   r   r   r   r   r   r!   r#   r$   r%   r&   r'   r(   r)   r*   r,   r.   r/   r0   r1   r3   r4   r6   r7   r8   r9   r:   r;   r<   r=   r?   r@   rB   rD   rG   rH   rI   rJ   	__class__rM   R/opt/telega-widget/.venv/lib/python3.10/site-packages/aiogram/methods/send_poll.pyrO   w   s   .	
 !"#$%
zSendPoll.__init__)Nr   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,   r+   r.   r-   r/   r   r0   r   r1   r    r3   r2   r4   r   r6   r5   r7   r"   r8   r   r9   r   r:   r    r;   r2   r<   r"   r=   r>   r?   r"   r@   r   rB   rA   rD   rC   rG   r"   rH   r   rI   r   rJ   r   rK   rL   )/__name__
__module____qualname____doc__r   __returning____api_method____annotations__r   r   r   r   r!   r#   r$   r%   r&   r'   r(   r)   r*   r,   r.   r/   r0   r1   r3   r4   r6   r7   r8   r9   r:   r;   r<   r=   r?   r@   rB   rD   r   rG   rH   rI   r   rO   __classcell__rM   rM   rQ   rS   r      s   
 
r   N)
__future__r   typingr   r   pydanticr   client.defaultr   typesr   r	   r
   r   r   r   r   r   baser   r   rM   rM   rM   rS   <module>   s    (
