From 15f30ed942273a7b8507beaedff986adb3208063 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 1 Apr 2020 19:55:14 +0200 Subject: [PATCH] Update documentation with some fixes and MongoDB sessions Closes #1403 and #1406. --- readthedocs/basic/signing-in.rst | 2 +- readthedocs/concepts/entities.rst | 2 +- readthedocs/concepts/sessions.rst | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/readthedocs/basic/signing-in.rst b/readthedocs/basic/signing-in.rst index 453d54fa..562d6b14 100644 --- a/readthedocs/basic/signing-in.rst +++ b/readthedocs/basic/signing-in.rst @@ -99,7 +99,7 @@ You will still need an API ID and hash, but the process is very similar: api_id = 12345 api_hash = '0123456789abcdef0123456789abcdef' - bot_token = '12345:0123456789abcdef0123456789abcdef + bot_token = '12345:0123456789abcdef0123456789abcdef' # We have to manually call "start" if we want an explicit bot token bot = TelegramClient('bot', api_id, api_hash).start(bot_token=bot_token) diff --git a/readthedocs/concepts/entities.rst b/readthedocs/concepts/entities.rst index 491c8c1e..d05d1040 100644 --- a/readthedocs/concepts/entities.rst +++ b/readthedocs/concepts/entities.rst @@ -178,7 +178,7 @@ exist, which just have the ID. You cannot get the hash out of them since you should not be needing it. The library probably has cached it before. Peers are enough to identify an entity, but they are not enough to make -a request with them use them. You need to know their hash before you can +a request with them. You need to know their hash before you can "use them", and to know the hash you need to "encounter" them, let it be in your dialogs, participants, message forwards, etc. diff --git a/readthedocs/concepts/sessions.rst b/readthedocs/concepts/sessions.rst index 03c3cbf0..a94bc773 100644 --- a/readthedocs/concepts/sessions.rst +++ b/readthedocs/concepts/sessions.rst @@ -100,6 +100,9 @@ There are other community-maintained implementations available: * `Redis `_: stores all sessions in a single Redis data store. +* `MongoDB `_: + stores the current session in a MongoDB database. + Creating your Own Storage =========================