11Advanced 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
88In this section, you'll be shown the alternative way of communicating with Telegram using Pyrogram: the main "raw"
99Telegram 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
3131Invoking 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,
3535functions 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
4242Next, to actually invoke the raw function you have to use the :meth: `~pyrogram.Client.send ` method provided by the
4343Client class and pass the function object you created.
0 commit comments