-
Notifications
You must be signed in to change notification settings - Fork 323
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
botan.io error #54
Comments
The same error. "PHP message: PHP Fatal error: Call to a member function toJson() on array in vendor/telegram-bot/api/src/BaseType.php on line 71 |
The same error. |
Steps to reproduce: $response = [
"message_id" => 17,
"from" => [
"id" => 142775991,
"first_name" => "first name",
"last_name" => "last name",
"username" => "nickname",
],
"chat" => [
"id" => 142775991,
"first_name" => "first name",
"last_name" => "last name",
"username" => "nickname",
"type" => "private",
],
"date" => 1491068438,
"text" => "/latest",
"entities" => [
[
"type" => "bot_command",
"offset" => 0,
"length" => 7,
],
],
];
$message = \TelegramBot\Api\Types\Message::fromResponse($response);
$json = $message->toJson();
echo $json; This is happen since the
|
The same error. |
when i enable botan.io by using key in constructor call
Client(API_KEY, BOTAN_KEY);
i get loop on webHook. and exceptions in console
exception.txt
if i use constructor without
BOTAN_KEY
all work fine.bot.php main code :
bot.php, composer.json, composer.lock in attached zip
botan_io_exceptiondata.zip
The text was updated successfully, but these errors were encountered: