python-telegram-bot/tests
Jasmin Bom 09bdb88822
Bot api 4.1 (#1198)
* Fix passport decryption failing at random times

Sometimes a decrypted secret was being treated as b64 and therefore got decoded even further. Fix by decoding b64 right before call to decrypt so we have better control of when not to do it

* Bot api 4.1

Telegram passport 1.1
Added support for middle names.
Added support for translations for documents
Add errors for translations for documents
Added support for requesting names in the language of the user's country of residence
Replaced the payload parameter with the new parameter nonce

NOTE: Scope stuff is NOT implemented, as we wanna STRONGLY encourage users to use the telegram provided SDKs anyway (and not generate telegram auth links in their bot, but rather on a server)

* Minor fixes

* Add hash to EncryptedPassportElement

For use with PassportElementErrorUnspecified apparently
2018-09-01 16:58:08 +02:00
..
data Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
__init__.py Fix travis 2015-09-07 16:33:00 -03:00
bots.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
conftest.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_animation.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_audio.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_bot.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_callbackquery.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_callbackqueryhandler.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_chat.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_chatmember.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_choseninlineresult.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_choseninlineresulthandler.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_commandhandler.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_constants.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_contact.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_conversationhandler.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_dispatcher.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_document.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_encryptedcredentials.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_encryptedpassportelement.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_error.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_file.py Improved File.download (#1019) 2018-03-01 10:10:04 +02:00
test_filters.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_forcereply.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_game.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_gamehighscore.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_helpers.py mention_markdown/html py2 fixes + unitests (#1112) 2018-05-28 23:51:39 +03:00
test_inlinekeyboardbutton.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinekeyboardmarkup.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_inlinequery.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_inlinequeryhandler.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_inlinequeryresultarticle.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultaudio.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultcachedaudio.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultcacheddocument.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultcachedgif.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultcachedmpeg4gif.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultcachedphoto.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultcachedsticker.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultcachedvideo.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultcachedvoice.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultcontact.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultdocument.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultgame.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultgif.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultlocation.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultmpeg4gif.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultphoto.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultvenue.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_inlinequeryresultvideo.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inlinequeryresultvoice.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inputcontactmessagecontent.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inputfile.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_inputlocationmessagecontent.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inputmedia.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_inputtextmessagecontent.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_inputvenuemessagecontent.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_invoice.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_jobqueue.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_keyboardbutton.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_labeledprice.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_location.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_message.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_messageentity.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_messagehandler.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_messagequeue.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_meta.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_official.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_orderinfo.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_parsemode.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_passport.py Bot api 4.1 (#1198) 2018-09-01 16:58:08 +02:00
test_passportelementerrordatafield.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_passportelementerrorfile.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_passportelementerrorfiles.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_passportelementerrorfrontside.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_passportelementerrorreverseside.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_passportelementerrorselfie.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_passportelementerrortranslationfile.py Bot api 4.1 (#1198) 2018-09-01 16:58:08 +02:00
test_passportelementerrortranslationfiles.py Bot api 4.1 (#1198) 2018-09-01 16:58:08 +02:00
test_passportelementerrorunspecified.py Bot api 4.1 (#1198) 2018-09-01 16:58:08 +02:00
test_passportfile.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_photo.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_precheckoutquery.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_precheckoutqueryhandler.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_regexhandler.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_replykeyboardmarkup.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_replykeyboardremove.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_request.py Handle utf8 decoding errors (#1076) 2018-04-17 07:40:02 +03:00
test_shippingaddress.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_shippingoption.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_shippingquery.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_shippingqueryhandler.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_sticker.py Increase timeouts on creation of fixtures in tests (#1015) 2018-02-22 15:13:57 +02:00
test_stringcommandhandler.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_stringregexhandler.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_successfulpayment.py flake8 revamp 2018-02-19 12:41:38 +02:00
test_telegramobject.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_typehandler.py Revert "Context based callbacks (#1100)" 2018-05-31 14:22:57 +02:00
test_update.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_updater.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_user.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_userprofilephotos.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00
test_venue.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_video.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_videonote.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
test_voice.py Increase timeouts on creation of fixtures in tests (#1015) 2018-02-22 15:13:57 +02:00
travis_fold.py Update headers to 2018 (#962) 2018-01-04 17:16:06 +02:00