mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 14:46:29 +01:00
4689a80c2e
Telegram Passport (#1174): - Add full support for telegram passport. - New types: PassportData, PassportFile, EncryptedPassportElement, EncryptedCredentials, PassportElementError, PassportElementErrorDataField, PassportElementErrorFrontSide, PassportElementErrorReverseSide, PassportElementErrorSelfie, PassportElementErrorFile and PassportElementErrorFiles. - New bot method: set_passport_data_errors - New filter: Filters.passport_data - Field passport_data field on Message - PassportData is automagically decrypted when you specify your private key when creating Updater or Bot. - PassportFiles is also automagically decrypted as you download/retrieve them. - See new passportbot.py example for details on how to use, or go to our telegram passport wiki page for more info - NOTE: Passport decryption requires new dependency `cryptography`. Inputfile rework (#1184): - Change how Inputfile is handled internally - This allows support for specifying the thumbnails of photos and videos using the thumb= argument in the different send_ methods. - Also allows Bot.send_media_group to actually finally send more than one media. - Add thumb to Audio, Video and Videonote - Add Bot.edit_message_media together with InputMediaAnimation, InputMediaAudio, and inputMediaDocument. Other Bot API 4.0 changes: - Add forusquare_type to Venue, InlineQueryResultVenue, InputVenueMessageContent, and Bot.send_venue. (#1170) - Add vCard support by adding vcard field to Contact, InlineQueryResultContact, InputContactMessageContent, and Bot.send_contact. (#1166) - Support new message entities: CASHTAG and PHONE_NUMBER. (#1179) - Cashtag seems to be things like $USD and $GBP, but it seems telegram doesn't currently send them to bots. - Phone number also seems to have limited support for now - Add Bot.send_animation, add width, height, and duration to Animation, and add Filters.animation. (#1172) Co-authored-by: Jasmin Bom <jsmnbom@gmail.com> Co-authored-by: code1mountain <32801117+code1mountain@users.noreply.github.com> Co-authored-by: Eldinnie <pieter.schutz+github@gmail.com> Co-authored-by: mathefreak1 <mathefreak@hi2.in> |
||
---|---|---|
.. | ||
data | ||
__init__.py | ||
bots.py | ||
conftest.py | ||
test_animation.py | ||
test_audio.py | ||
test_bot.py | ||
test_callbackquery.py | ||
test_callbackqueryhandler.py | ||
test_chat.py | ||
test_chatmember.py | ||
test_choseninlineresult.py | ||
test_choseninlineresulthandler.py | ||
test_commandhandler.py | ||
test_constants.py | ||
test_contact.py | ||
test_conversationhandler.py | ||
test_dispatcher.py | ||
test_document.py | ||
test_encryptedcredentials.py | ||
test_encryptedpassportelement.py | ||
test_error.py | ||
test_file.py | ||
test_filters.py | ||
test_forcereply.py | ||
test_game.py | ||
test_gamehighscore.py | ||
test_helpers.py | ||
test_inlinekeyboardbutton.py | ||
test_inlinekeyboardmarkup.py | ||
test_inlinequery.py | ||
test_inlinequeryhandler.py | ||
test_inlinequeryresultarticle.py | ||
test_inlinequeryresultaudio.py | ||
test_inlinequeryresultcachedaudio.py | ||
test_inlinequeryresultcacheddocument.py | ||
test_inlinequeryresultcachedgif.py | ||
test_inlinequeryresultcachedmpeg4gif.py | ||
test_inlinequeryresultcachedphoto.py | ||
test_inlinequeryresultcachedsticker.py | ||
test_inlinequeryresultcachedvideo.py | ||
test_inlinequeryresultcachedvoice.py | ||
test_inlinequeryresultcontact.py | ||
test_inlinequeryresultdocument.py | ||
test_inlinequeryresultgame.py | ||
test_inlinequeryresultgif.py | ||
test_inlinequeryresultlocation.py | ||
test_inlinequeryresultmpeg4gif.py | ||
test_inlinequeryresultphoto.py | ||
test_inlinequeryresultvenue.py | ||
test_inlinequeryresultvideo.py | ||
test_inlinequeryresultvoice.py | ||
test_inputcontactmessagecontent.py | ||
test_inputfile.py | ||
test_inputlocationmessagecontent.py | ||
test_inputmedia.py | ||
test_inputtextmessagecontent.py | ||
test_inputvenuemessagecontent.py | ||
test_invoice.py | ||
test_jobqueue.py | ||
test_keyboardbutton.py | ||
test_labeledprice.py | ||
test_location.py | ||
test_message.py | ||
test_messageentity.py | ||
test_messagehandler.py | ||
test_messagequeue.py | ||
test_meta.py | ||
test_official.py | ||
test_orderinfo.py | ||
test_parsemode.py | ||
test_passport.py | ||
test_passportelementerrordatafield.py | ||
test_passportelementerrorfile.py | ||
test_passportelementerrorfiles.py | ||
test_passportelementerrorfrontside.py | ||
test_passportelementerrorreverseside.py | ||
test_passportelementerrorselfie.py | ||
test_passportfile.py | ||
test_photo.py | ||
test_precheckoutquery.py | ||
test_precheckoutqueryhandler.py | ||
test_regexhandler.py | ||
test_replykeyboardmarkup.py | ||
test_replykeyboardremove.py | ||
test_request.py | ||
test_shippingaddress.py | ||
test_shippingoption.py | ||
test_shippingquery.py | ||
test_shippingqueryhandler.py | ||
test_sticker.py | ||
test_stringcommandhandler.py | ||
test_stringregexhandler.py | ||
test_successfulpayment.py | ||
test_telegramobject.py | ||
test_typehandler.py | ||
test_update.py | ||
test_updater.py | ||
test_user.py | ||
test_userprofilephotos.py | ||
test_venue.py | ||
test_video.py | ||
test_videonote.py | ||
test_voice.py | ||
travis_fold.py |