2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 14:25:55 +00:00

Update docstrings

This commit is contained in:
Dan
2018-04-18 11:15:09 +02:00
parent 9dff99cf36
commit 0bba5daea4
4 changed files with 11 additions and 7 deletions

View File

@@ -2012,7 +2012,8 @@ class Client:
For a private channel/supergroup you can use its *t.me/joinchat/* link. For a private channel/supergroup you can use its *t.me/joinchat/* link.
media (``list``): 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 210 items. describing photos and videos to be sent, must include 210 items.
disable_notification (``bool``, optional): disable_notification (``bool``, optional):
@@ -3128,7 +3129,8 @@ class Client:
elif isinstance(message, str): elif isinstance(message, str):
media = pyrogram.Document( media = pyrogram.Document(
file_id=message, file_id=message,
file_size=0 file_size=0,
mime_type=""
) )
else: else:
return return

View File

@@ -20,8 +20,9 @@ from .handler import Handler
class MessageHandler(Handler): class MessageHandler(Handler):
"""The Message handler class. It is used to handle text, media and service messages coming from """The Message handler class. Used to handle text, media and service messages coming from
any chat (private, group, channel). any chat (private, group, channel). It is intended to be used with
:meth:`add_handler() <pyrogram.Client.add_handler>`
Args: Args:
callback (``callable``): callback (``callable``):
@@ -52,7 +53,8 @@ class MessageHandler(Handler):
class RawUpdateHandler(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: Args:
callback (``callable``): callback (``callable``):

View File

@@ -19,7 +19,7 @@
class InputMediaPhoto: class InputMediaPhoto:
"""This object represents a photo to be sent inside an album. """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: Args:
media (:obj:`str`): media (:obj:`str`):

View File

@@ -19,7 +19,7 @@
class InputMediaVideo: class InputMediaVideo:
"""This object represents a video to be sent inside an album. """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: Args:
media (:obj:`str`): media (:obj:`str`):