await client.send_file(chat, types.InputMediaDice(''))
ERROR:telethon.client.updates:Unhandled exception on my_event_handler
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/telethon/client/updates.py", line 431, in _dispatch_update
await callback(event)
File "pygram.py", line 25, in my_event_handler
await client.send_message(where, dart)
File "/usr/local/lib/python3.8/site-packages/telethon/client/messages.py", line 709, in send_message
return await self.send_file(
File "/usr/local/lib/python3.8/site-packages/telethon/client/uploads.py", line 352, in send_file
raise TypeError('Cannot use {!r} as file'.format(file))
TypeError: Cannot use <telethon.tl.types.MessageMediaDice object at 0x7f883ceb11f0> as file