mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 14:35:00 +01:00
247577b2e2
See https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transition-guide-to-Version-11.0 under Context based callbacks and Filters in handlers for a good guide on the changes in this commit. * Change handlers so context is supported * Attempt to make parameter "guessing" work on py < 3.5 * Document use_context in all handlers * Add Context to docs * Minor fixes to context handling * Add tests for context stuff * Allow the signature check to work on py<3.5 with methods * Fix order of operations * Address most issues raised in CR * Make CommandHandler no longer support filter lists * Fix indent (pycharm can be an arse sometimes) * Improve readability in conversationhandler * Make context have Match instead of groups & groupdict * Remove filter list support from messagehandler too * Small fix to StringCommandHandler * More small fixes to handlers * Amend CHANGES * Fix tests and fix bugs raised by tests * Don't allow users to ignore errors without messing with the warning filters themselves * Ignore our own deprecation warnings when testing * Skipping deprecationwarning test on py2 * Forgot some changes * Handler: Improved documentation and text of deprecation warnings * HandlerContext: Keep only dispatcher and use properties; improved doc * Complete fixing the documentation. - Fixes per Eldinnie's comments. - Fixes per warnings when running sphinx. * Some small doc fixes (interlinks and optionals) * Change add_error_handler to use HandlerContext too * More context based changes Context Based Handlers -> Context Based Callbacks No longer use_context args on every single Handler Instead set dispatcher/updater .use_context=True to use Works with - Handler callbacks - Error handler callbacks - Job callbacks Change examples to context based callbacks so new users are not confused Rename and move the context object from Handlers.HandlerContext to CallbackContext, since it doesn't only apply to handlers anymore. Fix tests by adding a new fixture `cpd` which is a dispatcher with use_context=True * Forgot about conversationhandler * Forgot jobqueue * Add tests for callbackcontext & for context based callback job * Fix as per review :) |
||
---|---|---|
.. | ||
data | ||
__init__.py | ||
bots.py | ||
conftest.py | ||
test_animation.py | ||
test_audio.py | ||
test_bot.py | ||
test_callbackcontext.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_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_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 |