-
Notifications
You must be signed in to change notification settings - Fork 48
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
file_get_contents("php://input") #20
Comments
Hi I could not handle your error. Please indicate the circumstances in which the error occurs. |
i am trying to use this code: $ res = Yii :: $ app-> telegram-> sendMessage ([ |
My dear friend, in a part of the explanation, I said that you should get an answer from Telegram |
No, the problem is that I cant use telegram in my usual controllers. |
Сould you solve this problem? |
Dear friend @Rafinol |
hi i am trying to use your dependency in my project but when trying to call Yii :: $ app-> telegram-> sendMessage ([
'chat_id' => $ chat_id,
'text' => 'test',
]);
after which I get a 500 error, because the data from my form goes into your constructor:
public function __construct ($ config = [])
{
namely in $ input = file_get_contents ("php: // input")
your script can work fine and error-free without
$ input = file_get_contents ("php: // input");
$ array = json_decode ($ input, true);
$ this-> input = new Input ($ array);
The text was updated successfully, but these errors were encountered: