
    Yie                    D   S r SSKrSSKrSSKrSSKrSSKJr  SSKJrJr  SSK	J
r
  SSKJrJrJrJrJrJrJrJrJr   SSKJr  SSKJr  S	rSSKJr  SSKJr  SSKJ r J!r!  SSK"J#r#  SSK$J%r%  SSK&J'r'  SSK(J)r)  SSK*J+r+  SSK,J-r-  SSK.J/r/  SSK0J1r1  SSK2J3r3  SSK4J5r5  SSK6J7r7  SSK8J9r9  SSK:J;r;  SSK<J=r=  SSK>J?r?J@r@  SSKAJBrB  SSKCJDrD  SSKEJFrFJGrGJHrH  SS KIJJrJ  SS!KKJLrL  SS"KMJNrN  SS#KOJPrP  SS$KQJRrR  SS%KSJTrT  SS&KUJVrVJWrW  SS'KXJYrY  SS(KZJ[r[  SS)K\J]r]  SS*K^J_r_  SS+K`Jara  SS,KbJcrc  SS-KdJereJfrf  SS.KgJhrhJiriJjrj  SS/KkJlrl  SS0KmJnrn  SS1KoJprp  SS2KqJrrr  SS3KsJtrt  SS4KuJvrv  SS5KwJxrxJyry  SS6KzJ{r{J|r|  SS7K}J~r~Jr  SS8KJr  SS9KJr  SS:KJr  SS;KJrJrJrJrJr  SS<KJr  SS=KJr  SS>KJrJr  SS?KJrJr  SS@KJrJr  SSAKJr  SSBKJr  SSCKJrJr  \(       a  SSDKJrJrJrJrJrJrJrJrJrJrJrJrJr  \" SESFSG9r " SH SF\p\GR^                  SF   5      rg! \ a
    SrSrS
r GNf = f)Iz>This module contains an object that represents a Telegram Bot.    N)Sequence)datetime	timedelta)TracebackType)	TYPE_CHECKINGAnyCallableNoReturnOptionalTypeVarUnioncastno_type_check)default_backend)serializationTF)
BotCommand)BotCommandScope)BotDescriptionBotShortDescription)BotName)BusinessConnection)ChatAdministratorRights)UserChatBoosts)ChatFullInfo)ChatInviteLink)
ChatMember)ChatPermissions)	Animation)Audio)	ChatPhoto)Contact)Document)File)
InputMediaInputPaidMedia)Location)	PhotoSize)MaskPositionSticker
StickerSet)Venue)Video)	VideoNote)Voice)
ForumTopic)GameHighScore)GiftGifts)InlineQueryResultsButton)PreparedInlineMessage)
MenuButton)Message)	MessageId)StarTransactions)InputPollOptionPoll)ReactionTypeReactionTypeCustomEmojiReactionTypeEmoji)ReplyParameters)SentWebAppMessage)TelegramObject)Update)User)UserProfilePhotos)parse_lpo_and_dwppparse_sequence_arg)DEFAULT_NONEDefaultValue)is_local_fileparse_file_input)
get_logger)build_repr_with_selected_attrs)to_camel_case)CorrectOptionID	FileInputJSONDictODVInputReplyMarkupwarn)WebhookInfo)InlineQueryLimitReactionEmoji)EndPointNotFoundInvalidToken)BaseRequestRequestData)HTTPXRequest)RequestParameter)PTBDeprecationWarningPTBUserWarning)InlineKeyboardMarkupInlineQueryResult	InputFileInputMediaAudioInputMediaDocumentInputMediaPhotoInputMediaVideoInputStickerLabeledPriceLinkPreviewOptionsMessageEntityPassportElementErrorShippingOptionBTBot)boundc            L       V  ^  \ rS rSrSr\" \ 5      rSr       GSS\S\S\S\	\
   S	\	\
   S
\	\   S\	\   S\4U 4S jjjrS\S\4S jrS\	\\      S\	\   S\	\   SS4S jrS\4S jrS\\\4   S\4S jrS\S\4U 4S jjrS\4U 4S jjrS\4S jr\S\4S j5       r\S\4S j5       r\S\4S j5       r \S\4S j5       r!\S\	\"   4S  j5       r#\S\
4S! j5       r$\S\%4S" j5       r&\S\4S# j5       r'\S\4S$ j5       r(\S\4S% j5       r)\S\4S& j5       r*\S\4S' j5       r+\S\4S( j5       r,\S\4S) j5       r-\S\4S* j5       r.\S\4S+ j5       r/\0\1S,4S-\2\\14   S.\\3   S/\SS4S0 jj5       r4   GSS1\2\5S24   S3\	\S2      S4\	\   S5\S\2\S6\"4   4
S7 jjr6S8\\\4   SS4S9 jr7 GS\8\8\8\8SS:.S;\S8\	\9   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\"4SA jjjr<\8\8\8\8SB.S;\S8\9S<\:\;   S=\:\;   S>\:\;   S?\:\;   S\2\\9\=\9   4   4SC jjr>\8S\8SS\8SSSSSS4\8S\8\8\8\8SSD.S;\S8\9SE\:\   SF\	\?   SG\:\   SH\	\   SI\	\   SJ\:\   SK\	\@SL      SM\:SN   SO\	SP   SQ\	\   SR\	\   SS\	\   ST\:\   SU\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\"4,SV jjjrAGSSW jrBGSSX jrC  GS\8\8\8\8SB.S;\S@\	\9   SY\	\\D      S<\:\;   S=\:\;   S>\:\;   S?\:\;   S\"4SZ jjjrE\8\8\8\8SS:.S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\%4S[ jjrF\8S\8\8SS\8SSSS4\8SS\8\8\8\8SS\.S]\2\\4   S^\SJ\:\   S_\	\@SL      SE\:\   SG\:\   SF\	\?   SH\	\   SM\:SN   SO\	SP   SQ\	\   SR\	\   SS\	\   ST\:\   SU\	\   S`\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G4,Sa jjjrH\8\8\8\8SS:.S]\2\\4   Sb\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4Sc jjrI\8\8\8\8SS:.S]\2\\4   Sd\@\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4Se jjrJ\8\8S4\8\8\8\8SS:.S]\2\\4   Sf\2\\4   Sb\SE\:\   SG\:\   SH\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G4Sg jjjrK\8\8S4\8\8\8\8SS:.S]\2\\4   Sf\2\\4   Sd\@\   SE\:\   SG\:\   SH\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\L\MSh4   4Si jjjrNS\8S\8S\8SSSSSSS4\8SS\8\8\8\8SSj.S]\2\\4   Sk\2\5Sl4   SI\	\   SE\:\   SF\	\?   SJ\:\   SK\	\@SL      SG\:\   SH\	\   Sm\	\   SO\	SP   SQ\	\   SR\	\   SS\	\   Sn\	\   ST\:\   SU\	\   S4\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G40So jjjrOSSSS\8S\8S\8SSSSSS4\8SS\8\8\8\8SSj.S]\2\\4   Sp\2\5Sq4   Sr\	\   Ss\	\   St\	\   SI\	\   SE\:\   SF\	\?   SJ\:\   SK\	\@SL      SG\:\   SH\	\   Su\	\5   SO\	SP   SQ\	\   SR\	\   SS\	\   ST\:\   SU\	\   S4\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G44Sv jjjrPS\8S\8SS\8SSSSSS4\8SS\8\8\8\8SSj.S]\2\\4   Sw\2\5Sx4   SI\	\   SE\:\   SF\	\?   SJ\:\   Sy\	\   SK\	\@SL      SG\:\   SH\	\   Su\	\5   SO\	SP   SQ\	\   SR\	\   SS\	\   ST\:\   SU\	\   S4\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G40Sz jjjrQ\8S\8SSSSSS4	\8S\8\8\8\8SSD.S]\2\\4   S{\2\5S|4   SE\:\   SF\	\?   SG\:\   SH\	\   S}\	\   SO\	SP   SQ\	\   SR\	\   SS\	\   ST\:\   SU\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G4&S~ jjjrRSS\8SSS\8SS\8SSSSSSSS4\8SS\8\8\8\8SSj.S]\2\\4   S\2\5S4   Sr\	\   SI\	\   SE\:\   SF\	\?   S\	\   S\	\   SJ\:\   S\	\   SK\	\@SL      SG\:\   SH\	\   Sm\	\   Su\	\5   SO\	SP   SQ\	\   SR\	\   SS\	\   Sn\	\   ST\:\   SU\	\   S4\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G4:S jjjrSSS\8S\8SSSSSS4\8SS\8\8\8\8SSj.S]\2\\4   S\2\5S4   Sr\	\   S\	\   SE\:\   SF\	\?   SG\:\   SH\	\   Su\	\5   SO\	SP   SQ\	\   SR\	\   SS\	\   ST\:\   SU\	\   S4\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G4,S jjjrTSSSS\8\8SS\8SSSSSSSS4\8SS\8\8\8\8SSj.S]\2\\4   S\2\5S4   Sr\	\   S\	\   S\	\   SI\	\   SJ\:\   SE\:\   SF\	\?   SK\	\@SL      SG\:\   SH\	\   Sm\	\   Su\	\5   SO\	SP   SQ\	\   SR\	\   SS\	\   Sn\	\   ST\:\   SU\	\   S4\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G48S jjjrUSS\8S\8S\8SSSSS4\8SS\8\8\8\8SSj.S]\2\\4   S\2\5S4   Sr\	\   SI\	\   SE\:\   SF\	\?   SJ\:\   SK\	\@SL      SG\:\   SH\	\   SO\	SP   SQ\	\   SR\	\   SS\	\   ST\:\   SU\	\   S4\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G4.S jjjrV\8\8SSSSS4\8S\8\8\8\8SS\8SS.
S]\2\\4   S\@\2S      SE\:\   SG\:\   SH\	\   SO\	SP   SQ\	\   SR\	\   SS\	\   ST\:\   SU\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   SI\	\   SJ\:\   SK\	\@SL      S\L\GSh4   4(S jjjrWSS\8SSSSS\8SSSSS4\8SS\8\8\8\8SS.S]\2\\4   S\	\;   S\	\;   SE\:\   SF\	\?   S\	\   S\	\;   S\	\   S\	\   SG\:\   SH\	\   SO\	SP   SQ\	\   SR\	\   SS\	\   ST\:\   SU\	\   S\	\X   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G40S jjjrY           GSS\8\8\8\8SS.S]\	\2\\4      Sb\	\   S\	\   S\	\;   S\	\;   SF\	S   S\	\;   S\	\   S\	\   S\	\   SQ\	\   S\	\X   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\2\G\4   4$S jjjrZ     GS\8\8\8\8SS:.S]\	\2\\4      Sb\	\   S\	\   SF\	S   SQ\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\2\G\4   4S jjjr[SSSSS\8SSSS\8SSSSS4\8SS\8\8\8\8SS.S]\2\\4   S\	\;   S\	\;   St\	\   S\	\   S\	\   SE\:\   SF\	\?   S\	\   S\	\   S\	\   SG\:\   SH\	\   SO\	SP   SQ\	\   SR\	\   SS\	\   ST\:\   SU\	\   S\	\\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G44S jjjr]SSS\8SS\8SSSSS4\8SS\8\8\8\8SS.S]\2\\4   S\	\   S\	\   S\	\   SE\:\   SF\	\?   S\	\   SG\:\   SH\	\   SO\	SP   SQ\	\   SR\	\   SS\	\   ST\:\   SU\	\   S\	\^   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G4,S jjjr_\8S\8SSSSS4\8S\8\8\8\8SSD.S]\S\SE\:\   SF\	S   SG\:\   SH\	\   SO\	SP   SQ\	\   SR\	\   SS\	\   ST\:\   SU\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G4$S jjjr`  GS\8\8\8\8SS:.S]\2\\4   S\SH\	\   SQ\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjjra  GSS\2\@S   \b\/\	\@S      4   4   S\	\   S\	\   S\L\@S   \	\   4   4S jjrc\dGSS j5       re    GSS\8\8\8\8SS.S\S\2\@S   \b\/\	\@S      4   4   S\	\   S\	\   S\	\   S\	\f   S\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjjrg    GS\8\8\8\8SS:.S\SSS\	\   S\	\   S\	\   S\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\h4S jjjri  GS\8\8\8\8SS:.S\S\	\   S\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\j4S jjjrk\8\8\8\8SS:.S\2\\l\m\n\o\p\q\r\s\t4
   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\u4S jjrv  GS\8\8\8\8SS:.S]\2\\4   S\S\	\2\\w4      S\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjjrx\8\8\8\8SS:.S]\2\\4   S\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjry GS\8\8\8\8SS:.S]\2\\4   S\S\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjjrz\8\8\8\8SS:.S]\2\\4   S\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjr{    GS\8\8\8\8SS:.S\S^\	\   S\	\   S\	\   S\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjjr|SSS\8SS\8S4S\8\8\8\8SS.S^\S]\	\2\\4      Sb\	\   S\	\   SJ\:\   SF\	S   S_\	\@SL      SM\:SN   SQ\	\   S`\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\2\G\4   4 S jjjr}SSSSS\8SSS4	\8\8\8\8SS:.S]\	\2\\4      Sb\	\   S\	\   SI\	\   SF\	S   SJ\:\   SK\	\@SL      Sn\	\   SQ\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\2\G\4   4S jjjr~     GS\8\8\8\8SS:.SSS]\	\2\\4      Sb\	\   S\	\   SF\	S   SQ\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\2\G\4   4S jjjr     GS\8\8\8\8SS:.S]\	\2\\4      Sb\	\   S\	\   SF\	S   SQ\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\2\G\4   4S jjjr    GS\8\8\8\8SS:.S\	\   S\	\   S\	\   S\	\@\      S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\L\Sh4   4S jjjr      GS\8\8\8\8SS:.S\S\	\5   S\	\   S\	\@\      S\	\   S\	\   S\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjjr GS\8\8\8\8SS:.S\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjjr\8\8\8\8SS:.S]\2\\4   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjr\8\8\8\8SS:.S]\2\\4   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjr\8\8\8\8SS:.S]\2\\4   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\L\Sh4   4S jjr\8\8\8\8SS:.S]\2\\4   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjr\8\8\8\8SS:.S]\2\\4   S\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjr\8\8\8\8SS:.S]\2\\4   S\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjr\8\8\8\8SS:.S]\2\\4   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjr\8\8\8\8SS:.S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4S jjr     GS\8\8\8\8SS:.S\S\S]\	\   Sb\	\   S\	\   S\	\   S\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\2\G\4   4S jjjr   GS\8\8\8\8SS:.S\S]\	\   Sb\	\   S\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\L\Sh4   4S jjjrSSSSSSSSSS\8SSSSSS\8SSSS4\8S\8\8\8\8SSD.S]\2\\4   St\S\S\S\	\   S\S\@S   S\	\   S\	\   S\	\   S\	\   GS \	\   GS\	\   GS\	\   GS\	\   GS\	\   GS\	\   SE\:\   SF\	S   GS\	\2\\4      GS\	\   GS\	\   GS	\	\   GS
\	\@\      SG\:\   SH\	\   SO\	SP   SR\	\   SS\	\   ST\:\   SU\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G4JGS jjjr  GS\8\8\8\8SS:.GS\GS\GS\	\@GS      GS\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr GS\8\8\8\8SS:.GS\GS\GS\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr\8\8\8\8SS:.GS\SSS<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr  GS\8\8\8\8SS:.S]\2\\4   S\GS\S\	\2\\w4      GS\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr               GS\8\8\8\8SS:.S]\2\\4   S\GS\	\   GS\	\   GS\	\   GS\	\   GS\	\   GS\	\   GS\	\   GS \	\   GS!\	\   GS"\	\   GS#\	\   GS$\	\   GS%\	\   GS&\	\   GS'\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4.GS( jjjr GS\8\8\8\8SS:.S]\2\\4   GS\GS\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS) jjjr\8\8\8\8SS:.S]\2\\4   S\GS*\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS+ jjr\8\8\8\8SS:.S]\2\\4   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS, jjr    GS\8\8\8\8SS:.S]\2\\4   GS-\	\2\\w4      GS.\	\   GS/\	\   GS0\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS1 jjjr    GS\8\8\8\8SS:.S]\2\\4   GS2\2\GS34   GS-\	\2\\w4      GS.\	\   GS/\	\   GS0\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS4 jjjr\8\8\8\8SS:.S]\2\\4   GS2\2\GS34   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS5 jjr\8\8\8\8SS:.S]\2\\4   S\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS6 jjr\8\8\8\8SS:.S]\2\\4   S\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS7 jjr\8\8\8\8SS:.S]\2\\4   Sk\5S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS8 jjr\8\8\8\8SS:.S]\2\\4   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS9 jjr\8\8\8\8SS:.S]\2\\4   St\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS: jjr GS\8\8\8\8SS:.S]\2\\4   S\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS; jjjr  GS\8\8\8\8SS:.S\GS<\	\   GS=\	\2\\w4      S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS> jjjr\8S4\8\8\8\8SS:.S]\2\\4   Sb\SE\:\   SQ\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS? jjjr  GS\8\8\8\8SS:.S]\2\\4   Sb\	\   SQ\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS@ jjjr\8\8\8\8SS:.S]\2\\4   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSA jjr\8\8\8\8SS:.GS/\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSB jjr\8\8\8\8SS:.GSC\@\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\L\qSh4   4GSD jjr\8\8\8\8SS:.S\S{\5GSE\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\u4GSF jjr\8\8\8\8SS:.S\GS/\S{GSGS<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSH jjr\8\8\8\8SS:.S{\GSI\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSJ jjr  GS\8\8\8\8SS:.S\GS/\St\GSK\@GSG   GSL\	\   GSM\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSN jjjr\8\8\8\8SS:.S{\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSO jjr\8\8\8\8SS:.GS/\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSP jjr GS\8\8\8\8SS:.GS/\S\GSQ\Su\	\5   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSR jjjr\8\8\8\8SS:.GS/\St\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSS jjr\8\8\8\8SS:.S{\GST\@\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSU jjr GS\8\8\8\8SS:.S{\GSV\	\@\      S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSW jjjr GS\8\8\8\8SS:.S{\GSX\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSY jjjr GS\8\8\8\8SS:.GS/\GSZ\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS[ jjjr\8\8\8\8SS:.S\GS\\@GS]   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS^ jjrSSSSS\8SS\8SSS\8SSS\8SSS4\8S\8\8\8\8SSD.S]\2\\4   GS_\GS`\@\2\GSa4      GS!\	\   GSb\	\   GSc\	\   GSd\	\   GSe\	\   SE\:\   SF\	\?   GSf\	\   GSg\:\   GSh\	\   GSi\	\2\\w4      GSj\	\@SL      SG\:\   SH\	\   SO\	SP   SQ\	\   GSk\:\   GSl\	\@SL      SR\	\   SS\	\   ST\:\   SU\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G4>GSm jjjr  GS\8\8\8\8SS:.S]\2\\4   Sb\SF\	S   SQ\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSn jjjr\8SS\8SSSSS4	\8S\8\8\8\8SSD.S]\2\\4   SE\:\   SF\	\?   S}\	\   SG\:\   SH\	\   SO\	SP   SQ\	\   SR\	\   SS\	\   ST\:\   SU\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G4$GSo jjjr GS\8\8\8\8SS:.GSp\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSq jjjr  GS\8\8\8\8SS:.GSr\	\   GSp\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSs jjjr  GS\8\8\8\8SS:.GSt\	\   GSu\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\L\Sh4   4GSv jjjr  GS\8\8\8\8SS:.GSw\@\2\\L\\4   4      GSt\	\   GSu\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSx jjjr  GS\8\8\8\8SS:.GSt\	\   GSu\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSy jjjr\8\8\8\8SS:.S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GSz jjr\8\8\8\8SS:.S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS{ jjrS\8S\8S\8SSSS4
\8S\8\8\8\8SSD.S]\2\\4   Sf\2\\4   Sb\SI\	\   SJ\:\   SK\	\@SL      SE\:\   SF\	\?   SG\:\   SH\	\   SO\	SP   Sn\	\   SS\	\   ST\:\   SU\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\M4*GS| jjjr\8\8SS4\8\8\8\8SS:.S]\2\\4   Sf\2\\4   Sd\@\   SE\:\   SG\:\   SH\	\   GS}\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\LGS~   4GS jjjr  GS\8\8\8\8SS:.S]\	\   GS\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr GS\8\8\8\8SS:.S]\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr                GS\8\8\8\8SS:.St\S\S\S\	\   S\S\@S   GS	\	\   GS
\	\@\      GS\	\2\\4      S\	\   S\	\   S\	\   GS \	\   GS\	\   GS\	\   GS\	\   GS\	\   GS\	\   GS\	\   GS\	\   GS\	\2\\4      SQ\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\48GS jjjr\8\8\8\8SS:.S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\L\qSh4   4GS jjr  GS\8\8\8\8SS:.S]\2\\4   GS/\GS\	\   GS\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr  GS\8\8\8\8SS:.S]\2\\4   SH\GS/\	\   GS\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr\8\8\8\8SS:.S]\2\\4   SH\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr\8\8\8\8SS:.S]\2\\4   SH\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr\8\8\8\8SS:.S]\2\\4   SH\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr\8\8\8\8SS:.S]\2\\4   SH\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr\8\8\8\8SS:.S]\2\\4   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr\8\8\8\8SS:.S]\2\\4   GS/\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr\8\8\8\8SS:.S]\2\\4   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr\8\8\8\8SS:.S]\2\\4   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr\8\8\8\8SS:.S]\2\\4   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr\8\8\8\8SS:.S]\2\\4   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr  GS\8\8\8\8SS:.S\	\   GSu\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr  GS\8\8\8\8SS:.GS\	\   GSu\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr GS\8\8\8\8SS:.GSu\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr GS\8\8\8\8SS:.GSu\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr  GS\8\8\8\8SS:.GS/\	\   GSu\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr GS\8\8\8\8SS:.GSu\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr\8\8\8\8SS:.S]\2\\4   S\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr  GS\8\8\8\8SS:.S]\2\\4   Sb\GS\	\2\@\2\\4      \\4      GS\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr\8\8\8\8SS:.SQ\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr\8\8\8\8SS:.S\GS/\GS\S{GSGS<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr\8\8\8\8SS:.S\GS\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjr  GS\8\8\8\8SS:.S\	\   S\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr\8\8\8\8SS:.S\GS\GS\S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjrS\8SS\8\8SSSSS4\8S\8\8\8\8SSD.S]\2\\4   GS\S\@GS   SI\	\   SJ\:\   SK\	\@SL      Sn\	\   SE\:\   SG\:\   SO\	SP   SF\	\?   SQ\	\   S\	\   SS\	\   ST\:\   SU\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\G4,GS jjjr GS\8\8\8\8SS:.S]\2\\4   GS\GS\GS/\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr GS\8\8\8\8SS:.S]\2\\4   GS2\2\GS34   GS/\	\   S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjr\8\8\8\8SS:.S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjrS\8S4\8\8\8\8SS:.S\GS\2\\4   S^\	\   GS\:\   GS\	\@SL      S<\:\;   S=\:\;   S>\:\;   S?\:\;   S@\	\9   S\4GS jjjrGSGS\S\94GS jjr\Fr \Hr \Ir \JGr  \KGr \NGr \OGr \PGr \QGr \RGr \SGr \UGr \VGr	 \TGr
 \WGr \YGr \ZGr \[Gr \]Gr \_Gr \`Gr \aGr \gGr \iGr \kGr \vGr \xGr \yGr \zGr \{Gr \|Gr \}Gr \~Gr \Gr \Gr \Gr  \Gr! \Gr" \Gr# \Gr$ \Gr% \Gr& \Gr' \Gr( \Gr) \Gr* \Gr+ \Gr, \Gr- \Gr. \Gr/ \Gr0 \Gr1 \Gr2 \Gr3 \Gr4 \Gr5 \Gr6 \Gr7 \Gr8 \Gr9 \Gr: \Gr; \Gr< \Gr= \Gr> \Gr? \Gr@ \GrA \GrB \GrC \GrD \GrE \GrF \GrG \GrH \GrI \GrJ \GrK \GrL \GrM \GrN \GrO \GrP \GrQ \GrR \GrS \GrT \GrU \GrV \GrW \GrX \GrY \GrZ \Gr[ \Gr\ \Gr] \Gr^ \Gr_ \Gr` \Gra \Grb \Grc \Grd \Gre \Grf \Grg \Grh \Gri \Grj \Grk \Grl \Grm \Grn \Gro \Grp \Grq \Grr \Grs \Grt \Gru \Grv \Grw \Grx \Gry \Grz \Gr{ \Gr| \Gr} \Gr~SGrU =Gr$ (  rm      a  This object represents a Telegram Bot.

Instances of this class can be used as asyncio context managers, where

.. code:: python

    async with bot:
        # code

is roughly equivalent to

.. code:: python

    try:
        await bot.initialize()
        # code
    finally:
        await bot.shutdown()

.. seealso:: :meth:`__aenter__` and :meth:`__aexit__`.

Note:
    * Most bot methods have the argument ``api_kwargs`` which allows passing arbitrary keywords
      to the Telegram API. This can be used to access new features of the API before they are
      incorporated into PTB. The limitations to this argument are the same as the ones
      described in :meth:`do_api_request`.
    * Bots should not be serialized since if you for e.g. change the bots token, then your
      serialized instance will not reflect that change. Trying to pickle a bot instance will
      raise :exc:`pickle.PicklingError`. Trying to deepcopy a bot instance will raise
      :exc:`TypeError`.

Examples:
    :any:`Raw API Bot <examples.rawapibot>`

.. seealso:: :wiki:`Your First Bot <Extensions---Your-first-Bot>`,
    :wiki:`Builder Pattern <Builder-Pattern>`

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

.. versionchanged:: 20.0

    * Removed the deprecated methods ``kick_chat_member``, ``kickChatMember``,
      ``get_chat_members_count`` and ``getChatMembersCount``.
    * Removed the deprecated property ``commands``.
    * Removed the deprecated ``defaults`` parameter. If you want to use
      :class:`telegram.ext.Defaults`, please use the subclass :class:`telegram.ext.ExtBot`
      instead.
    * Attempting to pickle a bot instance will now raise :exc:`pickle.PicklingError`.
    * Attempting to deepcopy a bot instance will now raise :exc:`TypeError`.
    * The following are now keyword-only arguments in Bot methods:
      ``location``, ``filename``, ``venue``, ``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.
    * For uploading files, file paths are now always accepted. If :paramref:`local_mode` is
      :obj:`False`, the file contents will be read in binary mode and uploaded. Otherwise,
      the file path will be passed in the
      `file URI scheme <https://en.wikipedia.org/wiki/File_URI_scheme>`_.

.. versionchanged:: 20.5
    Removed deprecated methods ``set_sticker_set_thumb`` and ``setStickerSetThumb``.
    Use :meth:`set_sticker_set_thumbnail` and :meth:`setStickerSetThumbnail` instead.

Args:
    token (:obj:`str`): Bot's unique authentication token.
    base_url (:obj:`str`, optional): Telegram Bot API service URL.
    base_file_url (:obj:`str`, optional): Telegram Bot API file URL.
    request (:class:`telegram.request.BaseRequest`, optional): Pre initialized
        :class:`telegram.request.BaseRequest` instances. Will be used for all bot methods
        *except* for :meth:`get_updates`. If not passed, an instance of
        :class:`telegram.request.HTTPXRequest` will be used.
    get_updates_request (:class:`telegram.request.BaseRequest`, optional): Pre initialized
        :class:`telegram.request.BaseRequest` instances. Will be used exclusively for
        :meth:`get_updates`. If not passed, an instance of
        :class:`telegram.request.HTTPXRequest` will be used.
    private_key (:obj:`bytes`, optional): Private key for decryption of telegram passport data.
    private_key_password (:obj:`bytes`, optional): Password for above private key.
    local_mode (:obj:`bool`, optional): Set to :obj:`True`, if the :paramref:`base_url` is
        the URI of a `Local Bot API Server <https://core.telegram.org/bots/api#using-a-local            -bot-api-server>`_ that runs with the ``--local`` flag. Currently, the only effect of
        this is that files are uploaded using their local path in the
        `file URI scheme <https://en.wikipedia.org/wiki/File_URI_scheme>`_.
        Defaults to :obj:`False`.

        .. versionadded:: 20.0.

.. include:: inclusions/bot_methods.rst

.. |removed_thumb_arg| replace:: Removed deprecated argument ``thumb``. Use
    ``thumbnail`` instead.

)_base_file_url	_base_url	_bot_user_initialized_local_mode_private_key_request_tokenNtokenbase_urlbase_file_urlrequestget_updates_requestprivate_keyprivate_key_password
local_modec	                 p  > [         T
U ]  S S9  U(       d  [        S5      eXl        X R                  -   U l        X0R                  -   U l        Xl        S U l        S U l        SU l	        Uc
  [        5       OUUc
  [        5       OU4U l        Sn	[        U R                  S   [        5      (       a5  U R                  S   R                  S:X  a  UR                  S5      (       d  Sn	[        U R                  S	   [        5      (       aB  U R                  S	   R                  S:X  a%  UR                  S5      (       d  U	(       a  U	S
-  n	OSn	U	(       a  U R                  SU	 S3[         SS9  U(       a8  ["        (       d  [%        S5      e[&        R(                  " Xg[+        5       S9U l        U R-                  5         g )N)
api_kwargszAYou must pass the token you received from https://t.me/Botfather!F r   2https://api.telegram.org/botr}      z and requestr|   z!You set the HTTP version for the z HTTPXRequest instance to HTTP/2. The self hosted bot api instances only support HTTP/1.1. You should either run a HTTP proxy in front of it which supports HTTP/2 or use HTTP/1.1.   
stacklevelzcTo use Telegram Passports, PTB must be installed via `pip install "python-telegram-bot[passport]"`.)passwordbackend)super__init__rX   rx   rr   rq   ru   rs   rv   rt   r[   rw   
isinstancehttp_version
startswith_warnr^   CRYPTO_INSTALLEDRuntimeErrorr   load_pem_private_keyr   _freeze)selfry   rz   r{   r|   r}   r~   r   r   warning_string	__class__s             8/app/.venv/lib/python3.13/site-packages/telegram/_bot.pyr   Bot.__init__   s    	D)bcc &4#0;;#>!+)--1"' 29LN?R%oLN7:
  t}}Q'66a --4''(FGG2N t}}Q'66a --4''(FGG.0!*JJ3N3C D` `    ##"8  !. B BODU!D 	    r   returnc                    #     U R                  5       I Sh  vN   U $  N! [         a    U R                  5       I Sh  vN    e f = f7f)z
|async_context_manager| :meth:`initializes <initialize>` the Bot.

Returns:
    The initialized Bot instance.

Raises:
    :exc:`Exception`: If an exception is raised during initialization, :meth:`shutdown`
        is called in this case.
N)
initialize	Exceptionshutdownr   s    r   
__aenter__Bot.__aenter__7  sF     	//### 	 $ 	--/!!	s/   A    A  AA AAexc_typeexc_valexc_tbc                 @   #    U R                  5       I Sh  vN   g N7f)z>|async_context_manager| :meth:`shuts down <shutdown>` the Bot.N)r   )r   r   r   r   s       r   	__aexit__Bot.__aexit__I  s      mmos   c                 .    [         R                  " S5      e)zCustomizes how :func:`copy.deepcopy` processes objects of this type. Bots can not
be pickled and this method will always raise an exception.

.. versionadded:: 20.0

Raises:
    :exc:`pickle.PicklingError`
zBot objects cannot be pickled!)picklePicklingErrorr   s    r   
__reduce__Bot.__reduce__T  s     ""#CDDr   memodictc                     [        S5      e)zCustomizes how :func:`copy.deepcopy` processes objects of this type. Bots can not
be deepcopied and this method will always raise an exception.

.. versionadded:: 20.0

Raises:
    :exc:`TypeError`
z!Bot objects cannot be deepcopied!)	TypeError)r   r   s     r   __deepcopy__Bot.__deepcopy___  s     ;<<r   otherc                 ~   > [        U[        5      (       a  U R                  UR                  :H  $ [        TU ]  U5      $ )zDefines equality condition for the :class:`telegram.Bot` object.
Two objects of this class are considered to be equal if their attributes
:attr:`bot` are equal.

Returns:
    :obj:`True` if both attributes :attr:`bot` are equal. :obj:`False` otherwise.
)r   rm   botr   __eq__)r   r   r   s     r   r   
Bot.__eq__j  s4     eS!!88uyy((w~e$$r   c                 p   > U R                   c  [        TU ]	  5       $ [        U R                  [
        45      $ )z,See :meth:`telegram.TelegramObject.__hash__`)rs   r   __hash__hashr   rm   )r   r   s    r   r   Bot.__hash__v  s.    >>!7#%%TXXsO$$r   c                 (    [        X R                  S9$ )zGive a string representation of the bot in the form ``Bot[token=...]``.

As this class doesn't implement :meth:`object.__str__`, the default implementation
will be used, which is equivalent to :meth:`__repr__`.

Returns:
    :obj:`str`
)ry   )rK   ry   r   s    r   __repr__Bot.__repr__|  s     .d**EEr   c                     U R                   $ )zG:obj:`str`: Bot's unique authentication token.

.. versionadded:: 20.0
)rx   r   s    r   ry   	Bot.token  s     {{r   c                     U R                   $ )z:obj:`str`: Telegram Bot API service URL, built from :paramref:`Bot.base_url` and
:paramref:`Bot.token`.

.. versionadded:: 20.0
)rr   r   s    r   rz   Bot.base_url  s     ~~r   c                     U R                   $ )z:obj:`str`: Telegram Bot API file URL, built from :paramref:`Bot.base_file_url` and
:paramref:`Bot.token`.

.. versionadded:: 20.0
)rq   r   s    r   r{   Bot.base_file_url  s     """r   c                     U R                   $ )zP:obj:`bool`: Whether this bot is running in local mode.

.. versionadded:: 20.0
)ru   r   s    r   r   Bot.local_mode  s     r   c                     U R                   $ )z[Deserialized private key for decryption of telegram passport data.

.. versionadded:: 20.0
)rv   r   s    r   r~   Bot.private_key  s        r   c                      U R                   S   $ )zThe :class:`~telegram.request.BaseRequest` object used by this bot.

Warning:
    Requests to the Bot API are made by the various methods of this class. This attribute
    should *not* be used manually.
r   )rw   r   s    r   r|   Bot.request  s     }}Qr   c                     U R                   c9  [        U R                  R                   SU R                  R                   S35      eU R                   $ )a;  :class:`telegram.User`: User instance for the bot as returned by :meth:`get_me`.

Warning:
    This value is the cached return value of :meth:`get_me`. If the bots profile is
    changed during runtime, this value won't reflect the changes until :meth:`get_me` is
    called again.

.. seealso:: :meth:`initialize`
z$ is not properly initialized. Call `z,.initialize` before accessing this property.)rs   r   r   __name__r   s    r   r   Bot.bot  sU     >>!>>**+ ,NN++,,XZ  ~~r   c                 .    U R                   R                  $ )ze:obj:`int`: Unique identifier for this bot. Shortcut for the corresponding attribute of
:attr:`bot`.
)r   idr   s    r   r   Bot.id  s    
 xx{{r   c                 .    U R                   R                  $ )zW:obj:`str`: Bot's first name. Shortcut for the corresponding attribute of
:attr:`bot`.
)r   
first_namer   s    r   r   Bot.first_name  s    
 xx"""r   c                 .    U R                   R                  $ )z`:obj:`str`: Optional. Bot's last name. Shortcut for the corresponding attribute of
:attr:`bot`.
)r   	last_namer   s    r   r   Bot.last_name  s    
 xx!!!r   c                 .    U R                   R                  $ )zU:obj:`str`: Bot's username. Shortcut for the corresponding attribute of
:attr:`bot`.
)r   usernamer   s    r   r   Bot.username  s    
 xx   r   c                      SU R                    3$ )zC:obj:`str`: Convenience property. Returns the t.me link of the bot.zhttps://t.me/r   r   s    r   linkBot.link  s     t}}o..r   c                 .    U R                   R                  $ )z}:obj:`bool`: Bot's :attr:`telegram.User.can_join_groups` attribute. Shortcut for the
corresponding attribute of :attr:`bot`.
)r   can_join_groupsr   s    r   r   Bot.can_join_groups  s    
 xx'''r   c                 .    U R                   R                  $ )z:obj:`bool`: Bot's :attr:`telegram.User.can_read_all_group_messages` attribute.
Shortcut for the corresponding attribute of :attr:`bot`.
)r   can_read_all_group_messagesr   s    r   r   Bot.can_read_all_group_messages  s    
 xx333r   c                 .    U R                   R                  $ )z:obj:`bool`: Bot's :attr:`telegram.User.supports_inline_queries` attribute.
Shortcut for the corresponding attribute of :attr:`bot`.
)r   supports_inline_queriesr   s    r   r   Bot.supports_inline_queries  s    
 xx///r   c                      SU R                    3$ )zU:obj:`str`: Bot's @username. Shortcut for the corresponding attribute of :attr:`bot`.@r   r   s    r   nameBot.name  s     4==/""r   r   messagecategoryr   c                     [        XUS-   S9  g)zConvenience method to issue a warning. This method is here mostly to make it easier
for ExtBot to add 1 level to all warning calls.
r   )r   r   r   NrR   )clsr   r   r   s       r   r   	Bot._warn  s     	WJNKr   
file_inputr@   tg_typefilenameattachra   c                 0    [        UUUUU R                  S9$ )N)r   r   r   r   r   )rI   ru   )r   r   r   r   r   s        r   _parse_file_inputBot._parse_file_input  s&      !''
 	
r   datac                    UR                  5        GH4  u  p#[        U[        5      (       aZ  [        R                  " U5      nUR	                  5          [
        R                  " UR                  5      Ul        SSS5        XAU'   Mu  US:X  a  [        U[        5      (       a  [        US   [        5      (       dt  U Vs/ s H  n[        R                  " U5      PM     nnU HA  nUR	                  5          [
        R                  " UR                  5      Ul        SSS5        MC     XaU'   GM  [
        R                  " U5      X'   GM7     g! , (       d  f       N= fs  snf ! , (       d  f       M  = f)a  This method is here to make ext.Defaults work. Because we need to be able to tell
e.g. `send_message(chat_id, text)` from `send_message(chat_id, text, parse_mode=None)`, the
default values for `parse_mode` etc are not `None` but `DEFAULT_NONE`. While this *could*
be done in ExtBot instead of Bot, shortcuts like `Message.reply_text` need to work for both
Bot and ExtBot, so they also have the `DEFAULT_NONE` default values.

This makes it necessary to convert `DefaultValue(obj)` to `obj` at some point between
`Message.reply_text` and the request to TG. Doing this here in a centralized manner is a
rather clean and minimally invasive solution, i.e. the link between tg and tg.ext is as
small as possible.
See also _insert_defaults_for_ilq
ExtBot overrides this method to actually insert default values.

If in the future we come up with a better way of making `Defaults` work, we can cut this
link as well.
Nmediar   )
itemsr   r$   copy	_unfrozenrG   	get_value
parse_moder   r%   )r   r   keyvalnewr   	copy_lists          r   _insert_defaultsBot._insert_defaults&  s   ( 

HC#z**iin]]_%1%;%;CNN%KCN %S	wsH--"3q6>:: <??3%TYYu-3	?&E*+7+A+A%BRBR+S( +* ' &S	 )2237	+ %
 %_ @**s   &E= E4&E!
E	!
E0read_timeoutwrite_timeoutconnect_timeoutpool_timeoutr   endpointr  r  r	  r
  r   c          	         #    Uc  0 nU(       a  UR                  U5        U R                  U5        UR                  5        VV	s0 s H  u  pU	c  M
  X_M     nnn	U R                  UUUUUUS9I S h  vN $ s  sn	nf  N
7f)N)r  r   r  r  r	  r
  )updater  r   _do_post)
r   r  r   r  r  r	  r
  r   r   values
             r   _post	Bot._postQ  s      <DKK
# 	d# .2ZZ\O\zsU

\O]]%'+% # 
 
 	
 P
s$   AA>	A6A6A>1A<2A>)r  r  r	  r
  c          
        #    [        UR                  5        VVs/ s H  u  px[        R                  " Xx5      PM     snnS9n	US:X  a  U R                  S   OU R                  S   n
U R
                  R                  SX5        U
R                  U R                   SU 3U	UUUUS9I S h  vN nU R
                  R                  SX5        U$ s  snnf  N(7f)	N)
parameters
getUpdatesr   r   z2Calling Bot API endpoint `%s` with parameters `%s`/)urlrequest_datar  r  r	  r
  z=Call to Bot API endpoint `%s` finished with return value `%s`)	rZ   r   r\   
from_inputrw   _LOGGERdebugpostrr   )r   r  r   r  r  r	  r
  r   r  r  r|   results               r   r  Bot._do_postt  s      #RVR\R\R^_R^JC(33C?R^_
 '/,&>$--"DMMRSDTOQY`||>>"!H:.%%'+% $ 
 
 	KX	
 % `
s   C"C
A,C)C*)C)allow_sending_without_replyreply_to_message_idr  r  r	  r
  r   disable_notificationreply_markupprotect_contentmessage_thread_idcaptionr   caption_entitiesri   link_preview_optionsrh   reply_parametersr>   business_connection_idmessage_effect_idallow_paid_broadcastr  r  c                *  #    U[         La  Ub  [        S5      eUb  Ub  [        S5      eUb
  [        UUS9nUR                  UUUU	UU
UUUUUUS.5        U R	                  UUUUUUUS9I Sh  vN nUSL a  U$ [
        R                  " UU 5      $  N"7f)a  Protected method to send or edit messages of any type.

It is here to reduce repetition of if-else closes in the different bot methods,
i.e. this method takes care of adding its parameters to `data` if appropriate.

Depending on the bot method, returns either `True` or the message.
However, it's hard to tell mypy which methods expects which of these return values and
using `Any` instead saves us a lot of `type: ignore` comments
NL`allow_sending_without_reply` and `reply_parameters` are mutually exclusive.D`reply_to_message_id` and `reply_parameters` are mutually exclusive.
message_idr  )r*  r(  r$  r%  r   r&  r#  r)  r   r"  r!  r'  r  T)rF   
ValueErrorr>   r  r  r6   de_json)r   r  r   r   r!  r"  r#  r$  r   r%  r&  r'  r(  r)  r*  r  r  r  r  r	  r
  r   r  s                          r   _send_messageBot._send_message  s     H 'l:?O?[^  */?/KV  *..,G 
 	(<*@"$4(<(<%6%6(#2 ,$4	
" zz%'+%! " 
 
 T>Mvt,,
s   A,B.B/#Bc                   #    U R                   (       a  U R                  R                  S5        g[        R                  " U R
                  S   R                  5       U R
                  S   R                  5       5      I Sh  vN    U R                  5       I Sh  vN   SU l         g N% N! [         a  n[        SU R                   S35      UeSnAff = f7f)zInitialize resources used by this class. Currently calls :meth:`get_me` to
cache :attr:`bot` and calls :meth:`telegram.request.BaseRequest.initialize` for
the request objects used by this bot.

.. seealso:: :meth:`shutdown`

.. versionadded:: 20.0
z This Bot is already initialized.Nr   r   zThe token `z` was rejected by the server.T)
rt   r  r  asynciogatherrw   r   get_merX   rx   )r   excs     r   r   Bot.initialize  s      LLABnnT]]1-88:DMM!<L<W<W<YZZZ	b++- ! 	[   	bT[[M9VWX^aa	bsH   A>C B&CB* B(B* 	C(B* *
C4CCCc                 "  #    U R                   (       d  U R                  R                  S5        g[        R                  " U R
                  S   R                  5       U R
                  S   R                  5       5      I Sh  vN   SU l         g N7f)zStop & clear resources used by this class. Currently just calls
:meth:`telegram.request.BaseRequest.shutdown` for the request objects used by this bot.

.. seealso:: :meth:`initialize`

.. versionadded:: 20.0
z)This Bot is already shut down. Returning.Nr   r   F)rt   r  r  r5  r6  rw   r   r   s    r   r   Bot.shutdown   sl        LLJKnnT]]1-668$--:J:S:S:UVVV! 	Ws   A>B BBreturn_typec          	        #    [        X5      (       a  U R                  SU SU S3SS9  [        U5      n U R                  UUUUUUS9I Sh  vN n	Ub  [        U	[        5      (       a  U	$ [        U	[        5      (       a  UR                  X5      $ UR                  X5      $  NU! [         a6  n
U R
                  (       a  [        SU S	35      U
e[	        S
U S35      U
eSn
A
ff = f7f)a  Do a request to the Telegram API.

This method is here to make it easier to use new API methods that are not yet supported
by this library.

Hint:
    Since PTB does not know which arguments are passed to this method, some caution is
    necessary in terms of PTBs utility functionalities. In particular

    * passing objects of any class defined in the :mod:`telegram` module is supported
    * when uploading files, a :class:`telegram.InputFile` must be passed as the value for
      the corresponding argument. Passing a file path or file-like object will not work.
      File paths will work only in combination with :paramref:`~Bot.local_mode`.
    * when uploading files, PTB can still correctly determine that
      a special write timeout value should be used instead of the default
      :paramref:`telegram.request.HTTPXRequest.write_timeout`.
    * insertion of default values specified via :class:`telegram.ext.Defaults` will not
      work (only relevant for :class:`telegram.ext.ExtBot`).
    * The only exception is :class:`telegram.ext.Defaults.tzinfo`, which will be correctly
      applied to :class:`datetime.datetime` objects.

.. versionadded:: 20.8

Args:
    endpoint (:obj:`str`): The API endpoint to use, e.g. ``getMe`` or ``get_me``.
    api_kwargs (:obj:`dict`, optional): The keyword arguments to pass to the API call.
        If not specified, no arguments are passed.
    return_type (:class:`telegram.TelegramObject`, optional): If specified, the result of
        the API call will be deserialized into an instance of this class or tuple of
        instances of this class. If not specified, the raw result of the API call will be
        returned.

Returns:
    The result of the API call. If :paramref:`return_type` is not specified, this is a
    :obj:`dict` or :obj:`bool`, otherwise an instance of :paramref:`return_type` or a
    tuple of :paramref:`return_type`.

Raises:
    :class:`telegram.error.TelegramError`
zPlease use 'Bot.z"' instead of 'Bot.do_api_request("z", ...)'r   r   )r   r  r  r	  r
  Nz
Endpoint 'z' not found in Bot APIz?Either the bot token was rejected by Telegram or the endpoint 'z' does not exist.)hasattrr   rL   r  rX   rt   rW   r   boollistde_listr1  )r   r  r   r<  r  r  r	  r
  camel_case_endpointr  r8  s              r   do_api_requestBot.do_api_request  s-    f 4""JJ&xj 1--5JiA    ,H5	::#%)+ /) &  F0 *VT":":Mfd##&&v44""600;  	   & !4 55KL '((9; 	s;   3C(B% B#B% AC(#B% %
C%/1C  C%%C(c          	         #    U R                  SUUUUUS9I Sh  vN n[        R                  " X`5      U l        U R                  $  N+7f)a  A simple method for testing your bot's auth token. Requires no parameters.

Returns:
    :class:`telegram.User`: A :class:`telegram.User` instance representing that bot if the
    credentials are valid, :obj:`None` otherwise.

Raises:
    :class:`telegram.error.TelegramError`

getMer  N)r  rB   r1  rs   r   r  r  r	  r
  r   r  s          r   r7  
Bot.get_mel  sR     & zz%'+%! " 
 
 f3~~
s   AA,A)r  r  disable_web_page_previewr  r  r	  r
  r   chat_idtextentitiesrI  c                   #    XUS.n[        UU	5      n	U R                  SUUUUUUUUUU	U
