Update docstrings
This commit is contained in:
parent
9dff99cf36
commit
0bba5daea4
@ -2012,7 +2012,8 @@ class Client:
|
||||
For a private channel/supergroup you can use its *t.me/joinchat/* link.
|
||||
|
||||
media (``list``):
|
||||
A list containing either :obj:`pyrogram.InputMediaPhoto` or :obj:`pyrogram.InputMediaVideo` objects
|
||||
A list containing either :obj:`InputMediaPhoto <pyrogram.InputMediaPhoto>` or
|
||||
:obj:`InputMediaVideo <pyrogram.InputMediaVideo>` objects
|
||||
describing photos and videos to be sent, must include 2–10 items.
|
||||
|
||||
disable_notification (``bool``, optional):
|
||||
@ -3128,7 +3129,8 @@ class Client:
|
||||
elif isinstance(message, str):
|
||||
media = pyrogram.Document(
|
||||
file_id=message,
|
||||
file_size=0
|
||||
file_size=0,
|
||||
mime_type=""
|
||||
)
|
||||
else:
|
||||
return
|
||||
|
@ -20,8 +20,9 @@ from .handler import Handler
|
||||
|
||||
|
||||
class MessageHandler(Handler):
|
||||
"""The Message handler class. It is used to handle text, media and service messages coming from
|
||||
any chat (private, group, channel).
|
||||
"""The Message handler class. Used to handle text, media and service messages coming from
|
||||
any chat (private, group, channel). It is intended to be used with
|
||||
:meth:`add_handler() <pyrogram.Client.add_handler>`
|
||||
|
||||
Args:
|
||||
callback (``callable``):
|
||||
@ -52,7 +53,8 @@ class MessageHandler(Handler):
|
||||
|
||||
|
||||
class RawUpdateHandler(Handler):
|
||||
"""The Raw Update handler class. It is used to handle raw updates.
|
||||
"""The Raw Update handler class. Used to handle raw updates. It is intended to be used with
|
||||
:meth:`add_handler() <pyrogram.Client.add_handler>`
|
||||
|
||||
Args:
|
||||
callback (``callable``):
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
class InputMediaPhoto:
|
||||
"""This object represents a photo to be sent inside an album.
|
||||
It is intended to be used with :obj:`send_media_group <pyrogram.Client.send_media_group>`.
|
||||
It is intended to be used with :obj:`send_media_group() <pyrogram.Client.send_media_group>`.
|
||||
|
||||
Args:
|
||||
media (:obj:`str`):
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
class InputMediaVideo:
|
||||
"""This object represents a video to be sent inside an album.
|
||||
It is intended to be used with :obj:`send_media_group <pyrogram.Client.send_media_group>`.
|
||||
It is intended to be used with :obj:`send_media_group() <pyrogram.Client.send_media_group>`.
|
||||
|
||||
Args:
|
||||
media (:obj:`str`):
|
||||
|
Loading…
Reference in New Issue
Block a user