mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 21:38:04 +00:00
Make use of the refactored Chat type in get_chat
This commit is contained in:
parent
5d64de10dc
commit
7430529646
@ -16,8 +16,9 @@
|
|||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
import pyrogram
|
||||||
from pyrogram.api import functions, types
|
from pyrogram.api import functions, types
|
||||||
from ...ext import BaseClient, utils
|
from ...ext import BaseClient
|
||||||
|
|
||||||
|
|
||||||
class GetChat(BaseClient):
|
class GetChat(BaseClient):
|
||||||
@ -44,4 +45,4 @@ class GetChat(BaseClient):
|
|||||||
else:
|
else:
|
||||||
r = self.send(functions.messages.GetFullChat(peer.chat_id))
|
r = self.send(functions.messages.GetFullChat(peer.chat_id))
|
||||||
|
|
||||||
return utils.parse_chat_full(self, r)
|
return pyrogram.Chat.parse_full(self, r)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user