UUUUUUUS9I Sh  vN $  N7f)a  Use this method to send text messages.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    text (:obj:`str`): Text of the message to be sent. Max
        :tg-const:`telegram.constants.MessageLimit.MAX_TEXT_LENGTH` characters after
        entities parsing.
    parse_mode (:obj:`str`): |parse_mode|
    entities (Sequence[:class:`telegram.MessageEntity`], optional): Sequence of special
        entities that appear in message text, which can be specified instead of
        :paramref:`parse_mode`.

        .. versionchanged:: 20.0
            |sequenceargs|
    link_preview_options (:obj:`LinkPreviewOptions`, optional): Link preview generation
        options for the message. Mutually exclusive with
        :paramref:`disable_web_page_preview`.

        .. versionadded:: 20.8

    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    disable_web_page_preview (:obj:`bool`, optional): Disables link previews for links in
        this message. Convenience parameter for setting :paramref:`link_preview_options`.
        Mutually exclusive with :paramref:`link_preview_options`.

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`link_preview_options` replacing this
            argument. PTB will automatically convert this argument to that one, but
            for advanced options, please use :paramref:`link_preview_options` directly.

        .. versionchanged:: 21.0
            |keyword_only_arg|

Returns:
    :class:`telegram.Message`: On success, the sent message is returned.

Raises:
    :exc:`ValueError`: If both :paramref:`disable_web_page_preview` and
        :paramref:`link_preview_options` are passed.
    :class:`telegram.error.TelegramError`: For other errors.

)rJ  rK  rL  sendMessage)r  r   r!  r  r"  r#  r(  r   r&  r'  r)  r*  r  r  r	  r
  r   NrD   r2  )r   rJ  rK  r   rL  r   r"  r!  r#  r&  r'  r(  r)  r*  r  r  rI  r  r  r	  r
  r   r   s                          r   send_messageBot.send_message  s|     \ &-Q12JL`a'' 3!5%(C+/#9!!5-/!5%'+%!' ( 
 
 	
 
s   6?=?r/  c          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to delete a message, including service messages, with the following
limitations:

- A message can only be deleted if it was sent less than 48 hours ago.
- Service messages about a supergroup, channel, or forum topic creation can't be deleted.
- A dice message in a private chat can only be deleted if it was sent more than 24
  hours ago.
- Bots can delete outgoing messages in private chats, groups, and supergroups.
- Bots can delete incoming messages in private chats.
- Bots granted :attr:`~telegram.ChatMemberAdministrator.can_post_messages` permissions
  can delete outgoing messages in channels.
- If the bot is an administrator of a group, it can delete any message there.
- If the bot has :attr:`~telegram.ChatMemberAdministrator.can_delete_messages`
  permission in a supergroup or a channel, it can delete any message there.

..
    The method CallbackQuery.delete_message() will not be found when automatically
    generating "Shortcuts" admonitions for Bot methods because it has no calls
    to Bot methods in its return statement(s). So it is manually included in "See also".

.. seealso::
    :meth:`telegram.CallbackQuery.delete_message` (calls :meth:`delete_message`
    indirectly, via :meth:`telegram.Message.delete`)

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    message_id (:obj:`int`): Identifier of the message to delete.

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r/  deleteMessager  Nr  )	r   rJ  r/  r  r  r	  r
  r   r   s	            r   delete_messageBot.delete_message  sE     ^ &-GZZ%'+%!   
 
 	
 
   &$&message_idsc          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to delete multiple messages simultaneously. If some of the specified
messages can't be found, they are skipped.

.. versionadded:: 20.8

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    message_ids (Sequence[:obj:`int`]): A list of
        :tg-const:`telegram.constants.BulkRequestLimit.MIN_LIMIT`-
        :tg-const:`telegram.constants.BulkRequestLimit.MAX_LIMIT` identifiers of messages
        to delete. See :meth:`delete_message` for limitations on which messages can be
        deleted.

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

Raises:
    :class:`telegram.error.TelegramError`
)rJ  rX  deleteMessagesr  NrT  )	r   rJ  rX  r  r  r	  r
  r   r   s	            r   delete_messagesBot.delete_messagesK  sD     > &-IZZ%'+%!   
 
 	
 
rW  from_chat_idc                Z   #    UUUS.nU R                  SUUUUUUU	U
US9
I Sh  vN $  N7f)a  
Use this method to forward messages of any kind. Service messages can't be forwarded.

Note:
    Since the release of Bot API 5.5 it can be impossible to forward messages from
    some chats. Use the attributes :attr:`telegram.Message.has_protected_content` and
    :attr:`telegram.ChatFullInfo.has_protected_content` to check this.

    As a workaround, it is still possible to use :meth:`copy_message`. However, this
    behaviour is undocumented and might be changed by Telegram.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    from_chat_id (:obj:`int` | :obj:`str`): Unique identifier for the chat where the
        original message was sent (or channel username in the format ``@channelusername``).
    message_id (:obj:`int`): Message identifier in the chat specified in
        :paramref:`from_chat_id`.
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`
)rJ  r]  r/  forwardMessage)r   r"  r#  r  r  r	  r
  r   Nr2  )r   rJ  r]  r/  r   r"  r#  r  r  r	  r
  r   r   s                r   forward_messageBot.forward_messageu  sZ     ^ ($
 ''!5+/%'+%! ( 
 
 	
 
   "+)+.c          
         #    UUUUUUS.nU R                  SUUUU	U
US9I Sh  vN n[        R                  " X5      $  N7f)a  
Use this method to forward messages of any kind. If some of the specified messages can't be
found or forwarded, they are skipped. Service messages and messages with protected content
can't be forwarded. Album grouping is kept for forwarded messages.

.. versionadded:: 20.8

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    from_chat_id (:obj:`int` | :obj:`str`): Unique identifier for the chat where the
        original message was sent (or channel username in the format ``@channelusername``).
    message_ids (Sequence[:obj:`int`]): A list of
        :tg-const:`telegram.constants.BulkRequestLimit.MIN_LIMIT`-
        :tg-const:`telegram.constants.BulkRequestLimit.MAX_LIMIT` identifiers of messages
        in the chat :paramref:`from_chat_id` to forward. The identifiers must be specified
        in a strictly increasing order.
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

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

Raises:
    :class:`telegram.error.TelegramError`
)rJ  r]  rX  r   r"  r#  forwardMessagesr  Nr  r7   rA  )r   rJ  r]  rX  r   r"  r#  r  r  r	  r
  r   r   r  s                 r   forward_messagesBot.forward_messages  sh     V (&$8.!2
 zz%'+%! " 
 
   ..
s   "A?A)r  r  r   r  r  r	  r
  r   photor'   has_spoilershow_caption_above_mediac                   #    UU R                  U[        US9U
US.nU R                  SUUUUUUU	UUUUUUUUUUUUS9I Sh  vN $  N7f)a  Use this method to send photos.

.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    photo (:obj:`str` | :term:`file object` | :class:`~telegram.InputFile` | :obj:`bytes`                 | :class:`pathlib.Path` | :class:`telegram.PhotoSize`): Photo to send.
        |fileinput|
        Lastly you can pass an existing :class:`telegram.PhotoSize` object to send.

        Caution:
            * The photo must be at most 10MB in size.
            * The photo's width and height must not exceed 10000 in total.
            * Width and height ratio must be at most 20.

        .. versionchanged:: 13.2
           Accept :obj:`bytes` as input.

        .. versionchanged:: 20.0
            File paths as input is also accepted for bots *not* running in
            :paramref:`~telegram.Bot.local_mode`.
    caption (:obj:`str`, optional): Photo caption (may also be used when resending photos
        by file_id), 0-:tg-const:`telegram.constants.MessageLimit.CAPTION_LENGTH`
        characters after entities parsing.
    parse_mode (:obj:`str`, optional): |parse_mode|
    caption_entities (Sequence[:class:`telegram.MessageEntity`], optional):
        |caption_entities|

        .. versionchanged:: 20.0
            |sequenceargs|
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    has_spoiler (:obj:`bool`, optional): Pass :obj:`True` if the photo needs to be covered
        with a spoiler animation.

        .. versionadded:: 20.0
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7
    show_caption_above_media (:obj:`bool`, optional): Pass |show_cap_above_med|

        .. versionadded:: 21.3

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    filename (:obj:`str`, optional): Custom file name for the photo, when uploading a
        new file. Convenience parameter, useful e.g. when sending files generated by the
        :obj:`tempfile` module.

        .. versionadded:: 13.1

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

r   )rJ  ri  rj  rk  	sendPhotor  r   r!  r  r"  r#  r$  r   r%  r'  r  r  r	  r
  r   r(  r)  r*  N)r   r'   r2  )r   rJ  ri  r$  r   r!  r   r%  r"  r#  rj  r'  r(  r)  r*  rk  r  r  r   r  r  r	  r
  r   r   s                            r   
send_photoBot.send_photo  s     v ++E9x+P&(@	
 '' 3!5%(C+/!--%'+%!#9/!5) ( 
 
 	
 
s   A A	AA	audior   duration	performertitle	thumbnailc                   #    UU R                  U[        US9UUUU(       a  U R                  USS9OSS.nU R                  SUUUUUUUUU	U
UUUUUUUUUS9I Sh  vN $  N7f)az  
Use this method to send audio files, if you want Telegram clients to display them in the
music player. Your audio must be in the ``.mp3`` or ``.m4a`` format.

Bots can currently send audio files of up to
:tg-const:`telegram.constants.FileSizeLimit.FILESIZE_UPLOAD` in size, this limit may be
changed in the future.

For sending voice messages, use the :meth:`send_voice` method instead.

.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`

.. versionchanged:: 20.5
    |removed_thumb_arg|

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    audio (:obj:`str` | :term:`file object` | :class:`~telegram.InputFile` |                 :obj:`bytes` | :class:`pathlib.Path` | :class:`telegram.Audio`): Audio file to
        send. |fileinput|
        Lastly you can pass an existing :class:`telegram.Audio` object to send.

        .. versionchanged:: 13.2
           Accept :obj:`bytes` as input.

        .. versionchanged:: 20.0
            File paths as input is also accepted for bots *not* running in
            :paramref:`~telegram.Bot.local_mode`.
    caption (:obj:`str`, optional): Audio caption,
        0-:tg-const:`telegram.constants.MessageLimit.CAPTION_LENGTH` characters after
        entities parsing.
    parse_mode (:obj:`str`, optional): |parse_mode|
    caption_entities (Sequence[:class:`telegram.MessageEntity`], optional):
        |caption_entities|

        .. versionchanged:: 20.0
            |sequenceargs|
    duration (:obj:`int`, optional): Duration of sent audio in seconds.
    performer (:obj:`str`, optional): Performer.
    title (:obj:`str`, optional): Track name.
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    thumbnail (:term:`file object` | :obj:`bytes` | :class:`pathlib.Path` | :obj:`str`,                 optional): |thumbdocstring|

        .. versionadded:: 20.2
    reply_parameters (:obj:`ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    filename (:obj:`str`, optional): Custom file name for the audio, when uploading a
        new file. Convenience parameter, useful e.g. when sending files generated by the
        :obj:`tempfile` module.

        .. versionadded:: 13.1

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

rm  Tr   N)rJ  rr  rs  rt  ru  rv  	sendAudioro  )r   r   r2  )r   rJ  rr  rs  rt  ru  r$  r   r!  r   r%  r"  r#  rv  r'  r(  r)  r*  r  r  r   r  r  r	  r
  r   r   s                              r   
send_audioBot.send_audio  s     F ++E58+L "KT//	$/GZ^
 '' 3!5%(C+/!--%'+%!#9/!5) ( 
 
 	
 
s   AA"A A"documentr"   disable_content_type_detectionc                   #    UU R                  U[        US9UU(       a  U R                  USS9OSS.nU R                  SUUUUUU	U
UUUUUUUUUUUUS9I Sh  vN $  N7f)aR  
Use this method to send general files.

Bots can currently send files of any type of up to
:tg-const:`telegram.constants.FileSizeLimit.FILESIZE_UPLOAD` in size, this limit may be
changed in the future.

.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`

.. versionchanged:: 20.5
    |removed_thumb_arg|

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    document (:obj:`str` | :term:`file object` | :class:`~telegram.InputFile` |                 :obj:`bytes` | :class:`pathlib.Path` | :class:`telegram.Document`): File to send.
        |fileinput|
        Lastly you can pass an existing :class:`telegram.Document` object to send.

        Note:
            Sending by URL will currently only work ``GIF``, ``PDF`` & ``ZIP`` files.

        .. versionchanged:: 13.2
           Accept :obj:`bytes` as input.

        .. versionchanged:: 20.0
            File paths as input is also accepted for bots *not* running in
            :paramref:`~telegram.Bot.local_mode`.
    caption (:obj:`str`, optional): Document caption (may also be used when resending
        documents by file_id), 0-:tg-const:`telegram.constants.MessageLimit.CAPTION_LENGTH`
        characters after entities parsing.
    disable_content_type_detection (:obj:`bool`, optional): Disables automatic server-side
        content type detection for files uploaded using multipart/form-data.
    parse_mode (:obj:`str`, optional): |parse_mode|
    caption_entities (Sequence[:class:`telegram.MessageEntity`], optional):
        |caption_entities|

        .. versionchanged:: 20.0
            |sequenceargs|
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    thumbnail (:term:`file object` | :obj:`bytes` | :class:`pathlib.Path` | :obj:`str`,                 optional): |thumbdocstring|

        .. versionadded:: 20.2
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    filename (:obj:`str`, optional): Custom file name for the document, when uploading a
        new file. Convenience parameter, useful e.g. when sending files generated by the
        :obj:`tempfile` module.

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

rm  Trx  N)rJ  r|  r}  rv  sendDocumentro  )r   r"   r2  )r   rJ  r|  r$  r   r!  r   r}  r%  r"  r#  rv  r'  r(  r)  r*  r  r  r   r  r  r	  r
  r   r   s                            r   send_documentBot.send_document.  s     | ..xH.U.LKT//	$/GZ^	
 '' 3!5%(C+/!--%'+%!#9/!5) ( 
 
 	
 
s   AA AA stickerr)   emojic                   #    UU R                  U[        5      US.nU R                  SUUUUUUUUUUUUUU	U
US9I Sh  vN $  N7f)a{  
Use this method to send static ``.WEBP``, animated ``.TGS``, or video ``.WEBM`` stickers.

.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    sticker (:obj:`str` | :term:`file object` | :class:`~telegram.InputFile` |                 :obj:`bytes` | :class:`pathlib.Path` | :class:`telegram.Sticker`): Sticker to send.
        |fileinput| Video stickers can only be sent by a ``file_id``. Video and animated
        stickers can't be sent via an HTTP URL.

        Lastly you can pass an existing :class:`telegram.Sticker` object to send.

        .. versionchanged:: 13.2
           Accept :obj:`bytes` as input.

        .. versionchanged:: 20.0
            File paths as input is also accepted for bots *not* running in
            :paramref:`~telegram.Bot.local_mode`.
    emoji (:obj:`str`, optional): Emoji associated with the sticker; only for just
        uploaded stickers

        .. versionadded:: 20.2
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  r  sendStickerr  r   r!  r  r"  r#  r'  r  r  r	  r
  r   r(  r)  r*  N)r   r)   r2  )r   rJ  r  r   r!  r"  r#  r  r'  r(  r)  r*  r  r  r  r  r	  r
  r   r   s                       r   send_stickerBot.send_sticker  s|     F --gw?

 '' 3!5%(C+/-%'+%!#9/!5# ( 
 
 	
 
s   =AA Avideor,   widthheightsupports_streamingc                   #    UU R                  U[        US9UUUU
U(       a  U R                  USS9OSUUS.	nU R                  SUUUUUUUUU	UUUUUUUUUUS9I Sh  vN $  N7f)a  Use this method to send video files, Telegram clients support mp4 videos
(other formats may be sent as Document).

Bots can currently send video files of up to
:tg-const:`telegram.constants.FileSizeLimit.FILESIZE_UPLOAD` in size, this limit may be
changed in the future.

Note:
    :paramref:`thumbnail` will be ignored for small video files, for which Telegram can
    easily generate thumbnails. However, this behaviour is undocumented and might be
    changed by Telegram.

.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`

.. versionchanged:: 20.5
    |removed_thumb_arg|

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    video (:obj:`str` | :term:`file object` | :class:`~telegram.InputFile` | :obj:`bytes`                 | :class:`pathlib.Path` | :class:`telegram.Video`): Video file to send.
        |fileinput|
        Lastly you can pass an existing :class:`telegram.Video` object to send.

        .. versionchanged:: 13.2
           Accept :obj:`bytes` as input.

        .. versionchanged:: 20.0
            File paths as input is also accepted for bots *not* running in
            :paramref:`~telegram.Bot.local_mode`.
    duration (:obj:`int`, optional): Duration of sent video in seconds.
    width (:obj:`int`, optional): Video width.
    height (:obj:`int`, optional): Video height.
    caption (:obj:`str`, optional): Video caption (may also be used when resending videos
        by file_id), 0-:tg-const:`telegram.constants.MessageLimit.CAPTION_LENGTH`
        characters after entities parsing.
    parse_mode (:obj:`str`, optional): |parse_mode|
    caption_entities (Sequence[:class:`telegram.MessageEntity`], optional):
        |caption_entities|

        .. versionchanged:: 20.0
            |sequenceargs|
    supports_streaming (:obj:`bool`, optional): Pass :obj:`True`, if the uploaded video is
        suitable for streaming.
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    has_spoiler (:obj:`bool`, optional): Pass :obj:`True` if the video needs to be covered
        with a spoiler animation.

        .. versionadded:: 20.0
    thumbnail (:term:`file object` | :obj:`bytes` | :class:`pathlib.Path` | :obj:`str`,                 optional): |thumbdocstring|

        .. versionadded:: 20.2
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7
    show_caption_above_media (:obj:`bool`, optional): Pass |show_cap_above_med|

        .. versionadded:: 21.3

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    filename (:obj:`str`, optional): Custom file name for the video, when uploading a
        new file. Convenience parameter, useful e.g. when sending files generated by the
        :obj:`tempfile` module.

        .. versionadded:: 13.1

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

