from pyrogram import Client API_ID = "20253869" API_HASH = "31c43ba9cc153a75767ea4a4183ae24b" PHONE_NUMBER = "+79826342854" app = Client("my_account", api_id=API_ID, api_hash=API_HASH, phone_number=PHONE_NUMBER) with app: user = app.get_me() print(f"Username: {user.username}") print(f"First Name: {user.first_name}") print(f"Last Name: {user.last_name}")