2020-07-10 22:54:57,520 (
util.py:68 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: location can be requested in private chats only"}\']',)
Traceback (most recent call last):
File "C:\Users\orisc\PycharmProjects\bot\venv\lib\site-packages\telebot\
util.py", line 62, in run
task(*args, **kwargs)
File "C:/Users/orisc/PycharmProjects/bot/
bot.py", line 51, in geophone
bot.send_message(
message.chat.id, "Відправ мєстоположеніє ублюдак", reply_to_message_id=message.message_id, reply_markup=keyboard)
File "C:\Users\orisc\PycharmProjects\bot\venv\lib\site-packages\telebot\__init__.py", line 640, in send_message
apihelper.send_message(self.token, chat_id, text, disable_web_page_preview, reply_to_message_id,
File "C:\Users\orisc\PycharmProjects\bot\venv\lib\site-packages\telebot\
apihelper.py", line 166, in send_message
return _make_request(token, method_url, params=payload, method='post')
File "C:\Users\orisc\PycharmProjects\bot\venv\lib\site-packages\telebot\
apihelper.py", line 69, in _make_request
return _check_result(method_name, result)['result']
File "C:\Users\orisc\PycharmProjects\bot\venv\lib\site-packages\telebot\
apihelper.py", line 88, 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: location can be requested in private chats only"}']
"
2020-07-10 22:54:57,521 (__init__.py:455 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: location can be requested in private chats only"}']"