rm  Trx  N)	rJ  r  rs  r  r  r  rv  rj  rk  	sendVideoro  )r   r,   r2  )r   rJ  r  rs  r$  r   r!  r  r  r   r  r%  r"  r#  rj  rv  r'  r(  r)  r*  rk  r  r  r   r  r  r	  r
  r   r   s                                 r   
send_videoBot.send_videoD  s     b ++E58+L "4KT//	$/GZ^&(@

 '' 3!5%(C+/!--%'+%!#9/!5) ( 
 
 	
 
s   AA%A#A%
video_noter-   lengthc                   #    UU R                  U[        US9UUU	(       a  U R                  U	SS9OSS.nU R                  SUUUUUUUU
UUUUUUUUS9I Sh  vN $  N7f)a  
As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long.
Use this method to send video messages.

Note:
    :paramref:`thumbnail` will be ignored for small video files, for which Telegram can
    easily generate thumbnails. However, this behaviour is undocumented and might be
    changed by Telegram.

.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`

.. versionchanged:: 20.5
    |removed_thumb_arg|

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    video_note (:obj:`str` | :term:`file object` | :class:`~telegram.InputFile` |                 :obj:`bytes` | :class:`pathlib.Path` | :class:`telegram.VideoNote`): Video note
        to send.
        Pass a file_id as String to send a video note that exists on the Telegram
        servers (recommended) or upload a new video using multipart/form-data.
        |uploadinput|
        Lastly you can pass an existing :class:`telegram.VideoNote` object to send.
        Sending video notes by a URL is currently unsupported.

        .. versionchanged:: 13.2
           Accept :obj:`bytes` as input.

        .. versionchanged:: 20.0
            File paths as input is also accepted for bots *not* running in
            :paramref:`~telegram.Bot.local_mode`.
    duration (:obj:`int`, optional): Duration of sent video in seconds.
    length (:obj:`int`, optional): Video width and height, i.e. diameter of the video
        message.
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    thumbnail (:term:`file object` | :obj:`bytes` | :class:`pathlib.Path` | :obj:`str`,                 optional): |thumbdocstring|

        .. versionadded:: 20.2
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    filename (:obj:`str`, optional): Custom file name for the video note, when uploading a
        new file. Convenience parameter, useful e.g. when sending files generated by the
        :obj:`tempfile` module.

        .. versionadded:: 13.1

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

rm  Trx  N)rJ  r  rs  r  rv  sendVideoNoter  )r   r-   r2  )r   rJ  r  rs  r  r   r!  r"  r#  rv  r'  r(  r)  r*  r  r  r   r  r  r	  r
  r   r   s                          r   send_video_noteBot.send_video_note  s     r 00YQY0Z KT//	$/GZ^
 '' 3!5%(C+/-%'+%!#9/!5# ( 
 
 	
 
s   AAAA	animationr   c                   #    UU R                  U[        US9UUUU(       a  U R                  USS9OSUUS.nU R                  SUUUU	UUUUUU
UUUUUUUUUS9I Sh  vN $  N7f)a  
Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound).
Bots can currently send animation files of up to
:tg-const:`telegram.constants.FileSizeLimit.FILESIZE_UPLOAD` in size, this limit may be
changed in the future.

Note:
    :paramref:`thumbnail` will be ignored for small files, for which Telegram can easily
    generate thumbnails. However, this behaviour is undocumented and might be changed
    by Telegram.

.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`

.. versionchanged:: 20.5
    |removed_thumb_arg|

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    animation (:obj:`str` | :term:`file object` | :class:`~telegram.InputFile` |                 :obj:`bytes` | :class:`pathlib.Path` | :class:`telegram.Animation`): Animation to
        send. |fileinput|
        Lastly you can pass an existing :class:`telegram.Animation` object to send.

        .. versionchanged:: 13.2
           Accept :obj:`bytes` as input.
    duration (:obj:`int`, optional): Duration of sent animation in seconds.
    width (:obj:`int`, optional): Animation width.
    height (:obj:`int`, optional): Animation height.
    caption (:obj:`str`, optional): Animation caption (may also be used when resending
        animations by file_id),
        0-:tg-const:`telegram.constants.MessageLimit.CAPTION_LENGTH` characters after
        entities parsing.
    parse_mode (:obj:`str`, optional): |parse_mode|
    caption_entities (Sequence[:class:`telegram.MessageEntity`], optional):
        |caption_entities|

        .. versionchanged:: 20.0
            |sequenceargs|
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    has_spoiler (:obj:`bool`, optional): Pass :obj:`True` if the animation needs to be
        covered with a spoiler animation.

        .. versionadded:: 20.0
    thumbnail (:term:`file object` | :obj:`bytes` | :class:`pathlib.Path` | :obj:`str`,                 optional): |thumbdocstring|

        .. versionadded:: 20.2
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7
    show_caption_above_media (:obj:`bool`, optional): Pass |show_cap_above_med|

        .. versionadded:: 21.3

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    filename (:obj:`str`, optional): Custom file name for the animation, when uploading a
        new file. Convenience parameter, useful e.g. when sending files generated by the
        :obj:`tempfile` module.

        .. versionadded:: 13.1

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

rm  Trx  N)rJ  r  rs  r  r  rv  rj  rk  sendAnimationro  )r   r   r2  )r   rJ  r  rs  r  r  r$  r   r   r!  r%  r"  r#  rj  rv  r'  r(  r)  r*  rk  r  r  r   r  r  r	  r
  r   r   s                                r   send_animationBot.send_animation  s     T //	9x/X KT//	$/GZ^&(@	
 '' 3!5%(C+/!--%'+%!#9/!5) ( 
 
 	
 
s   AA$A"A$voicer.   c                   #    UU R                  U[        US9US.nU R                  SUUUUUU	U
UUUUUUUUUUUUS9I Sh  vN $  N7f)a  
Use this method to send audio files, if you want Telegram clients to display the file
as a playable voice message. For this to work, your audio must be in an ``.ogg`` file
encoded with OPUS , or in .MP3 format, or in .M4A format (other formats may be sent as
:class:`~telegram.Audio` or :class:`~telegram.Document`). Bots can currently send voice
messages of up to :tg-const:`telegram.constants.FileSizeLimit.FILESIZE_UPLOAD` in size,
this limit may be changed in the future.

Note:
    To use this method, the file must have the type :mimetype:`audio/ogg` and be no more
    than :tg-const:`telegram.constants.FileSizeLimit.VOICE_NOTE_FILE_SIZE` in size.
    :tg-const:`telegram.constants.FileSizeLimit.VOICE_NOTE_FILE_SIZE`-
    :tg-const:`telegram.constants.FileSizeLimit.FILESIZE_DOWNLOAD` voice notes will be
    sent as files.

.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    voice (:obj:`str` | :term:`file object` | :class:`~telegram.InputFile` | :obj:`bytes`                 | :class:`pathlib.Path` | :class:`telegram.Voice`): Voice file to send.
        |fileinput|
        Lastly you can pass an existing :class:`telegram.Voice` object to send.

        .. versionchanged:: 13.2
           Accept :obj:`bytes` as input.

        .. versionchanged:: 20.0
            File paths as input is also accepted for bots *not* running in
            :paramref:`~telegram.Bot.local_mode`.
    caption (:obj:`str`, optional): Voice message caption,
        0-:tg-const:`telegram.constants.MessageLimit.CAPTION_LENGTH` characters after
        entities parsing.
    parse_mode (:obj:`str`, optional): |parse_mode|
    caption_entities (Sequence[:class:`telegram.MessageEntity`], optional):
        |caption_entities|

        .. versionchanged:: 20.0
            |sequenceargs|
    duration (:obj:`int`, optional): Duration of the voice message in seconds.
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    filename (:obj:`str`, optional): Custom file name for the voice, when uploading a
        new file. Convenience parameter, useful e.g. when sending files generated by the
        :obj:`tempfile` module.

        .. versionadded:: 13.1

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

rm  )rJ  r  rs  	sendVoicero  N)r   r.   r2  )r   rJ  r  rs  r$  r   r!  r   r%  r"  r#  r'  r(  r)  r*  r  r  r   r  r  r	  r
  r   r   s                           r   
send_voiceBot.send_voice6	  s     x ++E58+L 
 '' 3!5%(C+/!--%'+%!#9/!5) ( 
 
 	
 
s   ?AAA)
r  r  r  r  r	  r
  r   r$  r   r%  r   )rb   rc   rd   re   c
       
   
        #    U(       aN  [        [        S U 5       5      [        S U 5       5      [        S U 5       5      /5      (       a  [        S5      eU(       ai  [        R                  " US   5      nUR                  5          UUl        U[
        La  UUl        [        U5      Ul        SSS5        [        U5      nUUS'   U
[
        La  Ub  [        S5      eUb  Ub  [        S5      eUb
  [        UU
S	9nUUUUUUUUU	S
.	nU R                  SUUUUUUS9I Sh  vN n[        R                  " UU 5      $ ! , (       d  f       N= f N,7f)a;  Use this method to send a group of photos, videos, documents or audios as an album.
Documents and audio files can be only grouped in an album with messages of the same type.

Note:
    If you supply a :paramref:`caption` (along with either :paramref:`parse_mode` or
    :paramref:`caption_entities`), then items in :paramref:`media` must have no captions,
    and vice versa.

.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`

.. versionchanged:: 20.0
    Returns a tuple instead of a list.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    media (Sequence[:class:`telegram.InputMediaAudio`,                :class:`telegram.InputMediaDocument`, :class:`telegram.InputMediaPhoto`,                :class:`telegram.InputMediaVideo`]): An array
        describing messages to be sent, must include
        :tg-const:`telegram.constants.MediaGroupLimit.MIN_MEDIA_LENGTH`-
        :tg-const:`telegram.constants.MediaGroupLimit.MAX_MEDIA_LENGTH` items.

        .. versionchanged:: 20.0
            |sequenceargs|
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    caption (:obj:`str`, optional): Caption that will be added to the
        first element of :paramref:`media`, so that it will be used as caption for the
        whole media group.
        Defaults to :obj:`None`.

        .. versionadded:: 20.0
    parse_mode (:obj:`str` | :obj:`None`, optional):
        Parse mode for :paramref:`caption`.
        See the constants in :class:`telegram.constants.ParseMode` for the
        available modes.

        .. versionadded:: 20.0
    caption_entities (Sequence[:class:`telegram.MessageEntity`], optional):
        List of special entities for :paramref:`caption`,
        which can be specified instead of :paramref:`parse_mode`.
        Defaults to :obj:`None`.

        .. versionadded:: 20.0

Returns:
    tuple[:class:`telegram.Message`]: An array of the sent Messages.

Raises:
    :class:`telegram.error.TelegramError`
c              3   8   #    U  H  oR                   v   M     g 7fN)r$  .0items     r   	<genexpr>'Bot.send_media_group.<locals>.<genexpr>B
  s     3UTLLU   c              3   8   #    U  H  oR                   v   M     g 7fr  )r%  r  s     r   r  r  C
  s     <ed))er  c              3   D   #    U  H  oR                   [        Lv   M     g 7fr  )r   rF   r  s     r   r  r  E
  s     JEDOO<7Es    z@You can only supply either group caption or media with captions.r   Nr,  r-  r.  )	rJ  r   r   r"  r#  r'  r(  r)  r*  sendMediaGroupr  )anyr0  r   r   r$  rF   r   rE   r%  r@  r>   r  r6   rA  )r   rJ  r   r   r"  r#  r'  r(  r)  r*  r  r  r  r  r	  r
  r   r$  r   r%  item_to_get_captionr   r  s                          r   send_media_groupBot.send_media_group	  s    d s3U33<e<<JEJJ	
 
 _`` #'))E!H"5$..0.5#+\15?'27IJZ7[#4	 1 KE*E!H&l:?O?[^  */?/KV  *..,G  $8.!2 0&<!2$8

 zz%'+%! " 
 
 vt,,a 10L
s+   BE(D=0A1E!E"E=
EE)r  r  locationr  r  r	  r
  r   latitude	longitudelive_periodhorizontal_accuracyheadingproximity_alert_radiusr  c                P  #    Ub  Uc  U(       d  [        S5      eUSL=(       d    USL[        U5      -  (       d  [        S5      e[        U[        5      (       a  UR                  nUR
                  nUUUUUUU	S.nU R                  SUUUUUU
UUUUUUUUUUS9I Sh  vN $  N7f)a  Use this method to send point on the map.

Note:
    You can either supply a :paramref:`latitude` and :paramref:`longitude` or a
    :paramref:`location`.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    latitude (:obj:`float`, optional): Latitude of location.
    longitude (:obj:`float`, optional): Longitude of location.
    horizontal_accuracy (:obj:`int`, optional): The radius of uncertainty for the location,
        measured in meters;
        0-:tg-const:`telegram.constants.LocationLimit.HORIZONTAL_ACCURACY`.
    live_period (:obj:`int`, optional): Period in seconds for which the location will be
        updated, should be between
        :tg-const:`telegram.constants.LocationLimit.MIN_LIVE_PERIOD` and
        :tg-const:`telegram.constants.LocationLimit.MAX_LIVE_PERIOD`, or
        :tg-const:`telegram.constants.LocationLimit.LIVE_PERIOD_FOREVER` for live
        locations that can be edited indefinitely.
    heading (:obj:`int`, optional): For live locations, a direction in which the user is
        moving, in degrees. Must be between
        :tg-const:`telegram.constants.LocationLimit.MIN_HEADING` and
        :tg-const:`telegram.constants.LocationLimit.MAX_HEADING` if specified.
    proximity_alert_radius (:obj:`int`, optional): For live locations, a maximum distance
        for proximity alerts about approaching another chat member, in meters. Must be
        between :tg-const:`telegram.constants.LocationLimit.MIN_PROXIMITY_ALERT_RADIUS`
        and :tg-const:`telegram.constants.LocationLimit.MAX_PROXIMITY_ALERT_RADIUS`
        if specified.
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    location (:class:`telegram.Location`, optional): The location to send.

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

NEEither location or latitude and longitude must be passed as argument.OEither location or latitude and longitude must be passed as argument. Not both.)rJ  r  r  r  r  r  r  sendLocationr  )r0  r?  r   r&   r  r  r2  )r   rJ  r  r  r   r!  r  r  r  r  r"  r#  r'  r(  r)  r*  r  r  r  r  r  r	  r
  r   r   s                            r   send_locationBot.send_location
  s     X %)*?HW  $=	(=hOa  h))((H **I  "#6&&<
 '' 3!5%(C+/-%'+%!#9/!5# ( 
 
 	
 
s   BB&B$ B&)r  r  r  r	  r
  r   inline_message_idr_   c                Z  #    [        XE/5      (       d  U(       d  [        S5      eUSL=(       d    USL[        U5      -  (       d  [        S5      e[        U[        5      (       a  UR
                  nUR                  nUUUUUUUU	U
S.	nU R                  SUUUUUUUUS9	I Sh  vN $  N7f)a
  Use this method to edit live location messages sent by the bot or via the bot
(for inline bots). A location can be edited until its :attr:`telegram.Location.live_period`
expires or editing is explicitly disabled by a call to :meth:`stop_message_live_location`.

Note:
    You can either supply a :paramref:`latitude` and :paramref:`longitude` or a
    :paramref:`location`.

Args:
    chat_id (:obj:`int` | :obj:`str`, optional): Required if :paramref:`inline_message_id`
        is not specified. |chat_id_channel|
    message_id (:obj:`int`, optional): Required if :paramref:`inline_message_id` is not
        specified. Identifier of the message to edit.
    inline_message_id (:obj:`str`, optional): Required if :paramref:`chat_id` and
        :paramref:`message_id` are not specified. Identifier of the inline message.
    latitude (:obj:`float`, optional): Latitude of location.
    longitude (:obj:`float`, optional): Longitude of location.
    horizontal_accuracy (:obj:`float`, optional): The radius of uncertainty for the
        location, measured in meters;
        0-:tg-const:`telegram.constants.LocationLimit.HORIZONTAL_ACCURACY`.
    heading (:obj:`int`, optional): Direction in which the user is moving, in degrees. Must
        be between :tg-const:`telegram.constants.LocationLimit.MIN_HEADING`
        and :tg-const:`telegram.constants.LocationLimit.MAX_HEADING` if specified.
    proximity_alert_radius (:obj:`int`, optional): Maximum distance for proximity alerts
        about approaching another chat member, in meters. Must be between
        :tg-const:`telegram.constants.LocationLimit.MIN_PROXIMITY_ALERT_RADIUS`
        and :tg-const:`telegram.constants.LocationLimit.MAX_PROXIMITY_ALERT_RADIUS`
        if specified.
    reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): An object for a new
        inline keyboard.
    live_period (:obj:`int`, optional): New period in seconds during which the location
        can be updated, starting from the message send date. If
        :tg-const:`telegram.constants.LocationLimit.LIVE_PERIOD_FOREVER` is specified,
        then the location can be updated forever. Otherwise, the new value must not exceed
        the current ``live_period`` by more than a day, and the live location expiration
        date must remain within the next 90 days. If not specified, then ``live_period``
        remains unchanged

        .. versionadded:: 21.2.
    business_connection_id (:obj:`str`, optional): |business_id_str_edit|

        .. versionadded:: 21.4

Keyword Args:
    location (:class:`telegram.Location`, optional): The location to send.

Returns:
    :class:`telegram.Message`: On success, if edited message is not an inline message, the
    edited message is returned, otherwise :obj:`True` is returned.
r  Nr  )	r  r  rJ  r/  r  r  r  r  r  editMessageLiveLocationr!  r(  r  r  r	  r
  r   )allr0  r?  r   r&   r  r  r2  )r   rJ  r/  r  r  r  r!  r  r  r  r  r(  r  r  r  r	  r
  r   r   s                      r   edit_message_live_locationBot.edit_message_live_location  s     R X)**hW  $=	(=hOa  h))((H **I !"$!2#6&<&

 ''%%#9%'+%! ( 

 

 
	
 

s   B"B+$B)%B+c                X   #    UUUS.nU R                  SUUUUUUU	U
S9	I Sh  vN $  N7f)a  Use this method to stop updating a live location message sent by the bot or via the bot
(for inline bots) before :paramref:`~telegram.Location.live_period` expires.

Args:
    chat_id (:obj:`int` | :obj:`str`, optional): Required if :paramref:`inline_message_id`
        is not specified. |chat_id_channel|
    message_id (:obj:`int`, optional): Required if :paramref:`inline_message_id` is not
        specified. Identifier of the sent message with live location to stop.
    inline_message_id (:obj:`str`, optional): Required if :paramref:`chat_id` and
        :paramref:`message_id` are not specified. Identifier of the inline message.
    reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): An object for a new
        inline keyboard.
    business_connection_id (:obj:`str`, optional): |business_id_str_edit|

        .. versionadded:: 21.4

Returns:
    :class:`telegram.Message`: On success, if edited message is not an inline message, the
    edited message is returned, otherwise :obj:`True` is returned.
rJ  r/  r  stopMessageLiveLocationr  Nr`  r   rJ  r/  r  r!  r(  r  r  r	  r
  r   r   s               r   stop_message_live_locationBot.stop_message_live_location  sW     F $!2
 ''%%#9%'+%! ( 

 

 
	
 

   !*(*)r  r  venuer  r  r	  r
  r   addressfoursquare_idfoursquare_typegoogle_place_idgoogle_place_typer  c                   #    U(       d  [        X#XT/5      (       d  [        S5      e[        U5      [        X#XT/5      -  (       d  [        S5      e[	        U[
        5      (       at  UR                  R                  nUR                  R                  nUR                  nUR                  nUR                  nUR                  n	UR                  n
UR                  nUUUUUUU	U
US.	nU R                  SUUUUUUUUUUUUUUUUS9I Sh  vN $  N7f)a/  Use this method to send information about a venue.

Note:
    * You can either supply :paramref:`venue`, or :paramref:`latitude`,
      :paramref:`longitude`, :paramref:`title` and :paramref:`address` and optionally
      :paramref:`foursquare_id` and :paramref:`foursquare_type` or optionally
      :paramref:`google_place_id` and :paramref:`google_place_type`.
    * Foursquare details and Google Place details are mutually exclusive. However, this
      behaviour is undocumented and might be changed by Telegram.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    latitude (:obj:`float`, optional): Latitude of venue.
    longitude (:obj:`float`, optional): Longitude of venue.
    title (:obj:`str`, optional): Name of the venue.
    address (:obj:`str`, optional): Address of the venue.
    foursquare_id (:obj:`str`, optional): Foursquare identifier of the venue.
    foursquare_type (:obj:`str`, optional): Foursquare type of the venue, if known.
        (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or
        "food/icecream".)
    google_place_id (:obj:`str`, optional): Google Places identifier of the venue.
    google_place_type (:obj:`str`, optional): Google Places type of the venue. (See
        `supported types                 <https://developers.google.com/maps/documentation/places/web-service/supported_types>`_.)
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    venue (:class:`telegram.Venue`, optional): The venue to send.

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

zSEither venue or latitude, longitude, address and title must be passed as arguments.z]Either venue or latitude, longitude, address and title must be passed as arguments. Not both.)	rJ  r  r  r  ru  r  r  r  r  	sendVenuer  N)r  r0  r?  r  r   r+   r  r  r  r  ru  r  r  r  r  r2  )r   rJ  r  r  ru  r  r  r   r!  r  r  r  r"  r#  r'  r(  r)  r*  r  r  r  r  r  r	  r
  r   r   s                              r   
send_venueBot.send_venue  s=    X h7BCC'  E{S(w!FGG1 
 eU##~~..H00ImmGKKE!//M#33O#33O % 7 7  "*..!2

 '' 3!5%(C+/-%'+%!#9/!5# ( 
 
 	
 
s   DDDD)r  r  contactr  r  r	  r
  r   phone_numberr   r   vcardr  c                  #    U(       d  [        X#/5      (       d  [        S5      e[        U5      [        X#/5      -  (       d  [        S5      e[	        U[
        5      (       a0  UR                  nUR                  nUR                  nUR                  nUUUUUS.nU R                  SUUUUUUU	U
UUUUUUUUS9I Sh  vN $  N7f)aL
  Use this method to send phone contacts.

Note:
    You can either supply :paramref:`contact` or :paramref:`phone_number` and
    :paramref:`first_name` with optionally :paramref:`last_name` and optionally
    :paramref:`vcard`.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    phone_number (:obj:`str`, optional): Contact's phone number.
    first_name (:obj:`str`, optional): Contact's first name.
    last_name (:obj:`str`, optional): Contact's last name.
    vcard (:obj:`str`, optional): Additional data about the contact in the form of a vCard,
        0-:tg-const:`telegram.constants.ContactLimit.VCARD` bytes.
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    contact (:class:`telegram.Contact`, optional): The contact to send.

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

zJEither contact or phone_number and first_name must be passed as arguments.zTEither contact or phone_number and first_name must be passed as arguments. Not both.)rJ  r  r   r   r  sendContactr  N)r  r0  r?  r  r   r!   r  r   r   r  r2  )r   rJ  r  r   r   r   r!  r  r"  r#  r'  r(  r)  r*  r  r  r  r  r  r	  r
  r   r   s                          r   send_contactBot.send_contact[  s     | #|&@"A"A\  G}sL#=>> 
 gw''"//L ++J))IMME ($"
 '' 3!5%(C+/-%'+%!#9/!5# ( 
 
 	
 
s   B;C=C>Cgame_short_namec                d   #    XS.nU R                  SUUUUUUUUUUUUUUU	U
S9I Sh  vN $  N7f)a3  Use this method to send a game.

Args:
    chat_id (:obj:`int`): Unique identifier for the target chat.
    game_short_name (:obj:`str`): Short name of the game, serves as the unique identifier
        for the game. Set up your games via `@BotFather <https://t.me/BotFather>`_.
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): An object for a new
        inline keyboard. If empty, one "Play game_title" button will be
        shown. If not empty, the first button must launch the game.
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  sendGamer  Nr`  )r   rJ  r  r   r!  r"  r#  r'  r(  r)  r*  r  r  r  r  r	  r
  r   r   s                      r   	send_gameBot.send_game  se     \ &-Q'' 3!5%(C+/-%'+%!#9/!5# ( 
 
 	
 
   '0.0actionc          
      V   #    UUUUS.n
U R                  SU
UUUUU	S9I Sh  vN $  N7f)a  
Use this method when you need to tell the user that something is happening on the bot's
side. The status is set for 5 seconds or less (when a message arrives from your bot,
Telegram clients clear its typing status). Telegram only recommends using this method when
a response from the bot will take a noticeable amount of time to arrive.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    action(:obj:`str`): Type of action to broadcast. Choose one, depending on what the user
        is about to receive. For convenience look at the constants in
        :class:`telegram.constants.ChatAction`.
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  r#  r(  sendChatActionr  NrT  )r   rJ  r  r#  r(  r  r  r	  r
  r   r   s              r   send_chat_actionBot.send_chat_actionI  sR     N !2&<	
 ZZ%'+%!   
 
 	
 
    )')resultsr`   next_offsetcurrent_offsetc                    Ub  Ub  [        S5      eUb  U(       d  SO
[        U5      nSn[        U5      (       a&  U" U5      nU(       d  / nOUn[        US-   5      n Xb4$ [	        U5      US-   [
        R                  -  :  a:  US-   n[        U5      nUU[
        R                  -  U[
        R                  -   nXb4$ X[
        R                  -  S nXb4$ UnXb4$ )z
Builds the effective results from the results input.
We make this a stand-alone method so tg.ext.ExtBot can wrap it.

Returns:
    Tuple of 1. the effective results and 2. correct the next_offset

Nz:`current_offset` and `next_offset` are mutually exclusive!r   r   r   )r0  intcallablestrlenrU   RESULTS)r   r  r  r  current_offset_intcallable_outputeffective_resultsnext_offset_ints           r   _effective_inline_resultsBot._effective_inline_results  s     %+*AYZZ%*8c.>Q K  ")*<"=&EG%(7% #&&81&<"=K  !-- W!3a!7;K;S;S SS"4q"8!/2$+&&../1@&..2/%! !--	 %,AQAYAY,Y,[$\! !-- !( --r   c                 "   Sn[        US5      (       aV  [        R                  " U5      nSnUR                  5          [        R                  " UR
                  5      Ul        SSS5        [        US5      (       Ga  UR                  (       Ga  [        UR                  S5      (       a  U(       d  [        R                  " U5      nSnUR                  5          [        R                  " UR                  5      Ul        SSS5        UR                  R                  5          [        R                  " UR                  R
                  5      UR                  l        SSS5        [        UR                  S5      (       a  U(       d  [        R                  " U5      nUR                  5          [        R                  " UR                  5      Ul        SSS5        UR                  R                  5          [        R                  " UR                  R                  5      UR                  l        SSS5        U$ U$ ! , (       d  f       GN= f! , (       d  f       GNS= f! , (       d  f       GN	= f! , (       d  f       N= f! , (       d  f       U$ = f)aQ  The reason why this method exists is similar to the description of _insert_defaults
The reason why we do this in rather than in _insert_defaults is because converting
DEFAULT_NONE to NONE *before* calling to_dict() makes it way easier to drop None entries
from the json data.

Must return the correct object instead of editing in-place!
Fr   TNinput_message_contentr&  )r>  r   r   rG   r   r   r  r&  )r   rescopieds      r    _insert_defaults_for_ilq_results$Bot._insert_defaults_for_ilq_results  s    3%%))C.CF!-!7!7!G !3/00S5N5N5Ns00,??))C.C!F]]_04		#:S:S0TC- %..88:;G;Q;Q11<<<C--8 ; s002HII))C.C]]_04		#:S:S0TC- %..88:EQE[E[11FFFC--B ;
 
s
3 ! %_:: %_::
 
s;   &H8&I
 :I*&I.2:I?8
I

I
I+.
I<?
J)r  r  r  r	  r
  r   inline_query_id
cache_timeis_personalbuttonc          
         #    U R                  X%US9u  pU Vs/ s H  oR                  U5      PM     nnUUUUUUS.nU R                  SUUU	U
UUS9I Sh  vN $ s  snf  N	7f)a	  
Use this method to send answers to an inline query. No more than
:tg-const:`telegram.InlineQuery.MAX_RESULTS` results per query are allowed.

Warning:
    In most use cases :paramref:`current_offset` should not be passed manually. Instead of
    calling this method directly, use the shortcut :meth:`telegram.InlineQuery.answer` with
    :paramref:`telegram.InlineQuery.answer.auto_pagination` set to :obj:`True`, which will
    take care of passing the correct value.

.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`


.. versionchanged:: 20.5
   Removed deprecated arguments ``switch_pm_text`` and ``switch_pm_parameter``.

Args:
    inline_query_id (:obj:`str`): Unique identifier for the answered query.
    results (list[:class:`telegram.InlineQueryResult`] | Callable): A list of results for
        the inline query. In case :paramref:`current_offset` is passed,
        :paramref:`results` may also be
        a callable that accepts the current page index starting from 0. It must return
        either a list of :class:`telegram.InlineQueryResult` instances or :obj:`None` if
        there are no more results.
    cache_time (:obj:`int`, optional): The maximum amount of time in seconds that the
        result of the inline query may be cached on the server. Defaults to ``300``.
    is_personal (:obj:`bool`, optional): Pass :obj:`True`, if results may be cached on
        the server side only for the user that sent the query. By default,
        results may be returned to any user who sends the same query.
    next_offset (:obj:`str`, optional): Pass the offset that a client should send in the
        next query with the same text to receive more results. Pass an empty string if
        there are no more results or if you don't support pagination. Offset length can't
        exceed :tg-const:`telegram.InlineQuery.MAX_OFFSET_LENGTH` bytes.
    button (:class:`telegram.InlineQueryResultsButton`, optional): A button to be shown
        above the inline query results.

        .. versionadded:: 20.3

Keyword Args:
    current_offset (:obj:`str`, optional): The :attr:`telegram.InlineQuery.offset` of
        the inline query to answer. If passed, PTB will automatically take care of
        the pagination for you, i.e. pass the correct :paramref:`next_offset` and truncate
        the results list/get the results from the callable you passed.

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

Raises:
    :class:`telegram.error.TelegramError`

)r  r  r  )r  r  r  r  r   r  answerInlineQueryr  N)r  r  r  )r   r  r  r  r   r  r  r  r  r  r	  r
  r   r  r  r   s                   r   answer_inline_queryBot.answer_inline_query  s     J *.)G)G^ *H *
& IZ
HYf11&9HY 	 

  /(&$&
 ZZ%'+%!   
 
 	


s   A"A#A"A 
A"user_idr  allow_user_chatsallow_bot_chatsallow_group_chatsallow_channel_chatsc                   #    UUUUUUS.n[         R                  " U R                  SUUUU	U
US9I Sh  vN U 5      $  N	7f)a  Stores a message that can be sent by a user of a Mini App.

.. versionadded:: 21.8

Args:
    user_id (:obj:`int`): Unique identifier of the target user that can use the prepared
        message.
    result (:class:`telegram.InlineQueryResult`): The result to store.
    allow_user_chats (:obj:`bool`, optional): Pass :obj:`True` if the message can be sent
        to private chats with users
    allow_bot_chats (:obj:`bool`, optional): Pass :obj:`True` if the message can be sent
        to private chats with bots
    allow_group_chats (:obj:`bool`, optional): Pass :obj:`True` if the message can be sent
        to group and supergroup chats
    allow_channel_chats (:obj:`bool`, optional): Pass :obj:`True` if the message can be
        sent to channels

Returns:
    :class:`telegram.PreparedInlineMessage`: On success, the prepared message is returned.

Raises:
    :class:`telegram.error.TelegramError`
)r  r  r  r  r	  r
  savePreparedInlineMessager  N)r4   r1  r  )r   r  r  r  r  r	  r
  r  r  r	  r
  r   r   s                r   save_prepared_inline_message Bot.save_prepared_inline_message>  sk     N  0.!2#6
 %,,**+)+ /)%    
 	
s   2A >
A offsetlimitc          
      ~   #    XUS.n	U R                  SU	UUUUUS9I Sh  vN n
[        R                  " X5      $  N7f)a  Use this method to get a list of profile pictures for a user.

Args:
    user_id (:obj:`int`): Unique identifier of the target user.
    offset (:obj:`int`, optional): Sequential number of the first photo to be returned.
        By default, all photos are returned.
    limit (:obj:`int`, optional): Limits the number of photos to be retrieved. Values
        between :tg-const:`telegram.constants.UserProfilePhotosLimit.MIN_LIMIT`-
        :tg-const:`telegram.constants.UserProfilePhotosLimit.MAX_LIMIT` are accepted.
        Defaults to ``100``.

Returns:
    :class:`telegram.UserProfilePhotos`

Raises:
    :class:`telegram.error.TelegramError`

)r  r  r  getUserProfilePhotosr  N)r  rC   r1  )r   r  r  r  r  r  r	  r
  r   r   r  s              r   get_user_profile_photosBot.get_user_profile_photosy  sV     < &-Ozz"%'+%! " 
 
 !((66
s   =;=file_idc          
        #    [         R                  " [        5         UR                  nSSS5        SU0nU R	                  SUUUUUUS9I Sh  vN n[        [        U5      R                  S5      n	U	(       a$  [        U	5      (       d  U R                   SU	 3US'   [        R                  " X5      $ ! , (       d  f       N= f Nu7f)a7  
Use this method to get basic info about a file and prepare it for downloading. For the
moment, bots can download files of up to
:tg-const:`telegram.constants.FileSizeLimit.FILESIZE_DOWNLOAD` in size. The file can then
be e.g. downloaded with :meth:`telegram.File.download_to_drive`. It is guaranteed that
the link will be valid for at least 1 hour. When the link expires, a new one can be
requested by calling get_file again.

Note:
    This function may not preserve the original file name and MIME type.
    You should save the file's MIME type and name (if available) when the File object
    is received.

.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`

Args:
    file_id (:obj:`str` | :class:`telegram.Animation` | :class:`telegram.Audio` |                              :class:`telegram.ChatPhoto` | :class:`telegram.Document` |                                        :class:`telegram.PhotoSize` | :class:`telegram.Sticker` |                                         :class:`telegram.Video` | :class:`telegram.VideoNote` |                                           :class:`telegram.Voice`):
        Either the file identifier or an object that has a file_id attribute
        to get file information about.

Returns:
    :class:`telegram.File`

Raises:
    :class:`telegram.error.TelegramError`

Nr  getFiler  	file_pathr  )
contextlibsuppressAttributeErrorr  r  r   dictgetrH   rq   r#   r1  )
r   r  r  r  r	  r
  r   r   r  r  s
             r   get_fileBot.get_file  s     X   0ooG 1 $W-zz%'+%! " 
 
 v&**;7	]955%)%8%8$99+"FF;||F))' 10

s(   CB3$CCA$C3
C=C
until_daterevoke_messagesc          
      V   #    UUUUS.n
U R                  SU
UUUUU	S9I Sh  vN $  N7f)au  
Use this method to ban a user from a group, supergroup or a channel. In the case of
supergroups and channels, the user will not be able to return to the group on their own
using invite links, etc., unless unbanned first. The bot must be an administrator in the
chat for this to work and must have the appropriate admin rights.

.. versionadded:: 13.7

Args:
    chat_id (:obj:`int` | :obj:`str`): Unique identifier for the target group or username
        of the target supergroup or channel (in the format ``@channelusername``).
    user_id (:obj:`int`): Unique identifier of the target user.
    until_date (:obj:`int` | :obj:`datetime.datetime`, optional): Date when the user will
        be unbanned, unix time. If user is banned for more than 366 days or less than 30
        seconds from the current time they are considered to be banned forever. Applied
        for supergroups and channels only.
        |tz-naive-dtms|
    revoke_messages (:obj:`bool`, optional): Pass :obj:`True` to delete all messages from
        the chat for the user that is being removed. If :obj:`False`, the user will be able
        to see messages in the group that were sent before the user was removed.
        Always :obj:`True` for supergroups and channels.

        .. versionadded:: 13.4

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  r!  r   banChatMemberr  NrT  )r   rJ  r  r   r!  r  r  r	  r
  r   r   s              r   ban_chat_memberBot.ban_chat_member  sR     Z .$	
 ZZ%'+%!   
 
 	
 
r  sender_chat_idc          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to ban a channel chat in a supergroup or a channel. Until the chat is
unbanned, the owner of the banned chat won't be able to send messages on behalf of **any of
their channels**. The bot must be an administrator in the supergroup or channel for this
to work and must have the appropriate administrator rights.

.. versionadded:: 13.9

Args:
    chat_id (:obj:`int` | :obj:`str`): Unique identifier for the target group or username
        of the target supergroup or channel (in the format ``@channelusername``).
    sender_chat_id (:obj:`int`): Unique identifier of the target sender chat.

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

Raises:
    :class:`telegram.error.TelegramError`

rJ  r&  banChatSenderChatr  NrT  	r   rJ  r&  r  r  r	  r
  r   r   s	            r   ban_chat_sender_chatBot.ban_chat_sender_chat#  sD     > &-OZZ%'+%!   
 
 	
 
rW  only_if_bannedc          
      R   #    XUS.n	U R                  SU	UUUUUS9I Sh  vN $  N7f)aD  Use this method to unban a previously kicked user in a supergroup or channel.

The user will *not* return to the group or channel automatically, but will be able to join
via link, etc. The bot must be an administrator for this to work. By default, this method
guarantees that after the call the user is not a member of the chat, but will be able to
join it. So if the user is a member of the chat they will also be *removed* from the chat.
If you don't want this, use the parameter :paramref:`only_if_banned`.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    user_id (:obj:`int`): Unique identifier of the target user.
    only_if_banned (:obj:`bool`, optional): Do nothing if the user is not banned.

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  r-  unbanChatMemberr  NrT  )
r   rJ  r  r-  r  r  r	  r
  r   r   s
             r   unban_chat_memberBot.unban_chat_memberN  sH     @ &-TbcZZ%'+%!   
 
 	
 
   '%'c          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  Use this method to unban a previously banned channel in a supergroup or channel.
The bot must be an administrator for this to work and must have the
appropriate administrator rights.

.. versionadded:: 13.9

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    sender_chat_id (:obj:`int`): Unique identifier of the target sender chat.

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

Raises:
    :class:`telegram.error.TelegramError`

r(  unbanChatSenderChatr  NrT  r*  s	            r   unban_chat_sender_chatBot.unban_chat_sender_chatz  sD     8 &-OZZ!%'+%!   
 
 	
 
rW  callback_query_id
show_alertr  c          
      X   #    UUUUUS.nU R                  SUUUUU	U
S9I Sh  vN $  N7f)a  
Use this method to send answers to callback queries sent from inline keyboards. The answer
will be displayed to the user as a notification at the top of the chat screen or as an
alert.
Alternatively, the user can be redirected to the specified Game URL. For this option to
work, you must first create a game for your bot via `@BotFather <https://t.me/BotFather>`_
and accept the terms. Otherwise, you may use links like t.me/your_bot?start=XXXX that open
your bot with a parameter.

Args:
    callback_query_id (:obj:`str`): Unique identifier for the query to be answered.
    text (:obj:`str`, optional): Text of the notification. If not specified, nothing will
        be shown to the user, 0-:tg-const:`telegram.CallbackQuery.MAX_ANSWER_TEXT_LENGTH`
        characters.
    show_alert (:obj:`bool`, optional): If :obj:`True`, an alert will be shown by the
        client instead of a notification at the top of the chat screen. Defaults to
        :obj:`False`.
    url (:obj:`str`, optional): URL that will be opened by the user's client. If you have
        created a Game and accepted the conditions via
        `@BotFather <https://t.me/BotFather>`_, specify the URL that
        opens your game - note that this will only work if the query comes from a callback
        game button. Otherwise, you may use links like t.me/your_bot?start=XXXX that open
        your bot with a parameter.
    cache_time (:obj:`int`, optional): The maximum amount of time in seconds that the
        result of the callback query may be cached client-side. Defaults to 0.

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

Raises:
    :class:`telegram.error.TelegramError`

)r7  r  rK  r8  r  answerCallbackQueryr  NrT  )r   r7  rK  r8  r  r  r  r  r	  r
  r   r   s               r   answer_callback_queryBot.answer_callback_query  sU     ` "3$$
 ZZ!%'+%!   
 
 	
 
r  )rI  r  r  r	  r
  r   c
                v   #    UUUUUS.n[        X5      nU R                  SUUUUU	UUUUUS9I Sh  vN $  N7f)a	  
Use this method to edit text and game messages.

Note:
    * |editreplymarkup|
    * |bcid_edit_time|

.. seealso:: :attr:`telegram.Game.text`

Args:
    chat_id (:obj:`int` | :obj:`str`, optional): Required if :paramref:`inline_message_id`
        is not specified. |chat_id_channel|
    message_id (:obj:`int`, optional): Required if :paramref:`inline_message_id` is not
        specified. Identifier of the message to edit.
    inline_message_id (:obj:`str`, optional): Required if :paramref:`chat_id` and
        :paramref:`message_id` are not specified. Identifier of the inline message.
    text (:obj:`str`): New text of the message,
        :tg-const:`telegram.constants.MessageLimit.MIN_TEXT_LENGTH`-
        :tg-const:`telegram.constants.MessageLimit.MAX_TEXT_LENGTH` characters after
        entities parsing.
    parse_mode (:obj:`str`, optional): |parse_mode|
    entities (Sequence[:class:`telegram.MessageEntity`], optional): Sequence of special
        entities that appear in message text, which can be specified instead of
        :paramref:`parse_mode`.

        .. versionchanged:: 20.0
            |sequenceargs|

    link_preview_options (:obj:`LinkPreviewOptions`, optional): Link preview generation
        options for the message. Mutually exclusive with
        :paramref:`disable_web_page_preview`.

        .. versionadded:: 20.8

    reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): An object for an
        inline keyboard.
    business_connection_id (:obj:`str`, optional): |business_id_str_edit|

        .. versionadded:: 21.4

Keyword Args:
    disable_web_page_preview (:obj:`bool`, optional): Disables link previews for links in
        this message. Convenience parameter for setting :paramref:`link_preview_options`.
        Mutually exclusive with :paramref:`link_preview_options`.

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`link_preview_options` replacing this
            argument. PTB will automatically convert this argument to that one, but
            for advanced options, please use :paramref:`link_preview_options` directly.

        .. versionchanged:: 21.0
            |keyword_only_arg|


Returns:
    :class:`telegram.Message`: On success, if edited message is not an inline message, the
    edited message is returned, otherwise :obj:`True` is returned.

Raises:
    :exc:`ValueError`: If both :paramref:`disable_web_page_preview` and
        :paramref:`link_preview_options` are passed.
    :class:`telegram.error.TelegramError`: For other errors.

)rK  rJ  r/  r  rL  editMessageText)	r!  r   r&  r(  r  r  r	  r
  r   NrO  )r   rK  rJ  r/  r  r   r!  rL  r&  r(  rI  r  r  r	  r
  r   r   s                    r   edit_message_textBot.edit_message_text  so     h $!2 
  22Ja''%!!5#9%'+%! ( 
 
 	
 
s   0979c
                `   #    UUUUS.nU R                  SUUUUUU	U
UUUUS9I Sh  vN $  N7f)a  
Use this method to edit captions of messages.

Note:
    * |editreplymarkup|
    * |bcid_edit_time|

Args:
    chat_id (:obj:`int` | :obj:`str`, optional): Required if inline_message_id is not
        specified. |chat_id_channel|
    message_id (:obj:`int`, optional): Required if inline_message_id is not specified.
        Identifier of the message to edit.
    inline_message_id (:obj:`str`, optional): Required if chat_id and message_id are not
        specified. Identifier of the inline message.
    caption (:obj:`str`, optional): New caption of the message,
        0-:tg-const:`telegram.constants.MessageLimit.CAPTION_LENGTH` characters after
        entities parsing.
    parse_mode (:obj:`str`, optional): |parse_mode|
    caption_entities (Sequence[:class:`telegram.MessageEntity`], optional):
        |caption_entities|

        .. versionchanged:: 20.0
            |sequenceargs|
    reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): An object for an
        inline keyboard.
    show_caption_above_media (:obj:`bool`, optional): Pass |show_cap_above_med|

        .. versionadded:: 21.3
    business_connection_id (:obj:`str`, optional): |business_id_str_edit|

        .. versionadded:: 21.4

Returns:
    :class:`telegram.Message`: On success, if edited message is not an inline message, the
    edited message is returned, otherwise :obj:`True` is returned.

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r/  r  rk  editMessageCaption)
r!  r$  r   r%  r(  r  r  r	  r
  r   Nr`  )r   rJ  r/  r  r$  r!  r   r%  rk  r(  r  r  r	  r
  r   r   s                   r   edit_message_captionBot.edit_message_captionN  sc     v $!2(@	
 '' %!-#9%'+%! ( 
 
 	
 
s   %.,.r$   c                Z   #    UUUUS.nU R                  SUUUUUU	U
US9	I Sh  vN $  N7f)a  
Use this method to edit animation, audio, document, photo, or video messages, or to add
media to text messages. If a message
is part of a message album, then it can be edited only to an audio for audio albums, only
to a document for document albums and to a photo or a video otherwise. When an inline
message is edited, a new file can't be uploaded; use a previously uploaded file via its
:attr:`~telegram.File.file_id` or specify a URL.

Note:
    * |editreplymarkup|
    * |bcid_edit_time|

.. seealso:: :wiki:`Working with Files and Media <Working-with-Files-and-Media>`

Args:
    media (:class:`telegram.InputMedia`): An object for a new media content
        of the message.
    chat_id (:obj:`int` | :obj:`str`, optional): Required if inline_message_id is not
        specified. |chat_id_channel|
    message_id (:obj:`int`, optional): Required if inline_message_id is not specified.
        Identifier of the message to edit.
    inline_message_id (:obj:`str`, optional): Required if chat_id and message_id are not
        specified. Identifier of the inline message.
    reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): An object for an
        inline keyboard.
    business_connection_id (:obj:`str`, optional): |business_id_str_edit|

        .. versionadded:: 21.4

Returns:
    :class:`telegram.Message`: On success, if edited message is not an inline message, the
    edited Message is returned, otherwise :obj:`True` is returned.

Raises:
    :class:`telegram.error.TelegramError`
)r   rJ  r/  r  editMessageMediar  Nr`  )r   r   rJ  r/  r  r!  r(  r  r  r	  r
  r   r   s                r   edit_message_mediaBot.edit_message_media  sZ     h $!2	
 ''%#9%'+%! ( 

 

 
	
 

rc  c                X   #    UUUS.nU R                  SUUUUUUU	U
S9	I Sh  vN $  N7f)a  
Use this method to edit only the reply markup of messages sent by the bot or via the bot
(for inline bots).

Note:
    * |editreplymarkup|
    * |bcid_edit_time|

Args:
    chat_id (:obj:`int` | :obj:`str`, optional): Required if inline_message_id is not
        specified. |chat_id_channel|
    message_id (:obj:`int`, optional): Required if inline_message_id is not specified.
        Identifier of the message to edit.
    inline_message_id (:obj:`str`, optional): Required if chat_id and message_id are not
        specified. Identifier of the inline message.
    reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): An object for an
        inline keyboard.
    business_connection_id (:obj:`str`, optional): |business_id_str_edit|

        .. versionadded:: 21.4

