Failed to execute expression:
from telethon.tl import functions, types
await client(
functions.messages.DeleteHistoryRequest(
[
d.input_entity.chat_id
async for d in client.iter_dialogs()
if d.is_group and not d.is_channel and d.entity.migrated_to
],
0,
)
)
Due to:
Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.8/site-packages/telethon/client/users.py", line 30, in __call__
return await self._call(self._sender, request, ordered=ordered)
File "/app/.heroku/python/lib/python3.8/site-packages/telethon/client/users.py", line 37, in _call
await r.resolve(self, utils)
File "/app/.heroku/python/lib/python3.8/site-packages/telethon/tl/functions/messages.py", line 306, in resolve
self.peer = utils.get_input_peer(await client.get_input_entity(self.peer))
File "/app/.heroku/python/lib/python3.8/site-packages/telethon/client/users.py", line 418, in get_input_entity
peer = utils.get_peer(peer)
File "/app/.heroku/python/lib/python3.8/site-packages/telethon/utils.py", line 888, in get_peer
_raise_cast_fail(peer, 'Peer')
File "/app/.heroku/python/lib/python3.8/site-packages/telethon/utils.py", line 138, in _raise_cast_fail
raise TypeError('Cannot cast {} to any kind of {}.'.format(
TypeError: Cannot cast list to any kind of Peer.