Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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"}\']',)
- Traceback (most recent call last):
- File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\util.py", line 59, in run
- task(*args, **kwargs)
- File "D:\Python_projects\Cpc Telegram\Telegram Bot кастрированый.py", line 35, in msg
- bot.send_message(message.chat.id, "Текст ""'"+str(extract)+"'"" был отправлен!")
- File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\__init__.py", line 598, in send_message
- reply_markup, parse_mode, disable_notification))
- File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\apihelper.py", line 140, in send_message
- return _make_request(token, method_url, params=payload, method='post')
- File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\apihelper.py", line 56, in _make_request
- return _check_result(method_name, result)['result']
- File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\apihelper.py", line 75, in _check_result
- raise ApiException(msg, method_name, result)
- 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: message is too long"}']
- "
- 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:
- [b'{"ok":false,"error_code":400,"description":"Bad Request: message is too long"}']"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement