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

Solution: Import the 'InputPeerEmpty' module

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

from telethon.tl.types import InputPeerEmpty

 

For more information:
Python telethon InputPeerEmpty