mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 04:48:06 +00:00
Update docstrings
This commit is contained in:
parent
ad6cfcd165
commit
a961eb88db
@ -706,7 +706,7 @@ class Client:
|
||||
def resolve_peer(self, peer_id: int or str):
|
||||
"""Use this method to get the *InputPeer* of a known *peer_id*.
|
||||
|
||||
It is intended to be used when working with Raw Functions (i.e: a Telegram API method you wish to use which is
|
||||
It is intended to be used when working with Raw Functions (i.e: a Telegram API method you wish to use which is
|
||||
not available yet in the Client class as an easy-to-use method).
|
||||
|
||||
Args:
|
||||
|
@ -20,10 +20,11 @@
|
||||
class InputMedia:
|
||||
class Photo:
|
||||
"""This object represents a photo to be sent inside an album.
|
||||
It is intended to be used with :obj:`pyrogram.Client.send_media_group`.
|
||||
|
||||
Args:
|
||||
media (:obj:`str`):
|
||||
File to send.
|
||||
Photo file to send.
|
||||
Pass a file path as string to send a photo that exists on your local machine.
|
||||
|
||||
caption (:obj:`str`):
|
||||
@ -45,10 +46,11 @@ class InputMedia:
|
||||
|
||||
class Video:
|
||||
"""This object represents a video to be sent inside an album.
|
||||
It is intended to be used with :obj:`pyrogram.Client.send_media_group`.
|
||||
|
||||
Args:
|
||||
media (:obj:`str`):
|
||||
File to send.
|
||||
Video file to send.
|
||||
Pass a file path as string to send a video that exists on your local machine.
|
||||
|
||||
caption (:obj:`str`):
|
||||
|
Loading…
x
Reference in New Issue
Block a user