From 0367c765e2b7497a78008fe1998003557bb52140 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 12 May 2018 11:33:14 +0200 Subject: [PATCH] Document get_chat --- pyrogram/client/methods/chats/get_chat.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyrogram/client/methods/chats/get_chat.py b/pyrogram/client/methods/chats/get_chat.py index 7861c551..194e6171 100644 --- a/pyrogram/client/methods/chats/get_chat.py +++ b/pyrogram/client/methods/chats/get_chat.py @@ -22,7 +22,15 @@ from ...ext import BaseClient, utils class GetChat(BaseClient): def get_chat(self, chat_id: int or str): - # TODO: Add docstrings + """Use this method to get up to date information about the chat (current name of the user for + one-on-one conversations, current username of a user, group or channel, etc.) + + Returns: + On success, a :obj:`Chat ` object is returned. + + Raises: + :class:`Error ` + """ peer = self.resolve_peer(chat_id) if isinstance(peer, types.InputPeerChannel):