How to Solve NameError: name 'PeerUser' is not defined -- telethon

Solution: Import the 'PeerUser' module

To Solve the error, add the following line to the top of your code.

from telethon import PeerUser

 

For more information:
Python telethon PeerUser