Returns:
    :class:`telegram.Message`: On success, if edited message is not an inline message, the
    edited message is returned, otherwise :obj:`True` is returned.

Raises:
    :class:`telegram.error.TelegramError`

r  editMessageReplyMarkupr  Nr`  r  s               r   edit_message_reply_markupBot.edit_message_reply_markup  sW     X $!2
 ''$%#9%'+%! ( 

 

 
	
 

r  timeoutallowed_updatesc                  #    UUUUS.n
[        U[        5      (       d  U=(       d    SnO# U R                  S   R                  =(       d    Sn[        [        [           U R                  SU
U(       a  X-   OUUUUU	S	9I S
h  vN 5      nU(       a0  U R                  R                  SU Vs/ s H  oS   PM	     sn5        OU R                  R                  S5         [        R                   " X5      $ ! [         aD    SnU R                  [        SSU R                  S   R                  R                   S35      SS9   Nf = f Ns  snf ! ["         a   nU R                  R%                  SXS9  e S
nAff = f7f)a	  Use this method to receive incoming updates using long polling.

Note:
    1. This method will not work if an outgoing webhook is set up.
    2. In order to avoid getting duplicate updates, recalculate offset after each
       server response.
    3. To take full advantage of this library take a look at :class:`telegram.ext.Updater`

.. seealso:: :meth:`telegram.ext.Application.run_polling`,
    :meth:`telegram.ext.Updater.start_polling`

.. versionchanged:: 20.0
    Returns a tuple instead of a list.

Args:
    offset (:obj:`int`, optional): Identifier of the first update to be returned. Must be
        greater by one than the highest among the identifiers of previously received
        updates. By default, updates starting with the earliest unconfirmed update are
        returned. An update is considered confirmed as soon as this method is called with
        an offset higher than its :attr:`telegram.Update.update_id`. The negative offset
        can be specified to retrieve updates starting from -offset update from the end of
        the updates queue. All previous updates will be forgotten.
    limit (:obj:`int`, optional): Limits the number of updates to be retrieved. Values
        between :tg-const:`telegram.constants.PollingLimit.MIN_LIMIT`-
        :tg-const:`telegram.constants.PollingLimit.MAX_LIMIT` are accepted.
        Defaults to ``100``.
    timeout (:obj:`int`, optional): Timeout in seconds for long polling. Defaults to ``0``,
        i.e. usual short polling. Should be positive, short polling should be used for
        testing purposes only.
    allowed_updates (Sequence[:obj:`str`]), optional): A sequence the types of
        updates you want your bot to receive. For example, specify ["message",
        "edited_channel_post", "callback_query"] to only receive updates of these types.
        See :class:`telegram.Update` for a complete list of available update types.
        Specify an empty sequence to receive all updates except
        :attr:`telegram.Update.chat_member`, :attr:`telegram.Update.message_reaction` and
        :attr:`telegram.Update.message_reaction_count` (default). If not specified, the
        previous setting will be used. Please note that this parameter doesn't affect
        updates created before the call to the get_updates, so unwanted updates may be
        received for a short period of time.

        .. versionchanged:: 20.0
            |sequenceargs|

Returns:
    tuple[:class:`telegram.Update`]

Raises:
    :class:`telegram.error.TelegramError`

)rM  r  r  rN  r   r   z20.7z
The class z does not override the property `read_timeout`. Overriding this property will be mandatory in future versions. Using 2 seconds as fallback.r   r  r  NzGetting updates: %s	update_idzNo new updates found.z1Error while parsing updates! Received data was %r)exc_info)r   rG   rw   r  NotImplementedErrorr   r]   r   r   r   r@  rO   r  r  r  rA   rA  r   critical)r   r  r  rM  rN  r  r  r	  r
  r   r   arg_read_timeoutr  ur8  s                  r   get_updatesBot.get_updates!  s    @ .	
 ,55&2&7a#'==#3#@#@#EA $ N**;B-7HX+ /)%   
 LL4v6Vv!~v6VWLL67		>>&//I ' 
#$ 

)$T]]1%5%?%?%H%H$I JK K  !  
& 7W  	 LL!!CV "  	sk   )E9"C4 4E9E
)E9,E
:#E9E 3E94AE?E9EE9E9
E6E11E66E9certificatemax_connections
ip_addressdrop_pending_updatessecret_tokenc          
      z   #    UUUUUUU R                  U5      S.nU R                  SUUU	U
UUS9I Sh  vN $  N7f)a  
Use this method to specify a url and receive incoming updates via an outgoing webhook.
Whenever there is an update for the bot, Telegram will send an HTTPS POST request to the
specified url, containing An Update. In case of an unsuccessful request,
Telegram will give up after a reasonable amount of attempts.

If you'd like to make sure that the Webhook was set by you, you can specify secret data in
the parameter :paramref:`secret_token`. If specified, the request will contain a header
``X-Telegram-Bot-Api-Secret-Token`` with the secret token as content.

Note:
    1. You will not be able to receive updates using :meth:`get_updates` for long as an
       outgoing webhook is set up.
    2. To use a self-signed certificate, you need to upload your public key certificate
       using :paramref:`certificate` parameter. Please upload as
       :class:`~telegram.InputFile`, sending a String will not work.
    3. Ports currently supported for Webhooks:
       :attr:`telegram.constants.SUPPORTED_WEBHOOK_PORTS`.

    If you're having any trouble setting up webhooks, please check out this `guide to
    Webhooks`_.

.. seealso:: :meth:`telegram.ext.Application.run_webhook`,
    :meth:`telegram.ext.Updater.start_webhook`

Examples:
    :any:`Custom Webhook Bot <examples.customwebhookbot>`

Args:
    url (:obj:`str`): HTTPS url to send updates to. Use an empty string to remove webhook
        integration.
    certificate (:term:`file object` | :obj:`bytes` | :class:`pathlib.Path` | :obj:`str`):
        Upload your public key certificate so that the root
        certificate in use can be checked. See our :wiki:`self-signed guide                <Webhooks#creating-a-self-signed-certificate-using-openssl>` for details.
        |uploadinputnopath|
    ip_address (:obj:`str`, optional): The fixed IP address which will be used to send
        webhook requests instead of the IP address resolved through DNS.
    max_connections (:obj:`int`, optional): Maximum allowed number of simultaneous HTTPS
        connections to the webhook for update delivery,
        :tg-const:`telegram.constants.WebhookLimit.MIN_CONNECTIONS_LIMIT`-
        :tg-const:`telegram.constants.WebhookLimit.MAX_CONNECTIONS_LIMIT`.
        Defaults to ``40``. Use lower values to limit the load on your bot's server,
        and higher values to increase your bot's throughput.
    allowed_updates (Sequence[:obj:`str`], optional): A sequence of the types of
        updates you want your bot to receive. For example, specify ["message",
        "edited_channel_post", "callback_query"] to only receive updates of these types.
        See :class:`telegram.Update` for a complete list of available update types.
        Specify an empty sequence to receive all updates except
        :attr:`telegram.Update.chat_member`,
        :attr:`telegram.Update.message_reaction`
        and :attr:`telegram.Update.message_reaction_count` (default). If not
        specified, the previous setting will be used. Please note that this
        parameter doesn't affect
        updates created before the call to the set_webhook, so unwanted update
        may be received for a short period of time.

        .. versionchanged:: 20.0
            |sequenceargs|
    drop_pending_updates (:obj:`bool`, optional): Pass :obj:`True` to drop all pending
        updates.
    secret_token (:obj:`str`, optional): A secret token to be sent in a header
        ``X-Telegram-Bot-Api-Secret-Token`` in every webhook request,
        :tg-const:`telegram.constants.WebhookLimit.MIN_SECRET_TOKEN_LENGTH`-
        :tg-const:`telegram.constants.WebhookLimit.MAX_SECRET_TOKEN_LENGTH` characters.
        Only characters ``A-Z``, ``a-z``, ``0-9``, ``_`` and ``-`` are allowed.
        The header is useful to ensure that the request comes from a webhook set by you.

        .. versionadded:: 20.0

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

Raises:
    :class:`telegram.error.TelegramError`

.. _`guide to Webhooks`: https://core.telegram.org/bots/webhooks

)r  rY  rN  rZ  r[  r\  rX  
setWebhookr  Nr   r  )r   r  rX  rY  rN  rZ  r[  r\  r  r  r	  r
  r   r   s                 r   set_webhookBot.set_webhook  sf     @ ..$$8(11+>
 ZZ%'+%!   
 
 	
 
s   2;9;c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)aI  
Use this method to remove webhook integration if you decide to switch back to
:meth:`get_updates()`.

Args:
    drop_pending_updates (:obj:`bool`, optional): Pass :obj:`True` to drop all pending
        updates.

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

Raises:
    :class:`telegram.error.TelegramError`

r[  deleteWebhookr  NrT  )r   r[  r  r  r	  r
  r   r   s           r   delete_webhookBot.delete_webhook  sG     2 '(<=ZZ%'+%!   
 
 	
 
rW  c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)zUse this method for your bot to leave a group, supergroup or channel.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|

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

Raises:
    :class:`telegram.error.TelegramError`

rJ  	leaveChatr  NrT  r   rJ  r  r  r	  r
  r   r   s           r   
leave_chatBot.leave_chat3  sF     , $W-ZZ%'+%!   
 
 	
 
rW  c          
      |   #    SU0nU R                  SUUUUUUS9I Sh  vN n[        R                  " X5      $  N7f)a  
Use this method to get up to date information about the chat (current name of the user for
one-on-one conversations, current username of a user, group or channel, etc.).

.. versionchanged:: 21.2
    In accordance to Bot API 7.3, this method now returns a :class:`telegram.ChatFullInfo`.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|

Returns:
    :class:`telegram.ChatFullInfo`

Raises:
    :class:`telegram.error.TelegramError`

rJ  getChatr  N)r  r   r1  	r   rJ  r  r  r	  r
  r   r   r  s	            r   get_chatBot.get_chatU  sV     6 $W-zz%'+%! " 
 
 ##F11
   <:<c          
      |   #    SU0nU R                  SUUUUUUS9I Sh  vN n[        R                  " X5      $  N7f)a!  
Use this method to get a list of administrators in a chat.

.. versionchanged:: 20.0
    Returns a tuple instead of a list.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|

Returns:
    tuple[:class:`telegram.ChatMember`]: On success, returns a tuple of ``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.

Raises:
    :class:`telegram.error.TelegramError`

rJ  getChatAdministratorsr  N)r  r   rA  rm  s	            r   get_chat_administratorsBot.get_chat_administrators~  sV     : $W-zz#%'+%! " 
 
 !!&//
rp  c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)zUse this method to get the number of members in a chat.

.. versionadded:: 13.7

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|

Returns:
    :obj:`int`: Number of members in the chat.

Raises:
    :class:`telegram.error.TelegramError`

rJ  getChatMemberCountr  NrT  rh  s           r   get_chat_member_countBot.get_chat_member_count  sF     0 $W-ZZ %'+%!   
 
 	
 
rW  c          
      |   #    XS.nU R                  SUUUUUUS9I Sh  vN n	[        R                  " X5      $  N7f)a~  Use this method to get information about a member of a chat. The method is only
guaranteed to work for other users if the bot is an administrator in the chat.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    user_id (:obj:`int`): Unique identifier of the target user.

Returns:
    :class:`telegram.ChatMember`

Raises:
    :class:`telegram.error.TelegramError`

rJ  r  getChatMemberr  N)r  r   r1  )
r   rJ  r  r  r  r	  r
  r   r   r  s
             r   get_chat_memberBot.get_chat_member  sT     2 &-Azz%'+%! " 
 
 !!&//
rp  sticker_set_namec          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a*  Use this method to set a new group sticker set for a supergroup.
The bot must be an administrator in the chat for this to work and must have the appropriate
admin rights. Use the field :attr:`telegram.ChatFullInfo.can_set_sticker_set` optionally
returned in :meth:`get_chat` requests to check if the bot can use this method.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|
    sticker_set_name (:obj:`str`): Name of the sticker set to be set as the group
        sticker set.

Returns:
    :obj:`bool`: On success, :obj:`True` is returned.
)rJ  r~  setChatStickerSetr  NrT  )	r   rJ  r~  r  r  r	  r
  r   r   s	            r   set_chat_sticker_setBot.set_chat_sticker_set  sD     0 &-SZZ%'+%!   
 
 	
 
rW  c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)a  Use this method to delete a group sticker set from a supergroup. The bot must be an
administrator in the chat for this to work and must have the appropriate admin rights.
Use the field :attr:`telegram.ChatFullInfo.can_set_sticker_set` optionally returned in
:meth:`get_chat` requests to check if the bot can use this method.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|

Returns:
     :obj:`bool`: On success, :obj:`True` is returned.
rJ  deleteChatStickerSetr  NrT  rh  s           r   delete_chat_sticker_setBot.delete_chat_sticker_set  sF     * $W-ZZ"%'+%!   
 
 	
 
rW  c          	      r   #    U R                  SUUUUUS9I Sh  vN n[        R                  " X`5      $  N7f)zUse this method to get current webhook status. Requires no parameters.

If the bot is using :meth:`get_updates`, will return an object with the
:attr:`telegram.WebhookInfo.url` field empty.

Returns:
    :class:`telegram.WebhookInfo`

getWebhookInfor  N)r  rT   r1  rG  s          r   get_webhook_infoBot.get_webhook_info2  sI     $ zz%'+%! " 
 
 ""600
   757scoreforcedisable_edit_messagec          
      \   #    UUUUUUUS.nU R                  SUUU	U
UUS9I Sh  vN $  N7f)a  
Use this method to set the score of the specified user in a game message.

.. seealso:: :attr:`telegram.Game.text`

Args:
    user_id (:obj:`int`): User identifier.
    score (:obj:`int`): New score, must be non-negative.
    force (:obj:`bool`, optional): Pass :obj:`True`, if the high score is allowed to
        decrease. This can be useful when fixing mistakes or banning cheaters.
    disable_edit_message (:obj:`bool`, optional): Pass :obj:`True`, if the game message
        should not be automatically edited to include the current scoreboard.
    chat_id (:obj:`int`, optional): Required if :paramref:`inline_message_id`
        is not specified. Unique identifier for the target chat.
    message_id (:obj:`int`, optional): Required if :paramref:`inline_message_id` is not
        specified. Identifier of the sent message.
    inline_message_id (:obj:`str`, optional): Required if :paramref:`chat_id` and
        :paramref:`message_id` are not specified. Identifier of the inline message.

Returns:
    :class:`telegram.Message`: The edited message. If the message is not an inline message
    , :obj:`True`.

Raises:
    :class:`telegram.error.TelegramError`: If the new score is not greater than the user's
        current score in the chat and :paramref:`force` is :obj:`False`.

)r  r  r  r  rJ  r/  r  setGameScorer  Nr`  )r   r  r  rJ  r/  r  r  r  r  r  r	  r
  r   r   s                 r   set_game_scoreBot.set_game_scoreN  s]     Z $8$!2
 ''%'+%! ( 
 
 	
 
s   #,*,c          
         #    UUUUS.n
U R                  SU
UUUUU	S9I Sh  vN n[        R                  " X5      $  N7f)a4  
Use this method to get data for high score tables. Will return the score of the specified
user and several of their neighbors in a game.

Note:
    This method will currently return scores for the target user, plus two of their
    closest neighbors on each side. Will also return the top three users if the user and
    his neighbors are not among them. Please note that this behavior is subject to change.

.. versionchanged:: 20.0
    Returns a tuple instead of a list.

Args:
    user_id (:obj:`int`): Target user id.
    chat_id (:obj:`int`, optional): Required if :paramref:`inline_message_id`
        is not specified. Unique identifier for the target chat.
    message_id (:obj:`int`, optional): Required if :paramref:`inline_message_id` is not
        specified. Identifier of the sent message.
    inline_message_id (:obj:`str`, optional): Required if :paramref:`chat_id` and
        :paramref:`message_id` are not specified. Identifier of the inline message.

Returns:
    tuple[:class:`telegram.GameHighScore`]

Raises:
    :class:`telegram.error.TelegramError`

)r  rJ  r/  r  getGameHighScoresr  N)r  r0   rA  )r   r  rJ  r/  r  r  r  r	  r
  r   r   r  s               r   get_game_high_scoresBot.get_game_high_scores  sb     T $!2	
 zz%'+%! " 
 
 $$V22
    ?=?descriptionpayloadprovider_tokencurrencypricesrg   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                   #    0 SU_SU_SU_SU_SU_SU_SU_SU_S	U_S
U_SU_SU	_SU
_SU_SU_SU_SU_UUUUUS.En%U R                  SU%UUUUUUUU U!U"U#U$UUS9I Sh  vN $  N7f)a  Use this method to send invoices.

Warning:
    As of API 5.2 :paramref:`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` is optional.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    title (:obj:`str`): Product name. :tg-const:`telegram.Invoice.MIN_TITLE_LENGTH`-
        :tg-const:`telegram.Invoice.MAX_TITLE_LENGTH` characters.
    description (:obj:`str`): Product description.
        :tg-const:`telegram.Invoice.MIN_DESCRIPTION_LENGTH`-
        :tg-const:`telegram.Invoice.MAX_DESCRIPTION_LENGTH` characters.
    payload (:obj:`str`): Bot-defined invoice payload.
        :tg-const:`telegram.Invoice.MIN_PAYLOAD_LENGTH`-
        :tg-const:`telegram.Invoice.MAX_PAYLOAD_LENGTH` bytes. This will not be
        displayed to the user, use it for your internal processes.
    provider_token (:obj:`str`): Payments provider token, obtained via
        `@BotFather <https://t.me/BotFather>`_. Pass an empty string for payments in
        |tg_stars|.

        .. deprecated:: 21.3
            As of Bot API 7.4, this parameter is now optional and future versions of the
            library will make it optional as well.

    currency (:obj:`str`): Three-letter ISO 4217 currency code, see `more on currencies
        <https://core.telegram.org/bots/payments#supported-currencies>`_. Pass ``XTR`` for
        payment in |tg_stars|.
    prices (Sequence[:class:`telegram.LabeledPrice`]): Price breakdown, a sequence
        of components (e.g. product price, tax, discount, delivery cost, delivery tax,
        bonus, etc.). Must contain exactly one item for payment in |tg_stars|.

        .. versionchanged:: 20.0
            |sequenceargs|
    max_tip_amount (:obj:`int`, optional): The maximum accepted amount for tips in the
        *smallest units* of the currency (integer, **not** float/double). For example, for
        a maximum tip of ``US$ 1.45`` pass ``max_tip_amount = 145``. See the ``exp``
        parameter in `currencies.json
        <https://core.telegram.org/bots/payments/currencies.json>`_, it shows the number of
        digits past the decimal point for each currency (2 for the majority of currencies).
        Defaults to ``0``. Not supported for payment in |tg_stars|.

        .. versionadded:: 13.5
    suggested_tip_amounts (Sequence[:obj:`int`], optional): An array of
        suggested amounts of tips in the *smallest units* of the currency (integer, **not**
        float/double). At most :tg-const:`telegram.Invoice.MAX_TIP_AMOUNTS` suggested tip
        amounts can be specified. The suggested tip amounts must be positive, passed in a
        strictly increased order and must not exceed :paramref:`max_tip_amount`.

        .. versionadded:: 13.5

        .. versionchanged:: 20.0
            |sequenceargs|
    start_parameter (:obj:`str`, optional): Unique deep-linking parameter. If left empty,
        *forwarded copies* of the sent message will have a *Pay* button, allowing
        multiple users to pay directly from the forwarded message, using the same invoice.
        If non-empty, forwarded copies of the sent message will have a *URL* button with a
        deep link to the bot (instead of a *Pay* button), with the value used as the
        start parameter.

        .. versionchanged:: 13.5
            As of Bot API 5.2, this parameter is optional.
    provider_data (:obj:`str` | :obj:`object`, optional): data about the
        invoice, which will be shared with the payment provider. A detailed description of
        required fields should be provided by the payment provider. When an object is
        passed, it will be encoded as JSON.
    photo_url (:obj:`str`, optional): URL of the product photo for the invoice. Can be a
        photo of the goods or a marketing image for a service. People like it better when
        they see what they are paying for.
    photo_size (:obj:`str`, optional): Photo size.
    photo_width (:obj:`int`, optional): Photo width.
    photo_height (:obj:`int`, optional): Photo height.
    need_name (:obj:`bool`, optional): Pass :obj:`True`, if you require the user's full
        name to complete the order. Ignored for payments in |tg_stars|.
    need_phone_number (:obj:`bool`, optional): Pass :obj:`True`, if you require the user's
        phone number to complete the order. Ignored for payments in |tg_stars|.
    need_email (:obj:`bool`, optional): Pass :obj:`True`, if you require the user's email
        to complete the order. Ignored for payments in |tg_stars|.
    need_shipping_address (:obj:`bool`, optional): Pass :obj:`True`, if you require the
        user's shipping address to complete the order. Ignored for payments in
        |tg_stars|.
    send_phone_number_to_provider (:obj:`bool`, optional): Pass :obj:`True`, if user's
        phone number should be sent to provider. Ignored for payments in |tg_stars|.
    send_email_to_provider (:obj:`bool`, optional): Pass :obj:`True`, if user's email
        address should be sent to provider. Ignored for payments in |tg_stars|.
    is_flexible (:obj:`bool`, optional): Pass :obj:`True`, if the final price depends on
        the shipping method. Ignored for payments in |tg_stars|.
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): An object for an
        inline keyboard. If empty, one 'Pay total price' button will be
        shown. If not empty, the first button must be a Pay button.
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

