Closed behnamazimi closed 7 years ago
Hi @behnamazimi
What version of the library are you on, what PHP version, etc.?
Also, what does your echo $result;
output?
Hi @noplanman,
How can I get the library version? I clone it from this repository in last two days.
According to Telegram.php
file, I guess that version is 0.0.5
. Am I true?
And I use PHP 5.6. And also yes, echo $result
is just for output.
How did you get that version?!
The latest is 0.40.1. Best way to install the library is via composer:
composer require longman/telegram-bot
That should get the latest one. Call composer update
afterwards to be sure.
Thank You @noplanman 😊 This error happened because I used new version methods in old version library.
I just simply set webhook, and now when I want to unset it this error appears!
I also faced the below error in set wobhook and calling
isOk()
method.Fatal error: Call to a member function isOk() on string
And I ignore it by removing the line that callisOk()
method of$result.
That's my unset.php: