irazasyed / telegram-bot-sdk

🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
https://telegram-bot-sdk.com
BSD 3-Clause "New" or "Revised" License
2.99k stars 660 forks source link

try use getUpdates for get chat id and has error #460

Closed AliT1993 closed 6 years ago

AliT1993 commented 7 years ago

after issue : #459 i try use getUpdates function for get chat id and send simple message but error occured and error_log say :

[23-Sep-2017 15:22:11 UTC] PHP Fatal error: Uncaught exception 'GuzzleHttp\Exception\ClientException' with message 'Client error: POST https://api.telegram.org/bot414729790:*************************/getUpdates resulted in a 409 Conflict response: {"ok":false,"error_code":409,"description":"Conflict: can't use getUpdates method while webhook is active"} ' in /home2/ospay/public_html/InstagramBot/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113

and then i decide to delete webhook and try again! but i cant get result from this too!

how i can send simple message for clients after they push bot start button ? if you write simple example it can help me better thanks

AliT1993 commented 6 years ago

i solved this