Skip to content

Commit eeda400

Browse files
committed
Better explanation of workdir Client parameter
1 parent 3dc2a81 commit eeda400

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/source/intro/setup.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Configuration
2929
Having the API key from the previous step in handy, we can now begin to configure a Pyrogram project.
3030
There are two ways to do so, and you can choose what fits better for you:
3131

32-
- First option (recommended): create a new ``config.ini`` file at the root of your working directory, copy-paste the
33-
following and replace the **api_id** and **api_hash** values with your own. This is the preferred method because
34-
allows you to keep your credentials out of your code without having to deal with how to load them:
32+
- First option (recommended): create a new ``config.ini`` file next to your main script, copy-paste the following and
33+
replace the **api_id** and **api_hash** values with your own. This is the preferred method because allows you to
34+
keep your credentials out of your code without having to deal with how to load them:
3535

3636
.. code-block:: ini
3737

pyrogram/client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class Client(Methods, BaseClient):
153153
154154
workdir (``str``, *optional*):
155155
Define a custom working directory. The working directory is the location in your filesystem
156-
where Pyrogram will store your session files. Defaults to "." (current directory).
156+
where Pyrogram will store your session files. Defaults to the parent directory of the main script.
157157
158158
config_file (``str``, *optional*):
159159
Path of the configuration file. Defaults to ./config.ini

0 commit comments

Comments
 (0)