Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.89 KB | None | 0 0
  1. 2019-08-21 22:11:37,095 (util.py:65 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: message is too long"}\']',)
  2. Traceback (most recent call last):
  3.  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\util.py", line 59, in run
  4.    task(*args, **kwargs)
  5.  File "D:\Python_projects\Cpc Telegram\Telegram Bot кастрированый.py", line 35, in msg
  6.    bot.send_message(message.chat.id, "Текст ""'"+str(extract)+"'"" был отправлен!")
  7.  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\__init__.py", line 598, in send_message
  8.    reply_markup, parse_mode, disable_notification))
  9.  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\apihelper.py", line 140, in send_message
  10.    return _make_request(token, method_url, params=payload, method='post')
  11.  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\apihelper.py", line 56, in _make_request
  12.    return _check_result(method_name, result)['result']
  13.  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\apihelper.py", line 75, 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: message is too long"}']
  17. "
  18. 2019-08-21 22:11:37,097 (__init__.py:417 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: message is too long"}']"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement