Skip to content

Commit 448a65b

Browse files
committed
Fix some cross references
1 parent b352ef3 commit 448a65b

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

docs/source/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ API Reference
142142
:columns: 2
143143

144144
- :doc:`Pyrogram Client <api/client>`: Reference details about the Client class.
145-
- :doc:`Available Methods <api/methods>`: List of available high-level methods.
146-
- :doc:`Available Types <api/types>`: List of available high-level types.
147-
- :doc:`Bound Methods <api/bound-methods>`: List of convenient bound methods.
145+
- :doc:`Available Methods <api/methods/index>`: List of available high-level methods.
146+
- :doc:`Available Types <api/types/index>`: List of available high-level types.
147+
- :doc:`Bound Methods <api/bound-methods/index>`: List of convenient bound methods.
148148

149149
Meta
150150
^^^^

docs/source/topics/advanced-usage.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Advanced Usage
22
==============
33

4-
Pyrogram's API, which consists of well documented convenience :doc:`methods <../api/methods>` and facade
5-
:doc:`types <../api/types>`, exists to provide a much easier interface to the undocumented and often confusing Telegram
6-
API.
4+
Pyrogram's API, which consists of well documented convenience :doc:`methods <../api/methods/index>` and facade
5+
:doc:`types <../api/types/index>`, exists to provide a much easier interface to the undocumented and often confusing
6+
Telegram API.
77

88
In this section, you'll be shown the alternative way of communicating with Telegram using Pyrogram: the main "raw"
99
Telegram API with its functions and types.
@@ -23,21 +23,21 @@ some pitfalls to take into consideration when working with the raw API.
2323
Every available high-level methods in Pyrogram is built on top of these raw functions.
2424

2525
Nothing stops you from using the raw functions only, but they are rather complex and
26-
:doc:`plenty of them <../api/methods>` are already re-implemented by providing a much simpler and cleaner interface
27-
which is very similar to the Bot API (yet much more powerful).
26+
:doc:`plenty of them <../api/methods/index>` are already re-implemented by providing a much simpler and cleaner
27+
interface which is very similar to the Bot API (yet much more powerful).
2828

2929
If you think a raw function should be wrapped and added as a high-level method, feel free to ask in our Community_!
3030

3131
Invoking Functions
3232
^^^^^^^^^^^^^^^^^^
3333

34-
Unlike the :doc:`methods <../api/methods>` found in Pyrogram's API, which can be called in the usual simple way,
34+
Unlike the :doc:`methods <../api/methods/index>` found in Pyrogram's API, which can be called in the usual simple way,
3535
functions to be invoked from the raw Telegram API have a different way of usage and are more complex.
3636

37-
First of all, both :doc:`raw functions <../telegram/functions/index>` and :doc:`raw types <../telegram/types/index>` live in their
38-
respective packages (and sub-packages): ``pyrogram.api.functions``, ``pyrogram.api.types``. They all exist as Python
39-
classes, meaning you need to create an instance of each every time you need them and fill them in with the correct
40-
values using named arguments.
37+
First of all, both :doc:`raw functions <../telegram/functions/index>` and :doc:`raw types <../telegram/types/index>`
38+
live in their respective packages (and sub-packages): ``pyrogram.api.functions``, ``pyrogram.api.types``. They all exist
39+
as Python classes, meaning you need to create an instance of each every time you need them and fill them in with the
40+
correct values using named arguments.
4141

4242
Next, to actually invoke the raw function you have to use the :meth:`~pyrogram.Client.send` method provided by the
4343
Client class and pass the function object you created.

docs/source/topics/serialize.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For Humans - str(obj)
99
---------------------
1010

1111
If you want a nicely formatted, human readable JSON representation of any object in the API -- namely, any object from
12-
:doc:`Pyrogram types <../api/types>`, :doc:`raw functions <../telegram/functions/index>` and
12+
:doc:`Pyrogram types <../api/types/index>`, :doc:`raw functions <../telegram/functions/index>` and
1313
:doc:`raw types <../telegram/types/index>` -- you can use use ``str(obj)``.
1414

1515
.. code-block:: python

0 commit comments

Comments
 (0)