Skip to content

Commit e96a74f

Browse files
committed
Merge branch 'develop' into asyncio-dev
2 parents 8612eaf + 82e0087 commit e96a74f

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/source/faq.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ The error in question is ``[400 PEER_ID_INVALID]``, and could mean several thing
250250

251251
About the last point: in order for you to meet a user and thus communicate with them, you should ask yourself how to
252252
contact people using official apps. The answer is the same for Pyrogram too and involves normal usages such as searching
253-
for usernames, meet them in a common group, have their phone contacts saved, getting a message mentioning them (either a
254-
forward or a mention in the message text).
253+
for usernames, meeting them in a common group, have their phone contacts saved or getting a message mentioning them,
254+
either a forward or a mention in the message text.
255255

256256
UnicodeEncodeError: '<encoding>' codec can't encode …
257257
-----------------------------------------------------

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

pyrogram/client/types/inline_mode/inline_query_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(
6363
super().__init__()
6464

6565
self.type = type
66-
self.id = str(uuid4()) if id is None else id
66+
self.id = str(uuid4()) if id is None else str(id)
6767
self.input_message_content = input_message_content
6868
self.reply_markup = reply_markup
6969

0 commit comments

Comments
 (0)