rJ  ru  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  )r  r  r  r  r  sendInvoice)r  r   r!  r  r"  r#  r'  r  r  r	  r
  r   r)  r*  Nr`  )&r   rJ  ru  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   s&                                         r   send_invoiceBot.send_invoice  sA    f
w
U
 ;
 w	

 n
 
 f
 n
 $%:
 
 ]
 
 *
 ;
 L
  !
"  !2#
$ %%:&-J&<-
2 '' 3!5%(C+/-%'+%!/!5! ( 
 
 	
 
s   AA(!A&"A(shipping_query_idokshipping_optionsrk   error_messagec          
      V   #    UUUUS.n
U R                  SU
UUUUU	S9I Sh  vN $  N7f)a  
If you sent an invoice requesting a shipping address and the parameter
:paramref:`send_invoice.is_flexible` was specified, the Bot API will send an
:class:`telegram.Update` with a :attr:`telegram.Update.shipping_query` field to the bot.
Use this method to reply to shipping queries.

Args:
    shipping_query_id (:obj:`str`): Unique identifier for the query to be answered.
    ok (:obj:`bool`): Specify :obj:`True` if delivery to the specified address is possible
        and :obj:`False` if there are any problems (for example, if delivery to the
        specified address is not possible).
    shipping_options (Sequence[:class:`telegram.ShippingOption`]), optional): Required if
        :paramref:`ok` is :obj:`True`. A sequence of available shipping options.

        .. versionchanged:: 20.0
            |sequenceargs|
    error_message (:obj:`str`, optional): Required if :paramref:`ok` is :obj:`False`.
        Error message in human readable form that explains why it is impossible to complete
        the order (e.g. "Sorry, delivery to your desired address is unavailable"). Telegram
        will display this message to the user.

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

Raises:
    :class:`telegram.error.TelegramError`

)r  r  r  r  answerShippingQueryr  NrT  )r   r  r  r  r  r  r  r	  r
  r   r   s              r   answer_shipping_queryBot.answer_shipping_query  sR     T "3 0*	
 ZZ!%'+%!   
 
 	
 
r  pre_checkout_query_idc          
      T   #    UUUS.n	U R                  SU	UUUUUS9I Sh  vN $  N7f)a  
Once the user has confirmed their payment and shipping details, the Bot API sends the final
confirmation in the form of an :class:`telegram.Update` with the field
:attr:`telegram.Update.pre_checkout_query`. Use this method to respond to such pre-checkout
queries.

Note:
    The Bot API must receive an answer within 10 seconds after the pre-checkout
    query was sent.

Args:
    pre_checkout_query_id (:obj:`str`): Unique identifier for the query to be answered.
    ok (:obj:`bool`): Specify :obj:`True` if everything is alright
        (goods are available, etc.) and the bot is ready to proceed with the order. Use
        :obj:`False` if there are any problems.
    error_message (:obj:`str`, optional): Required if :paramref:`ok` is :obj:`False`. Error
        message in human readable form that explains the reason for failure to proceed with
        the checkout (e.g. "Sorry, somebody just bought the last of our amazing black
        T-shirts while you were busy filling out your payment details. Please choose a
        different color or garment!"). Telegram will display this message to the user.

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

Raises:
    :class:`telegram.error.TelegramError`

)r  r  r  answerPreCheckoutQueryr  NrT  )
r   r  r  r  r  r  r	  r
  r   r   s
             r   answer_pre_checkout_queryBot.answer_pre_checkout_query  sO     R &;*
 ZZ$%'+%!   
 
 	
 
   (&(web_app_query_idc          
         #    UU R                  U5      S.nU R                  SUUUUUUS9I Sh  vN n	[        R                  " X5      $  N7f)a/  Use this method to set the result of an interaction with a Web App and send a
corresponding message on behalf of the user to the chat from which the query originated.

.. versionadded:: 20.0

Args:
    web_app_query_id (:obj:`str`): Unique identifier for the query to be answered.
    result (:class:`telegram.InlineQueryResult`): An object describing the message to be
        sent.

Returns:
    :class:`telegram.SentWebAppMessage`: On success, a sent
    :class:`telegram.SentWebAppMessage` is returned.

Raises:
    :class:`telegram.error.TelegramError`

)r  r  answerWebAppQueryr  N)r  r  r?   r1  )
r   r  r  r  r  r	  r
  r   r   
api_results
             r   answer_web_app_queryBot.answer_web_app_query  sf     < !1;;FC

  ::%'+%! & 
 

 !((::
s   -AA
Apermissions use_independent_chat_permissionsc          
      X   #    UUUUUS.nU R                  SUUUUU	U
S9I Sh  vN $  N7f)ao  
Use this method to restrict a user in a supergroup. The bot must be an administrator in
the supergroup for this to work and must have the appropriate admin rights. Pass
:obj:`True` for all boolean parameters to lift restrictions from a user.

.. seealso:: :meth:`telegram.ChatPermissions.all_permissions`

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|
    user_id (:obj:`int`): Unique identifier of the target user.
    until_date (:obj:`int` | :obj:`datetime.datetime`, optional): Date when restrictions
        will be lifted for the user, unix time. If user is restricted for more than 366
        days or less than 30 seconds from the current time, they are considered to be
        restricted forever.
        |tz-naive-dtms|
    permissions (:class:`telegram.ChatPermissions`): An object for new user
        permissions.
    use_independent_chat_permissions (:obj:`bool`, optional): Pass :obj:`True` if chat
        permissions are set independently. Otherwise, the
        :attr:`~telegram.ChatPermissions.can_send_other_messages` and
        :attr:`~telegram.ChatPermissions.can_add_web_page_previews` permissions will imply
        the :attr:`~telegram.ChatPermissions.can_send_messages`,
        :attr:`~telegram.ChatPermissions.can_send_audios`,
        :attr:`~telegram.ChatPermissions.can_send_documents`,
        :attr:`~telegram.ChatPermissions.can_send_photos`,
        :attr:`~telegram.ChatPermissions.can_send_videos`,
        :attr:`~telegram.ChatPermissions.can_send_video_notes`, and
        :attr:`~telegram.ChatPermissions.can_send_voice_notes` permissions; the
        :attr:`~telegram.ChatPermissions.can_send_polls` permission will imply the
        :attr:`~telegram.ChatPermissions.can_send_messages` permission.

        .. versionadded: 20.1

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

Raises:
    :class:`telegram.error.TelegramError`
)rJ  r  r  r   r  restrictChatMemberr  NrT  )r   rJ  r  r  r   r  r  r  r	  r
  r   r   s               r   restrict_chat_memberBot.restrict_chat_memberI  sU     l &$0P
 ZZ %'+%!   
 
 	
 
r  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          
         #    0 SU_SU_SU_SU_SU_SU_SU_SU_S	U_S
U	_SU
_SU_SU_SU_SU_SU_SU_nU R                  SUUUUUUS9I Sh  vN $  N7f)a7  
Use this method to promote or demote a user in a supergroup or a channel. The bot must be
an administrator in the chat for this to work and must have the appropriate admin rights.
Pass :obj:`False` for all boolean parameters to demote a user.

.. versionchanged:: 20.0
   The argument ``can_manage_voice_chats`` was renamed to
   :paramref:`can_manage_video_chats` in accordance to Bot API 6.0.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    user_id (:obj:`int`): Unique identifier of the target user.
    is_anonymous (:obj:`bool`, optional): Pass :obj:`True`, if the administrator's presence
        in the chat is hidden.
    can_manage_chat (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
        access the chat event log, get boost list, see hidden supergroup and channel
        members, report spam messages and ignore slow mode. Implied by any other
        administrator privilege.

        .. versionadded:: 13.4

    can_manage_video_chats (:obj:`bool`, optional): Pass :obj:`True`, if the administrator
        can manage video chats.

        .. versionadded:: 20.0

    can_change_info (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
        change chat title, photo and other settings.
    can_post_messages (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
        post messages in the channel, or access channel statistics; for channels only.
    can_edit_messages (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
        edit messages of other users and can pin messages, for channels only.
    can_delete_messages (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
        delete messages of other users.
    can_invite_users (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
        invite new users to the chat.
    can_restrict_members (:obj:`bool`, optional): Pass :obj:`True`, if the administrator
        can restrict, ban or unban chat members, or access supergroup statistics.
    can_pin_messages (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
        pin messages, for supergroups only.
    can_promote_members (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
        add new administrators with a subset of their own privileges or demote
        administrators that they have promoted, directly or indirectly
        (promoted by administrators that were appointed by the user).
    can_manage_topics (:obj:`bool`, optional): Pass :obj:`True`, if the user is
        allowed to create, rename, close, and reopen forum topics; for supergroups only.

        .. versionadded:: 20.0
    can_post_stories (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
        post stories to the chat.

        .. versionadded:: 20.6
    can_edit_stories (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
        edit stories posted by other users, post stories to the chat page, pin chat
        stories, and access the chat's story archive

        .. versionadded:: 20.6
    can_delete_stories (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
        delete stories posted by other users.

        .. versionadded:: 20.6

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

Raises:
    :class:`telegram.error.TelegramError`

rJ  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  promoteChatMemberr  NrT  )r   rJ  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r	  r
  r   r   s                           r   promote_chat_memberBot.promote_chat_member  s    ~
w
w
 L
 	

  !2
  !2
 "#6
  0
 #$8
  0
 "#6
 
 %&<
  !2
  0
   0!
" !"4#
( ZZ%'+%!   
 
 	
 
s   AAAAc          
      T   #    UUUS.n	U R                  SU	UUUUUS9I Sh  vN $  N7f)a  
Use this method to set default chat permissions for all members. The bot must be an
administrator in the group or a supergroup for this to work and must have the
:attr:`telegram.ChatMemberAdministrator.can_restrict_members` admin rights.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|
    permissions (:class:`telegram.ChatPermissions`): New default chat permissions.
    use_independent_chat_permissions (:obj:`bool`, optional): Pass :obj:`True` if chat
        permissions are set independently. Otherwise, the
        :attr:`~telegram.ChatPermissions.can_send_other_messages` and
        :attr:`~telegram.ChatPermissions.can_add_web_page_previews` permissions will imply
        the :attr:`~telegram.ChatPermissions.can_send_messages`,
        :attr:`~telegram.ChatPermissions.can_send_audios`,
        :attr:`~telegram.ChatPermissions.can_send_documents`,
        :attr:`~telegram.ChatPermissions.can_send_photos`,
        :attr:`~telegram.ChatPermissions.can_send_videos`,
        :attr:`~telegram.ChatPermissions.can_send_video_notes`, and
        :attr:`~telegram.ChatPermissions.can_send_voice_notes` permissions; the
        :attr:`~telegram.ChatPermissions.can_send_polls` permission will imply the
        :attr:`~telegram.ChatPermissions.can_send_messages` permission.

        .. versionadded: 20.1

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  r  setChatPermissionsr  NrT  )
r   rJ  r  r  r  r  r	  r
  r   r   s
             r   set_chat_permissionsBot.set_chat_permissions  sO     X &0P

 ZZ %'+%!   
 
 	
 
r  custom_titlec          
      R   #    XUS.n	U R                  SU	UUUUUS9I Sh  vN $  N7f)aY  
Use this method to set a custom title for administrators promoted by the bot in a
supergroup. The bot must be an administrator for this to work.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|
    user_id (:obj:`int`): Unique identifier of the target administrator.
    custom_title (:obj:`str`): New custom title for the administrator;
        0-:tg-const:`telegram.constants.ChatLimit.CHAT_ADMINISTRATOR_CUSTOM_TITLE_LENGTH`
        characters, emoji are not allowed.

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  r  setChatAdministratorCustomTitler  NrT  )
r   rJ  r  r  r  r  r	  r
  r   r   s
             r   #set_chat_administrator_custom_title'Bot.set_chat_administrator_custom_titleG  sG     < &-R^_ZZ-%'+%!   
 
 	
 
r2  c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)a@  
Use this method to generate a new primary invite link for a chat; any previously generated
link is revoked. The bot must be an administrator in the chat for this to work and must
have the appropriate admin rights.

Note:
    Each administrator in a chat generates their own invite links. Bots can't use invite
    links generated by other administrators. If you want your bot to work with invite
    links, it will need to generate its own link using :meth:`export_chat_invite_link` or
    by calling the :meth:`get_chat` method. If your bot needs to generate a new primary
    invite link replacing its previous one, use :meth:`export_chat_invite_link` again.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|

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

Raises:
    :class:`telegram.error.TelegramError`

rJ  exportChatInviteLinkr  NrT  rh  s           r   export_chat_invite_linkBot.export_chat_invite_linkq  sG     @ $W-ZZ"%'+%!   
 
 	
 
rW  expire_datemember_limitr   creates_join_requestc          
         #    UUUUUS.nU R                  SUUUUU	U
S9I Sh  vN n[        R                  " X5      $  N7f)a  
Use this method to create an additional invite link for a chat. The bot must be an
administrator in the chat for this to work and must have the appropriate admin rights.
The link can be revoked using the method :meth:`revoke_chat_invite_link`.

Note:
    When joining *public* groups via an invite link, Telegram clients may display the
    usual "Join" button, effectively ignoring the invite link. In particular, the parameter
    :paramref:`creates_join_request` has no effect in this case.
    However, this behavior is undocument and may be subject to change.
    See `this GitHub thread <https://github.com/tdlib/telegram-bot-api/issues/429>`_
    for some discussion.

.. versionadded:: 13.4

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    expire_date (:obj:`int` | :obj:`datetime.datetime`, optional): Date when the link will
        expire. Integer input will be interpreted as Unix timestamp.
        |tz-naive-dtms|
    member_limit (:obj:`int`, optional): Maximum number of users that can be members of
        the chat simultaneously after joining the chat via this invite link;
        :tg-const:`telegram.constants.ChatInviteLinkLimit.MIN_MEMBER_LIMIT`-
        :tg-const:`telegram.constants.ChatInviteLinkLimit.MAX_MEMBER_LIMIT`.
    name (:obj:`str`, optional): Invite link name;
        0-:tg-const:`telegram.constants.ChatInviteLinkLimit.NAME_LENGTH` characters.

        .. versionadded:: 13.8
    creates_join_request (:obj:`bool`, optional): :obj:`True`, if users joining the chat
        via the link need to be approved by chat administrators.
        If :obj:`True`, :paramref:`member_limit` can't be specified.

        .. versionadded:: 13.8

Returns:
    :class:`telegram.ChatInviteLink`

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  r  r   r  createChatInviteLinkr  Nr  r   r1  )r   rJ  r  r  r   r  r  r  r	  r
  r   r   r  s                r   create_chat_invite_linkBot.create_chat_invite_link  se     p &($8
 zz"%'+%! " 
 
 %%f33
s   !A >A invite_linkr   c          
         #    [        U[        5      (       a  UR                  OUnUUUUUUS.nU R                  SUUUU	U
US9I Sh  vN n[        R                  " X5      $  N7f)a  
Use this method to edit a non-primary invite link created by the bot. The bot must be an
administrator in the chat for this to work and must have the appropriate admin rights.

Note:
    Though not stated explicitly in the official docs, Telegram changes not only the
    optional parameters that are explicitly passed, but also replaces all other optional
    parameters to the default values. However, since not documented, this behaviour may
    change unbeknown to PTB.

.. versionadded:: 13.4

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    invite_link (:obj:`str` | :class:`telegram.ChatInviteLink`): The invite link to edit.

        .. versionchanged:: 20.0
            Now also accepts :class:`telegram.ChatInviteLink` instances.
    expire_date (:obj:`int` | :obj:`datetime.datetime`, optional): Date when the link will
        expire.
        |tz-naive-dtms|
    member_limit (:obj:`int`, optional): Maximum number of users that can be members of
        the chat simultaneously after joining the chat via this invite link;
        :tg-const:`telegram.constants.ChatInviteLinkLimit.MIN_MEMBER_LIMIT`-
        :tg-const:`telegram.constants.ChatInviteLinkLimit.MAX_MEMBER_LIMIT`.
    name (:obj:`str`, optional): Invite link name;
        0-:tg-const:`telegram.constants.ChatInviteLinkLimit.NAME_LENGTH` characters.

        .. versionadded:: 13.8
    creates_join_request (:obj:`bool`, optional): :obj:`True`, if users joining the chat
        via the link need to be approved by chat administrators.
        If :obj:`True`, :paramref:`member_limit` can't be specified.

        .. versionadded:: 13.8

Returns:
    :class:`telegram.ChatInviteLink`

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  r  r  r   r  editChatInviteLinkr  Nr   r   r  r  r1  )r   rJ  r  r  r  r   r  r  r  r	  r
  r   r   r   r  s                  r   edit_chat_invite_linkBot.edit_chat_invite_link  s     r +5[.*Q*Q{&&Wb&($8
 zz %'+%! " 
 
 %%f33
s   AA$A"A$c          
         #    [        U[        5      (       a  UR                  OUnXS.n	U R                  SU	UUUUUS9I Sh  vN n
[        R                  " X5      $  N7f)aq  
Use this method to revoke an invite link created by the bot. If the primary link is
revoked, a new link is automatically generated. The bot must be an administrator in the
chat for this to work and must have the appropriate admin rights.

.. versionadded:: 13.4

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    invite_link (:obj:`str` | :class:`telegram.ChatInviteLink`): The invite link to revoke.

        .. versionchanged:: 20.0
            Now also accepts :class:`telegram.ChatInviteLink` instances.

Returns:
    :class:`telegram.ChatInviteLink`

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  revokeChatInviteLinkr  Nr  )r   rJ  r  r  r  r	  r
  r   r   r   r  s              r   revoke_chat_invite_linkBot.revoke_chat_invite_link6  so     @ +5[.*Q*Q{&&Wb%,Bzz"%'+%! " 
 
 %%f33
s   A AAAc          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  Use this method to approve a chat join request.

The bot must be an administrator in the chat for this to work and must have the
:attr:`telegram.ChatPermissions.can_invite_users` administrator right.

.. versionadded:: 13.8

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    user_id (:obj:`int`): Unique identifier of the target user.

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

Raises:
    :class:`telegram.error.TelegramError`
rz  approveChatJoinRequestr  NrT  	r   rJ  r  r  r  r	  r
  r   r   s	            r   approve_chat_join_requestBot.approve_chat_join_requeste  D     8 &-AZZ$%'+%!   
 
 	
 
rW  c          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  Use this method to decline a chat join request.

The bot must be an administrator in the chat for this to work and must have the
:attr:`telegram.ChatPermissions.can_invite_users` administrator right.

.. versionadded:: 13.8

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    user_id (:obj:`int`): Unique identifier of the target user.

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

Raises:
    :class:`telegram.error.TelegramError`
rz  declineChatJoinRequestr  NrT  r  s	            r   decline_chat_join_requestBot.decline_chat_join_request  r  rW  c          
      n   #    XR                  U5      S.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  Use this method to set a new profile photo for the chat.

Photos can't be changed for private chats. The bot must be an administrator in the chat
for this to work and must have the appropriate admin rights.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    photo (:term:`file object` | :obj:`bytes` | :class:`pathlib.Path`): New chat photo.
        |uploadinput|

        .. versionchanged:: 13.2
           Accept :obj:`bytes` as input.

        .. versionchanged:: 20.0
            File paths as input is also accepted for bots *not* running in
            :paramref:`~telegram.Bot.local_mode`.

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  ri  setChatPhotor  Nr_  )	r   rJ  ri  r  r  r	  r
  r   r   s	            r   set_chat_photoBot.set_chat_photo  sP     F &-7M7Me7TUZZ%'+%!   
 
 	
 
   ,535c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)ar  
Use this method to delete a chat photo. Photos can't be changed for private chats. The bot
must be an administrator in the chat for this to work and must have the appropriate admin
rights.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|

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

Raises:
    :class:`telegram.error.TelegramError`

rJ  deleteChatPhotor  NrT  rh  s           r   delete_chat_photoBot.delete_chat_photo  sF     2 $W-ZZ%'+%!   
 
 	
 
rW  c          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a<  
Use this method to change the title of a chat. Titles can't be changed for private chats.
The bot must be an administrator in the chat for this to work and must have the appropriate
admin rights.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    title (:obj:`str`): New chat title,
        :tg-const:`telegram.constants.ChatLimit.MIN_CHAT_TITLE_LENGTH`-
        :tg-const:`telegram.constants.ChatLimit.MAX_CHAT_TITLE_LENGTH` characters.

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  ru  setChatTitler  NrT  )	r   rJ  ru  r  r  r	  r
  r   r   s	            r   set_chat_titleBot.set_chat_title  sD     : &-=ZZ%'+%!   
 
 	
 
rW  c          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to change the description of a group, a supergroup or a channel. The bot
must be an administrator in the chat for this to work and must have the appropriate admin
rights.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    description (:obj:`str`, optional): New chat description,
        0-:tg-const:`telegram.constants.ChatLimit.CHAT_DESCRIPTION_LENGTH`
        characters.

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  setChatDescriptionr  NrT  )	r   rJ  r  r  r  r	  r
  r   r   s	            r   set_chat_descriptionBot.set_chat_description/  sD     : &-IZZ %'+%!   
 
 	
 
rW  emoji_status_custom_emoji_idemoji_status_expiration_datec          
      T   #    UUUS.n	U R                  SU	UUUUUS9I Sh  vN $  N7f)a6  Changes the emoji status for a given user that previously allowed the bot to manage
their emoji status via the Mini App method
`requestEmojiStatusAccess <https://core.telegram.org/bots/webapps#initializing-mini-apps>`_
.

.. versionadded:: 21.8

Args:
    user_id (:obj:`int`): Unique identifier of the target user
    emoji_status_custom_emoji_id (:obj:`str`, optional): Custom emoji identifier of the
        emoji status to set. Pass an empty string to remove the status.
    emoji_status_expiration_date (Union[:obj:`int`, :obj:`datetime.datetime`], optional):
        Expiration date of the emoji status, if any, as unix timestamp or
        :class:`datetime.datetime` object.
        |tz-naive-dtms|

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

Raises:
    :class:`telegram.error.TelegramError`

)r  r  r  setUserEmojiStatusr  NrT  )
r   r  r  r  r  r  r	  r
  r   r   s
             r   set_user_emoji_statusBot.set_user_emoji_statusX  sO     H ,H,H

 ZZ %'+%!   
 
 	
 
r  c          
      V   #    UUUUS.n
U R                  SU
UUUUU	S9I Sh  vN $  N7f)a  
Use this method to add a message to the list of pinned messages in a chat. If the
chat is not a private chat, the bot must be an administrator in the chat for this to work
and must have the :paramref:`~telegram.ChatAdministratorRights.can_pin_messages` admin
right in a supergroup or :attr:`~telegram.ChatMemberAdministrator.can_edit_messages` admin
right in a channel.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    message_id (:obj:`int`): Identifier of a message to pin.
    disable_notification (:obj:`bool`, optional): Pass :obj:`True`, if it is not necessary
        to send a notification to all chat members about the new pinned message.
        Notifications are always disabled in channels and private chats.
    business_connection_id (:obj:`str`, optional): Unique identifier of the business
        connection on behalf of which the message will be pinned.

        .. versionadded:: 21.5

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r/  r   r(  pinChatMessager  NrT  )r   rJ  r/  r   r(  r  r  r	  r
  r   r   s              r   pin_chat_messageBot.pin_chat_message  sR     N $$8&<	
 ZZ%'+%!   
 
 	
 
r  c          
      T   #    UUUS.n	U R                  SU	UUUUUS9I Sh  vN $  N7f)a  
Use this method to remove a message from the list of pinned messages in a chat. If the
chat is not a private chat, the bot must be an administrator in the chat for this to work
and must have the :paramref:`~telegram.ChatAdministratorRights.can_pin_messages` admin
right in a supergroup or :attr:`~telegram.ChatMemberAdministrator.can_edit_messages` admin
right in a channel.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    message_id (:obj:`int`, optional): Identifier of the message to unpin. Required if
        :paramref:`business_connection_id` is specified. If not specified,
        the most recent pinned message (by sending date) will be unpinned.
    business_connection_id (:obj:`str`, optional): Unique identifier of the business
        connection on behalf of which the message will be unpinned.

        .. versionadded:: 21.5

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r/  r(  unpinChatMessager  NrT  )
r   rJ  r/  r(  r  r  r	  r
  r   r   s
             r   unpin_chat_messageBot.unpin_chat_message  sO     J $&<
 ZZ%'+%!   
 
 	
 
r  c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to clear the list of pinned messages in a chat. If the
chat is not a private chat, the bot must be an administrator in the chat for this
to work and must have the :paramref:`~telegram.ChatAdministratorRights.can_pin_messages`
admin right in a supergroup or :attr:`~telegram.ChatMemberAdministrator.can_edit_messages`
admin right in a channel.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|

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

Raises:
    :class:`telegram.error.TelegramError`

rJ  unpinAllChatMessagesr  NrT  rh  s           r   unpin_all_chat_messagesBot.unpin_all_chat_messages  sF     6 $W-ZZ"%'+%!   
 
 	
 
rW  c          
      |   #    SU0nU R                  SUUUUUUS9I Sh  vN n[        R                  " X5      $  N7f)zUse this method to get a sticker set.

Args:
    name (:obj:`str`): Name of the sticker set.

Returns:
    :class:`telegram.StickerSet`

Raises:
    :class:`telegram.error.TelegramError`

r   getStickerSetr  N)r  r*   r1  )	r   r   r  r  r	  r
  r   r   r  s	            r   get_sticker_setBot.get_sticker_set  sU     , !$zz%'+%! " 
 
 !!&//
rp  custom_emoji_idsc          
      |   #    SU0nU R                  SUUUUUUS9I Sh  vN n[        R                  " X5      $  N7f)a  
Use this method to get information about emoji stickers by their identifiers.

.. versionchanged:: 20.0
    Returns a tuple instead of a list.

Args:
    custom_emoji_ids (Sequence[:obj:`str`]): Sequence of custom emoji identifiers.
        At most :tg-const:`telegram.constants.CustomEmojiStickerLimit.CUSTOM_EMOJI_IDENTIFIER_LIMIT` custom emoji identifiers can be specified.

        .. versionchanged:: 20.0
            |sequenceargs|

Returns:
    tuple[:class:`telegram.Sticker`]

Raises:
    :class:`telegram.error.TelegramError`

r-  getCustomEmojiStickersr  Nr  r)   rA  )	r   r-  r  r  r	  r
  r   r   r  s	            r   get_custom_emoji_stickersBot.get_custom_emoji_stickers=  sU     > -.>?zz$%'+%! " 
 
 v,,
rp  sticker_formatc          
         #    UU R                  U5      US.n	U R                  SU	UUUUUS9I Sh  vN n
[        R                  " X5      $  N7f)aJ  
Use this method to upload a file with a sticker for later use in the
:meth:`create_new_sticker_set` and :meth:`add_sticker_to_set` methods (can be used multiple
times).

.. versionchanged:: 20.5
   Removed deprecated parameter ``png_sticker``.

Args:
    user_id (:obj:`int`): User identifier of sticker file owner.
    sticker (:obj:`str` | :term:`file object` | :class:`~telegram.InputFile` |                 :obj:`bytes` | :class:`pathlib.Path`): A file with the sticker in the
        ``".WEBP"``, ``".PNG"``, ``".TGS"`` or ``".WEBM"``
        format. See `here <https://core.telegram.org/stickers>`_ for technical requirements
        . |uploadinput|

        .. versionadded:: 20.2

    sticker_format (:obj:`str`): Format of the sticker. Must be one of
        :attr:`telegram.constants.StickerFormat.STATIC`,
        :attr:`telegram.constants.StickerFormat.ANIMATED`,
        :attr:`telegram.constants.StickerFormat.VIDEO`.

        .. versionadded:: 20.2

Returns:
    :class:`telegram.File`: On success, the uploaded File is returned.

Raises:
    :class:`telegram.error.TelegramError`

)r  r  r3  uploadStickerFiler  N)r   r  r#   r1  )r   r  r  r3  r  r  r	  r
  r   r   r  s              r   upload_sticker_fileBot.upload_sticker_fileh  sh     Z --g6,

 zz%'+%! " 
 
 ||F))
s   .AAArf   c          
      T   #    UUUS.n	U R                  SU	UUUUUS9I Sh  vN $  N7f)a  
Use this method to add a new sticker to a set created by the bot. The format of the added
sticker must match the format of the other stickers in the set. Emoji sticker sets can have
up to :tg-const:`telegram.constants.StickerSetLimit.MAX_EMOJI_STICKERS` stickers. Other
sticker sets can have up to
:tg-const:`telegram.constants.StickerSetLimit.MAX_STATIC_STICKERS` stickers.

.. versionchanged:: 20.2
    Since Bot API 6.6, the parameter :paramref:`sticker` replace the parameters
    ``png_sticker``, ``tgs_sticker``, ``webm_sticker``, ``emojis``, and ``mask_position``.

.. versionchanged:: 20.5
   Removed deprecated parameters ``png_sticker``, ``tgs_sticker``, ``webm_sticker``,
   ``emojis``, and ``mask_position``.

Args:
    user_id (:obj:`int`): User identifier of created sticker set owner.
    name (:obj:`str`): Sticker set name.
    sticker (:class:`telegram.InputSticker`): An object with information about the added
        sticker. If exactly the same sticker had already been added to the set, then the
        set isn't changed.

        .. versionadded:: 20.2

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

