diff --git a/docs/source/resources/UpdateHandling.rst b/docs/source/resources/UpdateHandling.rst index a30198bd..8fc12543 100644 --- a/docs/source/resources/UpdateHandling.rst +++ b/docs/source/resources/UpdateHandling.rst @@ -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 ` and that the + This checks if the update type is :obj:`UpdateShortMessage ` and that the update is not generated by yourself (i.e., the message is not outgoing), then sends back the same message. \ No newline at end of file diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 6e4a6a83..5aaa5203 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -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 ` object. Raises: :class:`pyrogram.Error`