Traceback (most recent call last):


 "<console>", line 1, in <module>


 "/home/user/telegram/lib/python3.7/site-packages/telethon/client/uploads.py", line 176, in send_file

msg = self._get_response_message(request, self(request), entity)


 "/home/user/telegram/lib/python3.7/site-packages/telethon/client/users.py", line 19, in __call__

r.resolve(self, utils)


 "/home/user/telegram/lib/python3.7/site-packages/telethon/tl/functions/messages.py", line 3403, in resolve

self.media = utils.get_input_media(self.media)


 "/home/user/telegram/lib/python3.7/site-packages/telethon/utils.py", line 310, in get_input_media

_raise_cast_fail(media, 'InputMedia')


 "/home/user/telegram/lib/python3.7/site-packages/telethon/utils.py", line 108, in _raise_cast_fail

type(entity).__name__, target))
TypeError: Cannot cast NoneType to any kind of InputMedia.


Traceback (most recent call last):

 "issue.py", line 10, in <module>
issue_thrift.WalkingDistanceParam(from_param, to_param, 'orderId', 1)
TypeError: object() takes no parameters