In [1]: import telethon ^[[A^[[A^[[A In [2]: telethon.version Out[2]: '1.8.0'
In [3]: from telethon.tl.types import ChannelBannedRights —------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-3-bf5229c58293> in <module> —--> 1 from telethon.tl.types import ChannelBannedRights
ImportError: cannot import name 'ChannelBannedRights' from 'telethon.tl.types' (/home/prog/.local/share/virtualenvs/tg-paid-chat-KHn_Q9Qw/lib/python3.7/site-packages/telethon/tl/types/__init__.py)
client.get_dialogs() telethon.errors.rpcerrorlist.BotMethodInvalidError: The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot (caused by GetDialogsRequest)