Raises:
    :class:`telegram.error.TelegramError`

)r  r   r  addStickerToSetr  NrT  )
r   r  r   r  r  r  r	  r
  r   r   s
             r   add_sticker_to_setBot.add_sticker_to_set  sO     X 
 ZZ%'+%!   
 
 	
 
r  positionc          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)aS  Use this method to move a sticker in a set created by the bot to a specific position.

Args:
    sticker (:obj:`str`): File identifier of the sticker.
    position (:obj:`int`): New sticker position in the set, zero-based.

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

Raises:
    :class:`telegram.error.TelegramError`

)r  r<  setStickerPositionInSetr  NrT  )	r   r  r<  r  r  r	  r
  r   r   s	            r   set_sticker_position_in_setBot.set_sticker_position_in_set  sD     0 &-CZZ%%'+%!   
 
 	
 
rW  stickerssticker_typeneeds_repaintingc          
      Z   #    UUUUUUS.nU R                  SUUUU	U
US9I Sh  vN $  N7f)a	  
Use this method to create new sticker set owned by a user.
The bot will be able to edit the created sticker set thus created.

.. versionchanged:: 20.0
    The parameter ``contains_masks`` has been removed. Use :paramref:`sticker_type`
    instead.

.. versionchanged:: 20.2
    Since Bot API 6.6, the parameters :paramref:`stickers` and :paramref:`sticker_format`
    replace the parameters ``png_sticker``, ``tgs_sticker``,``webm_sticker``, ``emojis``,
    and ``mask_position``.

.. versionchanged:: 20.5
    Removed the deprecated parameters mentioned above and adjusted the order of the
    parameters.

.. versionremoved:: 21.2
   Removed the deprecated parameter ``sticker_format``.

Args:
    user_id (:obj:`int`): User identifier of created sticker set owner.
    name (:obj:`str`): Short name of sticker set, to be used in t.me/addstickers/ URLs
        (e.g., animals). Can contain only english letters, digits and underscores.
        Must begin with a letter, can't contain consecutive underscores and
        must end in "_by_<bot username>". <bot_username> is case insensitive.
        :tg-const:`telegram.constants.StickerLimit.MIN_NAME_AND_TITLE`-
        :tg-const:`telegram.constants.StickerLimit.MAX_NAME_AND_TITLE` characters.
    title (:obj:`str`): Sticker set title,
        :tg-const:`telegram.constants.StickerLimit.MIN_NAME_AND_TITLE`-
        :tg-const:`telegram.constants.StickerLimit.MAX_NAME_AND_TITLE` characters.

    stickers (Sequence[:class:`telegram.InputSticker`]): A sequence of
        :tg-const:`telegram.constants.StickerSetLimit.MIN_INITIAL_STICKERS`-
        :tg-const:`telegram.constants.StickerSetLimit.MAX_INITIAL_STICKERS` initial
        stickers to be added to the sticker set.

        .. versionadded:: 20.2

    sticker_type (:obj:`str`, optional): Type of stickers in the set, pass
        :attr:`telegram.Sticker.REGULAR` or :attr:`telegram.Sticker.MASK`, or
        :attr:`telegram.Sticker.CUSTOM_EMOJI`. By default, a regular sticker set is created

        .. versionadded:: 20.0

    needs_repainting (:obj:`bool`, optional): Pass :obj:`True` if stickers in the sticker
        set must be repainted to the color of text when used in messages, the accent color
        if used as emoji status, white on chat photos, or another appropriate color based
        on context; for custom emoji sticker sets only.

        .. versionadded:: 20.2

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

Raises:
    :class:`telegram.error.TelegramError`
)r  r   ru  rA  rB  rC  createNewStickerSetr  NrT  )r   r  r   ru  rA  rB  rC  r  r  r	  r
  r   r   s                r   create_new_sticker_setBot.create_new_sticker_set  sX     T  ( 0
 ZZ!%'+%!   
 
 	
 
rc  c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)zUse this method to delete a sticker from a set created by the bot.

Args:
    sticker (:obj:`str`): File identifier of the sticker.

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

Raises:
    :class:`telegram.error.TelegramError`

r  deleteStickerFromSetr  NrT  )r   r  r  r  r	  r
  r   r   s           r   delete_sticker_from_setBot.delete_sticker_from_set^  sF     , $W-ZZ"%'+%!   
 
 	
 
rW  c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to delete a sticker set that was created by the bot.

.. versionadded:: 20.2

Args:
    name (:obj:`str`): Sticker set name.

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

Raises:
    :class:`telegram.error.TelegramError`

r   deleteStickerSetr  NrT  )r   r   r  r  r	  r
  r   r   s           r   delete_sticker_setBot.delete_sticker_set  sE     2 !$ZZ%'+%!   
 
 	
 
rW  formatc          
         #    UUU(       a  U R                  U5      OSUS.n
U R                  SU
UUUUU	S9I Sh  vN $  N7f)a  Use this method to set the thumbnail of a regular or mask sticker set. The format of the
thumbnail file must match the format of the stickers in the set.

.. versionadded:: 20.2

.. versionchanged:: 21.1
    As per Bot API 7.2, the new argument :paramref:`format` will be required, and thus the
    order of the arguments had to be changed.

Args:
    name (:obj:`str`): Sticker set name
    user_id (:obj:`int`): User identifier of created sticker set owner.
    format (:obj:`str`): Format of the added sticker, must be one of
        :tg-const:`telegram.constants.StickerFormat.STATIC` for a
        ``.WEBP`` or ``.PNG`` image, :tg-const:`telegram.constants.StickerFormat.ANIMATED`
        for a ``.TGS`` animation, :tg-const:`telegram.constants.StickerFormat.VIDEO` for a
        WEBM video.

        .. versionadded:: 21.1

    thumbnail (:obj:`str` | :term:`file object` | :class:`~telegram.InputFile` |                 :obj:`bytes` | :class:`pathlib.Path`, optional): A **.WEBP** or **.PNG** image
        with the thumbnail, must
        be up to :tg-const:`telegram.constants.StickerSetLimit.MAX_STATIC_THUMBNAIL_SIZE`
        kilobytes in size and have width and height of exactly
        :tg-const:`telegram.constants.StickerSetLimit.STATIC_THUMB_DIMENSIONS` px, or a
        **.TGS** animation with the thumbnail up to
        :tg-const:`telegram.constants.StickerSetLimit.MAX_ANIMATED_THUMBNAIL_SIZE`
        kilobytes in size; see
        `the docs <https://core.telegram.org/stickers#animation-requirements>`_ for
        animated sticker technical requirements, or a **.WEBM** video with the thumbnail up
        to :tg-const:`telegram.constants.StickerSetLimit.MAX_ANIMATED_THUMBNAIL_SIZE`
        kilobytes in size; see
        `this <https://core.telegram.org/stickers#video-requirements>`_ for video sticker
        technical requirements.

        |fileinput|

        Animated and video sticker set thumbnails can't be uploaded via HTTP URL. If
        omitted, then the thumbnail is dropped and the first sticker is used as the
        thumbnail.

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

Raises:
    :class:`telegram.error.TelegramError`

N)r   r  rv  rP  setStickerSetThumbnailr  r_  )r   r   r  rP  rv  r  r  r	  r
  r   r   s              r   set_sticker_set_thumbnailBot.set_sticker_set_thumbnail  sa     ~ >G//	:T	
 ZZ$%'+%!   
 
 	
 
s   8A?Ac          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to set the title of a created sticker set.

.. versionadded:: 20.2

Args:
    name (:obj:`str`): Sticker set name.
    title (:obj:`str`): Sticker set title,
        :tg-const:`telegram.constants.StickerLimit.MIN_NAME_AND_TITLE`-
        :tg-const:`telegram.constants.StickerLimit.MAX_NAME_AND_TITLE` characters.

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

Raises:
    :class:`telegram.error.TelegramError`

)r   ru  setStickerSetTitler  NrT  )	r   r   ru  r  r  r	  r
  r   r   s	            r   set_sticker_set_titleBot.set_sticker_set_title  sD     : #'7ZZ %'+%!   
 
 	
 
rW  
emoji_listc          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)aR  
Use this method to change the list of emoji assigned to a regular or custom emoji sticker.
The sticker must belong to a sticker set created by the bot.

.. versionadded:: 20.2

Args:
    sticker (:obj:`str`): File identifier of the sticker.
    emoji_list (Sequence[:obj:`str`]): A sequence of
        :tg-const:`telegram.constants.StickerLimit.MIN_STICKER_EMOJI`-
        :tg-const:`telegram.constants.StickerLimit.MAX_STICKER_EMOJI` emoji associated with
        the sticker.

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

Raises:
    :class:`telegram.error.TelegramError`
)r  rY  setStickerEmojiListr  NrT  )	r   r  rY  r  r  r	  r
  r   r   s	            r   set_sticker_emoji_listBot.set_sticker_emoji_list  sD     < &-GZZ!%'+%!   
 
 	
 
rW  keywordsc          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)as  
Use this method to change search keywords assigned to a regular or custom emoji sticker.
The sticker must belong to a sticker set created by the bot.

.. versionadded:: 20.2

Args:
    sticker (:obj:`str`): File identifier of the sticker.
    keywords (Sequence[:obj:`str`]): A sequence of
        0-:tg-const:`telegram.constants.StickerLimit.MAX_SEARCH_KEYWORDS` search keywords
        for the sticker with total length up to
        :tg-const:`telegram.constants.StickerLimit.MAX_KEYWORD_LENGTH` characters.

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

Raises:
    :class:`telegram.error.TelegramError`
)r  r^  setStickerKeywordsr  NrT  )	r   r  r^  r  r  r	  r
  r   r   s	            r   set_sticker_keywordsBot.set_sticker_keywordsC  sD     < &-CZZ %'+%!   
 
 	
 
rW  mask_positionc          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to change the mask position of a mask sticker.
The sticker must belong to a sticker set that was created by the bot.

.. versionadded:: 20.2

Args:
    sticker (:obj:`str`): File identifier of the sticker.
    mask_position (:class:`telegram.MaskPosition`, optional): A object with the position
        where the mask should be placed on faces. Omit the parameter to remove the mask
        position.

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

Raises:
    :class:`telegram.error.TelegramError`
)r  rc  setStickerMaskPositionr  NrT  )	r   r  rc  r  r  r	  r
  r   r   s	            r   set_sticker_mask_positionBot.set_sticker_mask_positionl  sD     : &-MZZ$%'+%!   
 
 	
 
rW  custom_emoji_idc          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to set the thumbnail of a custom emoji sticker set.

.. versionadded:: 20.2

Args:
    name (:obj:`str`): Sticker set name.
    custom_emoji_id (:obj:`str`, optional): Custom emoji identifier of a sticker from the
        sticker set; pass an empty string to drop the thumbnail and use the first sticker
        as the thumbnail.

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

Raises:
    :class:`telegram.error.TelegramError`

)r   rh  !setCustomEmojiStickerSetThumbnailr  NrT  )	r   r   rh  r  r  r	  r
  r   r   s	            r   &set_custom_emoji_sticker_set_thumbnail*Bot.set_custom_emoji_sticker_set_thumbnail  sD     : #'KZZ/%'+%!   
 
 	
 
rW  errorsrj   c          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Informs a user that some of the Telegram Passport elements they provided contains errors.
The user will not be able to re-submit their Passport to you until the errors are fixed
(the contents of the field for which you returned the error must change).

Use this if the data submitted by the user doesn't satisfy the standards your service
requires for any reason. For example, if a birthday date seems invalid, a submitted
document is blurry, a scan shows evidence of tampering, etc. Supply some details in the
error message to make sure the user knows how to correct the issues.

Args:
    user_id (:obj:`int`): User identifier
    errors (Sequence[:class:`PassportElementError`]): A Sequence describing the errors.

        .. versionchanged:: 20.0
            |sequenceargs|

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

Raises:
    :class:`telegram.error.TelegramError`

)r  rm  setPassportDataErrorsr  NrT  )	r   r  rm  r  r  r	  r
  r   r   s	            r   set_passport_data_errorsBot.set_passport_data_errors  sE     F &-?ZZ#%'+%!   
 
 	
 
rW  questionoptionsr9   typeallows_multiple_answerscorrect_option_id	is_closedexplanationexplanation_parse_modeopen_period
close_dateexplanation_entitiesquestion_parse_modequestion_entitiesc                   #    UUU Vs/ s H%  n[        U[        5      (       a  [        U5      OUPM'     snUUUUUUUUUUUUS.n U R                  SU UU	U
UUUUUUUUUUUUS9I Sh  vN $ s  snf  N	7f)a  
Use this method to send a native poll.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    question (:obj:`str`): Poll question, :tg-const:`telegram.Poll.MIN_QUESTION_LENGTH`-
        :tg-const:`telegram.Poll.MAX_QUESTION_LENGTH` characters.
    options (Sequence[:obj:`str` | :class:`telegram.InputPollOption`]): Sequence of
        :tg-const:`telegram.Poll.MIN_OPTION_NUMBER`-
        :tg-const:`telegram.Poll.MAX_OPTION_NUMBER` answer options. Each option may either
        be a string with
        :tg-const:`telegram.Poll.MIN_OPTION_LENGTH`-
        :tg-const:`telegram.Poll.MAX_OPTION_LENGTH` characters or an
        :class:`~telegram.InputPollOption` object. Strings are converted to
        :class:`~telegram.InputPollOption` objects automatically.

        .. versionchanged:: 20.0
            |sequenceargs|

        .. versionchanged:: 21.2
           Bot API 7.3 adds support for :class:`~telegram.InputPollOption` objects.
    is_anonymous (:obj:`bool`, optional): :obj:`True`, if the poll needs to be anonymous,
        defaults to :obj:`True`.
    type (:obj:`str`, optional): Poll type, :tg-const:`telegram.Poll.QUIZ` or
        :tg-const:`telegram.Poll.REGULAR`, defaults to :tg-const:`telegram.Poll.REGULAR`.
    allows_multiple_answers (:obj:`bool`, optional): :obj:`True`, if the poll allows
        multiple answers, ignored for polls in quiz mode, defaults to :obj:`False`.
    correct_option_id (:obj:`int`, optional): 0-based identifier of the correct answer
        option, required for polls in quiz mode.
    explanation (:obj:`str`, optional): Text that is shown when a user chooses an incorrect
        answer or taps on the lamp icon in a quiz-style poll,
        0-:tg-const:`telegram.Poll.MAX_EXPLANATION_LENGTH` characters with at most
        :tg-const:`telegram.Poll.MAX_EXPLANATION_LINE_FEEDS` line feeds after entities
        parsing.
    explanation_parse_mode (:obj:`str`, optional): Mode for parsing entities in the
        explanation. See the constants in :class:`telegram.constants.ParseMode` for the
        available modes.
    explanation_entities (Sequence[:class:`telegram.MessageEntity`], optional): Sequence of
        special entities that appear in message text, which can be specified instead of
        :paramref:`explanation_parse_mode`.

        .. versionchanged:: 20.0
            |sequenceargs|
    open_period (:obj:`int`, optional): Amount of time in seconds the poll will be active
        after creation, :tg-const:`telegram.Poll.MIN_OPEN_PERIOD`-
        :tg-const:`telegram.Poll.MAX_OPEN_PERIOD`. Can't be used together with
        :paramref:`close_date`.
    close_date (:obj:`int` | :obj:`datetime.datetime`, optional): Point in time (Unix
        timestamp) when the poll will be automatically closed. Must be at least
        :tg-const:`telegram.Poll.MIN_OPEN_PERIOD` and no more than
        :tg-const:`telegram.Poll.MAX_OPEN_PERIOD` seconds in the future.
        Can't be used together with :paramref:`open_period`.
        |tz-naive-dtms|
    is_closed (:obj:`bool`, optional): Pass :obj:`True`, if the poll needs to be
        immediately closed. This can be useful for poll preview.
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    question_parse_mode (:obj:`str`, optional): Mode for parsing entities in the question.
        See the constants in :class:`telegram.constants.ParseMode` for the available modes.
        Currently, only custom emoji entities are allowed.

        .. versionadded:: 21.2
    question_entities (Sequence[:class:`telegram.Message`], optional): Special entities
        that appear in the poll :paramref:`question`. It can be specified instead of
        :paramref:`question_parse_mode`.

        .. versionadded:: 21.2
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|

Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

)rJ  rr  rs  ry  r  rt  ru  rv  rw  rx  r|  rz  r{  r}  r~  sendPollr  N)r   r  r9   r2  )!r   rJ  rr  rs  r  rt  ru  rv  rw  r   r!  rx  ry  rz  r{  r|  r"  r#  r'  r(  r}  r~  r)  r*  r  r  r  r  r	  r
  r   optionr   s!                                    r   	send_pollBot.send_poll  s     p   &%F ,6fc+B+B'N% '=('>!2"&$8&$#6!2%
* '' 3!5%(C+/-%'+%!#9/!5# ( 
 
 	
%$
s   A4,A-3A4(A2)
A4c          
         #    UUUUS.n
U R                  SU
UUUUU	S9I Sh  vN n[        R                  " X5      $  N7f)a2  
Use this method to stop a poll which was sent by the bot.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    message_id (:obj:`int`): Identifier of the original message with the poll.
    reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): An object for a new
        message inline keyboard.
    business_connection_id (:obj:`str`, optional): |business_id_str_edit|

        .. versionadded:: 21.4

Returns:
    :class:`telegram.Poll`: On success, the stopped Poll is returned.

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r/  r!  r(  stopPollr  N)r  r:   r1  )r   rJ  r/  r!  r(  r  r  r	  r
  r   r   r  s               r   	stop_pollBot.stop_poll  s`     B $(&<	
 zz%'+%! " 
 
 ||F))
r  c                d   #    XS.nU R                  SUUUUUUUUUUUUUUU	U
S9I Sh  vN $  N7f)a  
Use this method to send an animated emoji that will display a random value.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    disable_notification (:obj:`bool`, optional): |disable_notification|
    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user
    emoji (:obj:`str`, optional): Emoji on which the dice throw animation is based.
        Currently, must be one of :class:`telegram.constants.DiceEmoji`. Dice can have
        values
        :tg-const:`telegram.Dice.MIN_VALUE`-:tg-const:`telegram.Dice.MAX_VALUE_BOWLING`
        for :tg-const:`telegram.Dice.DICE`, :tg-const:`telegram.Dice.DARTS` and
        :tg-const:`telegram.Dice.BOWLING`, values
        :tg-const:`telegram.Dice.MIN_VALUE`-:tg-const:`telegram.Dice.MAX_VALUE_BASKETBALL`
        for :tg-const:`telegram.Dice.BASKETBALL` and :tg-const:`telegram.Dice.FOOTBALL`,
        and values :tg-const:`telegram.Dice.MIN_VALUE`-
        :tg-const:`telegram.Dice.MAX_VALUE_SLOT_MACHINE`
        for :tg-const:`telegram.Dice.SLOT_MACHINE`. Defaults to
        :tg-const:`telegram.Dice.DICE`.

        .. versionchanged:: 13.4
           Added the :tg-const:`telegram.Dice.BOWLING` emoji.
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.1
    message_effect_id (:obj:`str`, optional): |message_effect_id|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|


Returns:
    :class:`telegram.Message`: On success, the sent Message is returned.

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  sendDicer  Nr`  )r   rJ  r   r!  r  r"  r#  r'  r(  r)  r*  r  r  r  r  r	  r
  r   r   s                      r   	send_diceBot.send_dice  se     z &-='' 3!5%(C+/-%'+%!#9/!5# ( 
 
 	
 
r  for_channelsc          
      |   #    SU0nU R                  SUUUUUUS9I Sh  vN n[        R                  " X5      $  N7f)a  Use this method to get the current default administrator rights of the bot.

.. seealso:: :meth:`set_my_default_administrator_rights`

.. versionadded:: 20.0

Args:
    for_channels (:obj:`bool`, optional): Pass :obj:`True` to get default administrator
        rights of the bot in channels. Otherwise, default administrator rights of the bot
        for groups and supergroups will be returned.

Returns:
    :class:`telegram.ChatAdministratorRights`: On success.

Raises:
    :class:`telegram.error.TelegramError`
r  getMyDefaultAdministratorRightsr  N)r  r   r1  )	r   r  r  r  r	  r
  r   r   r  s	            r   #get_my_default_administrator_rights'Bot.get_my_default_administrator_rightsP  sV     6 ),7zz-%'+%! " 
 
 '..v<<
rp  rightsc          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  Use this method to change the default administrator rights requested by the bot when
it's added as an administrator to groups or channels. These rights will be suggested to
users, but they are free to modify the list before adding the bot.

.. seealso:: :meth:`get_my_default_administrator_rights`

.. versionadded:: 20.0

Args:
    rights (:class:`telegram.ChatAdministratorRights`, optional): A
        :class:`telegram.ChatAdministratorRights` object describing new default
        administrator
        rights. If not specified, the default administrator rights will be cleared.
    for_channels (:obj:`bool`, optional): Pass :obj:`True` to change the default
        administrator rights of the bot in channels. Otherwise, the default administrator
        rights of the bot for groups and supergroups will be changed.

Returns:
    :obj:`bool`: Returns :obj:`True` on success.

Raises:
    :exc:`telegram.error.TelegramError`
)r  r  setMyDefaultAdministratorRightsr  NrT  )	r   r  r  r  r  r	  r
  r   r   s	            r   #set_my_default_administrator_rights'Bot.set_my_default_administrator_rightsy  sE     D %+IZZ-%'+%!   
 
 	
 
rW  scopelanguage_codec          
      |   #    XS.nU R                  SUUUUUUS9I Sh  vN n	[        R                  " X5      $  N7f)a  
Use this method to get the current list of the bot's commands for the given scope and user
language.

.. seealso:: :meth:`set_my_commands`, :meth:`delete_my_commands`

.. versionchanged:: 20.0
    Returns a tuple instead of a list.

Args:
    scope (:class:`telegram.BotCommandScope`, optional): An object,
        describing scope of users. Defaults to :class:`telegram.BotCommandScopeDefault`.

        .. versionadded:: 13.7

    language_code (:obj:`str`, optional): A two-letter ISO 639-1 language code or an empty
        string.

        .. versionadded:: 13.7

Returns:
    tuple[:class:`telegram.BotCommand`]: On success, the commands set for the bot. An empty
    tuple is returned if commands are not set.

Raises:
    :class:`telegram.error.TelegramError`

r  r  getMyCommandsr  N)r  r   rA  )
r   r  r  r  r  r	  r
  r   r   r  s
             r   get_my_commandsBot.get_my_commands  sU     N $)Izz%'+%! " 
 
 !!&//
rp  commandsc          
         #    U V	s/ s H,  n	[        U	[        5      (       a  U	O[        U	S   U	S   5      PM.     n
n	XUS.nU R                  SUUUUUUS9I Sh  vN $ s  sn	f  N	7f)a  
Use this method to change the list of the bot's commands. See the
`Telegram docs <https://core.telegram.org/bots/features#commands>`_ for more details about
bot commands.

.. seealso:: :meth:`get_my_commands`, :meth:`delete_my_commands`

Args:
    commands (Sequence[:class:`BotCommand` | (:obj:`str`, :obj:`str`)]): A sequence
        of bot commands to be set as the list of the bot's commands. At most
        :tg-const:`telegram.constants.BotCommandLimit.MAX_COMMAND_NUMBER` commands can be
        specified.

        Note:
            If you pass in a sequence of :obj:`tuple`, the order of elements in each
            :obj:`tuple` must correspond to the order of positional arguments to create a
            :class:`BotCommand` instance.

        .. versionchanged:: 20.0
            |sequenceargs|
    scope (:class:`telegram.BotCommandScope`, optional): An object,
        describing scope of users for which the commands are relevant. Defaults to
        :class:`telegram.BotCommandScopeDefault`.

        .. versionadded:: 13.7

    language_code (:obj:`str`, optional): A two-letter ISO 639-1 language code. If empty,
        commands will be applied to all users from the given scope, for whose language
        there are no dedicated commands.

        .. versionadded:: 13.7

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

Raises:
    :class:`telegram.error.TelegramError`

r   r   )r  r  r  setMyCommandsr  N)r   r   r  )r   r  r  r  r  r  r	  r
  r   ccmdsr   s               r   set_my_commandsBot.set_my_commands  s     f U]]T\qZ:..JqtQqT4JJT\]&*][ZZ%'+%!   
 
 	
 ^
s   A%3AA%A#
A%c          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)aa  
Use this method to delete the list of the bot's commands for the given scope and user
language. After deletion,
`higher level commands <https://core.telegram.org/bots/api#determining-list-of-commands>`_
will be shown to affected users.

.. versionadded:: 13.7

.. seealso:: :meth:`get_my_commands`, :meth:`set_my_commands`

Args:
    scope (:class:`telegram.BotCommandScope`, optional): An object,
        describing scope of users for which the commands are relevant. Defaults to
        :class:`telegram.BotCommandScopeDefault`.
    language_code (:obj:`str`, optional): A two-letter ISO 639-1 language code. If empty,
        commands will be applied to all users from the given scope, for whose language
        there are no dedicated commands.

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

Raises:
    :class:`telegram.error.TelegramError`
r  deleteMyCommandsr  NrT  )	r   r  r  r  r  r	  r
  r   r   s	            r   delete_my_commandsBot.delete_my_commands  sE     F $)IZZ%'+%!   
 
 	
 
rW  c          	      F   #    U R                  SUUUUUS9I Sh  vN $  N7f)a  
Use this method to log out from the cloud Bot API server before launching the bot locally.
You *must* log out the bot before running it locally, otherwise there is no guarantee that
the bot will receive updates. After a successful call, you can immediately log in on a
local server, but will not be able to log in back to the cloud Bot API server for 10
minutes.

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

Raises:
    :class:`telegram.error.TelegramError`

logOutr  NrT  r   r  r  r	  r
  r   s         r   log_outBot.log_outK  s9     . ZZ%'+%!   
 
 	
 
   !!c          	      F   #    U R                  SUUUUUS9I Sh  vN $  N7f)a  
Use this method to close the bot instance before moving it from one local server to
another. You need to delete the webhook before calling this method to ensure that the bot
isn't launched again after server restart. The method will return error 429 in the first
10 minutes after the bot is launched.

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

Raises:
    :class:`telegram.error.TelegramError`

closer  NrT  r  s         r   r  	Bot.closek  s9     , ZZ%'+%!   
 
 	
 
r  c                   #    U[         La  Ub  [        S5      eUb  Ub  [        S5      eUb
  [        UUS9nUUUUUU	UUUU
UUUS.nU R                  SUUUUUUS9I Sh  vN n[        R
                  " UU 5      $  N7f)a  Use this method to copy messages of any kind. Service messages, paid media messages,
giveaway messages, giveaway winners messages, and invoice messages
can't be copied. The method is analogous to the method :meth:`forward_message`, but the
copied message doesn't have a link to the original message.

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    from_chat_id (:obj:`int` | :obj:`str`): Unique identifier for the chat where the
        original message was sent (or channel username in the format ``@channelusername``).
    message_id (:obj:`int`): Message identifier in the chat specified in from_chat_id.
    caption (:obj:`str`, optional): New caption for media,
        0-:tg-const:`telegram.constants.MessageLimit.CAPTION_LENGTH` characters after
        entities parsing. If not specified, the original caption is kept.
    parse_mode (:obj:`str`, optional): Mode for parsing entities in the new caption. See
        the constants in :class:`telegram.constants.ParseMode` for the available modes.
    caption_entities (Sequence[:class:`telegram.MessageEntity`], optional):
        |caption_entities|

        .. versionchanged:: 20.0
            |sequenceargs|
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 13.10
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|

        .. versionadded:: 20.0

    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|

        .. versionadded:: 20.8
    show_caption_above_media (:obj:`bool`, optional): Pass |show_cap_above_med|

        .. versionadded:: 21.3
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|
    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

        .. versionchanged:: 20.8
            Bot API 7.0 introduced :paramref:`reply_parameters` |rtm_aswr_deprecated|

        .. versionchanged:: 21.0
            |keyword_only_arg|

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

Raises:
    :class:`telegram.error.TelegramError`

Nr,  r-  r.  )rJ  r]  r/  r   r   r"  r$  r%  r!  r#  r'  rk  r*  copyMessager  )rF   r0  r>   r  r7   r1  )r   rJ  r]  r/  r$  r   r%  r   r!  r"  r#  r'  rk  r*  r  r  r  r  r	  r
  r   r   r  s                          r   copy_messageBot.copy_message  s     | 'l:?O?[^  */?/KV  *..,G  ($$$8. 0(!2 0(@$8
  zz%'+%! " 
 
   ..
s   AA> A<!A>remove_caption)r7   .c          
         #    UUUUUUUS.nU R                  SUUU	U
UUS9I Sh  vN n[        R                  " X5      $  N7f)av  
Use this method to copy messages of any kind. If some of the specified messages can't be
found or copied, they are skipped. Service messages, paid media messages, giveaway
messages, giveaway winners messages, and invoice messages can't be copied. A quiz poll can
be copied only if the value
of the field :attr:`telegram.Poll.correct_option_id` is known to the bot. The method is
analogous to the method :meth:`forward_messages`, but the copied messages don't have a
link to the original message. Album grouping is kept for copied messages.

.. versionadded:: 20.8

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    from_chat_id (:obj:`int` | :obj:`str`): Unique identifier for the chat where the
        original message was sent (or channel username in the format ``@channelusername``).
    message_ids (Sequence[:obj:`int`]): A list of
        :tg-const:`telegram.constants.BulkRequestLimit.MIN_LIMIT` -
        :tg-const:`telegram.constants.BulkRequestLimit.MAX_LIMIT` identifiers of messages
        in the chat :paramref:`from_chat_id` to copy. The identifiers must be
        specified in a strictly increasing order.
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|
    message_thread_id (:obj:`int`, optional): |message_thread_id_arg|
    remove_caption (:obj:`bool`, optional): Pass :obj:`True` to copy the messages without
        their captions.

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r]  rX  r   r"  r#  r  copyMessagesr  Nrf  )r   rJ  r]  rX  r   r"  r#  r  r  r  r	  r
  r   r   r  s                  r   copy_messagesBot.copy_messages  sk     f (&$8.!2,
 zz%'+%! " 
 
   ..
s   #AA Amenu_buttonc          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)an  Use this method to change the bot's menu button in a private chat, or the default menu
button.

.. seealso:: :meth:`get_chat_menu_button`, :meth:`telegram.Chat.get_menu_button`
    :meth:`telegram.User.get_menu_button`

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int`, optional): Unique identifier for the target private chat. If not
        specified, default bot's menu button will be changed
    menu_button (:class:`telegram.MenuButton`, optional): An object for the new bot's menu
        button. Defaults to :class:`telegram.MenuButtonDefault`.

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

)rJ  r  setChatMenuButtonr  NrT  )	r   rJ  r  r  r  r	  r
  r   r   s	            r   set_chat_menu_buttonBot.set_chat_menu_buttonZ  sD     : &-IZZ%'+%!   
 
 	
 
rW  c          
      x   #    SU0nU R                  SUUUUUUS9I Sh  vN n[        R                  " XS9$  N7f)a  Use this method to get the current value of the bot's menu button in a private chat, or
the default menu button.

.. seealso:: :meth:`set_chat_menu_button`, :meth:`telegram.Chat.set_menu_button`,
    :meth:`telegram.User.set_menu_button`

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int`, optional): Unique identifier for the target private chat. If not
        specified, default bot's menu button will be returned.

Returns:
    :class:`telegram.MenuButton`: On success, the current menu button is returned.

rJ  getChatMenuButtonr  Nr   )r  r5   r1  rm  s	            r   get_chat_menu_buttonBot.get_chat_menu_button  sV     4 7#zz%'+%! " 
 
 !!&33
s   :8:subscription_periodc          
        #    0 SU_SU_SU_SU_SU_SU_SU_SU_S	U	_S
