2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Make use of the refactored Chat type in get_chat

This commit is contained in:
Dan 2018-12-16 17:59:34 +01:00
parent 5d64de10dc
commit 7430529646

View File

@ -16,8 +16,9 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
import pyrogram
from pyrogram.api import functions, types
from ...ext import BaseClient, utils
from ...ext import BaseClient
class GetChat(BaseClient):
@ -44,4 +45,4 @@ class GetChat(BaseClient):
else:
r = self.send(functions.messages.GetFullChat(peer.chat_id))
return utils.parse_chat_full(self, r)
return pyrogram.Chat.parse_full(self, r)