mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Use concise names when cross-referencing, "type" is often implicit
This commit is contained in:
parent
fa9b0332bc
commit
75dbbaeaf5
@ -42,5 +42,5 @@ Examples
|
|||||||
if isinstance(update, types.UpdateShortMessage) and not update.out:
|
if isinstance(update, types.UpdateShortMessage) and not update.out:
|
||||||
client.send_message(update.user_id, update.message)
|
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.
|
update is not generated by yourself (i.e., the message is not outgoing), then sends back the same message.
|
@ -154,8 +154,8 @@ class Client:
|
|||||||
"""Use this method to send `Raw Function`_ queries.
|
"""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.
|
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
|
Available functions are listed in the :obj:`pyrogram.api.functions` package and may accept compound
|
||||||
data types from ``pyrogram.api.types`` as well as bare types such as ``int``, ``str``, etc...
|
data types from :obj:`pyrogram.api.types` as well as bare types such as :obj:`int`, :obj:`str`, etc...
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
data (:obj:`Object`):
|
data (:obj:`Object`):
|
||||||
@ -447,7 +447,7 @@ class Client:
|
|||||||
"""A simple method for testing the user authorization. Requires no parameters.
|
"""A simple method for testing the user authorization. Requires no parameters.
|
||||||
|
|
||||||
Returns:
|
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:
|
Raises:
|
||||||
:class:`pyrogram.Error`
|
:class:`pyrogram.Error`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user