IvanGlinkin / CCTV

Close-Circuit Telegram Vision revolutionizes location tracking with its open-source design and Telegram API integration. Offering precise tracking within 50-100 meters, users can monitor others in real-time for logistics or safety, redefining how we navigate our surroundings
GNU General Public License v3.0
2.37k stars 327 forks source link

AttributeError: 'UserProfilePhotoEmpty' object has no attribute 'photo_id' #6

Closed k-redas closed 5 months ago

k-redas commented 5 months ago

Hi,

Your tool likes very cool...i would like to test it. But, I have this message after with all config OK. What can i do ?

Traceback (most recent call last): File "/home/myID/tools/telegram/CCTV/start.py", line 153, in "photo_id": user_info.photo.photo_id if user_info.photo else None, ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'UserProfilePhotoEmpty' object has no attribute 'photo_id'

IvanGlinkin commented 5 months ago

Hm, that's weird. seems like the JSON user output does not have photo_id attributes. Can you share the screenshot of the error + coordinates to test it from our side. Thanks

k-redas commented 5 months ago

i test with this : line 153

"photo_id": user_info.photo.photo_id if user_info.photo and hasattr(user_info.photo, 'photo_id') else None,

it works