mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 05:04:51 +00:00
Make use of the refactored Chat type in get_chat
This commit is contained in:
parent
5d64de10dc
commit
7430529646
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue