from pyrogram import Client
client = Client(name, api_id, api_hash)
client.start()
[print(dialog) for dialog in client.get_dialogs(limit=1)] # Dialog
print(client.get_chat(chat_id)) # Chat
print(client.get_users(chat_id)) # User
client.stop()
{
"_": "Chat",
"id": id,
"type": "ChatType.PRIVATE",
"is_verified": false,
"is_restricted": false,
"is_scam": false,
"is_fake": false,
"is_support": false,
"username": "username",
"first_name": "first_name",
"last_name": "last_name",
"photo": {
"_": "ChatPhoto",
"small_file_id": "small_file_id",
"small_photo_unique_id": "small_photo_unique_id",
"big_file_id": "big_file_id",
"big_photo_unique_id": "big_photo_unique_id"
},
"dc_id": 2
}