From 85c4a9131727663a596b8daabcc71c86a9bb4380 Mon Sep 17 00:00:00 2001 From: Mohsen <97420292+MohsenHNSJ@users.noreply.github.com> Date: Thu, 24 Oct 2024 20:26:15 +0330 Subject: [PATCH] Fix typos in FAQ section (#4498) --- readthedocs/quick-references/faq.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readthedocs/quick-references/faq.rst b/readthedocs/quick-references/faq.rst index 7b714f41..21635a88 100644 --- a/readthedocs/quick-references/faq.rst +++ b/readthedocs/quick-references/faq.rst @@ -20,7 +20,7 @@ To enable logging, at the following code to the top of your main file: .. code-block:: python import logging - logging.basicConfig(format='[%(levelname) 5s/%(asctime)s] %(name)s: %(message)s', + logging.basicConfig(format='[%(levelname) %(asctime)s] %(name)s: %(message)s', level=logging.WARNING) You can change the logging level to be something different, from less to more information: @@ -272,7 +272,7 @@ connects to Telegram, both agree on the layer to use. If the layers don't match, Telegram may send certain objects which Telethon no longer understands. When this message is reported as a "bug", the most common patterns seem to be -that he Telethon session is being used or has been used from somewhere else. +that the Telethon session is being used or has been used from somewhere else. Make sure that you created the session from Telethon, and are not using the same session anywhere else. If you need to use the same account from multiple places, login and use a different session for each place you need.