From 99a2c54992b2fda5c9b05629ef2bd3b4c38e2cc7 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 29 Apr 2018 18:36:55 +0200 Subject: [PATCH] Small fixes --- pyrogram/client/client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 72dadecf..8efee56a 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -2485,7 +2485,6 @@ class Client: ) ) - # TODO: Improvements for the new API def get_user_profile_photos(self, user_id: int or str, offset: int = 0, @@ -2505,7 +2504,7 @@ class Client: Values between 1—100 are accepted. Defaults to 100. Returns: - On success, :obj:`UserProfilePhotos` is returned. + On success, a :obj:`UserProfilePhotos` object is returned. Raises: :class:`Error ` @@ -3599,7 +3598,7 @@ class Client: functions.messages.SetBotCallbackAnswer( query_id=int(callback_query_id), cache_time=cache_time, - alert=show_alert, + alert=show_alert or None, message=text, url=url )