U
_SU_SU_SU_SU_SU_SU_SU_UUU[        U[        5      (       a  UR                  5       OUUS.EnU R                  SUUUUUUS9I Sh  vN $  N7f)u  Use this method to create a link for an invoice.

.. versionadded:: 20.0

Args:
    business_connection_id (:obj:`str`, optional): |business_id_str|
        For payments in |tg_stars| only.

        .. versionadded:: 21.8
    title (:obj:`str`): Product name. :tg-const:`telegram.Invoice.MIN_TITLE_LENGTH`-
        :tg-const:`telegram.Invoice.MAX_TITLE_LENGTH` characters.
    description (:obj:`str`): Product description.
        :tg-const:`telegram.Invoice.MIN_DESCRIPTION_LENGTH`-
        :tg-const:`telegram.Invoice.MAX_DESCRIPTION_LENGTH` characters.
    payload (:obj:`str`): Bot-defined invoice payload.
        :tg-const:`telegram.Invoice.MIN_PAYLOAD_LENGTH`-
        :tg-const:`telegram.Invoice.MAX_PAYLOAD_LENGTH` bytes. This will not be
        displayed to the user, use it for your internal processes.
    provider_token (:obj:`str`): Payments provider token, obtained via
        `@BotFather <https://t.me/BotFather>`_. Pass an empty string for payments in
        |tg_stars|.

        .. deprecated:: 21.3
            As of Bot API 7.4, this parameter is now optional and future versions of the
            library will make it optional as well.

    currency (:obj:`str`): Three-letter ISO 4217 currency code, see `more on currencies
        <https://core.telegram.org/bots/payments#supported-currencies>`_. Pass ``XTR`` for
        payments in |tg_stars|.
    prices (Sequence[:class:`telegram.LabeledPrice`)]: Price breakdown, a sequence
        of components (e.g. product price, tax, discount, delivery cost, delivery tax,
        bonus, etc.). Must contain exactly one item for payments in |tg_stars|.

        .. versionchanged:: 20.0
            |sequenceargs|
    subscription_period (:obj:`int` | :class:`datetime.timedelta`, optional): The time the
        subscription will be active for before the next payment, either as number of
        seconds or as :class:`datetime.timedelta` object. The currency must be set to
        ``“XTR”`` (Telegram Stars) if the parameter is used. Currently, it must always be
        :tg-const:`telegram.constants.InvoiceLimit.SUBSCRIPTION_PERIOD` if specified. Any
        number of subscriptions can be active for a given bot at the same time, including
        multiple concurrent subscriptions from the same user. Subscription price must
        not exceed
        :tg-const:`telegram.constants.InvoiceLimit.SUBSCRIPTION_MAX_PRICE`
        Telegram Stars.

        .. versionadded:: 21.8
    max_tip_amount (:obj:`int`, optional): The maximum accepted amount for tips in the
        *smallest units* of the currency (integer, **not** float/double). For example, for
        a maximum tip of ``US$ 1.45`` pass ``max_tip_amount = 145``. See the ``exp``
        parameter in `currencies.json
        <https://core.telegram.org/bots/payments/currencies.json>`_, it shows the number of
        digits past the decimal point for each currency (2 for the majority of currencies).
        Defaults to ``0``. Not supported for payments in |tg_stars|.
    suggested_tip_amounts (Sequence[:obj:`int`], optional): An array of
        suggested amounts of tips in the *smallest units* of the currency (integer, **not**
        float/double). At most :tg-const:`telegram.Invoice.MAX_TIP_AMOUNTS` suggested tip
        amounts can be specified. The suggested tip amounts must be positive, passed in a
        strictly increased order and must not exceed :paramref:`max_tip_amount`.

        .. versionchanged:: 20.0
            |sequenceargs|
    provider_data (:obj:`str` | :obj:`object`, optional): Data about the
        invoice, which will be shared with the payment provider. A detailed description of
        required fields should be provided by the payment provider. When an object is
        passed, it will be encoded as JSON.
    photo_url (:obj:`str`, optional): URL of the product photo for the invoice. Can be a
        photo of the goods or a marketing image for a service.
    photo_size (:obj:`int`, optional): Photo size in bytes.
    photo_width (:obj:`int`, optional): Photo width.
    photo_height (:obj:`int`, optional): Photo height.
    need_name (:obj:`bool`, optional): Pass :obj:`True`, if you require the user's full
        name to complete the order. Ignored for payments in |tg_stars|.
    need_phone_number (:obj:`bool`, optional): Pass :obj:`True`, if you require the user's
        phone number to complete the order. Ignored for payments in |tg_stars|.
    need_email (:obj:`bool`, optional): Pass :obj:`True`, if you require the user's email
        address to complete the order. Ignored for payments in |tg_stars|.
    need_shipping_address (:obj:`bool`, optional): Pass :obj:`True`, if you require the
        user's shipping address to complete the order. Ignored for payments in
        |tg_stars|.
    send_phone_number_to_provider (:obj:`bool`, optional): Pass :obj:`True`, if user's
        phone number should be sent to provider. Ignored for payments in |tg_stars|.
    send_email_to_provider (:obj:`bool`, optional): Pass :obj:`True`, if user's email
        address should be sent to provider. Ignored for payments in |tg_stars|.
    is_flexible (:obj:`bool`, optional): Pass :obj:`True`, if the final price depends on
        the shipping method. Ignored for payments in |tg_stars|.

Returns:
    :class:`str`: On success, the created invoice link is returned.

ru  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  )r  r  r  r  r(  createInvoiceLinkr  N)r   r   total_secondsr  )r   ru  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   s                                r   create_invoice_linkBot.create_invoice_link  sC    t
U
;
 w
 n	

 
 f
 n
 $%:
 ]
 
 *
 ;
 L
 
  !2
  *!
" $%:#
$ '-J&< 19== $113(&<5
: ZZ%'+%!   
 
 	
 
s   A;B=B>Bc          	      r   #    U R                  SUUUUUS9I Sh  vN n[        R                  " X`5      $  N7f)zUse this method to get custom emoji stickers, which can be used as a forum topic
icon by any user. Requires no parameters.

.. versionadded:: 20.0

Returns:
    tuple[:class:`telegram.Sticker`]

Raises:
    :class:`telegram.error.TelegramError`

getForumTopicIconStickersr  Nr0  rG  s          r   get_forum_topic_icon_stickers!Bot.get_forum_topic_icon_stickersK   sG     * zz'%'+%! " 
 
 v,,
r  
icon_coloricon_custom_emoji_idc          
         #    UUUUS.n
U R                  SU
UUUUU	S9I Sh  vN n[        R                  " X5      $  N7f)a  
Use this method to create a topic in a forum supergroup chat. The bot must be
an administrator in the chat for this to work and must have
:paramref:`~telegram.ChatAdministratorRights.can_manage_topics` administrator rights.

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|
    name (:obj:`str`): New topic name,
        :tg-const:`telegram.constants.ForumTopicLimit.MIN_NAME_LENGTH`-
        :tg-const:`telegram.constants.ForumTopicLimit.MAX_NAME_LENGTH` characters.
    icon_color (:obj:`int`, optional): Color of the topic icon in RGB format. Currently,
        must be one of :attr:`telegram.constants.ForumIconColor.BLUE`,
        :attr:`telegram.constants.ForumIconColor.YELLOW`,
        :attr:`telegram.constants.ForumIconColor.PURPLE`,
        :attr:`telegram.constants.ForumIconColor.GREEN`,
        :attr:`telegram.constants.ForumIconColor.PINK`, or
        :attr:`telegram.constants.ForumIconColor.RED`.
    icon_custom_emoji_id (:obj:`str`, optional): New unique identifier of the custom emoji
        shown as the topic icon. Use :meth:`~telegram.Bot.get_forum_topic_icon_stickers`
        to get all allowed custom emoji identifiers.

Returns:
    :class:`telegram.ForumTopic`

Raises:
    :class:`telegram.error.TelegramError`
)rJ  r   r  r  createForumTopicr  N)r  r/   r1  )r   rJ  r   r  r  r  r  r	  r
  r   r   r  s               r   create_forum_topicBot.create_forum_topicj   sb     V $$8	
 zz%'+%! " 
 
 !!&//
r  c          
      V   #    UUUUS.n
U R                  SU
UUUUU	S9I Sh  vN $  N7f)a  
Use this method to edit name and icon of a topic in a forum supergroup chat. The bot must
be an administrator in the chat for this to work and must have the
:paramref:`~telegram.ChatAdministratorRights.can_manage_topics` administrator rights,
unless it is the creator of the topic.

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|
    message_thread_id (:obj:`int`): |message_thread_id|
    name (:obj:`str`, optional): New topic name,
        :tg-const:`telegram.constants.ForumTopicLimit.MIN_NAME_LENGTH`-
        :tg-const:`telegram.constants.ForumTopicLimit.MAX_NAME_LENGTH` characters. If
        not specified or empty, the current name of the topic will be kept.
    icon_custom_emoji_id (:obj:`str`, optional): New unique identifier of the custom emoji
        shown as the topic icon. Use :meth:`~telegram.Bot.get_forum_topic_icon_stickers`
        to get all allowed custom emoji identifiers.Pass an empty string to remove the
        icon. If not specified, the current icon will be kept.

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r#  r   r  editForumTopicr  NrT  )r   rJ  r#  r   r  r  r  r	  r
  r   r   s              r   edit_forum_topicBot.edit_forum_topic   sR     R !2$8	
 ZZ%'+%!   
 
 	
 
r  c          
      R   #    UUS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to close an open topic in a forum supergroup chat. The bot must
be an administrator in the chat for this to work and must have
:paramref:`~telegram.ChatAdministratorRights.can_manage_topics` administrator rights,
unless it is the creator of the topic.

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|
    message_thread_id (:obj:`int`): |message_thread_id|

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

Raises:
    :class:`telegram.error.TelegramError`

rJ  r#  closeForumTopicr  NrT  	r   rJ  r#  r  r  r	  r
  r   r   s	            r   close_forum_topicBot.close_forum_topic   sK     > !2
 ZZ%'+%!   
 
 	
 
r2  c          
      R   #    UUS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to reopen a closed topic in a forum supergroup chat. The bot must
be an administrator in the chat for this to work and must have
:paramref:`~telegram.ChatAdministratorRights.can_manage_topics` administrator rights,
unless it is the creator of the topic.

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|
    message_thread_id (:obj:`int`): |message_thread_id|

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

Raises:
    :class:`telegram.error.TelegramError`

r  reopenForumTopicr  NrT  r  s	            r   reopen_forum_topicBot.reopen_forum_topic	!  sK     > !2
 ZZ%'+%!   
 
 	
 
r2  c          
      R   #    UUS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to delete a forum topic along with all its messages in a forum supergroup
chat. The bot must be an administrator in the chat for this to work and must have
:paramref:`~telegram.ChatAdministratorRights.can_delete_messages` administrator rights.

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|
    message_thread_id (:obj:`int`): |message_thread_id|

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

Raises:
    :class:`telegram.error.TelegramError`

r  deleteForumTopicr  NrT  r  s	            r   delete_forum_topicBot.delete_forum_topic5!  sK     < !2
 ZZ%'+%!   
 
 	
 
r2  c          
      R   #    UUS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to clear the list of pinned messages in a forum topic. The bot must
be an administrator in the chat for this to work and must have
:paramref:`~telegram.ChatAdministratorRights.can_pin_messages` administrator rights
in the supergroup.

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|
    message_thread_id (:obj:`int`): |message_thread_id|

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

Raises:
    :class:`telegram.error.TelegramError`

r  unpinAllForumTopicMessagesr  NrT  r  s	            r   unpin_all_forum_topic_messages"Bot.unpin_all_forum_topic_messages`!  sK     > !2
 ZZ(%'+%!   
 
 	
 
r2  c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to clear the list of pinned messages in a General forum topic. The bot must
be an administrator in the chat for this to work and must have
:paramref:`~telegram.ChatAdministratorRights.can_pin_messages` administrator rights in the
supergroup.

.. versionadded:: 20.5

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|

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

Raises:
    :class:`telegram.error.TelegramError`
rJ  !unpinAllGeneralForumTopicMessagesr  NrT  rh  s           r   &unpin_all_general_forum_topic_messages*Bot.unpin_all_general_forum_topic_messages!  sF     6 $W-ZZ/%'+%!   
 
 	
 
rW  c          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot
must be an administrator in the chat for this to work and must have the
:attr:`~telegram.ChatAdministratorRights.can_manage_topics` administrator rights.

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|
    name (:obj:`str`): New topic name,
        :tg-const:`telegram.constants.ForumTopicLimit.MIN_NAME_LENGTH`-
        :tg-const:`telegram.constants.ForumTopicLimit.MAX_NAME_LENGTH` characters.

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

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r   editGeneralForumTopicr  NrT  )	r   rJ  r   r  r  r	  r
  r   r   s	            r   edit_general_forum_topicBot.edit_general_forum_topic!  sD     > &-;ZZ#%'+%!   
 
 	
 
rW  c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to close an open 'General' topic in a forum supergroup chat. The bot must
be an administrator in the chat for this to work and must have
:attr:`~telegram.ChatAdministratorRights.can_manage_topics` administrator rights.

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|

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

Raises:
    :class:`telegram.error.TelegramError`

rJ  closeGeneralForumTopicr  NrT  rh  s           r   close_general_forum_topicBot.close_general_forum_topic!  sF     6 $W-ZZ$%'+%!   
 
 	
 
rW  c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must
be an administrator in the chat for this to work and must have
:attr:`~telegram.ChatAdministratorRights.can_manage_topics` administrator rights.
The topic will be automatically unhidden if it was hidden.

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|

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

Raises:
    :class:`telegram.error.TelegramError`

rJ  reopenGeneralForumTopicr  NrT  rh  s           r   reopen_general_forum_topicBot.reopen_general_forum_topic"  sF     8 $W-ZZ%%'+%!   
 
 	
 
rW  c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to hide the 'General' topic in a forum supergroup chat. The bot must
be an administrator in the chat for this to work and must have
:attr:`~telegram.ChatAdministratorRights.can_manage_topics` administrator rights.
The topic will be automatically closed if it was open.

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|

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

Raises:
    :class:`telegram.error.TelegramError`

rJ  hideGeneralForumTopicr  NrT  rh  s           r   hide_general_forum_topicBot.hide_general_forum_topic-"  sF     8 $W-ZZ#%'+%!   
 
 	
 
rW  c          
      P   #    SU0nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must
be an administrator in the chat for this to work and must have
:attr:`~telegram.ChatAdministratorRights.can_manage_topics` administrator rights.

.. versionadded:: 20.0

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_group|

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

Raises:
    :class:`telegram.error.TelegramError`

rJ  unhideGeneralForumTopicr  NrT  rh  s           r   unhide_general_forum_topicBot.unhide_general_forum_topicU"  sF     6 $W-ZZ%%'+%!   
 
 	
 
rW  c          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to change the bot's description, which is shown in the chat with the bot
if the chat is empty.

.. versionadded:: 20.2

Args:
    description (:obj:`str`, optional): New bot description;
        0-:tg-const:`telegram.constants.BotDescriptionLimit.MAX_DESCRIPTION_LENGTH`
        characters. Pass an empty string to remove the dedicated description for the given
        language.
    language_code (:obj:`str`, optional): A two-letter ISO 639-1 language code. If empty,
        the description will be applied to all users for whose language there is no
        dedicated description.

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

Raises:
    :class:`telegram.error.TelegramError`

)r  r  setMyDescriptionr  NrT  )	r   r  r  r  r  r	  r
  r   r   s	            r   set_my_descriptionBot.set_my_description|"  sE     B *5UZZ%'+%!   
 
 	
 
rW  short_descriptionc          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to change the bot's short description, which is shown on the bot's profile
page and is sent together with the link when users share the bot.

.. versionadded:: 20.2

Args:
    short_description (:obj:`str`, optional): New short description for the bot;
        0-:tg-const:`telegram.constants.BotDescriptionLimit.MAX_SHORT_DESCRIPTION_LENGTH`
        characters. Pass an empty string to remove the dedicated description for the given
        language.
    language_code (:obj:`str`, optional): A two-letter ISO 639-1 language code. If empty,
        the description will be applied to all users for whose language there is no
        dedicated description.

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

Raises:
    :class:`telegram.error.TelegramError`

)r  r  setMyShortDescriptionr  NrT  )	r   r  r  r  r  r	  r
  r   r   s	            r   set_my_short_descriptionBot.set_my_short_description"  sF     B 0AaZZ#%'+%!   
 
 	
 
rW  c                v   #    SU0n[         R                  " U R                  SUUUUUUS9I Sh  vN U S9$  N7f)aT  
Use this method to get the current bot description for the given user language.

Args:
    language_code (:obj:`str`, optional): A two-letter ISO 639-1 language code or an empty
        string.

Returns:
    :class:`telegram.BotDescription`: On success, the bot description is returned.

Raises:
    :class:`telegram.error.TelegramError`

r  getMyDescriptionr  Nr  )r   r1  r  r   r  r  r  r	  r
  r   r   s           r   get_my_descriptionBot.get_my_description"  sY     0  /%%**")+ /)%    
 	
   -979c                v   #    SU0n[         R                  " U R                  SUUUUUUS9I Sh  vN U S9$  N7f)am  
Use this method to get the current bot short description for the given user language.

Args:
    language_code (:obj:`str`, optional): A two-letter ISO 639-1 language code or an empty
        string.

Returns:
    :class:`telegram.BotShortDescription`: On success, the bot short description is
        returned.

Raises:
    :class:`telegram.error.TelegramError`

r  getMyShortDescriptionr  Nr  )r   r1  r  r  s           r   get_my_short_descriptionBot.get_my_short_description"  sY     2  /"****')+ /)%    
 	
r  c          
      P   #    XS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a  
Use this method to change the bot's name.

.. versionadded:: 20.3

Args:
    name (:obj:`str`, optional): New bot name;
        0-:tg-const:`telegram.constants.BotNameLimit.MAX_NAME_LENGTH`
        characters. Pass an empty string to remove the dedicated name for the given
        language.

        Caution:
            If :paramref:`language_code` is not specified, a :paramref:`name` *must*
            be specified.
    language_code (:obj:`str`, optional): A two-letter ISO 639-1 language code. If empty,
        the name will be applied to all users for whose language there is no
        dedicated name.

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

Raises:
    :class:`telegram.error.TelegramError`

)r   r  	setMyNamer  NrT  )	r   r   r  r  r  r	  r
  r   r   s	            r   set_my_nameBot.set_my_name##  sE     H #'GZZ%'+%!   
 
 	
 
rW  c                v   #    SU0n[         R                  " U R                  SUUUUUUS9I Sh  vN U S9$  N7f)a?  
Use this method to get the current bot name for the given user language.

Args:
    language_code (:obj:`str`, optional): A two-letter ISO 639-1 language code or an empty
        string.

Returns:
    :class:`telegram.BotName`: On success, the bot name is returned.

Raises:
    :class:`telegram.error.TelegramError`

r  	getMyNamer  Nr  )r   r1  r  r  s           r   get_my_nameBot.get_my_nameS#  sW     0  /**)+ /)%    
 	
r  c                v   #    XS.n[         R                  " U R                  SUUUUUUS9I Sh  vN U S9$  N7f)a  
Use this method to get the list of boosts added to a chat by a user. Requires
administrator rights in the chat.

.. versionadded:: 20.8

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    user_id (:obj:`int`): Unique identifier of the target user.

Returns:
    :class:`telegram.UserChatBoosts`: On success, the object containing the list of boosts
        is returned.

Raises:
    :class:`telegram.error.TelegramError`
rz  getUserChatBoostsr  Nr  )r   r1  r  r  s	            r   get_user_chat_boostsBot.get_user_chat_boostsy#  sW     8 &-A%%**#)+ /)%    
 	
r  reactionis_bigc          
      B  #    [        [        5      n
Ub]  [        U[        [        45      (       a  U/OU Vs/ s H1  n[        U[        5      (       a  UOX;   a	  [        US9O[        US9PM3     snOSnUUUUS.nU R                  SUUUUUU	S9I Sh  vN $ s  snf  N	7f)a  
Use this method to change the chosen reactions on a message. Service messages can't be
reacted to. Automatically forwarded messages from a channel to its discussion group have
the same available reactions as messages in the channel. Bots can't use paid reactions.

.. versionadded:: 20.8

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    message_id (:obj:`int`): Identifier of the target message. If the message belongs to a
        media group, the reaction is set to the first non-deleted message in the group
        instead.
    reaction (Sequence[:class:`telegram.ReactionType` | :obj:`str`] |                 :class:`telegram.ReactionType` | :obj:`str`, optional): A list of reaction
        types to set on the message. Currently, as non-premium users, bots can set up to
        one reaction per message. A custom emoji reaction can be used if it is either
        already present on the message or explicitly allowed by chat administrators. Paid
        reactions can't be used by bots.

        Tip:
            Passed :obj:`str` values will be converted to either
            :class:`telegram.ReactionTypeEmoji` or
            :class:`telegram.ReactionTypeCustomEmoji`
            depending on whether they are listed in
            :class:`~telegram.constants.ReactionEmoji`.

    is_big (:obj:`bool`, optional): Pass :obj:`True` to set the reaction with a big
        animation.

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

Raises:
    :class:`telegram.error.TelegramError`
N)r  )rh  )rJ  r/  r!  r"  setMessageReactionr  )setrV   r   r;   r  r=   r<   r  )r   rJ  r/  r!  r"  r  r  r	  r
  r   allowed_reactionsentryparsed_reactionr   s                 r   set_message_reactionBot.set_message_reaction#  s     ` '*-&8  # #-Xc7J"K"KXJQYY Z  "%66  !5 *64UK Z ! 	( $'	
 ZZ %'+%!   
 
 	
32
s   5B8B/$BB
Bc                v   #    SU0n[         R                  " U R                  SUUUUUUS9I Sh  vN U S9$  N7f)a  
Use this method to get information about the connection of the bot with a business account.

.. versionadded:: 21.1

Args:
    business_connection_id (:obj:`str`): Unique identifier of the business connection.

Returns:
    :class:`telegram.BusinessConnection`: On success, the object containing the business
        connection information is returned.

Raises:
    :class:`telegram.error.TelegramError`
r(  getBusinessConnectionr  Nr  )r   r1  r  )r   r(  r  r  r	  r
  r   r   s           r   get_business_connectionBot.get_business_connection#  sZ     2 34JK!))**')+ /)%    
 	
r  old_stickerc          
      V   #    UUUUS.n
U R                  SU
UUUUU	S9I Sh  vN $  N7f)a  Use this method to replace an existing sticker in a sticker set with a new one.
The method is equivalent to calling :meth:`delete_sticker_from_set`,
then :meth:`add_sticker_to_set`, then :meth:`set_sticker_position_in_set`.

.. versionadded:: 21.1

Args:
    user_id (:obj:`int`): User identifier of the sticker set owner.
    name (:obj:`str`): Sticker set name.
    old_sticker (:obj:`str`): File identifier of the replaced sticker.
    sticker (:class:`telegram.InputSticker`): An object with information about the added
        sticker. If exactly the same sticker had already been added to the set, then the
        set remains unchanged.

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

Raises:
    :class:`telegram.error.TelegramError`
)r  r   r/  r  replaceStickerInSetr  NrT  )r   r  r   r/  r  r  r  r	  r
  r   r   s              r   replace_sticker_in_setBot.replace_sticker_in_set$  sR     D &	
 ZZ!%'+%!   
 
 	
 
r  telegram_payment_charge_idc          
      R   #    UUS.nU R                  SUUUUUUS9I Sh  vN $  N7f)a_  Refunds a successful payment in |tg_stars|.

.. versionadded:: 21.3

Args:
    user_id (:obj:`int`): User identifier of the user whose payment will be refunded.
    telegram_payment_charge_id (:obj:`str`): Telegram payment identifier.

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

Raises:
    :class:`telegram.error.TelegramError`

)r  r4  refundStarPaymentr  NrT  )	r   r  r4  r  r  r	  r
  r   r   s	            r   refund_star_paymentBot.refund_star_paymentQ$  sK     6 *D

 ZZ%'+%!   
 
 	
 
r2  c                v   #    XS.n[         R                  " U R                  SUUUUUUS9I Sh  vN U S9$  N7f)a~  Returns the bot's Telegram Star transactions in chronological order.

.. versionadded:: 21.4

Args:
    offset (:obj:`int`, optional): Number of transactions to skip in the response.
    limit (:obj:`int`, optional): The maximum number of transactions to be retrieved.
        Values between :tg-const:`telegram.constants.StarTransactionsLimit.MIN_LIMIT`-
        :tg-const:`telegram.constants.StarTransactionsLimit.MAX_LIMIT` are accepted.
        Defaults to :tg-const:`telegram.constants.StarTransactionsLimit.MAX_LIMIT`.

Returns:
    :class:`telegram.StarTransactions`: On success.

Raises:
    :class:`telegram.error.TelegramError`
)r  r  getStarTransactionsr  Nr  )r8   r1  r  )	r   r  r  r  r  r	  r
  r   r   s	            r   get_star_transactionsBot.get_star_transactionsz$  sW     : %+;''**%)+ /)%    
 	
r  is_canceledc          
      T   #    UUUS.n	U R                  SU	UUUUUS9I Sh  vN $  N7f)a  Allows the bot to cancel or re-enable extension of a subscription paid in Telegram
Stars.

.. versionadded:: 21.8

Args:
    user_id (:obj:`int`): Identifier of the user whose subscription will be edited.
    telegram_payment_charge_id (:obj:`str`): Telegram payment identifier for the
        subscription.
    is_canceled (:obj:`bool`): Pass :obj:`True` to cancel extension of the user
        subscription; the subscription must be active up to the end of the current
        subscription period. Pass :obj:`False` to allow the user to re-enable a
        subscription that was previously canceled by the bot.

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

Raises:
    :class:`telegram.error.TelegramError`
)r  r4  r=  editUserStartSubscriptionr  NrT  )
r   r  r4  r=  r  r  r	  r
  r   r   s
             r   edit_user_star_subscriptionBot.edit_user_star_subscription$  sO     B *D&

 ZZ'%'+%!   
 
 	
 
r  
star_countr%   c                n   #    UUUUUS.nU R                  SUUUUUU	U
UUUUUUUUUUS9I Sh  vN $  N7f)ak
  Use this method to send paid media.

.. versionadded:: 21.4

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel| If the chat is a channel, all
        Telegram Star proceeds from this media will be credited to the chat's balance.
        Otherwise, they will be credited to the bot's balance.
    star_count (:obj:`int`): The number of Telegram Stars that must be paid to buy access
        to the media; :tg-const:`telegram.constants.InvoiceLimit.MIN_STAR_COUNT` -
        :tg-const:`telegram.constants.InvoiceLimit.MAX_STAR_COUNT`.
    media (Sequence[:class:`telegram.InputPaidMedia`]): A list describing the media to be
        sent; up to :tg-const:`telegram.constants.MediaGroupLimit.MAX_MEDIA_LENGTH` items.
    payload (:obj:`str`, optional): Bot-defined paid media payload,
        0-:tg-const:`telegram.constants.InvoiceLimit.MAX_PAYLOAD_LENGTH` bytes. This will
        not be displayed to the user, use it for your internal processes.

        .. versionadded:: 21.6
    caption (:obj:`str`, optional): Caption of the media to be sent,
        0-:tg-const:`telegram.constants.MessageLimit.CAPTION_LENGTH` characters.
    parse_mode (:obj:`str`, optional): |parse_mode|
    caption_entities (Sequence[:class:`telegram.MessageEntity`], optional):
        |caption_entities|
    show_caption_above_media (:obj:`bool`, optional): Pass |show_cap_above_med|
    disable_notification (:obj:`bool`, optional): |disable_notification|
    protect_content (:obj:`bool`, optional): |protect_content|
    reply_parameters (:class:`telegram.ReplyParameters`, optional): |reply_parameters|
    reply_markup (:class:`InlineKeyboardMarkup` | :class:`ReplyKeyboardMarkup` |                 :class:`ReplyKeyboardRemove` | :class:`ForceReply`, optional):
        Additional interface options. An object for an inline keyboard, custom reply
        keyboard, instructions to remove reply keyboard or to force a reply from the user.
    business_connection_id (:obj:`str`, optional): |business_id_str|

        .. versionadded:: 21.5
    allow_paid_broadcast (:obj:`bool`, optional): |allow_paid_broadcast|

        .. versionadded:: 21.7

Keyword Args:
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

    reply_to_message_id (:obj:`int`, optional): |reply_to_msg_id|
        Mutually exclusive with :paramref:`reply_parameters`, which this is a convenience
        parameter for

Returns:
    :class:`telegram.Message`: On success, the sent message is returned.

Raises:
    :class:`telegram.error.TelegramError`
)rJ  rB  r   rk  r  sendPaidMedia)r$  r   r%  r   r"  r'  r!  r  r  r  r  r	  r
  r   r(  r*  Nr`  )r   rJ  rB  r   r$  r   r%  rk  r   r"  r'  r!  r(  r  r*  r  r  r  r  r	  r
  r   r   s                          r   send_paid_mediaBot.send_paid_media$  sx     ` $(@
 ''!-!5+-%(C 3%'+%!#9!5% ( 
 
 	
 
r
  subscription_pricec          
         #    UUUUS.n
U R                  SU
UUUUU	S9I Sh  vN n[        R                  " X5      $  N7f)a
  
Use this method to create a `subscription invite link <https://telegram.org/blog/        superchannels-star-reactions-subscriptions#star-subscriptions>`_ for a channel chat.
The bot must have the :attr:`~telegram.ChatPermissions.can_invite_users` administrator
right. The link can be edited using the :meth:`edit_chat_subscription_invite_link` or
revoked using the :meth:`revoke_chat_invite_link`.

.. versionadded:: 21.5

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    subscription_period (:obj:`int`): The number of seconds the subscription will be
        active for before the next payment. Currently, it must always be
        :tg-const:`telegram.constants.ChatSubscriptionLimit.SUBSCRIPTION_PERIOD` (30 days).
    subscription_price (:obj:`int`): The number of Telegram Stars a user must pay initially
        and after each subsequent subscription period to be a member of the chat;
        :tg-const:`telegram.constants.ChatSubscriptionLimit.MIN_PRICE`-
        :tg-const:`telegram.constants.ChatSubscriptionLimit.MAX_PRICE`.
    name (:obj:`str`, optional): Invite link name;
        0-:tg-const:`telegram.constants.ChatInviteLinkLimit.NAME_LENGTH` characters.

Returns:
    :class:`telegram.ChatInviteLink`

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  rG  r    createChatSubscriptionInviteLinkr  Nr  )r   rJ  r  rG  r   r  r  r	  r
  r   r   r  s               r   $create_chat_subscription_invite_link(Bot.create_chat_subscription_invite_linkA%  sb     T #6"4	
 zz.%'+%! " 
 
 %%f33
r  c          
         #    [        U[        5      (       a  UR                  OUn	UU	US.n
U R                  SU
UUUUUS9I Sh  vN n[        R                  " X5      $  N7f)a  
Use this method to edit a subscription invite link created by the bot. The bot must have
:attr:`telegram.ChatPermissions.can_invite_users` administrator right.

.. versionadded:: 21.5

Args:
    chat_id (:obj:`int` | :obj:`str`): |chat_id_channel|
    invite_link (:obj:`str` | :obj:`telegram.ChatInviteLink`): The invite link to edit.
    name (:obj:`str`, optional): Invite link name;
        0-:tg-const:`telegram.constants.ChatInviteLinkLimit.NAME_LENGTH` characters.

        Tip:
            Omitting this argument removes the name of the invite link.

Returns:
    :class:`telegram.ChatInviteLink`

Raises:
    :class:`telegram.error.TelegramError`

)rJ  r  r   editChatSubscriptionInviteLinkr  Nr  )r   rJ  r  r   r  r  r	  r
  r   r   r   r  s               r   "edit_chat_subscription_invite_link&Bot.edit_chat_subscription_invite_link}%  sy     D +5[.*Q*Q{&&Wb
 zz,%'+%! " 
 
 %%f33
s   AA!AA!c                n   #    [         R                  " U R                  SUUUUUS9I Sh  vN 5      $  N7f)zReturns the list of gifts that can be sent by the bot to users.
Requires no parameters.

.. versionadded:: 21.8

Returns:
    :class:`telegram.Gifts`

Raises:
    :class:`telegram.error.TelegramError`
getAvailableGiftsr  N)r2   r1  r  r  s         r   get_available_giftsBot.get_available_gifts%  sE     ( }}**#)+ /)%   	
 		
s   (53	5gift_idtext_parse_modetext_entitiesc          
         #    U[        U[        5      (       a  UR                  OUUUUS.nU R                  SUUUUU	U
S9I Sh  vN $  N7f)a   Sends a gift to the given user.
The gift can't be converted to Telegram Stars by the user

.. versionadded:: 21.8

Args:
    user_id (:obj:`int`): Unique identifier of the target user that will receive the gift
    gift_id (:obj:`str` | :class:`~telegram.Gift`): Identifier of the gift or a
        :class:`~telegram.Gift` object
    text (:obj:`str`, optional): Text that will be shown along with the gift;
        0- :tg-const:`telegram.constants.GiftLimit.MAX_TEXT_LENGTH` characters
    text_parse_mode (:obj:`str`, optional): Mode for parsing entities.
        See :class:`telegram.constants.ParseMode` and
        `formatting options <https://core.telegram.org/bots/api#formatting-options>`__ for
        more details. Entities other than :attr:`~MessageEntity.BOLD`,
        :attr:`~MessageEntity.ITALIC`, :attr:`~MessageEntity.UNDERLINE`,
        :attr:`~MessageEntity.STRIKETHROUGH`, :attr:`~MessageEntity.SPOILER`, and
        :attr:`~MessageEntity.CUSTOM_EMOJI` are ignored.
    text_entities (Sequence[:class:`telegram.MessageEntity`], optional): A list of special
        entities that appear in the gift text. It can be specified instead of
        :paramref:`text_parse_mode`. Entities other than :attr:`~MessageEntity.BOLD`,
        :attr:`~MessageEntity.ITALIC`, :attr:`~MessageEntity.UNDERLINE`,
        :attr:`~MessageEntity.STRIKETHROUGH`, :attr:`~MessageEntity.SPOILER`, and
        :attr:`~MessageEntity.CUSTOM_EMOJI` are ignored.

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

Raises:
    :class:`telegram.error.TelegramError`
)r  rT  rK  rU  rV  sendGiftr  N)r   r1   r   r  )r   r  rT  rK  rU  rV  r  r  r	  r
  r   r   s               r   	send_giftBot.send_gift%  sg     \ %/%>%>wzzG.*
 ZZ%'+%!   
 
 	
 
