Use concise names when cross-referencing, "type" is often implicit

This commit is contained in:
Dan 2018-01-06 12:27:28 +01:00
parent fa9b0332bc
commit 75dbbaeaf5
2 changed files with 4 additions and 4 deletions

View File

@ -42,5 +42,5 @@ Examples
if isinstance(update, types.UpdateShortMessage) and not update.out:
client.send_message(update.user_id, update.message)
This checks if the update type is :obj:`types.UpdateShortMessage <pyrogram.api.types.UpdateShortMessage>` and that the
This checks if the update type is :obj:`UpdateShortMessage <pyrogram.api.types.UpdateShortMessage>` and that the
update is not generated by yourself (i.e., the message is not outgoing), then sends back the same message.

View File

@ -154,8 +154,8 @@ class Client:
"""Use this method to send `Raw Function`_ queries.
This method makes possible to manually call every single Telegram API method in a low-level manner.
Available functions are listed in the ``pyrogram.api.functions`` package and may accept compound
data types from ``pyrogram.api.types`` as well as bare types such as ``int``, ``str``, etc...
Available functions are listed in the :obj:`pyrogram.api.functions` package and may accept compound
data types from :obj:`pyrogram.api.types` as well as bare types such as :obj:`int`, :obj:`str`, etc...
Args:
data (:obj:`Object`):
@ -447,7 +447,7 @@ class Client:
"""A simple method for testing the user authorization. Requires no parameters.
Returns:
Full information about the user in form of a :obj:`pyrogram.api.types.UserFull` object.
Full information about the user in form of a :obj:`UserFull <pyrogram.api.types.UserFull>` object.
Raises:
:class:`pyrogram.Error`