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

i have error with getUpdateCLI #279

Closed
MPCL5 opened this issue Aug 20, 2016 · 3 comments
Closed

i have error with getUpdateCLI #279

MPCL5 opened this issue Aug 20, 2016 · 3 comments

Comments

@MPCL5
Copy link

MPCL5 commented Aug 20, 2016

Warning: PDOStatement::execute(): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'u776080620_bot.telegram_update' doesn't exist in /home/u776080620/public_html/bot/vendor/longman/telegram-bot/src/DB.php on line 200
exception 'Longman\TelegramBot\Exception\TelegramException' with message 'Client error: POST https://api.telegram.org/bot234213012:*******************************/getUpdates resulted in a 409 Conflict response: {"ok":false,"error_code":409,"description":"Conflict: can't use getUpdates method while webhook is active"} ' in /home/u776080620/public_html/bot/vendor/longman/telegram-bot/src/Request.php:205 Stack trace: #0 /home/u776080620/public_html/bot/vendor/longman/telegram-bot/src/Request.php(296): Longman\TelegramBot\Request::execute('getUpdates', Array) #1 /home/u776080620/public_html/bot/vendor/longman/telegram-bot/src/Request.php(577): Longman\TelegramBot\Request::send('getUpdates', Array) #2 /home/u776080620/public_html/bot/vendor/longman/telegram-bot/src/Telegram.php(311): Longman\TelegramBot\Request::getUpdates(Array) #3 /home/u776080620/public_html/bot/getUpdatesCLI.php(57): Longman\TelegramBot\Telegram->handleGetUpdates() #4 {main}

@MPCL5 MPCL5 changed the title cUrl Error i have error with getUpdateCLI Aug 20, 2016
@noplanman
Copy link
Member

The error message says:
"description":"Conflict: can't use getUpdates method while webhook is active"

This means, that you have a webhook active. To be able to use getUpdates, you first need to remove the webhook by using the unset.php file.

@MPCL5
Copy link
Author

MPCL5 commented Aug 20, 2016

How?
Can you give an example?

@noplanman
Copy link
Member

Get the examples/unset.php file and add your bot details.
Now, when you call this file through your browser, you should get the "Webhook was deleted" message. This means that you can now use getUpdates method 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants