
Слава
18.07.2018
07:56:06
Вот:
Traceback (most recent call last):
File "D:\python\telebot\util.py", line 59, in run
task(*args, **kwargs)
File "D:\python\telebot\__init__.py", line 158, in retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout)
File "D:\python\telebot\init__.py", line 128, in get_updates
json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates)
File "D:\python\telebot\apihelper.py", line 180, in get_updates
return _make_request(token, method_url, params=payload)
File "D:\python\telebot\apihelper.py", line 56, in _make_request
return _check_result(method_name, result)['result']
File "D:\python\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 409 Conflict. Response body:
[b'{"ok":false,"error_code":409,"description":"Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}']
"
2018-07-14 17:15:56,933 (__init__.py:299 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. The server returned HTTP 409 Conflict. Response body:
[b'{"ok":false,"error_code":409,"description":"Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}']"
2018-07-14 17:16:00,833 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. The server returned HTTP 409 Conflict. Response body:\n[b\'{"ok":false,"error_code":409,"description":"Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}\']',)

~/42/elrandir> ?ᅠ
18.07.2018
09:12:31
Разве бан прилетает не за чат. То есть если по личкам, то это одно.
Положишь
Ну вот. Поллингом, как по мне проще.
Просто, надо сделать глобалку, где идет ограничение в 0.3 секунды на прием и выдачу данных, в принципе и все.

Alexey
18.07.2018
10:35:06
Привет. В чем у меня ошибка в sendPhoto??? $photo = 'AgADAgADTKkxG56XeEqTfrlFlPjJuhxmqw4ABIWNOo6wA8Dr-7ADAAEC';
$telegramApi->sendPhoto($chatId, $photo, $caption ,Markdown );
яп php
так не работает и не работает через file