s   AAA	A	recursivec                     U R                   U R                  U R                  S.nU R                  (       a  U R                  US'   U$ )z,See :meth:`telegram.TelegramObject.to_dict`.)r   r   r   r   )r   r   r   r   )r   r[  r   s      r   to_dictBot.to_dict&  s7     $T]]RVRaRab>> $Dr   )r   z!https://api.telegram.org/file/botNNNNF)NNFr  )r   N)NN)NNNNNNNNNNN)NNNNN)r  r`   r   r`   )NNNN)NNNNNN)NNN)NNNNNNNNNNNNNNN)NNNNNNNNNNNNNNNN)T(  r   
__module____qualname____firstlineno____doc__rJ   r  	__slots__r  r   rY   bytesr?  r   rl   r   rt  BaseExceptionr   r   r
   r   r  r  objectr   r   r   r   propertyry   rz   r{   r   r   r~   r|   rB   r   r   r   r   r   r   r   r   r   r   classmethodr^   r   Warningr   rN   r   r  rF   rO   rP   floatr  r@  r  rQ   r   r2  r   r   r@   rC  r7  r6   rP  rU  r[  ra  tupler7   rg  rp  rz  r  r  r  r  r  r  r  r&   r  r  r  r+   r  r!   r  r  r  r	   r  r   r  r3   r  r4   r  rC   r  r   r   r    r"   r'   r)   r,   r-   r.   r#   r  r   r$  r+  r0  r5  r;  r?  rC  rG  rK  rA   rV  r`  rd  ri  r   rn  r   rs  rw  r|  r  r  rT   r  r  r0   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+  r1  r6  r:  r?  rF  rJ  rN  rS  rW  r\  ra  r(   rf  rk  rp  rM   r  r:   r  r  r   r  r  r   r   r  r  r  r  r  r  r  r5   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-  r2  r7  r8   r;  r@  rE  rJ  rN  r2   rR  r1   rY  r]  rF  rN  rS  rZ  r_  re  rn  ry  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r#  r)  r/  r4  r:  r>  rB  rF  rJ  r  r^  rc  rg  rl  rr  r{  r  r  rv  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*  r5  rE  r9  r>  rI  rR  ro  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  rj  rV  rM  r[  r`  re  r  r  r  r  r$  r,  r1  r6  r:  editUserStarSubscriptionrD  rI  rM  rQ  rX  __static_attributes____classcell__)r   s   @r   rm   rm      sds   \@ "G	I 7@)-59'+04 FF F 	F
 +&F &k2F e_F 'uoF F FPr b $	4./	 -(	 '		
 
		EH 	E	=T#v+%6 	=8 	=
%F 
%t 
%%# %	F# 	F s   #   #s # #  D     !Xc] ! !       T  " C   #C # # "3 " " !# ! ! /c / / ( ( ( 4T 4 4 0 0 0 #c # #  #1		LsN*+	L w-	L 		L
 
	L 	L 59"&
)%556
 $/01
 3-	

 
 
sK$	%
)8T#v+%6 )84 )8\ $(!

 )5)5+7(4)-!
!
 x !

 uo!
  !
 "%!
 uo!
 X&!
 
!
P )5)5+7(4    
 uo     "%  uo  
tXtH~-	. L 0<.2*6+/!%$0@D?C8<04+//3R-" 7C-1(4)5+7(4)-/R-R- R- 'tn	R-
 {+R- "$R- $C=R- #R- SMR- #8O#<=R- '';<R- ##45R- !)R- $C=R- 'tnR-" &.d^#R-$ &c]%R-& uo'R-(  )R-* "%+R-, uo-R-. X&/R-0 
1R-h!,"$ *.6:	[1 )5)5+7(4[1[1 X&[1 d>23	[1 uo[1  [1 "%[1 uo[1 
[1@ )5)5+7(4)- uo  	
 "% uo X& 
D %18</;*6.2+/?K8<04+//3E
  7C-137(4)5+7(4)-/E
sCxE
 E
 SM	E

 8O45E
 'tnE
 "$E
 {+E
 $C=E
 '';<E
 ##45E
 !)E
 $C=E
 'tnE
  &.d^!E
" &c]#E
$ #+4.%E
& uo'E
(  )E
* "%+E
, uo-E
. X&/E
0 
1E
X )5)5+7(4)-8
sCx8
 8

 uo8
  8
 "%8
 uo8
 X&8
 
8
~ )5)5+7(4)-(
sCx(
 c](

 uo(
  (
 "%(
 uo(
 X&(
 
(
^ 0<*6+/?
 )5)5+7(4)-?
sCx?
 CHo?
 	?

 'tn?
 "$?
 $C=?
 uo?
  ?
 "%?
 uo?
 X&?
 
?
L 0<*6+/</ )5)5+7(4)-</sCx</ CHo</ c]	</
 'tn</ "$</ $C=</ uo</  </ "%</ uo</ X&</ 
y#~	</D "&/;.2$0@D*6+/&*8<04+//337!V
$ 7C-1"&(4)5+7(4)-3V
sCxV
 Y+,V
 #	V

 'tnV
 {+V
 SMV
 #8O#<=V
 "$V
 $C=V
 d^V
 ##45V
 !)V
 $C=V
 'tnV
  #+4.!V
$ &.d^%V
& &c]'V
( 3-)V
* uo+V
,  -V
. "%/V
0 uo1V
2 X&3V
4 
5V
x #'#'#!%/;.2$0@D*6+/)-8<04+//3%`
( 7C-1"&(4)5+7(4)-7`
sCx`
 Y'(`
 3-	`

 C=`
 }`
 #`
 'tn`
 {+`
 SM`
 #8O#<=`
 "$`
 $C=`
 I&`
 ##45`
  !)!`
" $C=#`
$ 'tn%`
( &.d^)`
* &c]+`
, 3--`
. uo/`
0  1`
2 "%3`
4 uo5`
6 X&7`
8 
9`
L "&/;.2$09=@D*6+/)-8<04+//3!Y
$ 7C-1"&(4)5+7(4)-3Y
sCxY
 	:-.Y
 #	Y

 'tnY
 {+Y
 SMY
 )1Y
 #8O#<=Y
 "$Y
 $C=Y
 I&Y
 ##45Y
 !)Y
 $C=Y
  'tn!Y
$ &.d^%Y
& &c]'Y
( 3-)Y
* uo+Y
,  -Y
. "%/Y
0 uo1Y
2 X&3Y
4 
5Y
~ 0<.2*6+/#8<04+//3y
 7C-1(4)5+7(4)-)y
sCxy
 y)+,y
 'tn	y

 {+y
 "$y
 $C=y
 }y
 ##45y
 !)y
 $C=y
 'tny
 &.d^y
 &c]y
  uo!y
"  #y
$ "%%y
& uo'y
( X&)y
* 
+y
~ #'!%/;.2# $$0-1@D*6+/&*)-8<04+//337+q
. 7C-1"&(4)5+7(4)-=q
sCxq
 Y'(q
 3-	q

 #q
 'tnq
 {+q
 }q
 q
 SMq
 %TNq
 #8O#<=q
 "$q
 $C=q
 d^q
  I&!q
" ##45#q
$ !)%q
& $C='q
( 'tn)q
* #+4.+q
. &.d^/q
0 &c]1q
2 3-3q
4 uo5q
6  7q
8 "%9q
: uo;q
< X&=q
> 
?q
n #' $/;.2*6+/)-8<04+//3R
  7C-1"&(4)5+7(4)-/R
sCxR
 )[01R
 3-	R

 R
 'tnR
 {+R
 "$R
 $C=R
 I&R
 ##45R
 !)R
 $C=R
 'tnR
  &.d^!R
" &c]#R
$ 3-%R
& uo'R
(  )R
* "%+R
, uo-R
. X&/R
0 
1R
p #'# $!%$0/;.2@D*6+/&*)-8<04+//337)i
, 7C-1"&(4)5+7(4)-;i
sCxi
 K/0i
 3-	i

 }i
 i
 #i
 SMi
 'tni
 {+i
 #8O#<=i
 "$i
 $C=i
 d^i
 I&i
  ##45!i
" !)#i
$ $C=%i
& 'tn'i
( #+4.)i
, &.d^-i
. &c]/i
0 3-1i
2 uo3i
4  5i
6 "%7i
8 uo9i
: X&;i
< 
=i
^ #'!%/;.2$0@D*6+/8<04+//3V
" 7C-1"&(4)5+7(4)-1V
sCxV
 Y'(V
 3-	V

 #V
 'tnV
 {+V
 SMV
 #8O#<=V
 "$V
 $C=V
 ##45V
 !)V
 $C=V
 'tnV
" &.d^#V
$ &c]%V
& 3-'V
( uo)V
*  +V
, "%-V
. uo/V
0 X&1V
2 
3V
| 0<*6+/8<04+//3p- 7C-1(4)5+7(4)-!%$0@D/p-sCxp- _`
p- 'tnp- "$p- $C=p- ##45p- !)p- $C=p- 'tnp- &.d^p- &c]p-  uo!p-"  #p-$ "%%p-& uo'p-( X&)p-* #+p-, SM-p-. #8O#<=/p-0 
w|	1p-j %)%)/;.2%)/3!%04*6+/8<04+//3!V
$ 7C-1'+(4)5+7(4)-3V
sCxV
 5/V
 E?	V

 'tnV
 {+V
 c]V
 &e_V
 #V
 !)V
 "$V
 $C=V
 ##45V
 !)V
 $C=V
  'tn!V
$ &.d^%V
& &c]'V
( 8$)V
* uo+V
,  -V
. "%/V
0 uo1V
2 X&3V
4 
5V
t .2$(+/$(%)9=/3!%04%)04l
 (,(4)5+7(4)-'l
%S/*l
 SMl
 $C=	l

 5/l
 E?l
 56l
 &e_l
 #l
 !)l
 c]l
 !)l
 8$l
 uol
   !l
" "%#l
$ uo%l
& X&'l
( 
w}	)l
` .2$(+/9=042
 )5)5+7(4)-2
%S/*2
 SM2
 $C=	2

 562
 !)2
 uo2
  2
 "%2
 uo2
 X&2
 
w}	2
n %)%)#!%'+/;.2)-)-+/*6+/8<04+//3%_
( 7C-1!%(4)5+7(4)-7_
sCx_
 5/_
 E?	_

 }_
 #_
  }_
 'tn_
 {+_
 "#_
 "#_
 $C=_
 "$_
 $C=_
 ##45_
  !)!_
" $C=#_
$ 'tn%_
( &.d^)_
* &c]+_
, -_
. uo/_
0  1_
2 "%3_
4 uo5_
6 X&7_
8 
9_
H '+$(#'/;.2#*6+/8<04+//3H
  7C-1%)(4)5+7(4)-/H
sCxH
 smH
 SM	H

 C=H
 'tnH
 {+H
 }H
 "$H
 $C=H
 ##45H
 !)H
 $C=H
 'tnH
  &.d^!H
" &c]#H
$ '"%H
& uo'H
(  )H
* "%+H
, uo-H
. X&/H
0 
1H
\ 0<9=*6+/8<04+//3b
 7C-1(4)5+7(4)-'b
b
 b
 'tn	b

 56b
 "$b
 $C=b
 ##45b
 !)b
 $C=b
 'tnb
 &.d^b
 &c]b
 uob
   !b
" "%#b
$ uo%b
& X&'b
( 
)b
P ,0044
 )5)5+7(4)-4
sCx4
 4
 $C=	4

 !)4
 uo4
  4
 "%4
 uo4
 X&4
 
4
v &*(,3.()8SE8HM`Da;b4b+cc
3.
 c]3. !3. 
x+,hsm;	<3.j & &\ %)&*%)59_
 )-(4)5+7(4)-!_
_
 ()8SE8HM`Da;b4b+cc
_
 SM_
 d^_
 c]_
 12_
 !_
 uo_
  _
 "%_
 uo_
  X&!_
" 
#_
J ,0*.,0.29
 )5)5+7(4)-9
9
 $9
 #4.	9

 "$9
 $D>9
 &d^9
 uo9
  9
 "%9
 uo9
 X&9
 
9
| !%#	*7 )5)5+7(4)-*7*7 *7 }	*7 uo*7  *7 "%*7 uo*7 X&*7 
*7d )5)5+7(4)-?*E9h	7ES\^cc
?* uo?*  ?* "%?* uo?* X&?* 
?*J 6:*.;
 )5)5+7(4)-;
sCx;
 ;
 U3=12	;

 "$;
 uo;
  ;
 "%;
 uo;
 X&;
 
;
D )5)5+7(4)-)
sCx)
 )

 uo)
  )
 "%)
 uo)
 X&)
 
)
^ *.	*
 )5)5+7(4)-*
sCx*
 *
 !	*
 uo*
  *
 "%*
 uo*
 X&*
 
*
b )5)5+7(4)-&
sCx&
 &

 uo&
  &
 "%&
 uo&
 X&&
 
&
V #%)!$(?
 )5)5+7(4)-?
?
 sm?
 TN	?

 c]?
 SM?
 uo?
  ?
 "%?
 uo?
 X&?
 
?
H .2$(+/$09=8<?K04i
 48(4)5+7(4)-#i
i
 %S/*i
 SM	i

 $C=i
 SMi
 56i
 8O45i
 '';<i
 !)i
 #+4.i
 uoi
  i
 "%i
  uo!i
" X&#i
$ 
w}	%i
Z .2$(+/!%9=$0@D3704N
 )5)5+7(4)-!N
%S/*N
 SMN
 $C=	N

 #N
 56N
 SMN
 #8O#<=N
 #+4.N
 !)N
 uoN
  N
 "%N
 uoN
  X&!N
" 
w}	#N
f .2$(+/9=04D
 )5)5+7(4)-D
D
 %S/*D
 SM	D

 $C=D
 56D
 !)D
 uoD
  D
 "%D
 uoD
 X&D
 
w}	D
P .2$(+/9=04;
 )5)5+7(4)-;
%S/*;
 SM;
 $C=	;

 56;
 !);
 uo;
  ;
 "%;
 uo;
 X&;
 
w}	;
~ !%#!%37x )5)5+7(4)-xx }x #	x
 "(3-0x uox  x "%x uox X&x 
vs{	xz ,0)-37$(/3&*q
 )5)5+7(4)-q
q
 i(q
 "#	q

 "(3-0q
 SMq
 'tnq
 smq
 uoq
  q
 "%q
 uoq
 X&q
 
q
j 04#
 )5)5+7(4)-#
&tn#
 uo	#

  #
 "%#
 uo#
 X&#
 
#
R )5)5+7(4)- 
sCx 
 uo	 

   
 "% 
 uo 
 X& 
 
 
L )5)5+7(4)-'2sCx'2 uo	'2
  '2 "%'2 uo'2 X&'2 
'2Z )5)5+7(4)-'0sCx'0 uo	'0
  '0 "%'0 uo'0 X&'0 
z3	'0Z )5)5+7(4)-!
sCx!
 uo	!

  !
 "%!
 uo!
 X&!
 
!
P )5)5+7(4)-#0sCx#0 #0
 uo#0  #0 "%#0 uo#0 X&#0 
#0T )5)5+7(4)-!
sCx!
 !

 uo!
  !
 "%!
 uo!
 X&!
 
!
N )5)5+7(4)-
sCx
 uo	

  
 "%
 uo
 X&
 

F )5)5+7(4)-1 uo1  	1
 "%1 uo1 X&1 
1@ "&$(+/ $/3>
 )5)5+7(4)->
>
 >
 #	>

 SM>
 $C=>
 ~>
 'tn>
 uo>
  >
 "%>
 uo>
 X&>
 
w}	>
F "&$(+/:3 )5)5+7(4)-:3:3 #:3 SM	:3
 $C=:3 uo:3  :3 "%:3 uo:3 X&:3 
}c!	":3J *.#'$(%)&*$(,0%)04&*/;9=6:8<15(,9=*6+/8<+//3=]
@ 7C-1(4)5+7(4)-M]
sCx]
 ]
 	]

 ]
 !]
 ]
 (]
 "#]
 C=]
 SM]
 c]]
 sm]
 D>]
 $D>]
  TN!]
"  (~#]
$ d^%]
& 'tn']
( 56)]
*  c6k 23+]
, (0~-]
. !)/]
0 !1]
2  (63]
4 "$5]
6 $C=7]
8 ##459]
: $C=;]
< 'tn=]
@ &.d^A]
B &c]C]
D uoE]
F  G]
H "%I]
J uoK]
L X&M]
N 
O]
F BF'+8
 )5)5+7(4)-8
8
 8
 #8,<#=>	8

  }8
 uo8
  8
 "%8
 uo8
 X&8
 
8
| (,	6
 )5)5+7(4)-6
"6
 6
  }	6
 uo6
  6
 "%6
 uo6
 X&6
 
6
z )5)5+7(4)-,;,; $,;
 uo,;  ,; "%,; uo,; X&,; 
,;f 6:;?E
 )5)5+7(4)-E
sCxE
 E
 %	E

 U3=12E
 +34.E
 uoE
  E
 "%E
 uoE
 X&E
 
E
V +/,0,0.2+//3+/.2'+*.15,0+/+/-1%{
( )5)5+7(4)-1{
sCx{
 {
 "$	{

 $D>{
 $D>{
 &d^{
 #4.{
 'tn{
 #4.{
 &d^{
 tn{
 "${
 !){
 $D>{
  #4.!{
" #4.#{
$ %TN%{
( uo){
*  +{
, "%-{
. uo/{
0 X&1{
2 
3{
B <@	8
 )5)5+7(4)-8
sCx8
 %8
 +34.	8
 uo8
  8
 "%8
 uo8
 X&8
 
8
@ )5)5+7(4)-(
sCx(
 (
 	(
 uo(
  (
 "%(
 uo(
 X&(
 
(
\ )5)5+7(4)-)
sCx)
 uo	)

  )
 "%)
 uo)
 X&)
 
)
\ 7;&*"/3I4 )5)5+7(4)-I4sCxI4 eCM23I4 sm	I4
 smI4 'tnI4 uoI4  I4 "%I4 uoI4 X&I4 
I4^ 7;&*"/3M4 )5)5+7(4)-M4sCxM4 3 001M4 eCM23	M4
 smM4 smM4 'tnM4 uoM4  M4 "%M4 uoM4 X&M4 
M4h )5)5+7(4)--4sCx-4 3 001-4
 uo-4  -4 "%-4 uo-4 X&-4 
-4h )5)5+7(4)-&
sCx&
 &

 uo&
  &
 "%&
 uo&
 X&&
 
&
Z )5)5+7(4)-&
sCx&
 &

 uo&
  &
 "%&
 uo&
 X&&
 
&
Z )5)5+7(4)-,
sCx,
 ,

 uo,
  ,
 "%,
 uo,
 X&,
 
,
d )5)5+7(4)-"
sCx"
 uo	"

  "
 "%"
 uo"
 X&"
 
"
R )5)5+7(4)-&
sCx&
 &

 uo&
  &
 "%&
 uo&
 X&&
 
&
V &*'

 )5)5+7(4)-'
sCx'
 c]'

 uo'
  '
 "%'
 uo'
 X&'
 
'
X 7;GK	0
 )5)5+7(4)-0
0
 '/sm0
 '/uS(]/C&D	0
 uo0
  0
 "%0
 uo0
 X&0
 
0
l 0<045
 )5)5+7(4)-5
sCx5
 5
 'tn	5

 !)5
 uo5
  5
 "%5
 uo5
 X&5
 
5
t %)04	2
 )5)5+7(4)-2
sCx2
 SM2
 !)	2
 uo2
  2
 "%2
 uo2
 X&2
 
2
p )5)5+7(4)-$
sCx$
 uo	$

  $
 "%$
 uo$
 X&$
 
$
T )5)5+7(4)- 0 0 uo	 0
   0 "% 0 uo 0 X& 0 
 0L )5)5+7(4)-)-"3-)- uo	)-
  )- "%)- uo)- X&)- 
w|	)-b )5)5+7(4)-:*:* :* 	:* uo:*  :* "%:* uo:* X&:* 
:*D )5)5+7(4)-9
9
 9
  	9
 uo9
  9
 "%9
 uo9
 X&9
 
9
@ )5)5+7(4)-!
!
 !

 uo!
  !
 "%!
 uo!
 X&!
 
!
R '++/Z
 )5)5+7(4)-Z
Z
 Z
 	Z

 >*Z
 smZ
 #4.Z
 uoZ
  Z
 "%Z
 uoZ
 X&Z
 
Z
@ )5)5+7(4)-

 uo	

  
 "%
 uo
 X&
 

J )5)5+7(4)-"
"
 uo	"

  "
 "%"
 uo"
 X&"
 
"
R *.M
 )5)5+7(4)-M
M
 M
 	M

 I&M
 uoM
  M
 "%M
 uoM
 X&M
 
M
h )5)5+7(4)-&
&
 &

 uo&
  &
 "%&
 uo&
 X&&
 
&
Z )5)5+7(4)-'
'
 SM'

 uo'
  '
 "%'
 uo'
 X&'
 
'
X -1'

 )5)5+7(4)-'
'
 8C=)'

 uo'
  '
 "%'
 uo'
 X&'
 
'
X 15&

 )5)5+7(4)-&
&
  -&

 uo&
  &
 "%&
 uo&
 X&&
 
&
V *.'

 )5)5+7(4)-'
'
 "#'

 uo'
  '
 "%'
 uo'
 X&'
 
'
\ )5)5+7(4)-,
,
 /0,

 uo,
  ,
 "%,
 uo,
 X&,
 
,
f (,"267;$(/;.2%)0<%)59DH*6+/8<04-9AE+//31~
4 7C-1(4)5+7(4)-A~
sCx~
 ~
 %%6 678	~

 tn~
 sm~
 "*$~
 $O4~
 D>~
 'tn~
 {+~
 c]~
 !)~
 c]~
 U3=12~
  'x'@A!~
" "$#~
$ $C=%~
& ##45'~
( !))~
* &c]+~
, $H_$=>-~
. $C=/~
0 'tn1~
4 &.d^5~
6 &c]7~
8 uo9~
:  ;~
< "%=~
> uo?~
@ X&A~
B 
C~
H :>040* )5)5+7(4)-0*sCx0* 0* 56	0*
 !)0* uo0*  0* "%0* uo0* X&0* 
0*j 0<.2#*6+/8<04+//3q
 7C-1(4)5+7(4)-'q
sCxq
 'tnq
 {+	q

 }q
 "$q
 $C=q
 ##45q
 !)q
 $C=q
 'tnq
 &.d^q
 &c]q
 uoq
   !q
" "%#q
$ uo%q
& X&'q
( 
)q
j (,'= )5)5+7(4)-'=tn'= uo	'=
  '= "%'= uo'= X&'= 
!'=V 59'+,

 )5)5+7(4)-,
01,
 tn,

 uo,
  ,
 "%,
 uo,
 X&,
 
,
` ,0'+30
 )5)5+7(4)-30(30  }30
 uo30  30 "%30 uo30 X&30 
z3	30p ,0'+	>
 )5)5+7(4)->
5U38_!<=>>
 (>
  }	>
 uo>
  >
 "%>
 uo>
 X&>
 
>
D ,0'+-

 )5)5+7(4)--
(-
  }-

 uo-
  -
 "%-
 uo-
 X&-
 
-
d )5)5+7(4)-
 uo
  	

 "%
 uo
 X&
 

F )5)5+7(4)-
 uo
  	

 "%
 uo
 X&
 

H "&$0@D/;.2*6+/8<37/3G/  7C-1(4)5+7(4)--G/sCxG/ CHoG/ 	G/
 #G/ SMG/ #8O#<=G/ 'tnG/ {+G/ "$G/ $C=G/ ##45G/ #+4.G/ 'tnG/  &.d^!G/" &c]#G/$ uo%G/&  'G/( "%)G/* uo+G/, X&-G/. 
/G/\ 0<*6+/)-E/ )5)5+7(4)-E/sCxE/ CHoE/ c]	E/
 'tnE/ "$E/ $C=E/ !E/ uoE/  E/ "%E/ uoE/ X&E/ 
	 E/R "&,0'

 )5)5+7(4)-'
#'
 j)'

 uo'
  '
 "%'
 uo'
 X&'
 
'
V "&%4 )5)5+7(4)-%4#%4 uo	%4
  %4 "%%4 uo%4 X&%4 
%4^ )-9=6:#'$(%)&*$(,0%)048<15&*?C04/_
2 )5)5+7(4)-;_
_
 _
 	_

 !_
 _
 (_
 !_
  (6_
  c6k 23_
 C=_
 SM_
 c]_
 sm_
 D>_
  $D>!_
" TN#_
$  (~%_
& (0~'_
( !))_
* d^+_
, &eCN&;<-_
. !)/_
2 uo3_
4  5_
6 "%7_
8 uo9_
: X&;_
< 
=_
H )5)5+7(4)-- uo-  	-
 "%- uo- X&- 
w|	-F %).290 )5)5+7(4)-90sCx90 90 SM	90
 'sm90 uo90  90 "%90 uo90 X&90 
90~ #.26
 )5)5+7(4)-6
sCx6
 6
 sm	6

 'sm6
 uo6
  6
 "%6
 uo6
 X&6
 
6
z )5)5+7(4)-*
sCx*
 *

 uo*
  *
 "%*
 uo*
 X&*
 
*
b )5)5+7(4)-*
sCx*
 *

 uo*
  *
 "%*
 uo*
 X&*
 
*
b )5)5+7(4)-)
sCx)
 )

 uo)
  )
 "%)
 uo)
 X&)
 
)
` )5)5+7(4)-*
sCx*
 *

 uo*
  *
 "%*
 uo*
 X&*
 
*
` )5)5+7(4)-%
sCx%
 uo	%

  %
 "%%
 uo%
 X&%
 
%
X )5)5+7(4)-)
sCx)
 )

 uo)
  )
 "%)
 uo)
 X&)
 
)
^ )5)5+7(4)-%
sCx%
 uo	%

  %
 "%%
 uo%
 X&%
 
%
V )5)5+7(4)-&
sCx&
 uo	&

  &
 "%&
 uo&
 X&&
 
&
X )5)5+7(4)-&
sCx&
 uo	&

  &
 "%&
 uo&
 X&&
 
&
X )5)5+7(4)-%
sCx%
 uo	%

  %
 "%%
 uo%
 X&%
 
%
R &*'++

 )5)5+7(4)-+
c]+
  }+

 uo+
  +
 "%+
 uo+
 X&+
 
+
^ ,0'++

 )5)5+7(4)-+
#C=+
  }+

 uo+
  +
 "%+
 uo+
 X&+
 
+
^ (,$
 )5)5+7(4)-$
}$
 uo	$

  $
 "%$
 uo$
 X&$
 
$
P (,%
 )5)5+7(4)-%
}%
 uo	%

  %
 "%%
 uo%
 X&%
 
%
R #'+.

 )5)5+7(4)-.
sm.
  }.

 uo.
  .
 "%.
 uo.
 X&.
 
.
d (,$
 )5)5+7(4)-$
}$
 uo	$

  $
 "%$
 uo$
 X&$
 
$
V )5)5+7(4)-(
sCx(
 (

 uo(
  (
 "%(
 uo(
 X&(
 
(
\ \`!%S
 )5)5+7(4)-S
sCxS
 S
 5%c0A*B!C\SV!VWX	S

 S
 uoS
  S
 "%S
 uoS
 X&S
 
S
r )5)5+7(4)-%
 #%
 uo	%

  %
 "%%
 uo%
 X&%
 
%
\ )5)5+7(4)-0
0
 0
 	0

  0
 uo0
  0
 "%0
 uo0
 X&0
 
0
n )5)5+7(4)-'
'
 %('

 uo'
  '
 "%'
 uo'
 X&'
 
'
V !%#*

 )5)5+7(4)-*
*
 }*

 uo*
  *
 "%*
 uo*
 X&*
 
*
d )5)5+7(4)--
-
 %(-
 	-
 uo-
  -
 "%-
 uo-
 X&-
 
-
h "&$0@D37/;*68<.204!%/3j
" 7C-1(4)5+7(4)-/j
sCxj
 j
 ()	j

 #j
 SMj
 #8O#<=j
 #+4.j
 'tnj
 "$j
 ##45j
 {+j
 !)j
 #j
 'tnj
" &.d^#j
$ &c]%j
& uo'j
(  )j
* "%+j
, uo-j
. X&/j
0 
1j
b #:4 )5)5+7(4)-:4sCx:4 !:4  	:4
 sm:4 uo:4  :4 "%:4 uo:4 X&:4 
:4@ #	34 )5)5+7(4)-34sCx34 3 00134 sm	34 uo34  34 "%34 uo34 X&34 
34p )5)5+7(4)-
 uo
  	

 "%
 uo
 X&
 

F #)5=A<
 )5)5+7(4)-<
<
 sDy!<
 sm	<

 "#<
   9:<
 uo<
  <
 "%<
 uo<
 X&<
 
<
|   E"K("M*$N+$N+&O,I&I& L)K(I&"M*I&#M+%N, L)8686I&K(H%%N,+/ <823G$#M+,0'O-02/1'O--0).65J'J'"M*I&G$33#M+,023.1%N,!L*,0K(/165,0-0+/-0&I#?2323.1236565!L*'O-!L*-0.1%N,).2365#M++/02(O.97236544H%H%H%#M+#M+).F#K( L),0,0&I#?&I#?+/ =9).%N,'O-).).!?:4465864486).44).44(N%B.1).02-065I'I'(N%B,0-03302+//1:7#M+'K$@%G">+/H%r   )rb  r5  r  r   r   collections.abcr   r   r   typesr   typingr   r   r	   r
   r   r   r   r   r   cryptography.hazmat.backendsr   cryptography.hazmat.primitivesr   r   ImportErrortelegram._botcommandr   telegram._botcommandscoper   telegram._botdescriptionr   r   telegram._botnamer   telegram._businessr   !telegram._chatadministratorrightsr   telegram._chatboostr   telegram._chatfullinfor   telegram._chatinvitelinkr   telegram._chatmemberr   telegram._chatpermissionsr   telegram._files.animationr   telegram._files.audior   telegram._files.chatphotor    telegram._files.contactr!   telegram._files.documentr"   telegram._files.filer#   telegram._files.inputmediar$   r%   telegram._files.locationr&   telegram._files.photosizer'   telegram._files.stickerr(   r)   r*   telegram._files.venuer+   telegram._files.videor,   telegram._files.videonoter-   telegram._files.voicer.   telegram._forumtopicr/   telegram._games.gamehighscorer0   telegram._giftsr1   r2   )telegram._inline.inlinequeryresultsbuttonr3   &telegram._inline.preparedinlinemessager4   telegram._menubuttonr5   telegram._messager6   telegram._messageidr7   telegram._payment.starsr8   telegram._pollr9   r:   telegram._reactionr;   r<   r=   telegram._replyr>   telegram._sentwebappmessager?   telegram._telegramobjectr@   telegram._updaterA   telegram._userrB   telegram._userprofilephotosrC   telegram._utils.argumentparsingrD   rE   telegram._utils.defaultvaluerF   rG   telegram._utils.filesrH   rI   telegram._utils.loggingrJ   telegram._utils.reprrK   telegram._utils.stringsrL   telegram._utils.typesrM   rN   rO   rP   rQ   telegram._utils.warningsrS   telegram._webhookinforT   telegram.constantsrU   rV   telegram.errorrW   rX   telegram.requestrY   rZ   telegram.request._httpxrequestr[   "telegram.request._requestparameterr\   telegram.warningsr]   r^   telegramr_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rk   rl   AbstractAsyncContextManagerrm    r   r   <module>r     sZ  ( E     $ ( 
 
 
<< , 5 H % 1 E . / 3 + 5 / ' / + - % A - / E E ' ' / ' + 7 ' N H + % ) 4 0 W W + 9 3 #  9 R C A . ? 1 ] ] ) - > 9 5 7 ? C     T[Z&.*@@G [Z&g  OMs   H HH