mercredi 7 mars 2018

Laravel BotManStudio with Telegram doesn't work

Help me please. Now i'm playing around Botman Studio in Larvel. I'm using cod from example. It works great with web interface. I want use it with Telegram. I install drivers, get token. When i try to get registration this way: "php artisan botman:telegram:register" It gets error:

ErrorException : file_get_contents(https://api.telegram.org/bot/setWebhook?url=https://83255e3c.ngrok.io/botman): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

Web interface work well with https://83255e3c.ngrok.io/botman/tinker (it use same webhook).

I register webhook on telegram this way: curl -d "url=https://83255e3c.ngrok.io/botman" "https://api.telegram.org/bot524662111:AAF3syuVVVVVVVVV35Goh4lR6pxx1yLY/setWebhook"

Telegram told me Ok. Now i send message to bot using telegram. I see in ngrok's logo it comes as well as from webinteface, but bot doesn't reply. And he does work well wen i send message through web.

Help me please and sorry for my english. I will study hard. I promise.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2HbX7Gr
via IFTTT

Aucun commentaire:

Enregistrer un commentaire