Update docs
This commit is contained in:
parent
b9fa1e414d
commit
ddb8c9e595
@ -11,12 +11,6 @@ The most straightforward and recommended way to install or upgrade Pyrogram is b
|
|||||||
|
|
||||||
Pyrogram only works on Python 3.3 or higher; if your **pip** points to Python 2.x use **pip3** instead.
|
Pyrogram only works on Python 3.3 or higher; if your **pip** points to Python 2.x use **pip3** instead.
|
||||||
|
|
||||||
Also, if you are getting an error while installing or importing the library, please update setuptools and try again.
|
|
||||||
|
|
||||||
.. code-block:: bash
|
|
||||||
|
|
||||||
$ pip install --upgrade setuptools
|
|
||||||
|
|
||||||
Bleeding Edge
|
Bleeding Edge
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
@ -44,4 +38,4 @@ If no errors show up you are good to go.
|
|||||||
|
|
||||||
>>> import pyrogram
|
>>> import pyrogram
|
||||||
>>> pyrogram.__version__
|
>>> pyrogram.__version__
|
||||||
'0.4.0'
|
'0.4.2'
|
||||||
|
@ -29,8 +29,7 @@ Examples
|
|||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Something
|
...
|
||||||
pass
|
|
||||||
except BadRequest:
|
except BadRequest:
|
||||||
pass
|
pass
|
||||||
except Flood:
|
except Flood:
|
||||||
@ -53,8 +52,7 @@ can try again. The value is always stored in the ``x`` field of the returned exc
|
|||||||
from pyrogram.api.errors import FloodWait
|
from pyrogram.api.errors import FloodWait
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# something
|
...
|
||||||
pass
|
|
||||||
except FloodWait as e:
|
except FloodWait as e:
|
||||||
print(e.x)
|
print(e.x)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user