From bcdba7d0dbced8f113149629b250b2b6a92d4bc0 Mon Sep 17 00:00:00 2001 From: J Arun Mani <49952138+J-Arun-Mani@users.noreply.github.com> Date: Mon, 14 Sep 2020 23:07:56 +0530 Subject: [PATCH] Clarified the last paragraph to make it more clear. --- Making-your-bot-persistent.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Making-your-bot-persistent.md b/Making-your-bot-persistent.md index 8ed9d68..7a6cecf 100644 --- a/Making-your-bot-persistent.md +++ b/Making-your-bot-persistent.md @@ -22,8 +22,7 @@ To make your bot persistent you need to do the following. - Construct Updater with the persistence (`Updater('TOKEN', persistence=my_persistence, use_context=True)`) This is enough to make `user_data`, `bot_data` and `chat_data` persistent. -To make a conversationhandler persistent (save states between bot restarts) -`ConversationHandler(, persistent=True, name='my_name')` -If you want a conversationhandler to be persistent you **MUST NAME IT**. persistent is `False` by default. -Adding these arguments and adding the conversationhandler to a persistence-aware updater/dispatcher will make it persistent. +To make a conversation handler persistent (save states between bot restarts) you **must name it** and set `persistent` to `True`. +Like `ConversationHandler(, persistent=True, name='my_name')`. `persistent` is `False` by default. +Adding these arguments and adding the conversation handler to a persistence-aware updater/dispatcher will make it persistent. \ No newline at end of file