python-telegram-bot/telegram/ext
Stɑrry Shivɑm 7e554584b1
Improve Timeouts in ConversationHandler (#2417)
* Handle promise states in conversation timeout

Signed-off-by: starry69 <starry369126@outlook.com>

* warn if nested conversation & timeout

Signed-off-by: starry69 <starry369126@outlook.com>

* Add notes and test for conversation_timeout

Signed-off-by: starry69 <starry369126@outlook.com>

* Try to fix pre-commit

Signed-off-by: starry69 <starry369126@outlook.com>

* Test promise exception

Signed-off-by: starry69 <starry369126@outlook.com>

* Welp

Signed-off-by: starry69 <starry369126@outlook.com>

* improve docs

Signed-off-by: starry69 <starry369126@outlook.com>

* typo

Signed-off-by: starry69 <starry369126@outlook.com>

* try to fix codecov

Signed-off-by: starry69 <starry369126@outlook.com>

* refactor timeout logic with promise.add_done_cb

Signed-off-by: starry69 <starry369126@outlook.com>

* small fix

Signed-off-by: starry69 <starry369126@outlook.com>

* Address review

Signed-off-by: starry69 <starry369126@outlook.com>

* Fix some type hinting

* Few fixes

Signed-off-by: starry69 <starry369126@outlook.com>

* fix tests

Signed-off-by: starry69 <starry369126@outlook.com>

* minor nitpick

Signed-off-by: starry69 <starry369126@outlook.com>

Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de>
2021-04-30 10:10:46 +02:00
..
utils Improve Timeouts in ConversationHandler (#2417) 2021-04-30 10:10:46 +02:00
__init__.py API 5.1 (#2424) 2021-03-14 16:41:35 +01:00
basepersistence.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
callbackcontext.py Refactor Defaults Integration (#2363) 2021-02-19 19:07:48 +01:00
callbackqueryhandler.py Reduce Usage of typing.Any (#2321) 2021-01-30 11:38:54 +01:00
chatmemberhandler.py API 5.1 (#2424) 2021-03-14 16:41:35 +01:00
choseninlineresulthandler.py Reduce Usage of typing.Any (#2321) 2021-01-30 11:38:54 +01:00
commandhandler.py Improve Code Quality (#2450) 2021-04-05 13:25:27 +02:00
conversationhandler.py Improve Timeouts in ConversationHandler (#2417) 2021-04-30 10:10:46 +02:00
defaults.py Update pre-commit Settings (#2415) 2021-03-13 16:21:03 +01:00
dictpersistence.py Reduce Usage of typing.Any (#2321) 2021-01-30 11:38:54 +01:00
dispatcher.py Api 5.2 (#2489) 2021-04-30 10:09:21 +02:00
filters.py Api 5.2 (#2489) 2021-04-30 10:09:21 +02:00
handler.py Improve Code Quality (#2450) 2021-04-05 13:25:27 +02:00
inlinequeryhandler.py Api 5.2 (#2489) 2021-04-30 10:09:21 +02:00
jobqueue.py Update pre-commit Settings (#2415) 2021-03-13 16:21:03 +01:00
messagehandler.py Reduce Usage of typing.Any (#2321) 2021-01-30 11:38:54 +01:00
messagequeue.py Deprecate MessageQueue (#2393) 2021-02-19 17:29:50 +01:00
picklepersistence.py Improve Code Quality (#2450) 2021-04-05 13:25:27 +02:00
pollanswerhandler.py Reduce Usage of typing.Any (#2321) 2021-01-30 11:38:54 +01:00
pollhandler.py Reduce Usage of typing.Any (#2321) 2021-01-30 11:38:54 +01:00
precheckoutqueryhandler.py Reduce Usage of typing.Any (#2321) 2021-01-30 11:38:54 +01:00
regexhandler.py Reduce Usage of typing.Any (#2321) 2021-01-30 11:38:54 +01:00
shippingqueryhandler.py Reduce Usage of typing.Any (#2321) 2021-01-30 11:38:54 +01:00
stringcommandhandler.py Reduce Usage of typing.Any (#2321) 2021-01-30 11:38:54 +01:00
stringregexhandler.py Reduce Usage of typing.Any (#2321) 2021-01-30 11:38:54 +01:00
typehandler.py Reduce Usage of typing.Any (#2321) 2021-01-30 11:38:54 +01:00
updater.py Improve Updater.set_webhook (#2419) 2021-03-13 15:35:26 +01:00