Skip to content
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

Error #141

Closed
CocaColaSRL opened this issue Jul 9, 2021 · 4 comments
Closed

Error #141

CocaColaSRL opened this issue Jul 9, 2021 · 4 comments
Labels
bug Something that doesn't work as expected.

Comments

@CocaColaSRL
Copy link

2021-07-09 17:12:42 | Core | core | @ThisPCShopBot is starting!
2021-07-09 17:12:43 | Core | duckbot | Telegram error while calling get_updates(), retrying in 5 secs...
Full error: Conflict: can't use getUpdates method while webhook is active; use deleteWebhook to delete the webhook first
Traceback (most recent call last):
File "/home/runner/telegramshop/duckbot.py", line 22, in result_func
return func(*args, **kwargs)
File "/home/runner/telegramshop/duckbot.py", line 82, in get_updates
return self.bot.get_updates(*args, **kwargs)
File "/home/runner/telegramshop/venv/lib/python3.8/site-packages/telegram/bot.py", line 127, in decorator
result = func(*args, **kwargs)
File "/home/runner/telegramshop/venv/lib/python3.8/site-packages/telegram/bot.py", line 2761, in get_updates
result = self._post(
File "/home/runner/telegramshop/venv/lib/python3.8/site-packages/telegram/bot.py", line 259, in _post
return self.request.post(
File "/home/runner/telegramshop/venv/lib/python3.8/site-packages/telegram/utils/request.py", line 350, in post
result = self._request_wrapper(
File "/home/runner/telegramshop/venv/lib/python3.8/site-packages/telegram/utils/request.py", line 277, in _request_wrapper
raise Conflict(message)
telegram.error.Conflict: Conflict: can't use getUpdates method while webhook is active; use deleteWebhook to delete the webhook first

@CocaColaSRL CocaColaSRL added the bug Something that doesn't work as expected. label Jul 9, 2021
@Steffo99
Copy link
Owner

Steffo99 commented Jul 9, 2021

You are trying to run Greed on a bot which has a webhook set.

Please disable the webhook (or recreate the bot if you don't know how to do so), as Greed only works in polling mode.

@CocaColaSRL
Copy link
Author

ok

@CocaColaSRL
Copy link
Author

ma come faccio a toglierli?

@CocaColaSRL
Copy link
Author

ok risolto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that doesn't work as expected.
Projects
None yet
Development

No branches or pull requests

2 participants