Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.79 KB | None | 0 0
  1. 2019-06-24 18:21:15,707 - telegram.ext.dispatcher - WARNING - A TelegramError was raised while processing the Update
  2. 2019-06-24 18:21:15,708 - telegram.ext.dispatcher - ERROR - An uncaught error was raised while handling the error
  3. Traceback (most recent call last):
  4.   File "/usr/local/lib/python3.7/dist-packages/telegram/ext/dispatcher.py", line 279, in process_update
  5.     handler.handle_update(update, self)
  6.   File "/usr/local/lib/python3.7/dist-packages/telegram/ext/commandhandler.py", line 173, in handle_update
  7.     return self.callback(dispatcher.bot, update, **optional_args)
  8.   File "/root/pythonserver/googlebot/commands.py", line 29, in imgrandom
  9.     bot.send_photo(update.message.chat_id, str(random_filename))
  10.   File "/usr/local/lib/python3.7/dist-packages/telegram/bot.py", line 65, in decorator
  11.     result = func(self, *args, **kwargs)
  12.   File "/usr/local/lib/python3.7/dist-packages/telegram/bot.py", line 90, in decorator
  13.     result = self._request.post(url, data, timeout=kwargs.get('timeout'))
  14.   File "/usr/local/lib/python3.7/dist-packages/telegram/utils/request.py", line 309, in post
  15.     headers={'Content-Type': 'application/json'})
  16.   File "/usr/local/lib/python3.7/dist-packages/telegram/utils/request.py", line 223, in _request_wrapper
  17.     raise BadRequest(message)
  18. telegram.error.BadRequest: Wrong file identifier/http url specified
  19.  
  20. During handling of the above exception, another exception occurred:
  21.  
  22. Traceback (most recent call last):
  23.   File "/usr/local/lib/python3.7/dist-packages/telegram/ext/dispatcher.py", line 292, in process_update
  24.     self.dispatch_error(update, te)
  25.   File "/usr/local/lib/python3.7/dist-packages/telegram/ext/dispatcher.py", line 384, in dispatch_error
  26.     callback(self.bot, update, error)
  27. TypeError: error() takes 2 positional arguments but 3 were given
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement