Skip to content

Commit e680cce

Browse files
committed
Update docstrings
1 parent 16eee1d commit e680cce

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

pyrogram/client/client.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ def set_update_handler(self, callback: callable):
744744
Args:
745745
callback (``callable``):
746746
A function that will be called when a new update is received from the server. It takes
747-
:obj:`(client, update, users, chats)` as positional arguments (Look at the section below for
747+
*(client, update, users, chats)* as positional arguments (Look at the section below for
748748
a detailed description).
749749
750750
Other Parameters:
@@ -781,8 +781,8 @@ def send(self, data: Object):
781781
"""Use this method to send Raw Function queries.
782782
783783
This method makes possible to manually call every single Telegram API method in a low-level manner.
784-
Available functions are listed in the :obj:`pyrogram.api.functions` package and may accept compound
785-
data types from :obj:`pyrogram.api.types` as well as bare types such as ``int``, ``str``, etc...
784+
Available functions are listed in the :obj:`functions <pyrogram.api.functions>` package and may accept compound
785+
data types from :obj:`types <pyrogram.api.types>` as well as bare types such as ``int``, ``str``, etc...
786786
787787
Args:
788788
data (``Object``):
@@ -1005,8 +1005,8 @@ def send_message(self,
10051005
Text of the message to be sent.
10061006
10071007
parse_mode (``str``):
1008-
Use :obj:`pyrogram.ParseMode.MARKDOWN` or :obj:`pyrogram.ParseMode.HTML` if you want Telegram apps
1009-
to show bold, italic, fixed-width text or inline URLs in your message.
1008+
Use :obj:`MARKDOWN <pyrogram.ParseMode.MARKDOWN>` or :obj:`HTML <pyrogram.ParseMode.HTML>`
1009+
if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your message.
10101010
Defaults to Markdown.
10111011
10121012
disable_web_page_preview (``bool``, optional):
@@ -1107,13 +1107,13 @@ def send_photo(self,
11071107
Photo caption, 0-200 characters.
11081108
11091109
parse_mode (``str``):
1110-
Use :obj:`pyrogram.ParseMode.MARKDOWN` or :obj:`pyrogram.ParseMode.HTML` if you want Telegram apps
1111-
to show bold, italic, fixed-width text or inline URLs in your caption.
1110+
Use :obj:`MARKDOWN <pyrogram.ParseMode.MARKDOWN>` or :obj:`HTML <pyrogram.ParseMode.HTML>`
1111+
if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your caption.
11121112
Defaults to Markdown.
11131113
11141114
ttl_seconds (``int``, optional):
11151115
Self-Destruct Timer.
1116-
If you set a timer, the photo will self-destruct in :obj:`ttl_seconds`
1116+
If you set a timer, the photo will self-destruct in *ttl_seconds*
11171117
seconds after it was viewed.
11181118
11191119
disable_notification (``bool``, optional):
@@ -1193,8 +1193,8 @@ def send_audio(self,
11931193
Audio caption, 0-200 characters.
11941194
11951195
parse_mode (``str``):
1196-
Use :obj:`pyrogram.ParseMode.MARKDOWN` or :obj:`pyrogram.ParseMode.HTML` if you want Telegram apps
1197-
to show bold, italic, fixed-width text or inline URLs in your caption.
1196+
Use :obj:`MARKDOWN <pyrogram.ParseMode.MARKDOWN>` or :obj:`HTML <pyrogram.ParseMode.HTML>`
1197+
if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your caption.
11981198
Defaults to Markdown.
11991199
12001200
duration (``int``, optional):
@@ -1286,8 +1286,8 @@ def send_document(self,
12861286
Document caption, 0-200 characters.
12871287
12881288
parse_mode (``str``):
1289-
Use :obj:`pyrogram.ParseMode.MARKDOWN` or :obj:`pyrogram.ParseMode.HTML` if you want Telegram apps
1290-
to show bold, italic, fixed-width text or inline URLs in your caption.
1289+
Use :obj:`MARKDOWN <pyrogram.ParseMode.MARKDOWN>` or :obj:`HTML <pyrogram.ParseMode.HTML>`
1290+
if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your caption.
12911291
Defaults to Markdown.
12921292
12931293
disable_notification (``bool``, optional):
@@ -1438,8 +1438,8 @@ def send_video(self,
14381438
Video caption, 0-200 characters.
14391439
14401440
parse_mode (``str``):
1441-
Use :obj:`pyrogram.ParseMode.MARKDOWN` or :obj:`pyrogram.ParseMode.HTML` if you want Telegram apps
1442-
to show bold, italic, fixed-width text or inline URLs in your caption.
1441+
Use :obj:`MARKDOWN <pyrogram.ParseMode.MARKDOWN>` or :obj:`HTML <pyrogram.ParseMode.HTML>`
1442+
if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your caption.
14431443
Defaults to Markdown.
14441444
14451445
duration (``int``, optional):
@@ -1543,8 +1543,8 @@ def send_voice(self,
15431543
Voice message caption, 0-200 characters.
15441544
15451545
parse_mode (``str``):
1546-
Use :obj:`pyrogram.ParseMode.MARKDOWN` or :obj:`pyrogram.ParseMode.HTML` if you want Telegram apps
1547-
to show bold, italic, fixed-width text or inline URLs in your caption.
1546+
Use :obj:`MARKDOWN <pyrogram.ParseMode.MARKDOWN>` or :obj:`HTML <pyrogram.ParseMode.HTML>`
1547+
if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your caption.
15481548
Defaults to Markdown.
15491549
15501550
duration (``int``, optional):
@@ -1969,7 +1969,7 @@ def send_chat_action(self,
19691969
19701970
action (``callable``):
19711971
Type of action to broadcast.
1972-
Choose one from the :class:`pyrogram.ChatAction` class,
1972+
Choose one from the :class:`ChatAction <pyrogram.ChatAction>` class,
19731973
depending on what the user is about to receive.
19741974
19751975
progress (``int``, optional):
@@ -2042,8 +2042,8 @@ def edit_message_text(self,
20422042
New text of the message.
20432043
20442044
parse_mode (``str``):
2045-
Use :obj:`pyrogram.ParseMode.MARKDOWN` or :obj:`pyrogram.ParseMode.HTML` if you want Telegram apps
2046-
to show bold, italic, fixed-width text or inline URLs in your message.
2045+
Use :obj:`MARKDOWN <pyrogram.ParseMode.MARKDOWN>` or :obj:`HTML <pyrogram.ParseMode.HTML>`
2046+
if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your message.
20472047
Defaults to Markdown.
20482048
20492049
disable_web_page_preview (``bool``, optional):
@@ -2084,8 +2084,8 @@ def edit_message_caption(self,
20842084
New caption of the message.
20852085
20862086
parse_mode (``str``):
2087-
Use :obj:`pyrogram.ParseMode.MARKDOWN` or :obj:`pyrogram.ParseMode.HTML` if you want Telegram apps
2088-
to show bold, italic, fixed-width text or inline URLs in your caption.
2087+
Use :obj:`MARKDOWN <pyrogram.ParseMode.MARKDOWN>` or :obj:`HTML <pyrogram.ParseMode.HTML>`
2088+
if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your caption.
20892089
Defaults to Markdown.
20902090
20912091
Raises:

0 commit comments

Comments
 (0)