thedemons/opentele

Question. session with phone data

Opened this issue · 0 comments

I tried to log into the session file using an old device where I take the session file.

Device Information:

{
"session_file": "+6287787624748",
"phone": "+6287787624748",
"register_time": 1712558990,
"app_id": "6",
"app_hash": "eb06d4abfb49dc3eeb1aeb98ae0f581e",
"sdk": "SDK 33",
"app_version": "10.10.1 (4583)",
"device": "samsung SM-A226B",
"last_check_time": 1712559105,
"avatar": null,
"first_name": "Harta",
"last_name": "Ibrahim",
"username": "JohnxRuiz17",
"birthday": [
"day: 13",
"month: 5",
"year: None"
],
"twoFA": null,
"sex": 0,
"lang_code": "en",
"system_lang_code": "en-us",
"proxy": null,
"ipv6": false,
"timezone": "25200",
"register_layer": 177,
"device_auth_token": "fXJqjH-qSpmkeMLgr3dRs-:APA91bERJOhfQxChXRbJQVzZC7hotE1M6VMTkpC-yUxBD3i-liWF4vI4iYPexETYawg9SHlNmYTTHNBnx9cl6QPzUBKSEZZbNFbP28l2TtTCEWblKgMAJpZ1dIPmwCSrk7JzPrgTjjeP",
"device_auth_token_sign": "vwfshZ6hrYiyR/i05CHq0GUZkOyvIGrHXQEc5v8F2vml7i31lCWEf6FkWX2bxX6X6hjoeE1xx8ulGat3xMSIow==",
"device_auth_token_secret": "b"\xe8\xe77J\xbfw\xa6\xbdU\xa5\x1e\x9fv\xda0n\xfeG\x16V\xb8 X\x1c\xe0\xf8\xb6\xcb\xe2V)d\x9a2\xf5q\x03\x85\x97(\x11\x81u\x89\x18\xf8\xbb\xe5K\xb6T\xc6\xa7\xa2\xe0\x07\xdb\r\x99G,i\xa3\x8c[Si\xb1 \xef\x1b\xfdd\x13\xab\x889\xb6\xd6\xdc\x9d\x85\t'zIg\x94\xadq\x98\xdc\xfa&\x04\x86\x92\x8f\x9ej\x9fX\xf7E 1Y\xce\x81\xbcz\xe7E\x10[\xb3\xfbM\xc5\x11\x16\xb1&vQE\xb9\xc8\xb7\xf1\xd2\xacf(g\xd5\x0b?\xc4~\xd6\x94\x84\xaf\x94\xe0\x90\r\xef\xb8\x9a\x94\xa4\xd9\x8e5\xd0\x9b\xf9\xe1$\x95\x02\x05\xd2\xd4p\x9cYC\xa38M1\x12\xe3.\xb1@\x16\xa8\x0b\xef\xb7\x1d\xdf&1&[JBe\xc9\x0e^\x15\xd5\x9b\xad\xb9\xd6y\xc8z70N^<\x01c\xae4P\xd40eh\xfe\x8aR\x88\xf4U\x92\xdd\xc6\x1b1.\x85\x11\x97\xa4u)08\x80\xc4,\xac\xbc\xd6\x1d2a\x8e\xd2f<\x1e\xcb]\xa4""
}

i tryed to use code below :

    api = API.TelegramAndroid(api_id=6, api_hash="eb06d4abfb49dc3eeb1aeb98ae0f581e", lang_code='en',
                              device_model="samsung SM-A226B",
                              system_version="SDK 33", app_version="10.9.1 (4464)")
    print(api)
    client = TelegramClient(session=session_file_path, api=api)

    await client.connect()
    await client.PrintSessions()

but i have error like this: telethon.errors.rpcerrorlist.SessionRevokedError: The authorization has been invalidated, because of the user terminating all sessions (caused by GetAuthorizationsRequest)

Can anyone tell me what I'm doing wrong?