pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

bot.send_photo() fails

Open alfilesnet opened this issue 9 years ago • 1 comments

Please answer these questions before submitting your issue. Thanks!

  1. What version of pyTelegramBotAPI are you using? 3.0.1
  2. What OS are you using? Ubuntu 16.04LTE
  3. What version of python are you using? 3.5.2

After upgrade my pyTelegramBotAPI, when I use bot.send_photo() command appears this message:

telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 400 Bad Request. Response body: [b'{"ok":false,"error_code":400,"description":"Bad Request: wrong file identifier/HTTP URL specified"}']

alfilesnet avatar Jun 12 '17 22:06 alfilesnet

I tested it with another photo and it works correctly.

alfilesnet avatar Jun 12 '17 23:06 alfilesnet