From 0d359a4b1ac61418b43d35c6389e2bc96ce6bcbe Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 7 Feb 2018 03:13:21 +0100 Subject: [PATCH] Add docstrings --- pyrogram/client/client.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 4da6bc88..9ae4b549 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -1948,6 +1948,26 @@ class Client: media: list, disable_notification: bool = None, reply_to_message_id: int = None): + """Use this method to send a group of photos or videos as an album. + On success, an Update containing the sent Messages is returned. + + Args: + chat_id (:obj:`int` | :obj:`str`): + Unique identifier for the target chat or username of the target channel/supergroup + (in the format @username). For your personal cloud storage (Saved Messages) you can + simply use "me" or "self". + + media (:obj:`list`): + A list containing either :obj:`pyrogram.InputMedia.Photo` or :obj:`pyrogram.InputMedia.Video` objects + describing photos and videos to be sent, must include 2–10 items. + + disable_notification (:obj:`bool`, optional): + Sends the message silently. + Users will receive a notification with no sound. + + reply_to_message_id (:obj:`int`, optional): + If the message is a reply, ID of the original message. + """ multi_media = [] for i in media: