mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Try to return the service message (when applicable) in the set_chat_photo
- Documentation Fixes Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
f7e1f214c6
commit
63db641f59
1 changed files with 3 additions and 2 deletions
|
|
@ -774,7 +774,7 @@ class Chat(Object):
|
||||||
emoji_background: Union[int, List[int]] = None,
|
emoji_background: Union[int, List[int]] = None,
|
||||||
video: Union[str, BinaryIO] = None,
|
video: Union[str, BinaryIO] = None,
|
||||||
video_start_ts: float = None,
|
video_start_ts: float = None,
|
||||||
) -> bool:
|
) -> Union["types.Message", bool]:
|
||||||
"""Bound method *set_photo* of :obj:`~pyrogram.types.Chat`.
|
"""Bound method *set_photo* of :obj:`~pyrogram.types.Chat`.
|
||||||
|
|
||||||
Use as a shortcut for:
|
Use as a shortcut for:
|
||||||
|
|
@ -825,7 +825,8 @@ class Chat(Object):
|
||||||
The timestamp in seconds of the video frame to use as photo profile preview.
|
The timestamp in seconds of the video frame to use as photo profile preview.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
``bool``: True on success.
|
:obj:`~pyrogram.types.Message` | ``bool``: On success, a service message will be returned (when applicable),
|
||||||
|
otherwise, in case a message object couldn't be returned, True is returned.
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
RPCError: In case of a Telegram RPC error.
|
RPCError: In case of a Telegram RPC error.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue