-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TelegramDeprecationWarning #63
Comments
requirements.txt |
Ну так, а я о чём? API обновилось, и где я теперь старое возьму? |
Измени строчку в requirements.txt и обнови зависимости - python3 -m pip install -r requirements.txt |
Ну что-то поменялось, теперь ругается по другому:
|
ну и да в таком варианте установилась версия |
Запятую пропустил, нужно вот так - python-telegram-bot>=10,<12 |
Да, нет с запятой всё нормально, поставил, я же сказал что установилась 11 версия.
Убрал вообще нафиг |
Доброго времени суток. |
с ними работает 12 версия? |
С 12 версией бота у меня не происходит скачивание файлов. Поиск работает а качать не качает. |
Надо очередность поменять, вначал проверку на скачивание, а потом на формирование ответа, посмотрите мой ПР |
Я так понимаю в телеграм боте API поменялось, он больше не запускается (version = '12.8') ,сыплет ошибками
TelegramDeprecationWarning
Quit the sopds_telebot with CONTROL-C. /opt/sopds/opds_catalog/management/commands/sopds_telebot.py:348: TelegramDeprecationWarning: R> download_handler = RegexHandler('^/download\d+$',self.downloadBooks) /home/bravo123/.local/lib/python3.8/site-packages/telegram/ext/regexhandler.py:113: TelegramDep> super().__init__(Filters.regex(pattern), /home/bravo123/.local/lib/python3.8/site-packages/telegram/ext/regexhandler.py:113: TelegramDep> super().__init__(Filters.regex(pattern), /home/bravo123/.local/lib/python3.8/site-packages/telegram/ext/regexhandler.py:113: TelegramDep> super().__init__(Filters.regex(pattern), 2020-09-14 09:58:18,390 ERROR Error while getting Updates: Conflict: terminated by other get> 2020-09-14 09:58:18,391 ERROR No error handlers are registered, logging exception. Traceback (most recent call last): File "/home/bravo123/.local/lib/python3.8/site-packages/telegram/ext/updater.py", line 379, i> if not action_cb(): File "/home/bravo123/.local/lib/python3.8/site-packages/telegram/ext/updater.py", line 337, i> updates = self.bot.get_updates(self.last_update_id, File "<decorator-gen-31>", line 2, in get_updates File "/home/bravo123/.local/lib/python3.8/site-packages/telegram/bot.py", line 67, in decorat> result = func(*args, **kwargs) File "/home/bravo123/.local/lib/python3.8/site-packages/telegram/bot.py", line 2138, in get_u> result = self._request.post(url, data, timeout=float(read_latency) + float(timeout)) File "/home/bravo123/.local/lib/python3.8/site-packages/telegram/utils/request.py", line 330,> result = self._request_wrapper('POST', url, File "/home/bravo123/.local/lib/python3.8/site-packages/telegram/utils/request.py", line 248,> raise Conflict(message) telegram.error.Conflict: Conflict: terminated by other getUpdates request; make sure that only > 2020-09-14 09:58:24,022 ERROR Error while getting Updates: Conflict: terminated by other get> 2020-09-14 09:58:24,023 ERROR No error handlers are registered, logging exception. Traceback (most recent call last): File "/home/bravo123/.local/lib/python3.8/site-packages/telegram/ext/updater.py", line 379, i> if not action_cb(): File "/home/bravo123/.local/lib/python3.8/site-packages/telegram/ext/updater.py", line 337, i> updates = self.bot.get_updates(self.last_update_id, File "<decorator-gen-31>", line 2, in get_updates File "/home/bravo123/.local/lib/python3.8/site-packages/telegram/bot.py", line 67, in decorat> result = func(*args, **kwargs) .......
The text was updated successfully, but these errors were encountered: