Answer the question
In order to leave comments, you need to log in
What is the correct url to specify setWebhook?
I get nothing in response and logs.txt does not record anything. They said that the url does not come. Then the question is, what will be the correct address for yii2 if my controller is specified frontend/controllers/TelegramController.php
This class has actions
class TelegramController extends Controller
{
public function actionWebhook()
{
$content = json_decode(file_get_contents('php://input'), true);
file_put_contents('logs.txt', $content);
...
}
}
Answer the question
In order to leave comments, you need to log in
Depends on the url manager settings in the config. What can't you check?
public function actionWebhook()
{
echo "да это правильный урл";
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question