FRIKIdelTO

error al enviar imagen con Telebot

Mar 8th, 2020
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.76 KB | None | 0 0
  1. 2020-03-09 00:31:47,344 (util.py:66 WorkerThread1) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. The server returned HTTP 400 Bad Request. Response body:\n[b\'{"ok":false,"error_code":400,"description":"Bad Request: wrong file identifier/HTTP URL specified"}\']',)
  2. Traceback (most recent call last):
  3.  File "/home/pi/.local/lib/python3.7/site-packages/telebot/util.py", line 60, in run
  4.    task(*args, **kwargs)
  5.  File "FRIKIdelBOT.py", line 969, in crear_post
  6.    bot.send_photo(chat_id=message.chat.id, photo=url_imagen_producto, caption=texto_mensaje, parse_mode='HTML')
  7.  File "/home/pi/.local/lib/python3.7/site-packages/telebot/__init__.py", line 639, in send_photo
  8.    parse_mode, disable_notification))
  9.  File "/home/pi/.local/lib/python3.7/site-packages/telebot/apihelper.py", line 276, in send_photo
  10.    return _make_request(token, method_url, params=payload, files=files, method='post')
  11.  File "/home/pi/.local/lib/python3.7/site-packages/telebot/apihelper.py", line 60, in _make_request
  12.    return _check_result(method_name, result)['result']
  13.  File "/home/pi/.local/lib/python3.7/site-packages/telebot/apihelper.py", line 79, in _check_result
  14.    raise ApiException(msg, method_name, result)
  15. telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 400 Bad Request. Response body:
  16. [b'{"ok":false,"error_code":400,"description":"Bad Request: wrong file identifier/HTTP URL specified"}']
  17. "
  18. 2020-03-09 00:31:47,345 (__init__.py:420 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. The server returned HTTP 400 Bad Request. Response body:
  19. [b'{"ok":false,"error_code":400,"description":"Bad Request: wrong file identifier/HTTP URL specified"}']"
Advertisement
Add Comment
Please, Sign In to add comment