mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-11-07 17:53:47 +00:00
Make py:obj default Sphinx's role
This commit is contained in:
@@ -42,6 +42,9 @@ extensions = [
|
||||
'custom_roles'
|
||||
]
|
||||
|
||||
# Change the default role so we can avoid prefixing everything with :obj:
|
||||
default_role = "py:obj"
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ Retrieving all chat members (channels too)
|
||||
******************************************
|
||||
|
||||
You can use
|
||||
:obj:`client.get_participants <telethon.telegram_client.TelegramClient.get_participants>``
|
||||
`client.get_participants <telethon.telegram_client.TelegramClient.get_participants>`
|
||||
to retrieve the participants (click it to see the relevant parameters).
|
||||
Most of the time you will just need ``client.get_participants(entity)``.
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ Forwarding messages
|
||||
*******************
|
||||
|
||||
This request is available as a friendly method through
|
||||
:obj:`client.forward_messages <telethon.telegram_client.TelegramClient.forward_messages>``,
|
||||
`client.forward_messages <telethon.telegram_client.TelegramClient.forward_messages>`,
|
||||
and can be used like shown below:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
Reference in New Issue
Block a user